📄 menumanage.aspx
字号:
<%@ Page language="c#" Codebehind="menuManage.aspx.cs" AutoEventWireup="false" Inherits="jpgSoftware_SM.admin.menuManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>menuManage</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<link href="../styCss/sty1.css" rel="stylesheet" type="text/css">
<link href="../styCss/fontsty.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
function editMenu(menuStr)
{
if(menuStr!='NaN')
{
window.showModalDialog('selectModalDialog.aspx?menuEdit.aspx?status=edit/'+menuStr,'','dialogWidth:530px;dialogHeight:160px;help:yes;scroll:no;status:no');
}
else
{
alert('传入错误参数');
}
parent.parent.frames['jpgSys_header'].location.href = parent.parent.frames['jpgSys_header'].location.href;
window.location.href = location.href;
}
function deleteMenu(menuStr)
{
if(window.confirm('确定要删除该菜单吗?'))
{
window.showModalDialog('selectModalDialog.aspx?menuDelete.aspx?'+menuStr,'','dialogWidth:530px;dialogHeight:160px;help:yes;scroll:no;status:no');
}
parent.parent.frames['jpgSys_header'].location.href = parent.parent.frames['jpgSys_header'].location.href;
window.location.href = location.href;
}
function addMenu()
{
window.showModalDialog('selectModalDialog.aspx?menuAdd.aspx','','dialogWidth:530px;dialogHeight:180px;help:no;scroll:no;status:no');
parent.parent.frames['jpgSys_header'].location.href = parent.parent.frames['jpgSys_header'].location.href;
window.location.href = location.href;
}
function viewMenu(menuStr)
{
if(menuStr!='NaN')
{
window.showModalDialog('selectModalDialog.aspx?menuEdit.aspx?status=view/'+menuStr,'','dialogWidth:530px;dialogHeight:160px;help:yes;scroll:no;status:no');
}
else
{
alert('传入错误参数');
}
window.location.href = location.href;
}
var SelEmpl = '';
function SelectEmpl(eid)
{
if (SelEmpl != '')
{
document.all['NM'+SelEmpl].style.backgroundColor = '';
document.all['NM'+SelEmpl].style.color = '';
}
SelEmpl = eid;
document.all['NM'+eid].style.backgroundColor = 'gold';
document.all['NM'+SelEmpl].style.color = 'black';
//------------------------------------
var returnValue1="";
var reportID = "";
var TableRows=document.Form1.all["storageTable"].rows;
var ids = eid-1;
if(TableRows[ids].cells[0].childNodes[0].tagName=="INPUT")
{
returnValue1 = TableRows[ids].cells[0].childNodes[0].value;
}
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
<form id="Form1" method="post" runat="server">
<table height="5"><tr><td></td></tr></table>
<table width="100%" height="98%" border="0" cellpadding="0" cellspacing="0" class="hTable_cro">
<tr>
<td valign="top"><table width="100%" cellpadding=0 cellspacing=0 id=storageTable >
<asp:repeater id="menuListRp" runat="server">
<HeaderTemplate>
<tr>
<td height="20" colspan=5 align="center" background="../Image/titleLine.gif" class="whitFont">菜单管理</td>
</tr>
<tr class="table_botLine" align=center>
<td class="table_botLine table_topLine ">图标</td>
<td class="table_botLine table_leftLine table_topLine">父菜单</td>
<td class="table_botLine table_leftLine table_topLine">子菜单</td>
<td class="table_botLine table_leftLine table_topLine">菜单链接地址</td>
<td class="table_botLine table_leftLine table_topLine ">事件</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr id="NM<%#DataBinder.Eval(Container.DataItem,"childMenuID")%>" onMouseOver="this.bgColor='LemonChiffon'" onMouseOut="this.bgColor=''" onClick="javascript:SelectEmpl('<%#DataBinder.Eval(Container.DataItem,"childMenuID")%>')" onDblClick="javascript:viewMenu('<%#DataBinder.Eval(Container.DataItem,"childMenuID")%>')" >
<td width=50 class="table_botLine "> </td>
<td width=100 class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"parentMenuName")%></td>
<td width=100 class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"childMenuName")%></td>
<td width=400 class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"childMenuUrl")%></td>
<td width=100 class="table_botLine table_leftLine " align=center>
<a href="#" onClick="javascript:editMenu('<%#DataBinder.Eval(Container.DataItem,"childMenuID")%>')" ><img src=../Image/edit.gif width=16 height=15 border=0 alt="编辑菜单"></a> |
<a href="#" onClick="javascript:deleteMenu('<%#DataBinder.Eval(Container.DataItem,"childMenuID")%>')" ><img src=../Image/delete.gif width=12 height=13 border=0 alt="删除菜单"></a></td>
</tr></ItemTemplate>
<FooterTemplate>
<tr>
<td height="25" width=50 align=right> <img src=../Image/add.gif width=14 height=14 onClick="javascript:addMenu()" alt="新建菜单"> 新 建</td>
<td height="20" colspan=4 > 注意事项:对菜单管理项进行了相应修改,增删,为使其生效,请推出系统重新登陆。</td>
</tr>
</FooterTemplate>
</asp:repeater></table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -