⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_affiche.aspx

📁 1、栏目基本分类功能(目前只支持一级分类) 2、文章评论功能 3、留言本功能 4、支持UBB语法 5、脏字过滤功能
💻 ASPX
字号:
<%@ page language="C#" autoeventwireup="true" inherits="Admin_Affiche, App_Web_k7f8vto_" %>

<!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="Head_Affiche" runat="server">
    <title>公告管理</title>
<link href="images/type.css" rel="stylesheet" type="text/css">
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataGrid ID="DgAfficher" runat="server" AutoGenerateColumns="False" GridLines="None"
            Width="98%" ShowFooter="True">
            <Columns>
                <asp:TemplateColumn>
                    <HeaderTemplate>
                    <table border="1" bordercolor="#c0c0c0" cellpadding="4" cellspacing="0" style="border-collapse: collapse"
                            width="100%">
                        <tr>
                            <td bgcolor="#e8e8e8" colspan="3">
                                <table id="TABLE1" border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0"
                                    style="text-align: center" width="100%">
                                    <tr bgcolor="#cccccc">
                                        <td height="17" align="center" width="100">
                                            快捷操作--&gt;</td>
                                        <td height="30" align="center" width="100">
                                           <a href=Admin_System.aspx>管理员管理</a></td>
                                        <td style="width: 100px" valign="middle">
                                            公告管理</td>
                                        <td align="center" width="100">
                                            <a href=Admin_Article.aspx>发表文章</a></td>
                                        <td align="center" width="100">
                                            <a href=Admin_ClassM.aspx>填加栏目</a></td>
                                        <td align="center" width="100">
                                          <a href=Admin_Logout.aspx> 退出系统</a></td>
                                        <td>
                                            </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                                <td bgcolor="#e8e8e8" colspan="3">
                                    公告管理</td>
                        </tr>
                        <tr style="text-align:center;">
                                <td bgcolor="#f5f5f5" class="chinese" width="7%">
                                    编号</td>
                                <td bgcolor="#f5f5f5" class="chinese" width="80%">
                                    内容</td>
                                <td bgcolor="#f5f5f5" class="chinese" width="13%" align="center">
                                    操作</td>
                        </tr>
                    </table>                     

                    </HeaderTemplate>
                    <ItemTemplate>
                        <table border="1" bordercolor="#c0c0c0" cellpadding="4" cellspacing="0" style="border-collapse: collapse"
                            width="100%">
                            <tr>
                                <td bgcolor="#ffffff" class="chinese" width="50" style="text-align:center;">
                                   <%# DataBinder.Eval(Container.DataItem,"G_id") %></td>
                                <td bgcolor="#ffffff" class="chinese">
                                   <%# DataBinder.Eval(Container.DataItem,"G_Content") %></td>
                                <td bgcolor="#ffffff" class="chinese" width="100" style="text-align:center;">
                                    <asp:LinkButton ID="LinkModify" runat="server" OnClick="LinkModify_Click" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"G_id") %>' OnCommand="LinkModify_Command">修改</asp:LinkButton>
                                    <asp:LinkButton ID="LinkDel" runat="server" OnClientClick="return Del()" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"G_id") %>' OnCommand="LinkDel_Command">删除</asp:LinkButton></td>
                            </tr>                           
                        </table>                              
                   </ItemTemplate>
                    <FooterTemplate>
                     <div style="text-align:right;">
                         <table  border="1" bordercolor="#c0c0c0" cellpadding="4" cellspacing="0" style="border-collapse: collapse"
                            width="100%">
                             <tr>
                                 <td style="width: 100pxp; text-align:right; padding-right:28px;">
                                     <asp:LinkButton ID="LinkAdd" runat="server" OnClick="LinkAdd_Click">添加公告</asp:LinkButton></td>
                             </tr>
                         </table>
                     </div>
                    </FooterTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid></div>
        <div style="text-align:right;padding-top:5px; padding-right:40px;">&nbsp;</div>
        <asp:Panel ID="Panel1" runat="server" Height="50px" Width="98%">
            <div style="text-align:center"><asp:Label ID="LblAffiche" runat="server" Text="Label" Height="16px" Font-Size="X-Large"></asp:Label></div>
            <hr />
           <div style="text-align:center;"> <asp:TextBox ID="TxtAffiche" runat="server" Height="200px" TextMode="MultiLine" Width="80%"></asp:TextBox>
               <br />
               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtAffiche"
                   ErrorMessage="请至少在框框里写上一个字吧!"></asp:RequiredFieldValidator><br />
               <asp:Button ID="BtnAffiche" runat="server" Text="Button" OnClick="BtnAffiche_Click" />&nbsp;</div></asp:Panel>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -