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

📄 guestbook.wml.php

📁 php 开发的wap bbs 简单的实例
💻 PHP
字号:
<?php /* Smarty version 2.6.0, created on 2009-02-22 10:06:28         compiled from guestbook.wml */ ?><?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'guestbook.wml', 8, false),)), $this); ?><p>
<?php if ($this->_tpl_vars['mod'] == ""): ?>
总共<?php echo $this->_tpl_vars['count']; ?>条留言<br/>
~~~~~~~~<br/>
第<?php echo $this->_tpl_vars['number']; ?>条留言:<br/>
<?php echo $this->_tpl_vars['info']['name']; ?>:<?php echo $this->_tpl_vars['info']['content']; ?><br/>
邮箱:<?php echo $this->_tpl_vars['info']['email']; ?><br/>
时间:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['times'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%y-%m-%d %H:%M")); ?>
<?php if ($this->_tpl_vars['info']['reply'] <> ""): ?>
<br/><br/>站长回复:<?php echo $this->_tpl_vars['info']['reply']; ?>
<?php endif; ?>
</p>
<?php echo $this->_tpl_vars['pagination']; ?>
<p align="left">
<a href="guestbook.php?mod=add">我要留言</a><br/>
<a href="guestbook.php?mod=del&amp;id=<?php echo $this->_tpl_vars['info']['id']; ?>">删除留言</a><br/>
<a href="guestbook.php?mod=reply&amp;id=<?php echo $this->_tpl_vars['info']['id']; ?>">站长回复</a><br/>
<?php endif; ?>
<?php if ($this->_tpl_vars['mod'] == 'add'): ?>
昵称:<br/>
<input name="name" type="text" format="*M" maxlength="50" emptyok="false" />
<br/>
邮箱:<br/>
<input name="email" type="text" format="*M" maxlength="50" emptyok="false" />
<br/>
留言内容:<br/>
<input name="content" type="text" format="*M" maxlength="255" emptyok="false" /><br/>
<anchor title="提交">提交
<go href="guestbook.php?mod=ins" method="post">
<postfield name="name" value="$(name)" />
<postfield name="email" value="$(email)" />
<postfield name="content" value="$(content)" />
</go></anchor>
<br/>
<a href="guestbook.php">取消</a><br/>
<?php endif; ?>
<?php if ($this->_tpl_vars['mod'] == 'ins'): ?>
<?php echo $this->_tpl_vars['title']; ?><br/>
正在转向<br/>
请稍候...<br/>
<?php endif; ?>
<?php if ($this->_tpl_vars['mod'] == 'del'): ?>
请输入管理密码:<br/>
<input name="pass" type="password" format="*N" maxlength="50" emptyok="ture" /><br/>
<anchor title="提交">提交
<go href="guestbook.php?mod=delete&amp;id=<?php echo $this->_tpl_vars['id']; ?>" method="post">
<postfield name="pass" value="$(pass)" />
</go></anchor>
<br/>
<anchor><prev/>取消</anchor>
<br/>
<?php endif; ?>
<?php if ($this->_tpl_vars['mod'] == 'delete'): ?>
<?php echo $this->_tpl_vars['title']; ?><br/>
正在转向<br/>
请稍候...<br/>
<?php endif; ?>

<?php if ($this->_tpl_vars['mod'] == 'reply'): ?>
回复内容:<br/>
<input name="reply" type="text" format="*M" maxlength="255" emptyok="false" /><br/>
管理密码:<br/>
<input name="pass" type="password" format="*N" maxlength="50" emptyok="false" /><br/>
<anchor title="回复">回复
<go href="guestbook.php?mod=replyadd&amp;id=<?php echo $this->_tpl_vars['id']; ?>" method="post">
<postfield name="reply" value="$(reply)" />
<postfield name="pass" value="$(pass)" />
</go></anchor>
<br/>
<?php endif; ?>

<?php if ($this->_tpl_vars['mod'] == 'replyadd'): ?>
<?php echo $this->_tpl_vars['title']; ?><br/>
正在转向<br/>
请稍候...<br/>
<?php endif; ?>
<a href="index.php">本站首页</a>
</p>
</card>

</wml>

⌨️ 快捷键说明

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