thay toàn bộ code sau vào :index_box
- Code:
<div class="pun-crumbs">
<p class="crumbs"><a href="{U_INDEX}">{L_INDEX}</a><strong>{NAV_CAT_DESC}</strong></p>
</div>
<div class="main">
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<div class="boxfmvi"><div class="main-head"><div class="page-title">{catrow.tablehead.L_FORUM}</div></div><div class="main-content"><table class="table" cellspacing="1" cellpadding="5" border="0"><tbody class="statused">
<!-- END tablehead -->
<!-- BEGIN forumrow -->
<tr><td class="tc2"><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
</td><td class="tcl">
<h{catrow.forumrow.LEVEL} class="hierarchy"> <div style="width:460px;"><div class="boxbody"><div><h{catrow.forumrow.LEVEL} class="hierarchy">
<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumtitle">{catrow.forumrow.FORUM_NAME}</a>
</h{catrow.forumrow.LEVEL}></div></div> </h{catrow.forumrow.LEVEL}><br />
<div style="width:460px;"><div class="boxbody"><div><span class="bbody">
{catrow.forumrow.FORUM_DESC}
<!-- BEGIN switch_moderators_links -->
<br /> <br>
{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
<!-- END switch_moderators_links -->
<br><select style="display:none" onchange="location = this.options[this.selectedIndex].value;">
<option value="{catrow.forumrow.U_VIEWFORUM}">Các Diễn Đàn Con</option>
</select>
<span style="display:none" class="subforumFMvi">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
<br>
<strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}
</td>
</td>
<td class="tcr"><div class="xemmoi"><span class="xemgui"></span><span class="genmed"><font color="#7419BF" face="" size="2"><img src="http://i61.servimg.com/u/f61/15/61/17/20/new10.gif"> <span>
<!-- BEGIN switch_topic_title -->
<a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
<!-- END switch_topic_title -->
{catrow.forumrow.USER_LAST_POST}
</span>
</span></div><div align="center"><p class="xemtip"><span style="font-size: 8pt;"><font color="#373737">Chủ đề :<font size="+2" color="#99bf00"><b>{catrow.forumrow.TOPICS}</b></font></font><font color="red"> ♥ </font><font color="#373737">Bài gửi :<font size="+1" color="#ff8a00"><b>{catrow.forumrow.POSTS}</b></font></font></span></p></div></td></tr>
<!-- END forumrow -->
<!-- BEGIN tablefoot -->
</tbody></table></div></div><img border="0" src="http://i48.servimg.com/u/f48/16/58/89/73/think10.png" />
<!-- END tablefoot -->
<!-- END catrow -->
</div>
<!-- BEGIN switch_on_index -->
<div class="main-box clearfix">
<ul>
<li><a href="{U_TODAY_ACTIVE}">{L_TODAY_ACTIVE}</a></li>
<li><a href="{U_TODAY_POSTERS}">{L_TODAY_POSTERS}</a></li>
<li><a href="{U_OVERALL_POSTERS}">{L_OVERALL_POSTERS}</a></li>
</ul>
<!-- BEGIN switch_delete_cookies -->
<p class="right">
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
</p>
<!-- END switch_delete_cookies -->
</div>
<!-- END switch_on_index -->
<script type="text/javascript">
$(".subforumFMvi a").each(function () {
$(this).replaceWith('<option value="' + $(this).attr("href") + '">|-- ' + $(this).text() + '</option>');
});
$(".subforumFMvi option").each(function () {
$(this).appendTo($(this).parent().prev())
});
$(".subforumFMvi").each(function () {
if ($(this).text() == "") {
$(this).prev().remove();
$(this).remove();
} else {
$(this).prev().show()
}
});
</script>