<%@ Page language="c#" Codebehind="News.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.News" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>News</title>
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
<table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><span class="tt">文章管理 &gt;&gt;新闻管理</span></td>
		<td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
<div class="mframe">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="tl"></td>
		<td class="tm"><div class="tt">&nbsp; 新闻管理</div></td>
		<td class="tr"></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;">
<table width="90%"  cellspacing="0" cellpadding="0">
	<tr>
		<td class="ml1"></td>
		<td class="mm1">
<table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				<tr height="35">
					<td><asp:Button ID="btnDelete" Runat="server" CssClass="btn1" Text="删除新闻"></asp:Button></td>
					<td align="center">
						<P align="right">搜索：
							<asp:TextBox id="txtKeyword" CssClass="input" runat="server"></asp:TextBox>
							<asp:DropDownList id="ddlCategory" runat="server"></asp:DropDownList>每页显示
							<asp:textbox id="txtPageSize" CssClass="input" Runat="server" Width="30px"></asp:textbox>
							<asp:Button id="btnSearch" runat="server" CssClass="btn" Text="GO"></asp:Button></P>
					</td>
				</tr>
				<tr>
					<td height="23" class="forumRowHighlight" colspan="2">
						<asp:datagrid id="dgNewsList" runat="server" AllowPaging="True" PageSize="20" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ArticleID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title">
							<HeaderStyle Font-Bold="True"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
									<HeaderTemplate>
										<asp:CheckBox id="chkAll" runat="server"></asp:CheckBox>
									</HeaderTemplate>
									<ItemTemplate>
										<asp:CheckBox id="chkItem" runat="server"></asp:CheckBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="顶">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="10px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "IsTop").ToString() == "1" ? "<img src='images/istop.gif' title='置顶'>" : "" %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="荐">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="10px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "IsBest").ToString() == "1" ? "<img src='images/isBest.gif' title='推荐'>" : "" %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="[分类] 新闻标题">
									<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
										[<a href='News.aspx?keyword=&CatID=<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>'><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></a>]
										<a href='../NewsShow.aspx?NewsID=<%# DataBinder.Eval(Container.DataItem, "ArticleID") %>' target=_blank><%# DataBinder.Eval(Container.DataItem, "Title") %></a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="日期">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="60px"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "AddTime", "{0:yy.M.d}") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='NewsAdd.aspx?NewsID=<%# DataBinder.Eval(Container.DataItem, "ArticleID") %>'>
											修改</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="Delete">
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
						<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" id="tablePage">
							<TR height="35">
								<TD vAlign="middle">
									<asp:label id="lblPager" Runat="server"></asp:label></TD>
								<TD vAlign="middle" align="right"><INPUT id="controlID" type="hidden" name="controlID" runat="server">
									<asp:textbox id="txtPage" CssClass="input" Runat="server" Width="30px"></asp:textbox>&nbsp;&nbsp;
									<asp:button id="btnJump" Runat="server" CssClass="btn" Text=" Go "></asp:button></TD>
							</TR>
						</TABLE>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
</td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
