<form id="form1" action="system_power.manage.php" method="post" style="padding-bottom:20px">
	<input type="hidden" name="action" value="save_member" />
<table width="680" border="0" cellpadding="0" cellspacing="0" class="from_table">
	<tr>
		<th width="120"><tpl> $langSystemPAdminUserName </tpl></th>
	  <td width="300" align="left" class="td rowform"><input name="sys_login_name" type="text" id="sys_login_name"class="txtinput" maxlength="50" /></td>
		<td width="300" align="left" class="vtop tips2"><tpl> $langSystemPAccounts </tpl><label style="display:none" for="sys_login_name" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th width="120"><tpl> $langSystemPPassword </tpl></th>
	  <td width="300" align="left" class="td rowform"><input name="sys_password" type="password"class="txtinput" id="sys_password" maxlength="16" /></td>
		<td width="300" align="left" class="vtop tips2"><tpl> $langSystemPPass5To16 </tpl>	
	  <label style="display:none" for="sys_password" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th width="120"><tpl> $langSystemPAgainInputPass </tpl></th>
	  <td width="300" align="left" class="td rowform"><input name="sys_password_two" type="password" class="txtinput"id="sys_password_two" maxlength="16" /></td>
		<td width="300" align="left" class="vtop tips2"> <label style="display:none" for="sys_password_two" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th width="120"><tpl> $langSystemPEmail </tpl></th>
	  <td width="300" align="left" class="td rowform"><input name="sys_email" type="text" id="sys_email" maxlength="100" class="txtinput"/></td>
		<td width="300" align="left" class="vtop tips2"> <label style="display:none" for="sys_email" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th width="120"><tpl> $langSystemPowerGroup </tpl></th>
		<td colspan="2" align="left" class="td rowform">
			<select name="sys_group_id">
			<tpl> section name=loop loop=$sys_group_list </tpl>
				<option value="<tpl> $sys_group_list[loop].sys_group_id </tpl>"><tpl> $sys_group_list[loop].sys_group_name </tpl></option>
			<tpl> /section </tpl>
			</select>	  </td>
	</tr>

</table>
<div class="table-5-bottom">
<div class="btn_marginleft_1">
<span class="btn_left">
          <input type="submit" value="<tpl> $langSystemPSave </tpl>" class="btn_submit"/>  
		  </span>
		  	<span class="btn_left">
		  <input id="butt_listmember" class="btn_submit" type="button" value="<tpl> $langSystemPReturnList </tpl>" onclick="ShowDiv = 'result_content';getPageContent('system_power.manage.php?action=ajax_member');">
		  </span>
		  </div>
		  </div>
</form>
<script>
$(document).ready(function() {	
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == 1){
								ST(0,0);
								ShowDiv = "result_content";
								getPageContent("system_power.manage.php?action=ajax_member");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	//对添加表单做的验证定义
	$("#form1").validate({
		errorClass: "wrong",
		rules: {
			sys_login_name: {required:true,minlength:5},
			sys_password: {required:true,minlength:5,maxlength:16},
			sys_password_two: {required:true,minlength:5,maxlength:16,equalTo:'#sys_password'},
			sys_email: {required:true,email:true}
		},
		messages: {
			sys_login_name: {required: "<tpl> $langSystemPFillInAdmin </tpl>",minlength:"<tpl> $langSystemPAdminLengthNo5 </tpl>"},
			sys_password: {required: "<tpl> $langSystemPFillInPass </tpl>",minlength:"<tpl> $langSystemPPassLengthNo5 </tpl>",maxlength:"<tpl> $langSystemPPassLengthNo16 </tpl>"},
			sys_password_two: {required: "<tpl> $langSystemPFillInAffirmPass </tpl>",minlength:"<tpl> $langSystemPPassLengthNo5 </tpl>",maxlength:"<tpl> $langSystemPPassLengthNo16 </tpl>",equalTo:"<tpl> $langSystemPTwicePassNoAccord </tpl>"},
			sys_email: {required:"<tpl> $langSystemPEmailNotNull </tpl>",email:"<tpl> $langSystemPEmailFormatErr </tpl>"}
		},
		submitHandler: function() {
			$('#form1').ajaxSubmit(options);
		}
	});
});
</script>