⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 post^post%2fall_list.tpl

📁 转载中国源码下载站 1) 基于PHP语言开发,MYSQL数据库驱动的多用户留言本 2) 采用PHP官方提供的编译模板引擎smarty 3) 代码、页面分离
💻 TPL
字号:
<?php /* Smarty version 2.5.0, created on 2003-07-03 07:49:32
         compiled from post/all_list.tpl */ ?>
<?php $this->_load_plugins(array(
array('modifier', 'default', 'post/all_list.tpl', 42, false),)); ?><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="100" align="center" height="18" bgcolor=#E0E0E0>
<a href=./?act=reply&userid=<?php echo $this->_tpl_vars['userid']; ?>
&id=<?php echo $this->_tpl_vars['topic_id']; ?>
><b>回复留言</b></a>
</td>
<td width="100" align="center" height="18">
<a href=./?act=delete&userid=<?php echo $this->_tpl_vars['userid']; ?>
&id=<?php echo $this->_tpl_vars['topic_id']; ?>
><b>删除留言</b></a>
</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="25%" align=center><font color=#ffffff>留言人信息</font></td>
<td bgcolor="#0099cc" width="75%" align=center><font color=#ffffff>留言内容</font></td>
</tr>




<?php if (isset($this->_sections['loopnum'])) unset($this->_sections['loopnum']);
$this->_sections['loopnum']['name'] = 'loopnum';
$this->_sections['loopnum']['loop'] = is_array($this->_tpl_vars['reply_list_info']) ? count($this->_tpl_vars['reply_list_info']) : max(0, (int)$this->_tpl_vars['reply_list_info']);
$this->_sections['loopnum']['show'] = true;
$this->_sections['loopnum']['max'] = $this->_sections['loopnum']['loop'];
$this->_sections['loopnum']['step'] = 1;
$this->_sections['loopnum']['start'] = $this->_sections['loopnum']['step'] > 0 ? 0 : $this->_sections['loopnum']['loop']-1;
if ($this->_sections['loopnum']['show']) {
    $this->_sections['loopnum']['total'] = $this->_sections['loopnum']['loop'];
    if ($this->_sections['loopnum']['total'] == 0)
        $this->_sections['loopnum']['show'] = false;
} else
    $this->_sections['loopnum']['total'] = 0;
if ($this->_sections['loopnum']['show']):

            for ($this->_sections['loopnum']['index'] = $this->_sections['loopnum']['start'], $this->_sections['loopnum']['iteration'] = 1;
                 $this->_sections['loopnum']['iteration'] <= $this->_sections['loopnum']['total'];
                 $this->_sections['loopnum']['index'] += $this->_sections['loopnum']['step'], $this->_sections['loopnum']['iteration']++):
$this->_sections['loopnum']['rownum'] = $this->_sections['loopnum']['iteration'];
$this->_sections['loopnum']['index_prev'] = $this->_sections['loopnum']['index'] - $this->_sections['loopnum']['step'];
$this->_sections['loopnum']['index_next'] = $this->_sections['loopnum']['index'] + $this->_sections['loopnum']['step'];
$this->_sections['loopnum']['first']      = ($this->_sections['loopnum']['iteration'] == 1);
$this->_sections['loopnum']['last']       = ($this->_sections['loopnum']['iteration'] == $this->_sections['loopnum']['total']);
?>
<tr> 
<td bgcolor=#FFFFFF width="5%" align=center valign="top">

<?php echo $this->_run_mod_handler('default', true, @$this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['name'], "匿名"); ?>

<br>
<?php if ($this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['sex'] == '1'): ?>
<?php elseif ($this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['sex'] == '2'): ?> 
<?php elseif ($this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['sex'] == ""): ?> 
保密
<?php endif; ?>
<br>
<?php echo $this->_run_mod_handler('default', true, @$this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['address'], "未知"); ?>

<br>
<a href="mailto:<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['email']; ?>
">邮件</a>
<a href="<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['homepage']; ?>
">主页</a>
<br>
<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['ip']; ?>



</td>
<td bgcolor=#FFFFFF width="60%" valign="top">
<img src=./tpl/3/images/emotion/<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['emotion']; ?>
.gif height=18 width=18 align=ABSCENTER>
<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['time']; ?>

<br>
<font color="<?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['color']; ?>
"><?php echo $this->_tpl_vars['reply_list_info'][$this->_sections['loopnum']['index']]['body']; ?>
</font>
</td>
</tr>
<?php endfor; endif; ?>



<?php if (isset($this->_sections['loopnum'])) unset($this->_sections['loopnum']);
$this->_sections['loopnum']['name'] = 'loopnum';
$this->_sections['loopnum']['loop'] = is_array($this->_tpl_vars['topic_list_info']) ? count($this->_tpl_vars['topic_list_info']) : max(0, (int)$this->_tpl_vars['topic_list_info']);
$this->_sections['loopnum']['show'] = true;
$this->_sections['loopnum']['max'] = $this->_sections['loopnum']['loop'];
$this->_sections['loopnum']['step'] = 1;
$this->_sections['loopnum']['start'] = $this->_sections['loopnum']['step'] > 0 ? 0 : $this->_sections['loopnum']['loop']-1;
if ($this->_sections['loopnum']['show']) {
    $this->_sections['loopnum']['total'] = $this->_sections['loopnum']['loop'];
    if ($this->_sections['loopnum']['total'] == 0)
        $this->_sections['loopnum']['show'] = false;
} else
    $this->_sections['loopnum']['total'] = 0;
if ($this->_sections['loopnum']['show']):

            for ($this->_sections['loopnum']['index'] = $this->_sections['loopnum']['start'], $this->_sections['loopnum']['iteration'] = 1;
                 $this->_sections['loopnum']['iteration'] <= $this->_sections['loopnum']['total'];
                 $this->_sections['loopnum']['index'] += $this->_sections['loopnum']['step'], $this->_sections['loopnum']['iteration']++):
$this->_sections['loopnum']['rownum'] = $this->_sections['loopnum']['iteration'];
$this->_sections['loopnum']['index_prev'] = $this->_sections['loopnum']['index'] - $this->_sections['loopnum']['step'];
$this->_sections['loopnum']['index_next'] = $this->_sections['loopnum']['index'] + $this->_sections['loopnum']['step'];
$this->_sections['loopnum']['first']      = ($this->_sections['loopnum']['iteration'] == 1);
$this->_sections['loopnum']['last']       = ($this->_sections['loopnum']['iteration'] == $this->_sections['loopnum']['total']);
?>
<tr> 
<td bgcolor=#ffffff width="25%" align=center valign="top">
<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['name']; ?>

<br>
<?php if ($this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['sex'] == '1'): ?> 男 <?php elseif ($this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['sex'] == '2'): ?> 女 <?php endif; ?>
<br>
<?php echo $this->_run_mod_handler('default', true, @$this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['address'], "未知"); ?>

<br>
<a href="mailto:<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['email']; ?>
">邮件</a>
<a href="<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['homepage']; ?>
">主页</a>
<br>
<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['ip']; ?>


</td>
<td bgcolor=#ffffff width="75%" valign="top">
<img src=./tpl/3/images/emotion/<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['emotion']; ?>
.gif height=18 width=18 align=ABSCENTER>
<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['time']; ?>

<br>
<font color="<?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['color']; ?>
"><?php echo $this->_tpl_vars['topic_list_info'][$this->_sections['loopnum']['index']]['body']; ?>
</font>
</td>
</tr>
<?php endfor; endif; ?>


</table>

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

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

⌨️ 快捷键说明

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