<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopicManage.aspx.cs" Inherits="web.admin.TopicManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductField</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
<style type="text/css">
body {margin:0px; height:768px}
</style>
	
	

<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
history.go(-1);
}

// -->
</script>

</HEAD>
	<body>
	<form id="Form2" method="post" runat="server">
		
<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 height="33" class="tl"></td>
		      <td class="tm"><span class="tt">专题活动管理 &gt;&gt;专题活动列表</span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td 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"> <div align="center">
                  <table width="75%" border="0" cellpadding="6" cellspacing="0">
                    <tr> 
                      <td width="76%"> <div align="left">
                          <asp:DropDownList ID="plei" runat="server" >
                          </asp:DropDownList>
                          关键字:
                          <asp:TextBox ID="keywords" runat="server"></asp:TextBox>
                          <asp:Button ID="BTs" runat="server" OnClick="BTs_Click" Text="搜索" /></div></td>
                      <td width="24%"><input type="submit" name="Submit" value="刷新" onClick="javascript:window.location.reload();"> <input id="Button1" type="button" value="返回" language="javascript" onclick="return Button1_onclick()" /></td>
                    </tr>
                  </table>
                  
                </div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > 
                      <table width="97%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1" style="height: 14px"></td>
		                  <td class="mm1" style="height: 14px">
		                 
      
        <asp:GridView ID="mypp" runat="server" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" Width="99%" HorizontalAlign="Center" BorderColor="#E0E0E0"  AllowPaging="True"  >
            <Columns>
            
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        &nbsp;&nbsp;<asp:Label ID="pname" runat="server" Text= <%# Eval("ID")%>></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" ForeColor="Red" />
                    <ItemStyle HorizontalAlign="Center" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                  <asp:TemplateField HeaderText="活动名称(点击查看专题页面)">
                    <ItemTemplate>
                        &nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem, "ismb").ToString() == "1" ? "<a href='" + DataBinder.Eval(Container.DataItem, "ztlj").ToString() + "' target='_blank'>" + DataBinder.Eval(Container.DataItem, "ztname").ToString() + "</a>" : "<a href='../Topic/" + DataBinder.Eval(Container.DataItem, "ztwjj").ToString() + "/index_1.html' target='_blank'>" + DataBinder.Eval(Container.DataItem, "ztname").ToString() + "</a>"%> 
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                    <asp:TemplateField HeaderText="所属类别">
                    <ItemTemplate>
                        &nbsp;&nbsp;<asp:Label ID="pid" runat="server" Text=' <%# getlei(Convert.ToInt32(Eval("zlei")))%> '></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                  <asp:TemplateField HeaderText="添加时间">
                    <ItemTemplate>
                       &nbsp;&nbsp;<asp:Label ID="pid" runat="server" Text=' <% #DataBinder.Eval(Container.DataItem, "addtime")%> '></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
               
               
                <asp:TemplateField HeaderText="删除">
                       <ItemTemplate>
                            <a href="?action=del&ID=<%#Eval("id") %>&spic=<%#Eval("ztpic") %>&syxt=<%#Eval("syXtp") %>&ml=<%#Eval("ztwjj") %>&zhi=<%=base.Request.QueryString["zhi"].ToString() %>&keyword=<%=base.Request.QueryString["keyword"].ToString() %>"
                                        onclick="return confirm('同时也将删除改专题活动页面所在的文件夹！确认要删除吗？');">
                                        [删除]</a>&nbsp;
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="50px" BorderColor="#E0E0E0" BorderStyle="Solid" />
               
                   
                </asp:TemplateField>
                <asp:TemplateField HeaderText="修改">
                 <ItemTemplate>
                            <a href="TopicAdd.aspx?ID=<%#Eval("id") %>&zhi=<%=base.Request.QueryString["zhi"].ToString() %>&keyword=<%=base.Request.QueryString["keyword"].ToString() %>">
                                        [修改]</a>&nbsp;
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="50px" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                      <asp:TemplateField HeaderText="生成HTML">
                 <ItemTemplate>
                            <a href="?action=sc&ID=<%#Eval("id") %>&zhi=<%=base.Request.QueryString["zhi"].ToString() %>&keyword=<%=base.Request.QueryString["keyword"].ToString() %>">
                         <%# DataBinder.Eval(Container.DataItem,"ismb").ToString()=="1"?"":"[生成HTML]" %></a>&nbsp;
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="100px" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                      <asp:TemplateField HeaderText="活动结束">
                 <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem, "jies").ToString() == "1" ? "<a href='?action=cjs&ID=" + DataBinder.Eval(Container.DataItem, "ID") + "&zhi="+base.Request.QueryString["zhi"].ToString()+"&keyword="+base.Request.QueryString["keyword"].ToString()+"'> <font color=FF0000>[重启活动]</font></a>" : "<a href='?action=js&ID=" + DataBinder.Eval(Container.DataItem, "ID") + "&zhi="+base.Request.QueryString["zhi"].ToString()+"&keyword="+base.Request.QueryString["keyword"].ToString()+"'> [结束活动]</a>"%> 
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="60px" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
                      <asp:TemplateField HeaderText="图片调用" Visible="false">
                 <ItemTemplate>
                    <a href='?Action=Changetpd&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&sz=<%# DataBinder.Eval(Container.DataItem, "istp") %>&zhi=<%=base.Request.QueryString["zhi"].ToString() %>&keyword=<%=base.Request.QueryString["keyword"].ToString() %>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "istp") %>.png' border="0"></a>
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="60px" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>     
                 <asp:TemplateField HeaderText="文字调用" >
                 <ItemTemplate>
                               <a href='?Action=Changewzd&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&sz=<%# DataBinder.Eval(Container.DataItem, "iswz") %>&zhi=<%=base.Request.QueryString["zhi"].ToString() %>&keyword=<%=base.Request.QueryString["keyword"].ToString() %>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "iswz") %>.png' border="0"></a>
       
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="60px" BorderColor="#E0E0E0" BorderStyle="Solid" />
                
                </asp:TemplateField>
            
            </Columns>
            <RowStyle Height="32px" BackColor="White" BorderColor="White" />
            <HeaderStyle BackColor="AliceBlue" Height="35px" ForeColor="DarkGray" CssClass="head" Font-Bold="False" Wrap="True" />
           
        </asp:GridView>
            <p class="pagemenu" style="text-align: right">
                    	<span>
                    		共<asp:Literal ID="lttotal" runat="server"></asp:Literal>
                    	    个专题，第<asp:Literal ID="ltcurpage" runat="server">1</asp:Literal>页/共<asp:Literal ID="lttotalpage" runat="server"></asp:Literal>页
                     	</span>
                    	<span class="padd1">
                    		<asp:LinkButton ID="lbfirst" runat="server" OnClick="lbfirst_Click" ToolTip="第一页" ><img src="images/first-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="pre" runat="server"  ToolTip="上一页" OnClick="pre_Click" ><img src="images/left-icon.gif" id="IMG1" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lbup" runat="server" OnClick="lbup_Click" CssClass="pageA">上一页</asp:LinkButton>
                        	<asp:LinkButton ID="lbdown" runat="server" OnClick="lbdown_Click" CssClass="pageA">下一页</asp:LinkButton>
                        	<asp:LinkButton ID="next" runat="server" ToolTip="下一页" OnClick="next_Click" ><img src="images/right-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lblast" runat="server" OnClick="lblast_Click" ToolTip="最后一页"><img src="images/last-icon.gif" border="0"/></asp:LinkButton>
                        </span>
                    </p>
        
                             
		                   </td>
		<td class="mr1" style="height: 14px"></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" style="height: 15px"></td>
		<td class="bm" style="height: 15px">&nbsp;</td>
		<td class="br" style="height: 15px"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>

		</form>
	</body>
</HTML>
