<?php !defined('IN_REGINX') && die('Access Denied'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>{:empty($ptitle) ? '' : ($ptitle . '_')}{$sconf['sname']} - Powered By ReGinX</title>
<meta name="keywords" content="{if !empty($skey)}{$skey},{/if}{$sconf['skey']}" />
<meta name="description" content="{if !empty($sdesc)}{$sdesc},{/if}{$sconf['sdesc']}" />
<link rel="shortcut icon" href="{__CTPL_URL__}images/favicon.ico"/>
<link rel="stylesheet" href="{__CTPL_URL__}images/style.css" />
<link rel="stylesheet" href="{__CPLU_URL__}template/style/style.css" />
<script src="{__DATA_URL__}js/jquery-1.8.2.min.js"></script>
<script src="{__DATA_URL__}js/common.js"></script>
<script src="{__CPLU_URL__}template/style/gbook.js"></script>
</head>
<body>
    <!--{include @default:common/topbar.php}-->
    <div id="wapper">
        <!--{include @default:common/searchbar.php}-->
        <div id="main"  class="common">
            <h2 class="title">留言求片</h2>
            <div class="gb_box">
                <form action="{url:'@plugin-gbook'}" method="post" id="form">
                <div class="gb_p"><textarea name="gb[msg]" class="gb_text" id="gb_msg"></textarea></div>
                <div class="gb_p" style="position: relative;">
                    昵称 : <input type="text" class="gb_ipt" id="gb_nick" name="gb[nick]" value="酱油客" />&nbsp;&nbsp;&nbsp;
                    验证码 : <input class="gb_ipt" id="gb_verify" name="verify"/> &nbsp;
                    <img src="{url:'admin@misc-verify|false'}"/>
                    &nbsp;&nbsp;&nbsp;
                    <span style="color:blue;font-size:12px;">{$msg ? $msg : ''}</span>
                    <button class="gb_btn">发布留言</button> 
                </div>
                </form>
                <div class="clear"></div>
                <h3>留言求片列表</h3>
                <ul class="gb_ul">
                {foreach $list $k $v}
                    <li class="gb_li">
                        <p class="gb_author">
                            <b class="gb_nick">{$v['nick']}</b> 发布于 
                            <span class="gb_date">{:date('Y-m-d H:i' , $v['adate'])}</span>
                        </p>
                        <p class="gb_msg">{$v['msg']}</p>
                        {if !empty($v['reply'])}
                        <p class="gb_reply">
                            <b>站长回复 : </b>
                            {$v['reply']}
                        </p>
                        {/if}
                    </li>
                {/foreach}
                </ul>
            </div>
            <div class="clear"></div>
            <!--{include @default:common/footer.php}-->
        </div>
    </div>
    <div class="clear"></div>
</body>
</html>