<?php if(!defined('IN_SDCMS')) exit;?>
<div class="menu menu-blue">
	<div class="menu-name">留言列表</div>
</div>
{sdcms:rs pagesize="10" num="3" table="sd_book" where="islock=1" order="ontop desc,id desc"}
{rs:eof}<div class="pt-15">暂无留言</div>{/rs:eof}
<div class="card mt-20">
	<div class="card-header"><h5>{$rs[truename]}</h5><div class="card-header-more text-gray">{date('Y-m-d H:i',$rs[createdate])}</div></div>
	<div class="card-body">
		<div>{$rs[remark]}</div>
	</div>
	{if strlen($rs[reply])>0}
	<div class="card-footer">
		<strong>回复：</strong>{$rs[reply]} 
	</div>
	{/if}
</div>
{/sdcms:rs}
<div class="page page-center page-mid mt-20 mb"><ul>{$showpage}</ul></div>

<div class="menu menu-blue">
	<div class="menu-name">我要留言</div>
</div>
<form class="ui-form mt-20" method="post">
	<div class="form-group">
		<input type="text" name="truename" class="form-ip" placeholder="请输入姓名" data-rule="姓名:required;">
	</div>
	<div class="form-group">
		<input type="text" name="mobile" maxlength="11" class="form-ip" placeholder="请输入手机号码" data-rule="手机号码:required;mobile;">
	</div>
	<div class="form-group">
		<input type="text" name="tel" class="form-ip" placeholder="请输入座机号码（可选）">
	</div>
	<div class="form-group">
		<textarea name="remark" class="form-ip form-limit" data-max="255" rows="4" placeholder="请输入留言内容" data-rule="留言内容:required;"></textarea>
		<div class="form-limit-text"><span>0</span>/255</div>
	</div>
	<div class="form-group">
		<div class="input-group">
			<input type="text" name="code" id="code" class="form-ip radius-right-none" placeholder="请输入验证码" data-rule="验证码:required;">
			<div class="code"><img src="{U('code')}" height="40" id="verify" title="点击更换验证码"></div>
		</div>
	</div>
	<div class="form-group">
		<input type="submit" class="btn btn-block btn-blue" value="提交">
	</div>
</form>