找到模板包中的guestbook\index.html
在相應(yīng)位置
添加
- {if $user}
- <h5>留言列表</h5>
- {loop $data $d}
- <table width="90%" border="1" cellspacing="3" cellpadding="3" height="30">
- <tr>
- <td scope="col" width="30%"><b style="color: #70AADA;font-family: Arial, Helvetica, sans-serif;">{$d[username]}</b><br>{sdate($d[adddate],'Y-m-d H:i')}</td>
- <td scope="col">{$d[content]}
- {if $d['reply']}
- <br/> <br/>
- <div style="font-size:12px;background:yellow;color:red;border:1px solid black;width:80%;margin-left:20px;padding:5px;">管理員回復:<br/>{$d['reply']}</div>
- {/if}
- </td>
- </tr>
- </table>
- {/loop}
- <p><?php echo pagination::html($record_count); ?></p>
- {/if}
復制代碼