admin/index.aspx

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Title="栏目管理 - 后台管理" Language="C#" MasterPageFile="~/admin/site.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="admin_index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="../ckfinder/ckfinder.js"></script>
    <script type="text/javascript" src="../script/Common.js"></script>
    <link href="../css/tinybox.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="location" Runat="Server">
    栏目管理 &gt; <strong>栏目列表</strong>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <div id="operation" style="padding-bottom:20px;">
			名称:
			  <asp:TextBox ID="txtName" runat="server" size="18"></asp:TextBox> 
			  栏目:
			  <asp:DropDownList ID="ddlClass" runat="server" AutoPostBack="True" />
			   类型:
			  <asp:DropDownList ID="ddlType" runat="server">
                  <asp:ListItem Value="0">文本</asp:ListItem>
                  <asp:ListItem Value="1">图文</asp:ListItem>
                  <asp:ListItem Value="2">列表</asp:ListItem>
                  <asp:ListItem Value="3">网址</asp:ListItem>
                  <asp:ListItem Value="4">下载</asp:ListItem>
                  <%--<asp:ListItem Value="5">产品</asp:ListItem>--%>
            </asp:DropDownList>
	 排序:
	<asp:TextBox ID="txtPri" runat="server" size="3">0</asp:TextBox>
	<label>
	  Banner:
            <asp:TextBox ID="txtBanner" runat="server"></asp:TextBox>
            <input type="button" id="btSelect" onclick="BrowseServer( 'Images:/', '<% =txtBanner.ClientID %>' );"
                value="浏览" />
            <asp:Button ID="btAdd" runat="server" Text="增加" OnClientClick="return checkTxtEmpty([{id:'ctl00_Content_txtName', value:'名称不能为空!'},{id:'ctl00_Content_txtPri',value:'排序不能为空!'}]);" OnClick="btAdd_Click" />
        </label>
    </div>
    <asp:GridView ID="gvClassDeatail" runat="server"
        AutoGenerateColumns="False" DataKeyNames="ClassId" DataSourceID="obSource" 
        CssClass="tbMain" GridLines="None">
        <RowStyle CssClass="trRow" />
        <Columns>
            <asp:TemplateField HeaderText="名称" SortExpression="ClassName">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ClassName") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <%--<asp:Label ID="Label2" runat="server" Text='<%# Eval("LevelName") %>'></asp:Label>--%>
                    <a href="archiveList.aspx?classid=<%# Eval("ClassId") %>"><%# Eval("LevelName") %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="类型" SortExpression="TypeId">
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlType" runat="server" 
                        SelectedValue='<%# Bind("TypeId") %>' >
                         <asp:ListItem Value="0">文本</asp:ListItem>
                         <asp:ListItem Value="1">图文</asp:ListItem>
                         <asp:ListItem Value="2">列表</asp:ListItem>
                         <asp:ListItem Value="3">网址</asp:ListItem>
                         <asp:ListItem Value="4">下载</asp:ListItem>
                         <%--<asp:ListItem Value="5">产品</asp:ListItem>--%>
                   </asp:DropDownList>
后面还有 75 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。