web/Manager/Vote.aspx

(开头部分) 5KB

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

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" Inherits="XkCms.Manager.Vote" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <table align="center" cellpadding="1" cellspacing="1" class="TableBorder" width="98%">
        <tr>
            <td align="left" class="forumRow" height="22" width="40%">
                当前位置:<asp:Label ID="lblChannel" runat="server" Text="Label"></asp:Label> --> 投票管理
            </td>
            <td class="forumRow" align="center" width="20%">
                <a href="?ChannelId=<%=ChannelId %>"><b>管理首页</b></a> | <a href="?action=add&ChannelId=<%=ChannelId %>"><b>添加</b></a>
            </td>
            <td align="right" class="forumRow" width="40%"></td>
        </tr>
    </table>
    <br />
    <asp:Panel ID="plList" runat="server" HorizontalAlign="Center" Width="100%">
    <asp:GridView id="gvList" runat="server" Width="98%" OnRowDeleting="gvList_RowDeleting" OnPageIndexChanging="gvList_PageIndexChanging" AllowPaging="True" OnRowDataBound="gvList_RowDataBound" PageSize="15" GridLines="None" CssClass="TableBorder" AutoGenerateColumns="False" EmptyDataText="暂无内容">
        <Columns>
            <asp:BoundField HeaderText="ID" DataField="id">
                <ItemStyle Width="60px" HorizontalAlign="Center"  />
                <HeaderStyle Width="60px" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="主题" DataField="title">
                <ItemStyle HorizontalAlign="Left"  />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="总数" DataField="votetotal" >
                <ItemStyle Width="60px" HorizontalAlign="Center"  />
                <HeaderStyle Width="60px" HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="类型">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
                <HeaderStyle HorizontalAlign="Center" Width="80px" />
                <ItemTemplate>
                    <%# chkThisType(Eval("type","{0}")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <EditItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                        Text="更新"></asp:LinkButton>
                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text="取消"></asp:LinkButton>
                </EditItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="120px" />
                <HeaderStyle HorizontalAlign="Center" Width="120px" />
                <ItemTemplate>
                    <a href='?action=add&id=<%# Eval("id") %>&ChannelId=<%=ChannelId %>'>编辑</a>
                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除"></asp:LinkButton>
                    <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Eval("id") %>'
                        OnCommand="LinkButton3_Command"><%# chkEnabled(Eval("lock","{0}")) %></asp:LinkButton>
                </ItemTemplate>
后面还有 48 行代码,解锁后查看完整代码

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

AI 解读

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

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