Tue Dec 18, 2012 8:21 am
- Code:
<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
<!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
var all_checked = true;
for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
}
}
document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
}
}
}
</script>
<!-- END multi_selection -->
<div class="main-head">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
<!-- END multi_selection -->
<h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
</div>
<div class="main-content">
<table id="rootlistFMvi" cellspacing="0" class="table">
<thead>
<tr>
<th class="tcl">{L_TOPICS}</th>
<th class="tc2">{topics_list_box.row.L_REPLIES}</th>
<th class="tc3">{topics_list_box.row.L_VIEWS}</th>
<th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
</tr>
</thead>
<tbody class="statused">
<!-- END header_table -->
<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->
<!-- BEGIN topic -->
<!-- BEGIN table_sticky -->
</tbody>
</table>
</div>
<div class="main-head">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" / >
<!-- END multi_selection -->
<h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
</div>
<div class="main-content">
<table cellspacing="0" class="table">
<thead>
<tr>
<th class="tcl">{L_TOPICS}</th>
<th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
<th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
<th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
</tr>
</thead>
<tbody class="statused">
<!-- END table_sticky -->
<tr>
<td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
<span class="status">
<img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
</span>
<!-- BEGIN single_selection -->
<input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
<!-- END single_selection -->
{topics_list_box.row.ICON}
{topics_list_box.row.NEWEST_POST_IMG}
{topics_list_box.row.PARTICIPATE_POST_IMG}
{topics_list_box.row.TOPIC_TYPE}
<h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
{topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
{topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
<!-- BEGIN switch_description -->
<br />
{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
<!-- END switch_description -->
</td>
<td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
<td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
<td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
<!-- BEGIN multi_selection -->
<td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
<!-- END multi_selection -->
</tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
<td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->
<!-- BEGIN bottom -->
</tbody>
</table>
</div>
<div class="main-foot clearfix">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
<!-- END multi_selection -->
<p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
<p class="options">
<a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a> {S_WATCH_FORUM} <a href="#top">{L_BACK_TO_TOP}</a>
</p>
</div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->
<div class="main-head greenBgT">
<h1 class="page-title">Tùy chọn hiển thị chủ đề</h1>
</div>
<div id="sapxepFMvi" class="paged-foot clearfix">
<span>Tìm trước đó</span>
<select class="search_time">
<option selected="selected" value="0">Không giới hạn</option>
<option value="1">1 ngày</option>
<option value="7">7 ngày</option>
<option value="14">2 tuần</option>
<option value="30">1 tháng</option>
<option value="90">3 tháng</option>
<option value="180">6 tháng</option>
<option value="364">1 năm</option>
</select>
<span>Sắp xếp theo</span>
<select class="sort_by">
<option selected="selected" value="0">Thời gian</option>
<option value="1">Chủ đề</option>
<option value="3">Tác giả</option>
</select>
<span>Kiểu sắp xếp</span>
<select class="sort_type">
<option selected="selected" value="DESC">Giảm dần</option>
<option value="ASC">Tăng dần</option>
</select>
<input type="button" value="Hiện chủ đề" class="button" />
</div>
<div id="sapxepdulieu"></div>
<script type="text/javascript">
$("#sapxepFMvi .button").click(function () {
var Stime = $("#sapxepFMvi .search_time option:selected:selected").val();
var Ssort = $("#sapxepFMvi .sort_by option:selected:selected").val();
var Stype = $("#sapxepFMvi .sort_type option:selected:selected").val();
$("#sapxepdulieu").load("/search?search_keywords=&search_author=*&search_where=f{FORUM_ID}&search_time=" + Stime + "&sort_by=" + Ssort + "&sort_dir=" + Stype + " #main-content .frm-form", function () {
xepbaiFMvi();
});
});
function xepbaiFMvi() {
$("#sapxepdulieu .statused .tc2").remove();
$(".table:not('#rootlistFMvi') .statused").replaceWith($("#sapxepdulieu .table .statused"));
$(".paging:not('#sapxepdulieu .paging:first')").replaceWith($("#sapxepdulieu .paging"));
var lengthXep = $(".table:not('#rootlistFMvi') .statused tr").length;
$("#rootlistFMvi").parent().next().find("h2").text("Topics [" + lengthXep + "]");
$("#rootlistFMvi").parent().next().next().next().find(".h2").text("Topics [" + lengthXep + "]");
$(".paging a").click(function () {
var linkXeplai = $(this).attr("href");
$("#sapxepdulieu").load(linkXeplai + "#main-content .frm-form", function () {
xepbaiFMvi()
});
return false;
});
}
</script><style>
div.baimoiblog1,div.baimoiblog2,div.aba123{display:none}
.avatarcp span{display:none}
#hinh font{display:none}
#hinh a{display:none}
#hinh strong{font-weight: normal;font-style: normal;}
.bai_new1 .avatarcp img{width:380px;height:250px;background-color:beige;border:1px solid #626263;}
.bai_new1 .avatarcp{font-size:0px;width:382px;height:252px;overflow:hidden;}
.avatarcp img{
width:126px;height:86px;
background-color:beige;
border:1px solid #626263;}
.bai_new2 .ptspan12 {font-size: 14px; line-height: normal;font-weight:bold;}
.bai_new1 .ptspan12 {font-size: 16px; line-height: normal;font-weight:bold;}
.bai_new2 .hien_thi{height:84px; width:100%;overflow:hidden}
.bai_new1 .hien_thi{height:84px; width:380px;overflow:hidden}
.quote {display:none}
.avatarcp embed,#hinh embed,#hinh br,#hinh img{ display:none}
.bai_new2 .avatarcp {font-size:0px;height:88px; width:128px;overflow:hidden; font-family:none;background:url(http://i48.servimg.com/u/f48/16/18/15/10/untitl85.png) no-repeat 0px 5px
;padding-top:5px}
div.phutu_html{display:none;}
td.pagination b{background-color: #ffedcf;
border: 1px solid #e6913c;
color: #ff6600;padding: 3px 4.5px;font-size:12px;text-decoration: none!important;}
.an_phutu1{display:none}
td.pagination a{background: url(http://i28.servimg.com/u/f28/16/18/15/10/untitl12.png);
border: 1px solid #cccccc;
color: #000000;
;padding: 3px 4.5px;font-size:12px;text-decoration: none!important;}
td.pagination span{padding:0px;color: #fff;display: inline-block;font-size:1px;text-decoration: none!important;}
td.pagination a:hover{background: url(http://i28.servimg.com/u/f28/16/18/15/10/untitl12.png);
border: 1px solid #417394;
color: #0000000;
padding: 3px 4.5px;text-decoration: none!important;}
.baimoibloga1 br{display:none}
.bai_new2 .avatarcp{float: left;}
.bai_new2 .bai_new3{float: left;width:500px;padding-top:4px;padding-left:10px;height:90px;padding-right:20px;overflow:hidden;}
.bai_new1 .bai_new3{float: left;width:100%;padding-top:4px;padding-left:10px;height:90px;overflow:hidden;}
.bai_new1 .hien_thi {border-bottom : 1px dashed hsl(0, 0%, 94%);}
</style>
<!-- BEGIN topics_blog_box -->
<table width="100%"cellspacing="0" cellpadding="0" border="0" style="padding-bottom:5px;padding-top:5px;padding-left:10px;padding-right:5px;background:#FFF;color:#000;border:1px solid #ADADAD;"><tr><td style="width:60%">
<div class="bai_new1"><!-- BEGIN row --><!-- BEGIN topic -->
<div class="avatarcp"><a href="{topics_blog_box.row.U_VIEW_TOPIC}">{topics_blog_box.row.FIRST_POST_TEXT}</a></div>
<div class="bai_new3"><span class="baimoiblog"><div class="hien_thi"><a href="{topics_blog_box.row.U_VIEW_TOPIC}" class="an_phutu"><span class="ptspan12" >{topics_blog_box.row.TOPIC_TITLE}</span></a>
<a href="{topics_blog_box.row.U_VIEW_TOPIC}" class="an_phutu1" target="_blank">{topics_blog_box.row.TOPIC_TITLE}</a>
<div class="size_new1" style="font-family:Courier New;font-size:12px">({topics_blog_box.row.FIRST_POST_DMY_VALUE0}/
{topics_blog_box.row.FIRST_POST_DMY_VALUE1}/
{topics_blog_box.row.FIRST_POST_DMY_VALUE2}) Trả lời {topics_blog_box.row.REPLIES} | Xem {topics_blog_box.row.VIEWS}</div><div id="hinh" class="krokodil">
{topics_blog_box.row.FIRST_POST_TEXT}</div></div></span>
<div class="baimoiblog2"><img src="http://i48.servimg.com/u/f48/14/28/30/23/untitl59.png"> <a href="{topics_blog_box.row.U_VIEW_TOPIC}" target="_blank">{topics_blog_box.row.TOPIC_TITLE}</a></div></div>
</div><div class="bai_new2">
<!-- END topic --><!-- END row --></div></td>
<td style="width:300px" valign="top"><table class="forumline" width="100%" border="0" cellpadding="0" cellspacing="1"><tr><th align="left" width="100%" nowrap="nowrap"> <img src="http://i48.servimg.com/u/f48/14/28/30/23/3drigh10.png"> Chủ đề liên quan</th></tr><tr>
<td width="100%" class="row1">
<div class="baiviet" style="overflow:hidden;width:72px; height:430px; border-top: 0px none; float: left" id="baiviet"></div></div><div class="baiviet" style="overflow:hidden; width:200px; height:430px; border-top: 0px none;float: left" id="baiviet1"></div>
</td>
</tr></table>
</tr></table>
<div class="aba123">
<!-- BEGIN row --><!-- BEGIN topic -->
<img src="http://i48.servimg.com/u/f48/14/28/30/23/untitl51.png">
<a href="{topics_blog_box.row.U_VIEW_TOPIC}" target="_blank"onmouseover="show_tooltip(this,this.getElementsByTagName('span')[0].innerHTML,'');" ><span style="display: none;"> <div class="title_new3">{topics_blog_box.row.TOPIC_TITLE}</div>
<table width="350" class="title_new" border="0" cellpadding="0"><tr><td valign="top" ><div class="title_new2">
{topics_blog_box.row.FIRST_POST_TEXT}
</td><td valign="top"><div class="title_new1">
{topics_blog_box.row.FIRST_POST_TEXT}</div>
</td></tr></table></span>{topics_blog_box.row.TOPIC_TITLE}</a>
</div><div class="baimoiblog1">
<!-- END topic --><!-- END row -->
<!-- END topics_blog_box --></div>
<script>$(".krokodil").each(function(){
if ($(this).text().length > 155) {$(this).text($(this).text().substr(0, 150));$(this).append('...');
}
});</script>