File: C:/xampp/htdocs/discuz/forumdata/templates/1_1_my_threads.tpl.php
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<table cellspacing="0" cellpadding="0" summary="我的主題" class="datatable">
<thead class="colplural">
<tr>
<td class="folder"> </td>
<td class="icon"> </td>
<th>主題</th>
<td class="forum">版塊</td>
<? if(!$uid) { ?>
<td class="nums">
<select onchange="window.location='my.php?item=threads&filter=' + this.value + '<?=$fidadd?>'">
<option value="">狀態</option>
<option value="recyclebin"<? if($filter == 'recyclebin') { ?> selected="selected"<? } ?>>回收站</option>
<option value="aduit"<? if($filter == 'aduit') { ?> selected="selected"<? } ?>>待審核</option>
<option value="close"<? if($filter == 'close') { ?> selected="selected"<? } ?>>關閉</option>
<option value="common"<? if($filter == 'common') { ?> selected="selected"<? } ?>>正常</option>
</option>
</td>
<? } ?>
<td class="lastpost"><cite>最後發表</cite></td>
</tr>
</thead>
<? if($threadlist) { ?>
<tbody><? if(is_array($threadlist)) { foreach($threadlist as $thread) { ?><tr>
<td class="folder">
<a href="viewthread.php?tid=<?=$thread['tid']?>" target="_blank">
<? if($thread['folder'] == 'lock') { ?>
<img src="<?=IMGDIR?>/folder_lock.gif" /></a>
<? } elseif(in_array($thread['displayorder'], array(1, 2, 3))) { ?>
<img src="<?=IMGDIR?>/pin_<?=$thread['displayorder']?>.gif" alt="<?=$threadsticky[3-$thread['displayorder']]?>" /></a>
<? } else { ?>
<img src="<?=IMGDIR?>/folder_<?=$thread['folder']?>.gif" /></a>
<? } ?>
</td>
<td class="icon">
<? if($thread['special'] == 1) { ?>
<img src="<?=IMGDIR?>/pollsmall.gif" alt="投票" />
<? } elseif($thread['special'] == 2) { ?>
<img src="<?=IMGDIR?>/tradesmall.gif" alt="商品" />
<? } elseif($thread['special'] == 3) { ?>
<img src="<?=IMGDIR?>/rewardsmall.gif" alt="懸賞" <? if($thread['price'] < 0) { ?>class="solved"<? } ?> />
<? } elseif($thread['special'] == 4) { ?>
<img src="<?=IMGDIR?>/activitysmall.gif" alt="活動" />
<? } elseif($thread['special'] == 5) { ?>
<img src="<?=IMGDIR?>/debatesmall.gif" alt="辯論" />
<? } else { ?>
<?=$thread['icon']?>
<? } ?>
</td>
<th><? if($thread['displayorder'] >= 0) { ?><a href="viewthread.php?tid=<?=$thread['tid']?>" target="_blank"><?=$thread['subject']?></a><? } else { ?><?=$thread['subject']?><? } ?></th>
<td class="forum"><a href="forumdisplay.php?fid=<?=$thread['fid']?>" target="_blank"><?=$thread['forumname']?></a></td>
<? if(!$uid) { ?>
<td class="nums"><? if($thread['displayorder'] == '-1') { ?>回收站<? } elseif($thread['displayorder'] == '-2') { ?>待審核<? } elseif($thread['closed'] == '1') { ?>關閉<? } else { ?>正常<? } ?></td>
<? } ?>
<td class="lastpost">
<cite><? if($thread['lastposter']) { ?><a href="space.php?username=<?=$thread['lastposterenc']?>" target="_blank"><?=$thread['lastposter']?></a><? } else { ?>匿名<? } ?></cite>
<em><a href="redirect.php?tid=<?=$thread['tid']?>&goto=lastpost#lastpost"><?=$thread['lastpost']?></a></em>
</td>
</tr><? } } ?></tbody>
<? } else { ?>
<tr>
<td class="folder"> </td>
<td class="icon"> </td>
<th colspan="4"><p class="nodata">暫無數據</p></th>
</tr>
<? } ?>
</table>
<? if(!empty($multipage)) { ?><div class="pages_btns"><?=$multipage?></div><? } ?>