<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
<!--{include file=elements/header.js.html type=valid}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>论坛管理 &nbsp;&gt;&nbsp;新增快捷回复语
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=Forum.postlist" class="link">帖子管理</a>
				<a href="index.php?r=SiteSet.forumset" class="link">属性设置</a>
				<a href="index.php?r=Forum.postallreplylist" class="link">回复信息审核</a>
				<a href="index.php?r=Forum.accusationlist" class="link">举报信息管理</a>
				<a href="index.php?r=Forum.shortcutreplylist" class="nolink">快速回复语</a>
				<a href="index.php?r=Forum.postloglist" class="link">日志管理</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="UserForm" action="index.php?r=Forum.updateshortcutreply" method="post">
						<input type="hidden" name="action" value="do">
						<input type="hidden" name="data[ForumShortcutReply][id]" value="<!--{$forumShortcutReply.id}-->">
						<table class="tbl_edit" width="100%">
							<tr>
								<td class="td_name">快捷回复语内容<span class="red">*</span></td>
								<td class="td_content"><input id="reply_content" name="data[ForumShortcutReply][reply_content]" class="text" value="<!--{$forumShortcutReply.reply_content}-->" maxlength='256'/><span id="span_reply_content"></span></td>
							</tr>
							<tr>
								<td class="noborder"></td>
								<td class="noborder"><button type="submit" class="butsubmit">提交</button>&nbsp;&nbsp;<button type="button" class="but2font" onClick="window.location.href='index.php?r=Forum.shortcutreplylist'">返回</button></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
$().ready(function(){
	$("#UserForm").validate({
		rules: {
			'data[ForumShortcutReply][reply_content]': 'required'
		},
		messages: {
			'data[ForumShortcutReply][reply_content]': '快捷回复语内容不能为空'
		},
		errorPlacement: function(error, element){
			$("#span_" + element.attr("id")).html(error).attr("class", "error");
		},
		submitHandler: function(form){
			setDisabled(":button",window.document);
			form.submit();
		},
		errorClass: "invalid",
		success: function(label){
			label.parent().html("&nbsp;").attr("class", "valid");
		},
		onkeyup:false
	});
});
</script>
</html>