HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/discuz/forumdata/templates/1_1_my_favorites.tpl.php
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); if($favlist) { if($type == 'forum') { ?>
<form method="post" action="my.php?item=favorites&amp;type=forum">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<table cellspacing="0" cellpadding="0" summary="收藏的版塊" class="datatable">
<thead class="colplural">
<tr>
<td width="6%"></td>
<td>版塊</td>
<td>主題</td>
<td>帖數</td>
<td>今日</td>
</tr>
</thead>
<tbody><? if(is_array($favlist)) { foreach($favlist as $fav) { ?><tr>
<td><input class="checkbox" type="checkbox" name="delete[]" value="<?=$fav['fid']?>" /></td>
<th><a href="forumdisplay.php?fid=<?=$fav['fid']?>&amp;from=favorites" target="_blank"><?=$fav['name']?></a></th>
<td><?=$fav['threads']?></td>
<td><?=$fav['posts']?></td>
<td><?=$fav['todayposts']?></td>
</tr><? } } ?><tr>
<td><input class="checkbox" type="checkbox" name="chkall" id="chkall" onclick="checkall(this.form)" /> <label for="chkall">刪?</label></td>
<th><button type="submit" class="submit" name="favsubmit" value="true">提交</button></th>
<td colspan="3"><? if(!empty($multipage)) { ?><?=$multipage?><? } ?></td>
</tr>
</tbody>
</table>
</form>
<? } elseif($type == 'thread') { ?>
<form method="post" action="my.php?item=favorites&amp;type=thread">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<table cellspacing="0" cellpadding="0" summary="收藏的主題" class="datatable">
<thead class="colplural">
<tr>
<td width="6%"></td>
<th>標題</th>
<td class="forum">版塊</td>
<td class="nums">回復</td>
<td class="lastpost"><cite>最後發表</cite></td>
</tr>
</thead>
<tbody><? if(is_array($favlist)) { foreach($favlist as $fav) { ?><tr>
<td><input class="checkbox" type="checkbox" name="delete[]" value="<?=$fav['tid']?>"></td>
<th><a href="viewthread.php?tid=<?=$fav['tid']?>&amp;from=favorites" target="_blank"><?=$fav['subject']?></a></th>
<td class="forum"><a href="forumdisplay.php?fid=<?=$fav['fid']?>&amp;from=favorites" target="_blank"><?=$fav['name']?></a></td>
<td class="nums"><?=$fav['replies']?></td>
<td class="lastpost">
<cite><? if($fav['lastposter']) { ?><a href="space.php?username=<?=$fav['lastposterenc']?>&amp;from=favorites" target="_blank"><?=$fav['lastposter']?></a><? } else { ?>匿名<? } ?></cite>
<em><a href="redirect.php?tid=<?=$fav['tid']?>&amp;from=favorites&amp;goto=lastpost#lastpost"><?=$fav['lastpost']?></a></em>
</td>
</tr><? } } ?><tr>
<td><input class="checkbox" type="checkbox" name="chkall" id="chkall" onclick="checkall(this.form)" /> <label for="chkall">刪?</label></td>
<th><button type="submit" class="submit" name="favsubmit" value="true">提交</button></th>
<td colspan="3"><? if(!empty($multipage)) { ?><?=$multipage?><? } ?></td>
</tr>
</tbody>
</table>
</form>
<? } } else { ?>
<table cellspacing="0" cellpadding="0" class="datatable">
<tr><th><p class="nodata">暫無數據</p></th></tr>
</table>
<? } ?>