post_list.tpl

来自「转载中国源码下载站 1) 基于PHP语言开发,MYSQL数据库驱动的多用户留言」· TPL 代码 · 共 85 行

TPL
85
字号
<table><tr><td height=2></td></tr></table>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>

<table border="0" cellspacing="1" cellpadding="2" bgcolor="#000000" align="right">
<tr bgcolor="#F0F0F0"> 
<td width="15" align="center" height="15">{$l_arrow}</td>
{section name=item loop=$item_list_info} 
<td width="20" align="center" height="18" bgcolor="#E0E0E0"><b>{$item_list_info[item]}</b></td>
{/section} 
<td width="15" align="center" height="18">{$r_arrow}</td>
<td width="50" align="center" height="18" bgcolor=#E0E0E0><b>{$page}/{$pagecount}</b></td>
<td width="100" align="center" height="18"><b>留言数:{$total}</b></td>
</tr>
</table>

</td>
</tr>
</table>
<table><tr><td height=2></td></tr></table>

<table width=700 border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td bgcolor=#eeeeee>


<table width=100% border=0 cellspacing=1 cellpadding=5>
<tr>
<td bgcolor="#0099cc" width="5%" align=center><font color=#ffffff>表情</font></td>
<td bgcolor="#0099cc" width="55%" align=center><font color=#ffffff>留言摘要</font></td>
<td bgcolor="#0099cc" width="15%" align=center><font color=#ffffff>姓名</font></td>
<td bgcolor="#0099cc" width="5%" align=center><font color=#ffffff>回复</font></td>
<td bgcolor="#0099cc" width="20%" align=center><font color=#ffffff>留言时间</font></td>
</tr>

{section name=loopnum loop=$post_list_info}
<tr> 
<td bgcolor=#FFFFFF width="5%" align=center>
<img src=./tpl/3/images/emotion/{$post_list_info[loopnum].emotion}.gif height=18 width=18 align=ABSCENTER> 
</td>
<td bgcolor=#FFFFFF width="60%">

<a href=./?act=view&userid={$userid}&id={$post_list_info[loopnum].id}&page={$page}>
<font color="{$post_list_info[loopnum].color}">
{$post_list_info[loopnum].body|strip_tags|truncate:60}
</font> 
</a>

</td>
<td bgcolor=#FFFFFF width="15%" align=center>{$post_list_info[loopnum].name}</td>
<td bgcolor=#FFFFFF width="15%" align=center>{$post_list_info[loopnum].replies}</td>
<td bgcolor=#FFFFFF width="20%" align=center>{$post_list_info[loopnum].time}</td>
</tr>

{/section}
</table>



</td>
</tr>
</table>

<table><tr><td height=2></td></tr></table>

<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>

<table border="0" cellspacing="1" cellpadding="2" bgcolor="#000000" align="right">
<tr bgcolor="#F0F0F0"> 
<td width="15" align="center" height="15">{$l_arrow}</td>
{section name=item loop=$item_list_info} 
<td width="20" align="center" height="18" bgcolor="#E0E0E0"><b>{$item_list_info[item]}</b></td>
{/section} 
<td width="15" align="center" height="18">{$r_arrow}</td>
<td width="50" align="center" height="18" bgcolor=#E0E0E0><b>{$page}/{$pagecount}</b></td>
<td width="100" align="center" height="18"><b>留言数:{$total}</b></td>
</tr>
</table>

</td>
</tr>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?