[You must be registered and logged in to see this link.]
Nếu như head có đoạn này:
APC >>Display >>Template >>Portal:
mod_recent_topic
[You must be registered and logged in to see this link.]
CSS =="
Nếu như head có đoạn này:
- Code:
<div id="{ID_LEFT}">
<!-- BEGIN giefmod_index1 -->
{giefmod_index1.MODVAR}
<!-- BEGIN saut -->
<div style="height:{SPACE_ROW}px"></div>
<!-- END saut -->
<!-- END giefmod_index1 -->
</div>
- Code:
<div style="padding:7px;font-weight:bold; background: #E4EDF1;">
<img style="float: left;" src="http://img.forum.zing.vn/images/bluestyle/icons/statistic_icon.png" width="15px"/>Thống Kê Top 10
</div>
<table width="100%" height="250px"><tr>
<div class="wigestcontent">
<!-- BEGIN giefmod_index1 -->{giefmod_index1.MODVAR}<!-- END giefmod_index1 -->
</div>
</tr></table>
APC >>Display >>Template >>Portal:
mod_recent_topic
- Code:
<td width="25%">
<div class="main-head1">Bài mới nhất</div>
<div class="main-content01" style="height: 200px; overflow:auto; display: block;">
<!-- BEGIN classical_row --><!-- BEGIN recent_topic_row -->
<a href="{classical_row.recent_topic_row.U_TITLE}" oncontextmenu="return xemtopic(this.href,'hehee');">
<span class="lengtht">{classical_row.recent_topic_row.L_TITLE} </span>
</a>
<!-- END recent_topic_row --><!-- END classical_row -->
</div></td>
<script type="text/javascript">
function gioihanl(a){
if(a.length > 23){
return a.substring(0,23)+'...';}else{return a;}
};
$("span.lengtht").each(function(){
if ($(this).text().length > 23) {$(this).text($(this).text().substr(0, 23));$(this).append('...');
}});
</script>
- Code:
<td width="25%">
<div class="main-head1">Xem nhiều nhất</div>
<div class="main-content01"><!-- BEGIN TOPIC -->
<span id="tieude1">
<a href="{TOPIC.LINK}" title="{TOPIC.TITLE}"><span class="lengtht1">{TOPIC.NAME}</span><br/></a>
</span>
<!-- END TOPIC --></div>
</td>
<script type="text/javascript">
$("span.lengtht1").each(function(){
if ($(this).text().length > 23) {$(this).text($(this).text().substr(0, 23));$(this).append('...');
}});
</script>
- Code:
<td width="25%">
<div class="main-head1">Trả lời nhiều nhất</div>
<div class="main-content01"><!-- BEGIN TOPIC -->
<span id="tieude1">
<a href="{TOPIC.LINK}" title="{TOPIC.TITLE}"><span class="lengtht2">{TOPIC.NAME}</span><br /></a>
</span>
<!-- END TOPIC --></div>
</td>
<script type="text/javascript">
$("span.lengtht2").each(function(){
if ($(this).text().length > 23) {$(this).text($(this).text().substr(0, 23));$(this).append('...');
}});
</script>
- Code:
<td width="25%">
<div class="main-head1">Top gửi bài</div>
<div class="main-content01">
<!-- BEGIN POSTER -->
{POSTER.NAME}<br />
<!-- END POSTER -->
</div>
</td>
[You must be registered and logged in to see this link.]
CSS =="
- Code:
.main-content01{height: 200px; border: 1px solid #AEAEAE; padding: 3px;}
.main-head1{background: #3883CC; color: white; padding: 7px;font-weight: bold;}