<form action="../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=setup_save" method="post" id="form_add" name="form_add" style="padding-bottom:20px" >
<table border="0" cellpadding="0" cellspacing="0" class="from_table">
	<tr>
		<th><tpl> $langWebImSetupStatement </tpl>:</th>
		<td colspan="2">
			<tpl> $langWebImSetupRemarkOne </tpl><br />
			<tpl> $langWebImSetupRemarkTwo </tpl><br />
			<tpl> $langWebImSetupRemarkThree </tpl><br />
			<tpl> $langWebImSetupRemarkFour </tpl><br />
		</td>
	</tr>
	<tr>
		<th><tpl> $langSysAppManageState </tpl>:</th>
		<td class="td rowform">
			<input type="radio" name="app_module_state" value="0" checked="checked" /><tpl> $langSysAppManageShow </tpl>
			<input type="radio" name="app_module_state" value="1" /><tpl> $langSysAppManageHide </tpl></td>
		<td class="vtop tips2"><tpl> $langSysAppManageStateRemark </tpl></td>
	</tr>
	<tr>
		<th><tpl> $langSysAppManageSort </tpl>:</th>
			<td class="td rowform"><input name='app_module_sort' type='text' id="app_module_sort" class="txtinput" value="<tpl> $app_array.app_module_sort </tpl>" /></td>
			<td class="vtop tips2"><tpl> $langSysAppManageSortRemark </tpl><label style="display:none" for="app_module_sort" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
	<tr>
		<td></td>
		<td colspan="2">
		  <span class="btn_left"><input type="submit"  value="<tpl> $langSysAppManageSetup </tpl>" class="btn_submit" /></span>
		  <span class="btn_left"><input type="button" value="<tpl> $langSysAppManageReturn </tpl>" class="btn_submit" onclick="ShowDiv='result_content';getPageContent('app_module.manage.php?action=ajax_list');" /></span>
		 </td>
	</tr>
</table>
</form>
<script>
$(document).ready(function() {
	var options_add = {
		beforeSubmit:  function(){showLoading(showText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv = "result_content";
								getPageContent("app_module.manage.php?action=ajax_list");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	$("#form_add").validate({
		errorClass: "wrong",
		rules: {
			app_module_name: {required:true},
			app_module_sort: {required:true,number:true},
			app_module_path: {required:true},
			app_module_sys_path: {required:true}
		},
		messages: {
			app_module_name: {required:"<tpl> $errSysAppManageNameIsEmpty </tpl>"},
			app_module_sort: {required:"<tpl> $errSysAppManageSortNotNumber </tpl>",number:"<tpl> $errSysAppManageSortNotNumber </tpl>"},
			app_module_path: {required:"<tpl> $errSysAppManagePathIsEmpty </tpl>"},
			app_module_sys_path: {required:"<tpl> $errSysAppManageSysPathIsEmpty </tpl>"}
		},
		submitHandler: function() {
			$('#form_add').ajaxSubmit(options_add);
		}
	});
});
</script>