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

<%@ 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 id="Head1" runat="server">
    <title></title>
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px" Width="250px">
        </asp:SiteMapPath>
        </div>
    <TABLE id="Table1" class="sys_grid" align="center"  cellSpacing="0" cellPadding="0" width="95%"
				border="0">
				<TR>
					<TD vAlign="middle" class="sys_grid_cell_label" height="25">
        <span class="center_title_1">	
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr align="right">
                <td  width="95%"><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="LinkButton1" runat="server" onclick="LinkButton1_Click" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;</td>
            </tr>
        </table>
					    </span>
					    <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="ddlbigclass" runat="server" AppendDataBoundItems="True" 
                         AutoPostBack="True" onselectedindexchanged="ddlbigclassid_SelectedIndexChanged">
                         <asp:ListItem Value="">请选择项目类型</asp:ListItem>
                     </asp:DropDownList>
                     <asp:DropDownList ID="ddlsmallclass" runat="server" AutoPostBack="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" 
            AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="sys_grid"  OnSorting="gdv_Sorting" 
            OnRowDeleting="gdv_RowDeleting"  Width="100%" EmptyDataText="没有或没有符合条件的新闻信息！">
             <HeaderStyle CssClass="sys_grid_head_cell"/>
            <Columns>
             <asp:TemplateField HeaderText="全选">
                            <ItemTemplate>
                             <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="ID" />
                <asp:HyperLinkField DataNavigateUrlFields="id" 
                    DataNavigateUrlFormatString="newsview.aspx?id={0}" DataTextField="title" 
                    HeaderText="标题" NavigateUrl="newsview.aspx" Target="_blank" SortExpression="title"/>
                <asp:BoundField DataField="bigclass" HeaderText="大类" SortExpression="bigclass" />
                 <asp:BoundField DataField="smallclass" HeaderText="小类" SortExpression="smallclass" />               
                <asp:BoundField DataField="userxm" HeaderText="录入人" SortExpression="userxm"/>
                <asp:BoundField DataField="addtime" HeaderText="录入时间" 
                    DataFormatString="{0:yyyy-MM-dd}" SortExpression="addtime"/>
                 <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                    <a href="newsadd.aspx?id=<%#Eval("id") %>">编辑</a>
                    </ItemTemplate>
                 </asp:TemplateField> 
                 <asp:CommandField HeaderText="删除" ShowCancelButton="False" 
                                ShowDeleteButton="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除分类吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>  
            </Columns>
            <PagerSettings Visible=false />
            <RowStyle HorizontalAlign="Center" Height="25px" />
        </asp:GridView>
                    </TD>
				</TR>
				<TR>
					<TD vAlign="top">
						<INPUT id="hd" type="hidden" name="hd" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
                    </TD>
				</TR>
			</TABLE>
       <uc1:fenye ID="fenye1" runat="server" />    
    </div>
    
    </form>
</body>
</html>
