156 lines
6.7 KiB
Plaintext
156 lines
6.7 KiB
Plaintext
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="admin_weixin_menulist.aspx.cs" Inherits="Mtxfw.VipSite.admin_weixin_menulist" %>
|
||
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head id="Head1" runat="server">
|
||
<title></title>
|
||
|
||
|
||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||
<meta http-equiv="Cache-Control" content="no-store" />
|
||
<meta http-equiv="Pragma" content="no-cache" />
|
||
<meta http-equiv="Expires" content="0" />
|
||
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9,IE=10" />
|
||
<script src="/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
|
||
<script src="/Scripts/jquery-migrate-1.1.1.min.js" type="text/javascript"></script>
|
||
<script src="/Scripts/common.js" type="text/javascript"></script>
|
||
<link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
|
||
|
||
<!-- Basic Styles -->
|
||
|
||
<meta name="description" content="">
|
||
<meta name="author" content="">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/bootstrap.css">
|
||
<!--[if IE 7]>
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/font-awesome-ie7.min.css">
|
||
<![endif]-->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-production.css">
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-skins.css">
|
||
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/your_style.css">
|
||
|
||
<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/demo.css">
|
||
|
||
|
||
<!-- FAVICONS -->
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||
|
||
|
||
<link rel="stylesheet" type="text/css" href="/css/cjadd.css?t=2">
|
||
<script src="Scripts/setdate.js" type="text/javascript"></script>
|
||
<script type="text/javascript">
|
||
var search = function () {
|
||
var key = document.getElementById('text_key');
|
||
var state = document.getElementById('Drop_State');
|
||
if (key != '')
|
||
location.href = "admin_weixin_menulist.aspx?key=" + escape(key.value) + "&state=" + escape(state.value);
|
||
};
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<form runat="server">
|
||
<!-- RIBBON -->
|
||
<div id="ribbon">
|
||
|
||
<span class="ribbon-button-home"><img src="/images/home.png" /></span>
|
||
|
||
<!-- breadcrumb -->
|
||
<ol class="breadcrumb">
|
||
<li><a href="/gl.aspx" target="_top">主页</a></li>
|
||
<li><a href="/Member_Index.aspx">会员中心首页</a></li>
|
||
<li><a href="/Admin_Member_config.aspx">后台管理</a></li>
|
||
<li>微信菜单管理</li>
|
||
</ol>
|
||
<!-- end breadcrumb -->
|
||
</div>
|
||
<!-- END RIBBON -->
|
||
<!-- MAIN CONTENT -->
|
||
<div style="opacity: 1;" id="content">
|
||
<div class="frontMain">
|
||
|
||
<h1 class="title01"><span class="semi-bold">微信菜单管理</span><span class="addtitle"></span></h1>
|
||
<div class="MainContent">
|
||
<table width="100%" class="addtable">
|
||
<tr>
|
||
<th> 一级菜单:</th>
|
||
<td>
|
||
<asp:DropDownList ID="Drop_parentid" DataTextField="Title" DataValueField="id" runat="server">
|
||
</asp:DropDownList>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th> 标题:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_Title" Columns="60" runat="server"></asp:TextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th> 链接地址:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_Paths" Columns="60" runat="server"></asp:TextBox>填写了此项请不要再添加下级栏目,否则此链接无效
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th> 排序:</th>
|
||
<td>
|
||
<asp:TextBox ID="Text_LinkID" Width="60" runat="server"></asp:TextBox>数字越大越排在前面
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th></th>
|
||
<td>
|
||
<asp:Button ID="Btn_Insert" runat="server" CssClass="abtn" Text="添加" OnClientClick="getContent();" />
|
||
<asp:Button ID="Btn_Update" runat="server" CssClass="abtn" Text="更新" OnClientClick="getContent();" />
|
||
<input id="returnbtn" type="button" value="返回" onclick="history.go(-1)" class="abtn" /> <asp:Button ID="UpdateWeiXin" runat="server" CssClass="abtn" Text="更新全部微信菜单" />微信菜单规则:一级菜单最多只能添加3个,二级菜单最多只能添加5个
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table width="100%" border="0" class="data_table" id="p_table" cellspacing="0" cellpadding="0">
|
||
|
||
<tr bgcolor="#f7f7f7">
|
||
<th><b>排序ID</b></th>
|
||
<th style="width:20%"><b>标题</b></th>
|
||
<th style="width:40%"><b>链接地址</b></th>
|
||
|
||
<th><b>操作</b></th>
|
||
</tr>
|
||
<asp:Repeater ID="Repeater1" runat="server">
|
||
<ItemTemplate>
|
||
<tr <%#(Container.ItemIndex + 1)%2==0?"bgColor=\"#f4f4f4\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#f4f4f4\"'":"bgColor=\"#ffffff\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#ffffff\"'"%>>
|
||
<td><%#Eval("LinkID") %></td>
|
||
<td><%#Eval("Seef").ToString()=="2"?"|- ":""%><%#Eval("Title") %></td>
|
||
<td style="width:200px;word-break:break-all"><%#Eval("Paths")%></td>
|
||
<td><a href="admin_weixin_menulist.aspx?ID=<%#Eval("ID") %>">编辑</a> <%#Eval("categoryid").ToString()=="0"?"<a href=\"admin_weixin_menulist.aspx?ParentID=" + Eval("ID") + "\">添加二级菜单</a>":""%>
|
||
<asp:LinkButton ID="Btn_Delete" CommandName='<%#Eval("ID") %>' OnCommand="Delete_Click" OnClientClick="return confirm('确定删除吗?')" runat="server">删除</asp:LinkButton>
|
||
</td>
|
||
</tr>
|
||
</ItemTemplate>
|
||
</asp:Repeater>
|
||
|
||
<tr>
|
||
<td colspan="7"> <webdiyer:AspNetPager ID="MyPager" AlwaysShow="true" runat="server"
|
||
FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
|
||
CustomInfoHTML="共 <font color="red">%RecordCount%</font> 条记录 当前 <font color="red">%CurrentPageIndex%/%PageCount%</font> 页"
|
||
PrevPageText="上一页" ShowPageIndexBox="Always" ShowCustomInfoSection="Left"
|
||
SubmitButtonText="Go" TextAfterPageIndexBox="页" ShowBoxThreshold="100"
|
||
CurrentPageButtonPosition="Center" ShowMoreButtons="False" PageIndexBoxType="DropDownList"
|
||
TextBeforePageIndexBox="转到" UrlPaging="True">
|
||
</webdiyer:AspNetPager></td>
|
||
</tr>
|
||
</table>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</form>
|
||
</body></html>
|