<%@ page language="C#" autoeventwireup="true" inherits="general_SystemManage_NewsManage, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!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 runat="server">
    <title>无标题页</title>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table class="small" cellSpacing="1"  border="0" bgcolor=#000000 style="width: 780px" align="center">
            <tr>
                		<td class="TableData" style="height: 23px" valign="middle" >
                  
                   
                        <table style="width: 100%" cellspacing="0" cellpadding="0">
							<tr>
								<td style="width: 40px">关键字:</td>
			<td style="width: 130px">
                    <asp:TextBox ID="TxtSubjectName" runat="server" CssClass="BigInput" Width="130px"></asp:TextBox>
                    </td>
			<td style="width: 65px">
                    <asp:DropDownList ID="DropType" runat="server">
                        <asp:ListItem>标题</asp:ListItem>
                        <asp:ListItem>内容</asp:ListItem>
                    </asp:DropDownList>
                    </td>
			<td><asp:Button ID="Button1" runat="server" CssClass="BigButton" Height="26px"
                        Text="新闻检索" Width="80px" OnClick="Button1_Click" /></td>
			</tr>
		</table>
		 </td>
</tr>
                 <tr>
                <td  align=center noWrap class="TableData" valign=top height=500>
                
				<C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions=" Selection, Sorting" 
            DataKeyField="News_Id"  OnItemCreated="C1WebGrid1_ItemCreated"
            OnPageIndexChanging="C1WebGrid1_PageIndexChanging" OnSortingCommand="C1WebGrid1_SortingCommand" SkinID="gridviewSkin"  width="700px"   OnItemCommand="C1WebGrid1_ItemCommand"  >
            <Columns>
                <C1WebGrid:C1BoundColumn DataField="News_Id" HeaderText="新闻编号" ReadOnly="True" SortExpression="News_Id">
                    <ItemStyle HorizontalAlign="Center" Width="150px" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Title" HeaderText="新闻标题" SortExpression="Title">
                <ItemStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="User_Name" HeaderText="发布人" SortExpression="User_Name">
                  <ItemStyle HorizontalAlign="Center" />
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Exp1" HeaderText="发布日期"  DataFormatString="{0:d}" SortExpression="Exp1">
                  <ItemStyle  HorizontalAlign="Center"  Width=150px />
                </C1WebGrid:C1BoundColumn>
            
                 <C1WebGrid:C1TemplateColumn HeaderText="操作" >
                 <HeaderStyle  ForeColor=black/>
                 <ItemTemplate>
                      <a href='NewsAdd.aspx?Method=edit&id=<%#Eval("News_Id") %>'>编辑</a>
                 	<asp:LinkButton CommandName="Del" ID=del runat=server OnClientClick="javascript:return confirm('您确定要删除新闻吗')" Text="删除"></asp:LinkButton>
                 </ItemTemplate>
                 <ItemStyle  HorizontalAlign="Center" />
                 </C1WebGrid:C1TemplateColumn>
               

                    
            	</Columns>
        </C1WebGrid:C1WebGrid>
                
				</td></tr>
                </table>
    </form>
</body>
</html>
