<!--<?php print <<<EOT
-->
<table cellspacing=0 cellpadding=0 width='$tablewidth' align=center>
<tr><td><img src='$imgpath/$stylepath/index/home.gif' align='absbottom'>
<b>
<!--
EOT;
if($notice){print <<<EOT
-->
$notice
<!--
EOT;
}else{print <<<EOT
-->
{#pw_notice}
<!--
EOT;
}print <<<EOT
-->
</b>
</td>
<td align=right>
<table cellspacing=1 cellpadding=1 style="font-family: Tahoma, Verdana;BORDER: #8C8E7B 1px solid;background:#FFFFFF;">
<tr>
<td style="background:#FF6500;font-size: 7pt;color:#ffffff;">&nbsp;XML&nbsp;</td>
<td style="background:#8C8E7B;font-size: 7pt;">&nbsp;<a href="rss.php" target="_blank" title="{#xml_rss}"><font color='#ffffff'>RSS 2.0</font></a>&nbsp;</td>
<td style="background:#8C8E7B;font-size: 7pt;">&nbsp;<a href="faq.php?faqjob=2#5" target="_blank" title="{#xml_wap}"><font color='#ffffff'>WAP</font></a>&nbsp;</td>
</tr>
</table>
</td></tr>
</table>
<!--ads begin-->
<!--
EOT;
if($advertdb[text]){
print <<<EOT
-->
<br>
<table width='$tablewidth' cellspacing=1 cellpadding=6 align=center $i_table>
<!--
EOT;
$id=0;
foreach($advertdb[text] as $key => $value){
$value = strtotime($value[endtime]) > $timestamp ? $value[code] : '';
if($id==0){
print <<<EOT
-->
<tr align=center>
<!--
EOT;
}$id++;print <<<EOT
-->
<td  class="f_one" width='25%'>$value</td>
<!--
EOT;
if($id==4){
$id=0;
print <<<EOT
-->
</tr>
<!--
EOT;
}}
if($advertdb[text] && $id && $id<4){
for($i=$id;$i<4;$i++){print <<<EOT
-->
<td class="f_one" width='25%'></td>
<!--
EOT;
}print <<<EOT
-->
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}print <<<EOT
-->
<!--ads end-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
<tr><td valign=top></td><td align=right class=smalltxt>
<!--
EOT;
if($db_todaypost==1){print <<<EOT
-->
{#pw_todaypost} | {#pw_yesterdaypost} | {#pw_highpost} <br>
<!--
EOT;
}print <<<EOT
-->
{#pw_totaltopics} | {#pw_totalarticle} | {#pw_totalmember}<br>
<a href='search.php?digest=1' target=_blank>{#pw_digest}</a> |
<a href='search.php?sch_time=all&orderway=lastpost&asc=desc&newatc=1' target=_blank>{#pw_newpost}</a> |
<a href='job.php?action=sign'>{#pw_sign}</a> | {#pw_welcomenew}
<a href='profile.php?action=show&username=$rawnewuser' target=_blank><font color=#ff0000> $newmember</a></td></tr></table>
<!--
EOT;
foreach($catedb as $key=>$cate){
if($forumdb[$cate[fid]]){
if($cate[across]){print <<<EOT
-->
<table cellspacing=1 cellpadding=0 width=$tablewidth align=center border=0 $i_table>
<tr><td class=head height=25 colspan=8 align=left>
<a style="float:right" href="#" onclick="return IndexDeploy('$cate[fid]',0)"><img id="img_$cate[fid]" src="$imgpath/$stylepath/index/cate_$cate[deploy_img].gif"></a>
<b><a href="index.php?cateid=$cate[fid]" class=cfont> $cate[name] </a></b>
$cate[admin]</td></tr>
<tbody id="cate_$cate[fid]" style="$cate[tbody_style]">
<!--
EOT;
$a=0;
foreach($forumdb[$cate[fid]] as $key=>$forums){
if($a==0){
print <<<EOT
-->
<tr>
<!--
EOT;
}$a++;
print <<<EOT
-->
<td width="25%" class='f_one' onMouseOver="this.className='f_two'" onMouseOut="this.className='f_one'">
<table cellspacing=1 cellpadding=3 width="100%" align=center border=0>
<tr height=25><td colspan="3"><a href='thread.php?fid=$forums[fid]' class=fnamecolor><b>$forums[name]</b></a></td></tr>
<tr valign="middle">
<td class="tinytxt">topic : $forums[topics]</td>
<td class="tinytxt">post : $forums[article]</td>
<td class="tinytxt">today : $forums[tpost]</td>
</tr>
<tr><td class="cbg" colspan="3">{#forumadmin}:
<!--
EOT;
if($db_adminshow && $forums[admin]){print <<<EOT
-->
<select name='admin' onchange='Ajump(this.options[this.selectedIndex].value)'>
<option value=''> {#adminlist}</option>
$forums[admin]
</select>
<!--
EOT;
}else{print <<<EOT
-->
$forums[admin]
<!--
EOT;
}print <<<EOT
-->
</td></tr>
</table>
</td>
<!--
EOT;
if($a==$cate[across]){
$a=0;
print <<<EOT
-->
</tr>
<!--
EOT;
}}
if($a!=0){
for($i=$a;$i<$cate[across];$i++){print <<<EOT
-->
<td width="25%" class='f_one' onMouseOver="this.className='f_two'" onMouseOut="this.className='f_one'"></td>
<!--
EOT;
}}print <<<EOT
-->
</tr></tbody></table><br>
<!--
EOT;
}else{print <<<EOT
-->
<table cellspacing=1 cellpadding=5 width='$tablewidth' $i_table align=center>
<tr><td class=head colspan=6 align=left>
<a style="float:right" href="#" onclick="return IndexDeploy('$cate[fid]',0)"><img id="img_$cate[fid]" src="$imgpath/$stylepath/index/cate_$cate[deploy_img].gif"></a>
<b><a href="$db_bfn?cateid=$cate[fid]" class='cfont'> $cate[name]</a></b>&nbsp; 
<!--
EOT;
if($cate[admin]){print <<<EOT
-->
{#pw_cateadmin}$cate[admin]
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr height=23 align=center class='cbg'><td width=5%></td>
<td width=50%>{#forum}</td>
<td width=6%>{#topic}</td>
<td width=6%>{#article}</td>
<td width=21%>{#lastpost}</td>
<td width=12%>{#forumadmin}</td></tr>
<tbody id="cate_$cate[fid]" style="$cate[tbody_style]">
<!--
EOT;
foreach($forumdb[$cate[fid]] as $key=>$forums){
print <<<EOT
-->
<tr><td align=center valign=middle class=f_two>
<a href='thread.php?fid=$forums[fid]' TARGET=_blank><img src='$imgpath/$stylepath/$forums[pic].gif'></a></td>
<td class='f_one' align=left onMouseOver="this.className='f_two'" onMouseOut="this.className='f_one'">
<a href='thread.php?fid=$forums[fid]' TARGET=_blank>$forums[llogo]</a>&nbsp;
<a href='thread.php?fid=$forums[fid]' class='fnamecolor'>
<b>$forums[name]</b></a><br>
<span class=smalltxt>$forums[descrip]</span></td>
<td class=f_two align=center>
$forums[topics]</td>
<td class=f_two align=center>
$forums[article]</td>
<td class='smalltxt' bgcolor=$forumcolorone>
<!--
EOT;
if($forums[au]){print <<<EOT
-->
{#topic}: <a href='$forums[ft]'>$forums[t]</a><br>{#author}: $forums[au]<br>
{#time}: $forums[newtitle]
<!--
EOT;
}if($forums[pic]=='lock'){print <<<EOT
-->
{#rzforum}
<!--
EOT;
}print <<<EOT
-->
</td><td class=f_two align=center style='word-break: keep-all'>
<!--
EOT;
if($db_adminshow && $forums[admin]){print <<<EOT
-->
<select name='admin' onchange='Ajump(this.options[this.selectedIndex].value)'>
<option value=''> {#adminlist}</option>
$forums[admin]
</select>
<!--
EOT;
}else{print <<<EOT
-->
$forums[admin]
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<!--
EOT;
}print <<<EOT
-->
</tbody></table><br>
<!--
EOT;
}}}print <<<EOT
-->
<script language="JavaScript" src="$imgpath/Deploy.js"></script>
<table cellpadding=5 cellspacing=1 width='$tablewidth' $i_table align=center>
<tr><td colspan=2 class=head>
<a style="float:right" href="#" onclick="return IndexDeploy('info',0)"><img id="img_info" src="$imgpath/$stylepath/index/cate_$cate_img.gif"></a>{#pw_foruminfo}</td></tr>
<tr>
<td colspan=2 class=index_font>{#pw_authorinfo}</td>
</tr>
<tr height=40>
<td class=f_two align=center width=5% rowspan=1><img src='$imgpath/$stylepath/index/msg.gif'></td>
<td class=f_one width=95%>
<!--
EOT;
if($groupid=='guest'){print <<<EOT
-->
{#pw_guest}<br>
<table cellpadding=0 cellspacing=0>
<form action='login.php' method=post>
<tr><td>
{#username}: <input type=text size=8 name='pwuser'>
{#password}: <input type='password' size=8 name='pwpwd'>
<!--
EOT;
list(,$logingd)=explode("\t",$db_gdcheck);
if($logingd){
$rawwindid=addslashes($windid);
print <<<EOT
-->
{#gd_check}: <input type='text' maxLength=4 name='gdcode' size=8>&nbsp;<img src="ck.php?windid=$rawwindid" align=absmiddle>
<!--
EOT;
}print <<<EOT
-->
<input type='hidden' name='jumpurl' value='$db_bfn'>
<input type='hidden' name='step' value=2>
<input type='hidden' name='cktime' value='31536000'>
<input type=submit value='{#pw_login}'></td>
</tr></form></table>
<!--
EOT;
}else{print <<<EOT
-->
{#pw_member} / {#pw_rvrc} / {#pw_money} / {#pw_credit} / 
{#pw_post}<br>
{#pw_lastlogin} | {#pw_userip} | 
<a href='search.php?authorid=$winddb[uid]'>{#pw_searchtpc}</a>
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tbody id="cate_info" style="$cate_info">
<!--
EOT;
if($db_indexshowbirth==1){include_once(R_P.'require/birth.php');print <<<EOT
-->
<tr>
<td colspan=2 class=index_font>{#pw_birthman}</td>
</tr>
<tr>
<td class=f_two align=center width=5%><img src='$imgpath/$stylepath/index/birth.gif'></td>
<td class=f_one width=95%>$index_birth</td></tr>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($db_indexlink==1){print <<<EOT
-->
<tr><td colspan=2 class=index_font>{#pw_share}</td></tr>
<tr height=40><td class=f_two align=center width=5% rowspan=1>
<img src='$imgpath/$stylepath/index/share.gif'></td>
<td class="f_one" width="95%" style="word-break: keep-all">$sharelink</td></tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
<tr><td colspan=2 class=index_font>{#pw_online}<a name=online></a> -  {#pw_onlineinfo} </td></tr>
<tr><td class=f_two align=center width='5%'><img src='$imgpath/$stylepath/index/online.gif'></td>
<td class=f_one><table align=center cellspacing=0 cellpadding=0 width=99%>
<tr><td colspan=7>
<!--
EOT;
foreach($showgroup as $key=>$value){
if($value){print <<<EOT
-->
<img src='$imgpath/$stylepath/group/$value.gif'>$ltitle[$value]
<!--
EOT;
}}print <<<EOT
-->
<img src='$imgpath/$stylepath/group/6.gif'>{#pw_regmember}
<!--
EOT;
if($doonlinefu){
$pw_forum='{#forum}';$pw_time='{#time}';$pw_hide='{#pw_hide}';$pw_hideman='{#pw_hideman}';
include_once(R_P.'require/showonline.php');
print <<<EOT
-->
<a name='online'></a> [<a href='index.php?online=no#online'>{#pw_closeonline}</a>]
</td></tr><tr><td colspan=7><hr class='hr' size=1></td>
<!--
EOT;
}else{print <<<EOT
-->
<a name='online'></a> [<a href='index.php?online=yes#online'>{#pw_openonline}</a>]
</td>
<!--
EOT;
}print <<<EOT
-->
$index_whosonline
</tr></table></td></tr></table>
<!--
EOT;
$head_pop && require_once PrintEot($head_pop);
?>-->