demo :
đã biết share hay chưa
có cái lasttopic này
ai có thể thêm cột topposter bên trái như trên không
đã biết share hay chưa
có cái lasttopic này
ai có thể thêm cột topposter bên trái như trên không
- Code:
<div class="main">
<div class="main-head">
<div class="page-tile"><h2>Bài Viết Mới</h2></div>
</div>
<div class="main-content">
<div style="height: 20px;border-bottom: 1px solid #DDDDDD;padding-top:3px;font-weight:bold;">
<div style="float:left;text-align:left;width: 50%;padding-left:15px;">Chủ đề</div>
<div style="float:left;text-align:left;width: 8%;">Trả Lời</div>
<div style="float:left;text-align:left;width: 8%;">Xem</div>
<div style="float:left;text-align:right;width: 12%;">Người Gửi</div>
<div style="float:left;text-align:right;width: 20%;">Diễn Đàn</div>
</div>
<div style="overflow: hidden !important;height:197px;background: url(http://i337.photobucket.com/albums/n395/kalenv1/4r/ads/list.gif) no-repeat 2px 5px transparent;padding:5px;padding-left:25px;">
<div style="background: transparent url(http://i337.photobucket.com/albums/n395/kalenv1/4r/ads/listbg.gif) repeat;">
<!-- BEGIN classical_row -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody class="hienlast" style="display:none">
<script type="text/javascript">
function gioihanl(a){
if(a.length > 40){
return a.substring(0,40)+'...';}else{return a;}
};
function shpost(a){
window.open(a,'','width=200,height=100,top=200,left=400,menubar=no,titlebar=no,location=no');
};
$(function () {
$('.dulieu').load('/search?search_keywords=&search_author=*_* table.table .statused tr:lt(20)', function () {
var i;
for (i = 0; i < 20; i++) {
$('.box:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc2').html());
$('.reply:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc3:eq(0)').html());
$('.view:eq(' + i + ')').html($('.dulieu tr:eq(' + i + ') .tc3:eq(1)').html());
}
$(".hienlast").show();
});
});
</script>
<!-- BEGIN recent_topic_row -->
<tr style="height: 20px;">
<td style="padding-left:3px" width="50%" nowrap="nowrap">
<span class="smallfont">
<a href="javascript:shpost('{classical_row.recent_topic_row.U_TITLE}');" title="Click to view post"></a>
<a title="{classical_row.recent_topic_row.L_TITLE}" href="{classical_row.recent_topic_row.U_TITLE}">
<script>document.write(gioihanl('{classical_row.recent_topic_row.L_TITLE}'));</script>
</a>
</span>
</td>
<td nowrap="nowrap" class="reply" width="8%">
</td>
<td nowrap="nowrap" class="view" width="8%">
</td>
<td style="text-align:right" nowrap="nowrap" width="12%">
<span class="smallfont">
<!-- BEGIN switch_poster -->
<a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
<!-- END switch_poster -->
<!-- BEGIN switch_poster_guest -->
{classical_row.recent_topic_row.switch_poster_guest.S_POSTER}
<!-- END switch_poster_guest -->
</span>
</td>
<td style="text-align:right" nowrap="nowrap" class="box" width="20%">
</td>
</tr>
<!-- END recent_topic_row -->
</tbody>
</table>
</div></div></div></div>
<div style="display:none" class="dulieu"></div>
<!-- END classical_row -->