<?php if(!defined('IN_SDCMS')) exit;?>
<div class="menu menu-blue">
	<div class="menu-name">留言列表</div>
</div>
{sdcms:rs pagesize="10" 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-30" method="post">
	<div class="form-group row">
		<label class="col-2 col-form-label text-right">姓名：</label>
		<div class="col-10">
			<input type="text" name="truename" class="form-ip" placeholder="请输入姓名" data-rule="姓名:required;">
		</div>
	</div>
	<div class="form-group row">
		<label class="col-2 col-form-label text-right">手机：</label>
		<div class="col-10">
			<input type="text" name="mobile" maxlength="11" class="form-ip" placeholder="请输入手机号码" data-rule="手机号码:required;mobile;">
		</div>
	</div>
	<div class="form-group row">
		<label class="col-2 col-form-label text-right">座机：</label>
		<div class="col-10">
			<input type="text" name="tel" class="form-ip" placeholder="请输入座机号码（可选）">
		</div>
	</div>
	<div class="form-group row">
		<label class="col-2 col-form-label text-right">留言：</label>
		<div class="col-10">
			<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>
	<div class="form-group row">
		<label class="col-2 col-form-label text-right">验证码：</label>
		<div class="col-10">
			<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>
	<div class="form-group row">
		<div class="col-10 offset-2">
			<input type="submit" class="btn btn-blue" value="提交">
		</div>
	</div>
</form>