新闻列表管理页面

新闻列表管理页面

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsManage.aspx.cs" Inherits=".UI.images.News.NewsManage" %>
<%@ Register Src="../Controls/Pages.ascx" TagName="Pages" TagPrefix="uc1" %>

<!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">
       <link href="../images/style/style.css"  type="text/css" rel="stylesheet">
    <title>新闻管理</title>
    <script type="text/javascript" charset="gb2312" src="/Office\style\1\js\Ajax.js"></script>
    <script type="text/javascript">
    function checkAll(obj,name)
{
var values="";
var tempCheck= obj.checked
var eles = document.getElementsByName(name);
    for(var i=0;i<eles.length;i++)
    {
     if(eles[i].type=='checkbox')
      {
     eles[i].checked=tempCheck;
      }
    }
 
}
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
            <tr>
                <td align="center" bgcolor="#eef7ff" colspan="2" style="height: 20px">
                    <strong>新闻管理</strong></td>
            </tr>
            <tr bgcolor="#ffffff">
                <td align="right" bgcolor="#d2eaff" style="width: 57px; height: 30px">
                </td>
                <td bgcolor="#eef7ff" style="height: 30px">
                    <asp:DropDownList ID="DdlType" runat="server" Width="103px">
                    </asp:DropDownList>
                    <asp:TextBox ID="TbKeyword" runat="server"></asp:TextBox>
                    <asp:Button ID="BtSearch" runat="server" OnClick="BtSearch_Click" Text="查询" Width="74px" /></td>
            </tr>
            <tr bgcolor="#ffffff">
                <td align="right" bgcolor="#d2eaff" style="width: 57px; height:30px">
                      </td>
                <td bgcolor="#eef7ff" style="height: 30px">
                    &nbsp;<a href="<%=Request.Path.ToString()%>?isCommand=1">推荐新闻</a>  <a href="<%=Request.Path.ToString()%>?isTop=1">置顶新闻</a> <a href="<%=Request.Path.ToString()%>">全部新闻</a> &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <input id="Button1" type="button" οnclick="document.location='NewsEdit.aspx'" value="添加新新闻" />
                    &nbsp;&nbsp; &nbsp;
                </td>
            </tr>
            <tr bgcolor="#ffffff" style="background-color: #eef7ff">
                <td bgcolor="#eef7ff" style="color: #ff6600; height: 30px" colspan="2">
                    <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False"
                        BorderColor="#337FB2" BorderWidth="2px" Font-Size="Small" ForeColor="#333333"
                        Height="32%" OnRowDataBound="gvList_RowDataBound" Width="100%">
                        <FooterStyle BackColor="#A6A1E0" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField HeaderText="编号" />
                            <asp:BoundField DataField="TypeName" HeaderText="类型名称" />
                            <asp:BoundField DataField="Title" HeaderText="标题" />
                            <asp:BoundField DataField="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="时间" />
                            <asp:BoundField HeaderText="管理" />
                        </Columns>
                        <RowStyle BackColor="White" Font-Bold="True" Font-Size="Small" ForeColor="#003399"
                            HorizontalAlign="Center" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#337FB2" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <HeaderStyle BackColor="#337FB2" Font-Size="12px" ForeColor="White" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <AlternatingRowStyle BackColor="#E8F4FF" Font-Bold="True" Font-Size="Small" HorizontalAlign="Center" />
                    </asp:GridView>
                </td>
            </tr>
            <tr bgcolor="#ffffff" style="background-color: #eef7ff">
                <td bgcolor="#eef7ff" colspan="2" style="color: #ff6600; height: 30px">
                    <uc1:Pages ID="Pages1" runat="server" />
                </td>
            </tr>
            <tr bgcolor="#ffffff" style="background-color: #eef7ff">
                <td align="left" bgcolor="#d2eaff" style="width: 57px; height: 30px">
                    <asp:CheckBox ID="CbCheckAll" οnclick="checkAll(this,'action')" runat="server" Text="全选" Width="66px" />
                    <asp:Button ID="BtShanChu" runat="server" OnClick="BtShanChu_Click" Text="删除" /></td>
                <td bgcolor="#eef7ff" style="color: #ff6600; height: 30px">
                    <span class="font"><font color="#666666"><font color="#999999"><font color="#ff6600">
                        &nbsp; </font></font></font></span></td>
            </tr>
        </table>
   
    </div>
    </form>
</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值