<!--#include file="admin_conn.asp"-->
<%
chkLogin
dim action : action = be("get","action")

select case action
	case "save" : save
	case else : headAdmin "自定义菜单管理" : main
end select
dispseObj()

sub save()
	dim menudiy : menudiy = be("post","menudiy")
	objFile.createFile "../inc/dim_menu.txt",menudiy
	writeA "修改插件菜单成功"
end sub

sub main
%>
<script language="javascript">
$(document).ready(function(){
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	top.location.href = top.location.href;
	        });
	    }
	});
});
</script>
<form action="?action=save" method="post" id="form1" name="form1">
<table class="tb">
<tr class="thead"><th colspan="2">自定义快捷菜单</th></tr>
<tr><td width="25%">1.格式：菜单名称,菜单链接地址</td>
<td width="75%">2.每个快捷菜单各占一行</td>
</tr>
<tr>
	<td colspan="2">
	<textarea id="menudiy" name="menudiy" style="width:100%;font-family: Arial, Helvetica, sans-serif;font-size: 14px;" rows="20"><%=objFile.getFile("../inc/dim_menu.txt")%></textarea>
	</td>
	</tr>
	<tr>
	<td align="center" colspan="2"> <input type="submit" id="btnSave" name="btnSave" value="保存" class="input" /> </td>
	</tr>
</table>
</form>
</body>
</html>
<%
end sub
%>