<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta   name="robots" content="noindex, nofollow" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>发布新话题 - 群组 - <jcms:site.name/></title>
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsV4.x.js"></script>
<link   type="text/css" rel="stylesheet" href="../_data/jcmsV4.x.css" />


<script type="text/javascript">
(function(){
	$(document).ready(function(){
		$('#threadaddForm').ajaxForm({
			beforeSubmit: JumbotCms.AjaxFormSubmit,
			success :function(data){
				JumbotCms.Eval(data);
			}
		}); 
		$.formValidator.initConfig({onError:function(msg){alert(msg);}});
		$("#txtMTagId")
			.formValidator({tipid:"tipMTagId",onshow:"请选择群组",onfocus:"请选择群组",oncorrect:"OK"})
			.RegexValidator({regexp:"intege1",datatype:"enum",onerror:"群组选择有误"});
		$("#txtTitle")
			.formValidator({tipid:"tipTitle",onshow:"10-50个字符",onfocus:"10-50个字符",oncorrect:"OK"})
			.InputValidator({min:10,max:50,onerror: "10-50个字符,一个汉字=两个字符!"});
		$("#txtContent")
			.formValidator({tipid:"tipContent",onshow:"50-2000个字符",onfocus:"50-2000个字符",oncorrect:"OK"})
			.InputValidator({min:50,max:2000,onerror: "50-2000个字符!"});
		$("#txtCode")
			.formValidator({tipid:"tipCode",onshow:"",onfocus:"4位校验码",oncorrect:"OK"})
			.InputValidator({min:4,max:4,onerror: "4位校验码"});
	});
	//Form验证
	JumbotCms.AjaxFormSubmit=function(item){
		try{
			if(jQuery.formValidator.PageIsValid('1'))
			{
				JumbotCms.Loading.show("正在处理，请稍等...");
				return true;
			}else{
				return false;
			}
		}catch(e){
			return false;
		}
	};
})();
</script>
<script type="text/javascript" src="../style/mtag/ajax.js"></script>
</head>
<body>
<style>
@import url(../style/member/style.css);
#ucmenu{width:600px;}
</style>
<iframe frameborder="0" scrolling="no" src="../user/index_default.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li class="currently"><img src="../style/member/ico_home.gif"><a href="../user/index_default.aspx">个人中心首页</a></li>
			</ul>
			<ul class="app_list" id="my_userapp">
				<li class="hr"></li>
				<li><img src="../style/member/ico_contribute.gif"><a href="../user/contribute_default.aspx" target="_blank">我的投稿</a><em></em></li>
				<li><img src="../style/app/message.gif"><a href="../user/pmlist_default.aspx">短信</a><em><a href="../user/pmsend_default.aspx">发送</a></em></li>
				<li><img src="../style/app/friend.gif"><a href="../user/friendlist_default.aspx">好友</a><em><a href="../user/friendadd_default.aspx">添加</a></em></li>
				<li><img src="../style/app/mtag.gif"><a href="index_default.aspx">群组</a><em><a href="threadlist_default.aspx">话题</a></em></li>
				<li><img src="../style/app/favorite.gif"><a href="../user/favorite_default.aspx">收藏夹</a></li>
				
			</ul>
		</div>
		<div id="mainarea">
			<h2 class="title"> <img src="../style/app/mtag.gif">群组 </h2>
			<div class="tabs_header">
				<ul class="tabs">
					<li class="active"><a href="view_threadadd_default.aspx"><span>发表新话题</span></a></li>
					<li><a href="threadlist_default.aspx?ismine=1"><span>返回我的话题</span></a></li>
				</ul>
			</div>
			<form id="threadaddForm" name="form1" method="post" action="?act=save">
				<input type="hidden" id="txtMTagId" name="txtMTagId" value="{$_mtagid$}" />
				<table cellspacing="4" cellpadding="4" class="formtable">
					<tr>
						<th width="100">群组名</th>
						<td>{$_mtagname$} [<a href="view_threadadd_default.aspx">切换</a>]
							<span id="tipMTagId" style="width: 200px"></span></td>
					</tr>
					<tr>
						<th width="100"><label for="txtImg">话题</label></th>
						<td><input id="txtTitle" type="text" name="txtTitle" value="" class="t_input" maxlength="50" size="80" />
							<span id="tipTitle" style="width: 200px"></span></td>
					</tr>
					<tr>
						<th> <label for="txtContent">内容</label>
						</th>
						<td><textarea id="txtContent" name="txtContent" cols="80" rows="20"></textarea>
							<span id="tipContent" style="width: 200px"></span></td>
					</tr>
					<tr>
						<th> <label for="txtCode">验证</label>
						</th>
						<td><input class="t_input" size="10" type="text" name="txtCode" id="txtCode" maxlength="4" style="ime-mode:disabled;" onpaste="return false" />
							<img id="imgCode" onclick="this.src=_jcms_SetUrlRefresh('../plus/getcode.aspx');" src="../plus/getcode.aspx" align="absmiddle" style="cursor: pointer" alt="看不清楚？点击换一张" title="看不清楚？点击换一张" /><img id="imgRead" src="../style/common/maintb.gif" align="absmiddle" style="cursor: pointer" alt="收听校验码" title="收听校验码" onclick="PlayCodeVoice('player');" /><span id="player"></span>
							<span id="tipCode" style="width: 200px"></span></td>
					</tr>
					<tr>
						<th>&nbsp;</th>
						<td><input type="submit" name="basesubmit" value="提交保存" class="submit" />
							&nbsp; </td>
					</tr>
				</table>
			</form>
		</div>
		<!--/mainarea-->
		<div id="bottom"></div>
	</div>
</div>
<iframe frameborder="0" scrolling="no" src="../user/index_default.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
