<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
<script type="text/javascript">
	$(window).load(function() {

		$("#messformsave").espcms_formvalidation();
	});
</script>
<form name="messformsave" id="messformsave" method="post" action="{%$formlink.save%}">
	<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
	<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
	<input type="hidden" name="btid" value="{%$type_read.btid%}"/>
	{%if $upbid>0%}
	<input type="hidden" name="upbid" value="{%$upbid%}"/>
	<input type="hidden" name="addtype" value="readdsave"/>
	{%/if%}
	<div class="espcms_bbs_form pt20">
		<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
		<div class="title"><div class="messageicon"></div><div class="messtitle">网站留言</div></div>
		<div class="content">
			<div class="espcms_form_group">
				<label for="title" class="control_label">标题</label>
				<div class="control_required">
					<input type="text" name="title" id="title" class="col6 infoInput" value="{%$retitle%}" data-validation-minlength="4" data-validation-maxlength="100" placeholder="请填写不大于100个字符的中英文字符" title="请填写不大于100个字符的中英文字符" data-validation-msg="抱歉：标题输入错误，请返回重新输入！"/>
				</div>
			</div>
			<div class="espcms_form_group">
				<label for="addname" class="control_label">姓名</label>
				<div class="control_required"><input type="text" name="addname" id="addname" value="{%$member.alias%}" class="col5 infoInput" data-validation-minlength="4" data-validation-maxlength="10" placeholder="请填写不大于10个字符的中英文字符" title="请填写不大于10个字符的中英文字符" data-validation-msg="抱歉：姓名输入错误，请返回重新输入！"/></div>
			</div>
			<div class="espcms_form_group">
				<label for="email" class="control_label">E-mail</label>
				<div class="control_required"><input type="text" name="email" id="email" value="{%$member.email%}" class="col5 infoInput" data-validation="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"  placeholder="请输入E-mail" title="请输入E-mail" data-validation-msg="抱歉：E-mail输入错误，请重新输入！"/></div>
			</div>
			<div class="espcms_form_group">
				<label for="email" class="control_label">手机</label>
				<div class="control_required"><input type="text" name="mobile" id="mobile" value="{%$member.mobile%}" class="col5 infoInput" data-validation="^1[\d]{10}$"  placeholder="请输入11位手机号" title="请输入11位手机号" data-validation-msg="抱歉：手机号输入错误，请重新输入！" /></div>
			</div>
			<div class="espcms_form_group">
				<label for="content" class="control_label">内容</label>
				<div class="control_required">
					<textarea name="content" id="content" rows="10" class="col11 infoInput" data-validation-minlength="4" data-validation-maxlength="500" placeholder="请输入留言内容，长度不得超过500个字符" title="请输入留言内容，长度不得超过500个字符" data-validation-msg="抱歉：留言内容输入错误，请返回重新输入！"></textarea>
				</div>
			</div>

			{%if $type_read.isseccode==1%}
			<div class="espcms_form_group">
				<label for="username" class="control_label">验证码</label>
				<div class="control_required">
					<input type="text" id="seccode" name="seccode" class="infoInput" maxlength="4" size="5" style="text-transform: uppercase;"/>
					<img title="点击更换验证码" id="memberseccodesrc" onclick="sessionimg('memberseccodesrc', '{%$rootdir%}')" src="{%$seccodelink%}" style="cursor: pointer;height:27px" align="absmiddle"/>
				</div>
			</div>
			{%/if%}
			<div class="espcms_form_group">
				<label class="control_label"> </label>
				<div class="control_required"><input type="submit" id="submit" class="button blue2" value="确认提交"> </div>
			</div>
		</div>
		<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
	</div>
</form>