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

<!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"></LINK>
<style type="text/css">
body {margin:0px; height:768px}
</style>

	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0">
	
		<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 height="75" class="ml"></td>
              <td  class="mm" align="left" valign="top"><table width="96%" border="0" align="center" cellspacing="5">
           
              
                  <tr>
                    <td>
                    <font color="#FF0000">1、审批通过表示店铺可以在前台展示了，并不是不通过店铺就不能登陆店铺管理系统。关闭的意思是曾经正常展示的店铺因为在运行过程中存在某种特殊原因而被关闭，关闭后店主既不能登陆店铺管理系统，前台也不显示店铺主页！<br />
                    2、设置为首页推荐，会显示在首页上；“品”表示设置为品牌店铺!<br />
                        3、充值就是当平台实行收费制度的时候。如果商家自己没有在线付款，线下打款的话，可以通过充值操作，为商家补充收费服务期限<br />
                        <span style="color: #ff6600">4、回复按钮的作用是：商家是否启用短信回复功能（适用没有上网环境的商家,可以通过短信回复达到确认订单的功能）。</span></font></td>
                  </tr>
                </table>
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td width="29%" height="19" style="text-align: right"><div align="left">&nbsp;<asp:Button ID="Button2" runat="server" Text="批量生成HTML" OnClick="Button2_Click" />&nbsp;
                      <asp:Button
                            ID="Bdel" runat="server" OnClick="Bdel_Click" Text="批量删除" />&nbsp;<asp:Button ID="st"
                                runat="server" Text="首页推荐" OnClick="st_Click" />&nbsp;<asp:Button ID="Button3" runat="server"
                                    OnClick="Button3_Click" Text="取消首页推荐" /></div></td>
                    <td width="71%" style="text-align: right">&nbsp;&nbsp;搜索: 关键字:
                      <asp:TextBox ID="txtKeyword" runat="server" Width="76px"></asp:TextBox>
                        <asp:RadioButton ID="stjian" runat="server" Text="首页推荐" />&nbsp;
                      
                       <asp:dropdownlist id="ddlTopAreas" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTopAreas_SelectedIndexChanged1">
                     </asp:dropdownlist>
                    
                    <asp:dropdownlist id="ddlArea" runat="server" >
                    </asp:dropdownlist>
                    
                      
                      <asp:DropDownList ID="plei" runat="server"> </asp:DropDownList>&nbsp;<asp:DropDownList ID="Dtg" runat="server"> 
                        <asp:ListItem Value="-1">请选择</asp:ListItem>
                        <asp:ListItem Value="1">通过</asp:ListItem>
                        <asp:ListItem Value="0">不通过</asp:ListItem>
                      </asp:DropDownList>
                      <asp:DropDownList ID="gb" 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="Button1" runat="server" Text="搜索" OnClick="Button1_Click" /></td>
                  </tr>
                </table>
              <br />
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td height="40" valign="top" bgcolor="#FFFFFF" > 
                      <table width="100%"  cellspacing="0" cellpadding="0">
                        <tr>
		                  <td height="38" class="ml1"></td>
		<td class="mm1">
<table cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"
				id="Table4">
                              <tr>
					            <td height="36"> <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            BackColor="Transparent" BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"
            CellPadding="4" Font-Size="12px" HorizontalAlign="Center" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDeleting="GridView1_RowDeleting" Width="96%" OnRowEditing="GridView1_RowEditing" DataKeyNames="id" CaptionAlign="Top" CssClass="mytable" > 
                     
                                  <FooterStyle BackColor="#EFEFEF" ForeColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="店铺名称">
                 
                    <ItemTemplate>
       <a href="../company/company_<%# DataBinder.Eval(Container.DataItem, "ID") %>.html" target="_blank"><%# DataBinder.Eval(Container.DataItem, "CompanyName").ToString() == "" ? "未完善" : "" + DataBinder.Eval(Container.DataItem, "CompanyName") + ""%></a> <%# getcz(DataBinder.Eval(Container.DataItem, "ID").ToString()) %>&nbsp;

                                <%# getststr(DataBinder.Eval(Container.DataItem, "ID").ToString()) %>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
               
               
                <asp:BoundField DataField="user" HeaderText="用户名" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                        <asp:TemplateField HeaderText="所属区域">
                    <ItemTemplate>
                        	<%# getnm(DataBinder.Eval(Container.DataItem, "id").ToString()) %>
                    </ItemTemplate>
                </asp:TemplateField>
   
           
                  <asp:TemplateField HeaderText="添加优惠">
                    <ItemTemplate>
                        	<a href='ProductAdd.aspx?comid=<%# DataBinder.Eval(Container.DataItem, "ID") %>'>添加优惠</a><br />
                        	<a href='tgproAdd.aspx?comid=<%# DataBinder.Eval(Container.DataItem, "ID") %>'>添加团购</a>
                    </ItemTemplate>
                       <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:TemplateField>
             
                <asp:TemplateField HeaderText="修改" ShowHeader="False">
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                            Text="更新"></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="取消"></asp:LinkButton>
                    </EditItemTemplate>
                    <ItemTemplate>
                      <a href="Company_add.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID") %>&<%=Request.QueryString.ToString()%>">[修改]</a> 
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                   <asp:CommandField HeaderText="删除" ShowDeleteButton="True" DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('真的要删除吗？')&quot;&gt;删除&lt;/div&gt;" >
                    <ItemStyle HorizontalAlign="Center" />
                </asp:CommandField>
              
             
                <asp:TemplateField HeaderText="通过">
                    <ItemTemplate>
                        	<a href='Cz.aspx?Action=ChangeComV&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "isvoid").ToString()%>&<%=Request.QueryString.ToString()%>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "isvoid").ToString()=="1"?"1":"0"%>.png' border="0"></a>
                    </ItemTemplate>
                </asp:TemplateField>
                     <asp:TemplateField HeaderText="关闭">
                    <ItemTemplate>
                        	<a href='Cz.aspx?Action=ChangeComG&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "isclose").ToString()%>&<%=Request.QueryString.ToString()%>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "isclose").ToString()=="1"?"0":"1"%>.png' border="0"></a>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="品">
                    <ItemTemplate>
                        <a href='Cz.aspx?Action=ChangeComP&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "ispp").ToString()%>&<%=Request.QueryString.ToString()%>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "ispp").ToString()%>.png' border="0"></a>
                    </ItemTemplate>
                     <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                
                        <asp:TemplateField HeaderText="充值">
                    <ItemTemplate>
                       	<table width="100%" border="0">
									<tr><td>
                                      <%# getbt(DataBinder.Eval(Container.DataItem, "ID").ToString()) %>  
                                        </td></tr></table>
                    </ItemTemplate>
                      <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                          <asp:TemplateField HeaderText="回复">
                    <ItemTemplate>
                       	<table width="100%" border="0">
									<tr><td>
                   	<a href='Cz.aspx?Action=ChangeComhf&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&Status=<%# DataBinder.Eval(Container.DataItem, "ishf").ToString()%>&bstr=yd&<%=Request.QueryString.ToString()%>'>
											<img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "ishf").ToString()=="1"?"1":"0"%>.png' border="0"></a>

                                        </td></tr></table>
                    </ItemTemplate>
                      <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                        <asp:TemplateField HeaderText="HTML">
                    <ItemTemplate>
                        <a href='Cz.aspx?Action=sch&ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>&<%=Request.QueryString.ToString()%>'>
											生成HTML</a>
                    </ItemTemplate>
                      <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="全/反选">
                    <HeaderTemplate>
                        <asp:CheckBox ID="Checkall" runat="server" AutoPostBack="True" OnCheckedChanged="Checkall_CheckedChanged" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="Checkitem" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>
            <RowStyle ForeColor="Black" Height="28px" HorizontalAlign="Center" BorderColor="White" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#EDF6FF" BorderStyle="None" Font-Bold="False" ForeColor="DimGray" Height="35px" CssClass="head" />
            <AlternatingRowStyle BackColor="WhiteSmoke" Height="28px" HorizontalAlign="Center" />
                           <EditRowStyle HorizontalAlign="Center" />
        </asp:GridView>
                <TABLE cellSpacing="0" cellPadding="0" width="96%" align="center" id="tablePage">
                                    <TR height="35"> 
                                      <TD vAlign="middle" style="height: 35px"> 
                                        <asp:label id="lblPager" Runat="server"></asp:label><INPUT id="controlID" type="hidden" name="controlID" runat="server"> </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" 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>
