<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Gg.aspx.cs" Inherits="web.admin.Gg" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Bulletin</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="6%" height="30" class="tl"></td>
		<td width="90%" class="tm"><span class="tt">信息管理 &gt;&gt; 公告管理</span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="3%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <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="#FFFFFF" valign="top" ><br>
                      <table width="90%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
<table  cellSpacing="0" cellPadding="5" width="100%" align="center" border="0">
                              <tr>
					<td align="center">搜索：
						<asp:TextBox id="txtKeyword" CssClass="input" runat="server"></asp:TextBox>&nbsp;<asp:DropDownList
                            ID="lei" runat="server">
                            <asp:ListItem Value="-1">选择类型</asp:ListItem>
                            <asp:ListItem Value="0">店铺公告</asp:ListItem>
                            <asp:ListItem Value="1">系统公告</asp:ListItem>
                       
                        </asp:DropDownList>&nbsp;
						<asp:Button id="btnSearch" CssClass="btn" runat="server" Text="GO"></asp:Button></td>
				</tr>
				<tr>
					<td height="23" class="forumRowHighlight">
						<asp:datagrid id="dgList" runat="server" PageSize="15" PagerStyle-Mode="NumericPages" AutoGenerateColumns="False"
							DataKeyField="ArticleID" Width="100%" HorizontalAlign="Center" HeaderStyle-CssClass="summary-title" BorderColor="#E0E0E0" BorderWidth="1px">
							<HeaderStyle Font-Bold="False" CssClass="head" BackColor="#EDF6FF" Height="35px"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="公告标题">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "Title") %>
									</ItemTemplate>
									
								</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="类型">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "lx").ToString() == "0" ? "店铺公告" : DataBinder.Eval(Container.DataItem, "lx").ToString() == "1"?"系统公告":"未知"%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="加入时间">
									<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "AddTime") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
									<ItemTemplate>
										<a href='GgAdd.aspx?ArticleID=<%# 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="70px"></ItemStyle>
								</asp:ButtonColumn>
                                <asp:TemplateColumn HeaderText="生成HTML">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="120px"></ItemStyle>
									<ItemTemplate>
									<%# DataBinder.Eval(Container.DataItem, "lx").ToString()=="0"?"<font color=#FF0000>不需要生成HTML</font>":"<a href='Createbu.aspx?ID="+DataBinder.Eval(Container.DataItem, "ArticleID") +"'>生成HTML</a>" %>	
									</ItemTemplate>
                                </asp:TemplateColumn>
							</Columns>
							<PagerStyle Mode="NumericPages"></PagerStyle>
                            <ItemStyle Height="26px" />
						</asp:datagrid>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1" style="width: 1px"></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>
