<!--<?php print <<<EOT
-->
<div class="c"></div>
<div class="readtop">
	<div class="fl">位置：<a href="$db_bbsurl">$db_bbsname</a> &raquo; $cateinfo[name]</div>
</div>
<!--ads begin-->
<!--
EOT;
if($advertdb['text']){print <<<EOT
-->
<div class="c"></div>
<div class="t5" style="padding:.5em 0;">
	<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
$id=0;
$idp = 100/$db_txtadnum;
foreach($advertdb['text'] as $value){
if($id==0){print <<<EOT
-->
		<tr class="tr1">
<!--
EOT;
}$id++;print <<<EOT
-->
			<td class="tac" width="$idp%">$value[code]</td>
<!--
EOT;
if($id==$db_txtadnum){
$id=0;print <<<EOT
-->
		</tr>
<!--
EOT;
}}if($id && $id<$db_txtadnum){
for($i=$id;$i<$db_txtadnum;$i++){print <<<EOT
-->
		<td width="$idp%"><br /></td>
<!--
EOT;
}print <<<EOT
-->
		</tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
<div class="c"></div>
<!--
EOT;
}else{print <<<EOT
-->
<div class="c"></div>
<!--
EOT;
}print <<<EOT
-->

<div id="content-index" class="contentB fr">
	<!--布局层-->
	<div class="box2" style="margin-bottom:10px">
		<div class="cc dashedline-y" style=" background-position:325px 0; margin:0">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
				<tr>
					<td style="line-height:22px;width:325px;" valign="top">
					<h2 class="s0">
					频道焦点
					</h2>
						<div style="padding:1em;width:300px;line-height:2em;" id="cateimg">
							<pw id="cate_focus" stamp="push" name="频道焦点" num="1" />
<!--#
if($pwresult){
#-->
							<loop>
								<div><a href="{url}" title="{title}"><img src="{image}" width="300" /></a></div>
								<div class="tac" style="padding:.5em 0 .1em"><a href="{url}" target="_blank"><b class="s5 f14">{title}</b></a></div>
								<div style="line-height:1.5em" class="gray">{value}</div>
								<div class="fr"><a href="{url}" target="_blank">[全文]</a></div>
							</loop>
<!--#
}else{
#-->
							<div><img src="$pwModeImg/flash-02.gif" width="300" /></div>
<!--#
}
#-->
						</div>
					</td>
					<td valign="top">
						<div style="padding-bottom:1em">
							<h2 class="s0">频道热点</h2>
							<ul class="list">
								<pw id="cate_color" stamp="subject" name="频道热点" num="15" />
								<loop>
								<li><span style="margin-left:1em;">{postdate,y-m-d}</span><a href="{url}" title="{title,60}" target="_blank">{title}</a></li>
								</loop>
							</ul>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div class="c"></div>
<!--
EOT;
include PrintEot('cate_type');
print <<<EOT
-->
	<div class="c"></div>
</div>
<div id="sidebar-index" class="sidebarB fl">
		<!--布局层-->
	<div id="cate-forum-list" style="margin-bottom:.5em">
		<div class="box2">
			<h4 class="bgD pr"><a href="cate.php?cateid=$cateid" class="link-white">$cateinfo[name]</a></h4>
			<div style="padding:.5em">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTable">
<!--
EOT;
foreach($forumdb as $value){print <<<EOT
-->
					<tr>
						<td><a href="thread.php?fid=$value[fid]">$value[name]</a>
<!--
EOT;
if($db_todaypost){print <<<EOT
-->
							 <span>($value[tpost])</span>
<!--
EOT;
}print <<<EOT
-->

						</td>
					</tr>
<!--
EOT;
}print <<<EOT
-->
				</table>
			</div>
		</div>
	</div>
	<div id="hot-atc" class="bdA boxA">
		<h4 class="bgD pr"><span class="pr">热门文章</span>
			<div class="tabA" id="sortpost"><span class="active" id="post_replyday" onmouseover="showTabs('sortpost','post_replyday','span','active')"><a href="javascript:void(0)">{cate_postoday}</a></span><span id="post_hitday" onmouseover="showTabs('sortpost','post_hitday','span','active')"><a href="javascript:void(0)">{cate_post_hitday}</a></span></div>
		</h4>
		<div class="c"></div>
		<div class="hotlist cc" id="info_post_replyday">
			<pw id="cate_postoday" name="今日" stamp="subject" num="5" />
			<loop>
				<dl class="grayB">
				<dd><span class="count"><span><i>{replies}</i> 回复</span></span></dd>
				<cite><a href="u.php?uid={authorid}" class="grayA" target="_blank">{author}</a><br />
				<em>{postdate,H:i}</em></cite>
				<dt><a href="{url}" target="_blank">{title}</a></dt>
			</dl>
			</loop>
		</div>
		<div class="hotlist cc" id="info_post_hitday" style="display:none">

			<pw id="cate_post_hitday" name="人气" stamp="subject" num="5" />
			<loop>
			<dl class="grayB">
				<dd><span class="count"><span><i>{hits}</i> 人气</span></span></dd>
				<cite><a href="u.php?uid={authorid}" class="grayA" target="_blank">{author}</a><br />
				<em>{postdate,H:i}</em></cite>
				<dt><a href="{url}" target="_blank">{title}</a></dt>
			</dl>
			</loop>
		</div>
	</div>
	<div id="hot" class="bdA boxA">
		<h4 class="bgD pr"><span class="pr">版块榜单</span>
			<div class="tabA" id="sortforum">
				<span class="active" id="forum_tpost" onmouseover="showTabs('sortforum','forum_tpost','span','active')"><a href="javascript:void(0)">{forumtoday}</a></span>
				<span id="forum_topic" onmouseover="showTabs('sortforum','forum_topic','span','active')"><a href="javascript:void(0)">{forumarticle}</a></span>
			</div>
		</h4>
		<div class="listTable">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody id="info_forum_tpost">
					<pw id="forumtoday" name="今日" stamp="forum" />
					<loop>
						<tr>
							<td class="forum-name"><a href="{url}">{title}</a></td>
							<td class="forum-count">{value}</td>
						</tr>
					</loop>
				</tbody>
				<tbody id="info_forum_topic" style="display:none">
					<pw id="forumarticle" name="版块排行" stamp="forum" />
					<loop>
						<tr>
							<td class="forum-name"><a href="{url}">{title}</a></td>
							<td class="forum-count">{value}</td>
						</tr>
					</loop>
				</tbody>
			</table>
		</div>
		<div class="c"></div>
	</div>

	<div id="tags" class="bdA boxA">
			<!--样式层-->
		<h4 class="bgD pr"><span class="pr"><a href="job.php?action=taglist">标签/Tags</a></span>
			<div class="tabA" id="sorttag">
				<span class="active" id="forum_hottag" onmouseover="showTabs('sorttag','forum_hottag','span','active')">
					<a href="javascript:void(0)">最热</a>
				</span>
				<span id="forum_newtag" onmouseover="showTabs('sorttag','forum_newtag','span','active')">
					<a href="javascript:void(0)">最新</a>
				</span>
			</div>
		</h4>
		<div class="pd8 tags-list cc small" id="info_forum_hottag">
			<pw id="cate_hottag" name="最热" stamp="tag" num="20" />
			<loop>
			<span><a href="{url}" target="_blank">{title}</a> ( {value} )</span>
			</loop>
		</div>
		<div class="pd8 tags-list cc small" id="info_forum_newtag" style="display:none">
			<pw id="cate_newtag" name="最新" stamp="tag" num="20" />
			<loop>
			<span><a href="{url}" target="_blank">{title}</a> ( {value} )</span>
			</loop>
		</div>
	</div>


</div>
<script type="text/javascript">
function showTabs(id,select,element,css){
	var o = getObj(id);
	var t = o.getElementsByTagName(element);
	for (var i=0;i<t.length;i++) {
		if (t[i].id) {
			var oo = getObj(t[i].id);
			if (t[i].id == select) {
				getObj(t[i].id).className = css;
				getObj('info_'+t[i].id).style.display = '';
			} else {
				getObj(t[i].id).className = '';
				getObj('info_'+t[i].id).style.display = 'none';
			}
		}
	}
	return false;
}
function showFocus(){
	var str = ajax.request.responseText.split("\t");
	var showhtml = '';
	var oneindexfocus = new Array();
	if (str[0] == '3') {
		oneindexfocus = str[1].split(",");
		showhtml = '<div><img src=\"'+ oneindexfocus[1] +'\" width=\"300\" /></div><div><a href=\"'+ oneindexfocus[2] +'\" class=\"big b\" target=\"_blank\">'+ oneindexfocus[0] +'</a></div><div style=\"line-height:1.5em\" class=\"grayB\" >'+ oneindexfocus[3] +'<a href=\"'+ oneindexfocus[2] +'\" class=\"linkA nw\" target=\"_blank\">>>全文</a></div>';
		getObj('cateimg').innerHTML = showhtml;
	} else {
		ajax.guide();
	}
}
</script>
<!--
EOT;
?>-->