Location: PHPKode > projects > Uchome and Discuz > template/default/space_mtag_list.htm
<!--{eval $_TPL['titles'] = array($mtag['tagname'], $mtag['title'], 'Discuss Zone');}-->
<!--{template header}-->
<div class="searchbar floatright">
<form method="get" action="space.php">
	<input name="searchkey" value="" size="15" class="t_input" type="text">
	<input name="searchsubmit" value="Search Topics" class="submit" type="submit">
	<input type="hidden" name="searchmode" value="1" />
	<input type="hidden" name="tagid" value="$mtag[tagid]" />
	<input type="hidden" name="do" value="mtag" />
	<input type="hidden" name="view" value="$_GET[view]" />
</form>
</div>
<h2 class="title">
	<img src="image/app/mtag.gif"><a href="space.php?do=mtag&id=$mtag[fieldid]">$mtag[title]</a> -
	<a href="space.php?do=mtag&tagid=$mtag[tagid]">$mtag[tagname]</a>
</h2>

<div class="tabs_header">
	<ul class="tabs">
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]"><span>Home</span></a></li>
		<li$actives[list]><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=list"><span>Discuss Zone</span></a></li>
		<li$actives[digest]><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=digest"><span>Digest Zone</span></a></li>
		<!--{if $eventnum}-->
		<li$actives[event]><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=event"><span>Group Event</span></a></li>
		<!--{/if}-->
		<li$actives[member]><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=member"><span>Members</span></a></li>
		<!--{if empty($mtag['ismember']) && $mtag['joinperm'] < 2}-->
		<li class="null"><a href="cp.php?ac=mtag&op=join&tagid=$mtag[tagid]" id="mtag_join_$mtag[tagid]" onclick="ajaxmenu(event, this.id)">Join Group</a></li>
		<!--{elseif $mtag['allowpost']}-->
		<li class="null"><a href="cp.php?ac=thread&tagid=$mtag[tagid]">Start New Topic</a></li>
		<!--{/if}-->
	</ul>
</div>

<!--{if $searchkey}-->
<div class="h_status">The following are result of search <span style="color:red;font-weight:bold;">$searchkey</span> The list of results</div>
<!--{/if}-->

<!--{if $list}-->
<div class="topic_list">
	<table cellspacing="0" cellpadding="0">
		<thead>
			<tr>
				<td class="subject">Subject</td>
				<!--{if !$mtag}--><td class="mtag">Group </td><!--{/if}-->
				<td class="author">Author (Replies/Views) </td>
				<td class="lastpost">Last Update </td>
			</tr>
		</thead>
		<tbody>
			<!--{loop $list $key $value}-->
				<!--{eval $magicegg = ""}-->							
				<!--{eval if($value[magicegg]) for($i=0; $i<$value[magicegg]; $i++) $magicegg .= '<img src="image/magic/egg/'.mt_rand(1,6).'.gif" />';}-->
			<tr<!--{if $key%2==1}--> class="alt"<!--{/if}-->>
				<td class="subject">
				<!--{if $value[displayorder]}--> [Top] <!--{/if}-->
				<!--{if $value[digest]}--> [Dig] <!--{/if}-->
				<!--{if $value[eventid]}--> [Live] <!--{/if}-->
				$magicegg
				<a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a>
				<!--{if $value[hot]}-->
				<br><span class="gray">$value[hot] Recommend </span>
				<!--{/if}-->
				</td>
				<!--{if !$mtag}--><td class="mtag"><a href="space.php?do=mtag&tagid=$value[tagid]">$value[tagname]</a></td><!--{/if}-->
				<td class="author"><a href="space.php?uid=$value[uid]">{$_SN[$value[uid]]}</a><br><em>$value[replynum]/$value[viewnum]</em></td>
				<td class="lastpost"><a href="space.php?uid=$value[lastauthorid]" title="{$_SN[$value[lastauthorid]]}">{$_SN[$value[lastauthorid]]}</a><br><!--{date('m-d H:i',$value[lastpost],1)}--></td>
			</tr>
			<!--{/loop}-->
		</tbody>
	</table>
</div>	
<div class="page">$multi</div>
<!--{else}-->
<div class="c_form">No related discussion. Why not you create one and be first, let other know you're uniqe</div>
<!--{/if}-->

<!--{template footer}-->
Return current item: Uchome and Discuz