<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newslist.aspx.cs" Inherits="pinggu.news.newslist" %>

<%@ Register src="../fenye.ascx" tagname="fenye" 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../css/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>

</head>


<body>

	<form id="form1" runat="server">

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="35px">
        </asp:SiteMapPath>
    </ul>
    </div>
    
    <div class="mainindex">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right">&nbsp;<asp:CheckBox ID="CheckBox2" runat="server" 
            AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged" Text="全选" />
        </span>
        <img height="14" src="../images/001.gif" width="14" />
        <asp:LinkButton ID="lbadd" runat="server" PostBackUrl="newsadd.aspx" Text="新增" >新增</asp:LinkButton>
        <img height="14" src="../images/010.gif" width="14" />
        <asp:LinkButton ID="lbdel" runat="server" onclick="LinkButton1_Click" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
      </tr>
    </table>
							<asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <span class="center_title_1">
                                <table class="line_table">
             <tr>
                 <td class="style14">
                     <span lang="zh-cn">标题</span></td>
                 <td class="style18">
                     <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                 </td>
                 <td>
                     <span lang="zh-cn">分类</span></td>
                 <td>
                     <asp:DropDownList ID="ddlfenlei" runat="server" AppendDataBoundItems="True">
                         <asp:ListItem Value="">全部</asp:ListItem>
                     </asp:DropDownList>
                 </td>
             </tr>
             <tr>
                 <td colspan="4" align="center">
                     <asp:Button ID="btnSel" runat="server" Text="搜 索" onclick="btnSel_Click" />
                 </td>
             </tr>
         </table>
                                <asp:GridView ID="gdv" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" EmptyDataText="没有或没有符合条件的新闻信息！" 
            Font-Size="Small"    OnSorting="gdv_Sorting" 
            OnRowDeleting="gdv_RowDeleting" Width="100%" PageSize="20" CssClass="sys_grid"
            >
            <HeaderStyle CssClass="sys_grid_head_cell"/>
            <Columns>
                <asp:TemplateField HeaderText="选择">
                   <ItemTemplate>
                   <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:TemplateField HeaderText="标题">
                   <ItemTemplate>
                   <a href="newsview.aspx?id=<%# Eval("id") %>" target="_blank"><%#Eval("title").ToString() %></a>
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:BoundField DataField="fenlei" HeaderText="分类" />
                <asp:BoundField DataField="userxm" HeaderText="录入人"/>
                <asp:BoundField DataField="addtime" HeaderText="录入时间" />
                <asp:TemplateField HeaderText="编辑">
                   <ItemTemplate>
                   <a href="newsadd.aspx?id=<%# Eval("id") %>">编辑</a>
                    </ItemTemplate>
                 </asp:TemplateField>
                <asp:CommandField HeaderText="操作" ShowDeleteButton="True" 
                    ShowHeader="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除分类吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
            </Columns>
            <PagerSettings Visible=false />
        </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <uc1:fenye ID="fenye1" runat="server" />
    </div>
    </form>
    
    

</body>

</html>
