<form action="../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=manage_update" method="post" id="form_add" name="form_add" style="padding-bottom:20px" >
	<input type="hidden" name="app_module_id" id="app_module_id" value="<tpl> $app_array.app_module_id </tpl>" />
	<table border="0" cellpadding="0" cellspacing="0" class="from_table">
		<tr>
			<th><tpl> $langSysAppManageName </tpl>:</th>
			<td class="td rowform"><input name="app_module_name" type="text" id="app_module_name" class="txtinput" value="<tpl> $app_array.app_module_name </tpl>" /></td>
			<td class="vtop tips2"><tpl> $langSysAppManageNameRemark </tpl><label style="display:none" for="app_module_name" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><tpl> $langSysAppManageState </tpl>:</th>
			<td class="td rowform">
				<input type="radio" name="app_module_state" value="0" <tpl> if $app_array.app_module_state eq '0' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysAppManageShow </tpl>
				<input type="radio" name="app_module_state" value="1" <tpl> if $app_array.app_module_state eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><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>
			<th><tpl> $langSysAppManagePath </tpl>:</th>
			<td class="td rowform"><input name='app_module_path' type='text' id="app_module_sort" class="txtinput" value="<tpl> $app_array.app_module_path </tpl>" /></td>
			<td class="vtop tips2"><tpl> $langSysAppManagePathRemark </tpl><label style="display:none" for="app_module_path" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<th><tpl> $langSysAppManageSysPath </tpl>:</th>
			<td class="td rowform"><input name='app_module_sys_path' type='text' id="app_module_sys_path" class="txtinput" value="<tpl> $app_array.app_module_sys_path </tpl>" /></td>
			<td class="vtop tips2"><tpl> $langSysAppManageSysPathRemark </tpl><label style="display:none" for="app_module_sys_path" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<td></td>
		    <td colspan="2"><div style="padding-left:5px;">
			  <span class="btn_left"><input type="submit"  value="<tpl> $langSysAppManageUpdateSave </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>
			 </div></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>