<%@ Page language="c#" Codebehind="forum_mymenumanage.aspx.cs" AutoEventWireup="false" Inherits="Discuz.ForumPage.Admin.forum_mymenumanage" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>我的菜单管理</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet"/>
	    <script type="text/javascript" src="../js/common.js"></script>
	    <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet"/>        
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="../js/modalpopup.js"></script>
        <script type="text/javascript">
            function setexample()
            {
                $("ehref").innerHTML = $("ahref").value;
                $("eonclick").innerHTML = $("aonclick").value;
                $("etarget").innerHTML = $("atarget").value;
                $("etext").innerHTML = $("atext").value;
            }
        </script>
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
		<div class="Navbutton" style="width:98%;"> 
			<table cellspacing="1" cellpadding="4" align="center" class="table1">
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 
							&nbsp;
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 "   ButtonImgUrl="../images/del.gif"></cc1:Button>
						</td>
					</tr>
			</table>
		</div>
		
		<cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
				>
				<Columns>
					<asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<input id="menuid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.menuid").ToString() %>"	name="menuid"/>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="menuorder" HeaderText="序号[递增]"></asp:BoundColumn>				
					<asp:BoundColumn DataField="text"  HeaderText="链接文字"></asp:BoundColumn>
					<asp:BoundColumn DataField="href" HeaderText="链接地址"></asp:BoundColumn>
					<asp:BoundColumn DataField="onclick"  HeaderText="单击事件"></asp:BoundColumn>
					<asp:BoundColumn DataField="target"  HeaderText="目标窗口"></asp:BoundColumn>				
				</Columns>
			</cc1:datagrid>
		<div class="ManagerForm">
			<fieldset>
		    <legend style="background:url(../images/icons/icon53.jpg) no-repeat 6px 50%;">添加我的菜单项</legend>
			<table cellspacing="0" cellPadding="4" class="tabledatagrid" width="100%">
			    <tr>
					<td class="td1" width="15%">链接文字:</td>
					<td class="td1" width="35%">
					    <cc1:TextBox runat="server" ID="atext" />
					</td>	
					<td class="td2" width="15%">链接地址:</td>
					<td class="td2" width="35%">
					    <cc1:TextBox runat="server" ID="ahref" /></td>
				</tr>
				<tr>
					<td class="td1">单击事件:</td>
					<td class="td1">
					    <cc1:TextBox runat="server" ID="aonclick" IsReplaceInvertedComma="false" />
					</td>
					<td class="td1">目标窗口:</td>
					<td class="td1"><cc1:TextBox runat="server" ID="atarget" Text="_blank" /></td>
				</tr>
				<tr>
				    <td colspan="4">&nbsp;&nbsp;代码:&lt;a href="<span id="ehref"></span>" onclick="<span id="eonclick"></span>" target="<span id="etarget">_blank</span>"&gt;<span id="etext"></span>&lt;/a&gt;</td>
				</tr>				
			</table>
			<cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
			<div class="Navbutton">
			    <cc1:Button id="addmenu" runat="server" Text=" 增 加 " ButtonImgUrl="../images/add.gif"></cc1:Button> 
			</div>
			</fieldset>
		</div>
			</form>
			<%=footer%>
	</body>
</html>
