📄 index.htm
字号:
<td width=5><img height=5 src="$imgpath/top_left.gif" width=5 border=0></td>
<td width="100%" background="$imgpath/top_center.gif" height=5></td>
<td width=5><img height=5 src="$imgpath/top_right.gif" width=5 border=0></td>
</tr>
</tbody>
</table>
<table class=box cellspacing=0 cellpadding=0 width="96%" height="170" border=0>
<tbody>
<tr>
<td>
<div align="center" valign="middle" style="width: 105; height: 170">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<SCRIPT language='JavaScript'>
var allcookies = document.cookie;
var pos = allcookies.indexOf("duoxunuser=");
if(pos != -1){
document.write("<tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'>状态:[已登录]</td></tr><tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'><a href='members.php'>修改个人资料</a></td></tr><tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'><a href='members.php?do=logout'>注销退出</a></td></tr>");
} else {
document.write("<tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'><a href='{$regurl}'>注册会员</a></td></tr><tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'><a href='{$loginurl}'>会员登录</a></td></tr><tr><td width='10' height='25'><img border='0' src='$imgpath/top_icon.jpg' width='5' height='7'></td><td width='95' height='25'><a href='list.php?order=hits'>文章点击排行</a></td></tr>");
}
</SCRIPT>
<tr>
<td width="10" height="25"><img border="0" src="$imgpath/top_icon.jpg" width="5" height="7"></td>
<td width="95" height="25"><a href="post.php">我要投稿</a></td>
</tr>
<tr>
<td width="10" height="25"><img border="0" src="$imgpath/top_icon.jpg" width="5" height="7"></td>
<td width="95" height="25"><a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{$set['url']}')" href="#">设为首页</a></td>
</tr>
<tr>
<td width="10" height="25"><img border="0" src="$imgpath/top_icon.jpg" width="5" height="7"></td>
<td width="95" height="25"><a href="mailto:{$set['ceomail']}">联系站长</a></td>
</tr>
<tr>
<td width="10" height="25"><img border="0" src="$imgpath/top_icon.jpg" width="5" height="7"></td>
<td width="95" height="25"><a href="http://www.duoxun.com">访问多讯网</a></td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<table cellspacing=0 cellpadding=0 width="96%" height="5" align=center border=0>
<tbody>
<tr>
<td width=5><img height=5 src="$imgpath/bottom_left.gif" width=5 border=0></td>
<td width="100%" background="$imgpath/bottom_center.gif" height=5></td>
<td width=5><img height=5 src="$imgpath/bottom_right.gif" width=5 border=0></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
</center>
</div>
<!--
EOT;
if(!empty($ads)) {
print <<<EOT
-->
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="760" bgcolor="#FFFFFF">
<tr>
<td>
$ads
</td>
</tr>
</table>
</center>
</div>
<!--
EOT;
}
print <<<EOT
-->
<div align="center">
<center>
<table cellspacing=0 cellpadding=0 width="760" border=0 bgcolor="#FFFFFF">
<tbody>
<!--
EOT;
for($i=0;$i<$num;$i++) {
$href_d=($set['ifhtml']=='1' && file_exists("list_{$sort[$i]['id']}.html")) ? "list_{$sort[$i]['id']}.html" : "{$out[$i]['more']}";
if((($i+3)/3)%2!=0) {
$bg1="table1.gif";
$bg2="table11.gif";
$class="sorttb1";
} else {
$bg1="table2.gif";
$bg2="table22.gif";
$class="sorttb2";
}
$height=$set['index_num']*17;
if(($i+3)%3===0) {
print <<<EOT
-->
<tr>
<!--
EOT;
}
print <<<EOT
-->
<td align=center width="33%">
<table class=$class cellspacing=0 cellpadding=0 width="98%" border=0>
<tbody>
<tr>
<td align=left width=167 background="$imgpath/$bg1" height=25>
<img height=25 src="$imgpath/$bg2" width=12 align=center><span class=bold>{$out[$i]['name']}</span></td>
<td align=right width=86 background="$imgpath/$bg1"><a href="{$href_d}">
<font color=#ef7b00>更多>></font></a></td>
</tr>
<tr valign=middle>
<td colSpan=2>
<table cellspacing=0 cellpadding=3 width="100%" bgcolor=#f7f7f7 border=0 height="{$height}">
<tbody>
<!--
EOT;
if(empty($out[$i]['code'])) {
if(!empty($catedb[$sort[$i]['id']])) {
print <<<EOT
-->
<tr>
<td align="left" valign="top">
<!--
EOT;
foreach($catedb[$sort[$i]['id']] as $cate) {
$subject=substrs($cate['subject'],$set['subjectlength']);
$subject=empty($cate['title_color']) ? "{$subject}" : "<font color=\"{$cate['title_color']}\">{$subject}</font>";
$subject=empty($cate['title_extra']) ? "$subject" : "<{$cate['title_extra']}>$subject</{$cate['title_extra']}>";
$href_c=($set['ifhtml']=='1' && file_exists("{$sort[$i]['id']}_{$cate['aid']}.html")) ? "{$sort[$i]['id']}_{$cate['aid']}.html" : "read.php?id={$cate['aid']}";
print <<<EOT
-->
·<a href="{$href_c}" target="_blank">{$subject}</a><br>
<!--
EOT;
}
print <<<EOT
-->
</td>
</tr>
<!--
EOT;
} else {
print <<<EOT
-->
<tr>
<td align="center">暂无任何记录!</td>
</tr>
<!--
EOT;
}
} else {
print <<<EOT
-->
<tr>
<td align="left" valign="top">{$out[$i]['code']}</td>
</tr>
<!--
EOT;
}
print <<<EOT
-->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<!--
EOT;
if(($i+1)%3===0) {
print <<<EOT
-->
</tr>
<!--
EOT;
$adi=floor(($i+3)/3);
if(!empty($ad[$adi])) {
print <<<EOT
-->
<tr>
<td colspan="3">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td>
{$ad[$adi]}
</td>
</tr>
</table>
</div>
</td>
</tr>
<!--
EOT;
}
}
}
print <<<EOT
-->
</tbody>
</table>
</center>
</div>
<!--
EOT;
?>
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -