<!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>基本设置 - {$_mtagname$} - 群组 - <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(){
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		"view_ajax.aspx?oper=ajaxGetList&mtagid={$_mtagid$}",
			success:	function(data){
				//数据绑定
				if(data.result =="1"){
					$("#txtImg").val(data.table[0].mtagimg);
					$("#txtProclaim").val(data.table[0].mtagproclaim.replace(/(<br\/> )/g,'\r'));
					$("#ddlJoinPower").attr("value",data.table[0].mtagjoinpower);
					$("#ddlViewPower").attr("value",data.table[0].mtagviewpower);
					$("input[@name=rblCloseApply][@value="+data.table[0].mtagcloseapply+"]").attr("checked",true);
				}else{
					window.location.href='../mtag/index_default.aspx';
				}
			}
		});
		$('#mtagmbaseForm').ajaxForm({
			beforeSubmit: JumbotCms.AjaxFormSubmit,
			success :function(data){
				JumbotCms.Eval(data);
			}
		}); 
		$.formValidator.initConfig({onError:function(msg){alert(msg);}});
		$("#txtImg")
			.formValidator({tipid:"tipImg",onshow:"",onfocus:"请输入 http:// 开头的图片URL地址",oncorrect:"OK"})
			.InputValidator({min:1,onerror: "必填项!"});
	});
	//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">群组 - {$_mtagname$} </h2>
			<div class="tabs_header">
				<ul class="tabs">
					<li class="active"><a href="view_setting_default.aspx?mtagid={$_mtagid$}"><span>基本设置</span></a></li>
					<li><a href="view_invite_default.aspx?mtagid={$_mtagid$}"><span>邀请好友</span></a></li>
					<li><a href="view_membermanage_default.aspx?mtagid={$_mtagid$}"><span>成员管理</span></a></li>
					<li><a href="view_threadmanage_default.aspx?mtagid={$_mtagid$}"><span>话题批量管理</span></a></li>
					<li><a href="view_default.aspx?mtagid={$_mtagid$}"><span>返回群组首页</span></a></li>
				</ul>
			</div>
			<form id="mtagmbaseForm" name="form1" method="post" action="?act=save&mtagid={$_mtagid$}">
				<table cellspacing="4" cellpadding="4" class="formtable">
					<tr>
						<th width="100">群组名</th>
						<td>{$_mtagname$}</td>
					</tr>
					<tr>
						<th width="100"><label for="txtImg">封面图片</label></th>
						<td><input id="txtImg" type="text" name="txtImg" value="" class="t_input" size="80" />
						<span id="tipImg" style="width: 200px"></span>
						</td>
					</tr>
					<tr>
						<th> <label for="txtProclaim">群组公告</label>
						</th>
						<td><textarea id="txtProclaim" name="txtProclaim" cols="80" rows="5"></textarea>
							<p class="gray">最多可以输入<strong>200</strong> 个字符,多出的部分将被自动删除</p></td>
					</tr>
					<tr>
						<th width="100">加入权限</th>
						<td><select id="ddlJoinPower" name="ddlJoinPower">
								<option value="0" selected>公开(允许所有人可加入)</option>
								<option value="1">审核(需要经批准后才可加入)</option>
								<option value="2">私密(只允许群主邀请加入)</option>
							</select>
						</td>
					</tr>
					<tr>
						<th width="100">浏览权限</th>
						<td><select id="ddlViewPower" name="ddlViewPower">
								<option value="0" selected>公开(所有会员可浏览)</option>
								<option value="1">封闭(只对成员可见)</option>
							</select>
							<br>
							为了保护隐私，当群组的浏览权限设置为封闭时，成员的发帖或回帖操作将不产生个人动态。 </td>
					</tr>
					<tr style="display:none;">
						<th>招纳群主</th>
						<td><input type="radio" id="rblCloseApply0" name="rblCloseApply" value="0"  checked/>
							开启
							<input type="radio" id="rblCloseApply1" name="rblCloseApply" value="1" />
							关闭 </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>
