<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JoinList.aspx.cs" Inherits="Admin_Join_JoinList"
    EnableViewState="true" %>

<%@ Register Assembly="SnSee.Control" Namespace="SnSee.Control" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link href="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <ul class="tool">
        <li>
            <div class="tool_back">
                <a href="javaScript:history.back(-1)">返回上一步</a></div>
        </li>
    </ul>
    <div class="main_body">
        <h1>
            <asp:Literal ID="litTitle" runat="server"></asp:Literal>品牌加盟申请管理</h1>
        <div class="ht2">
        </div>
        <div class="item">
            <ul class="item_list">
                <li class="item_list_cell_ac margin_left_2px" runat="server" id="item0">
                    <div>
                        品牌加盟申请列表
                    </div>
                </li>
            </ul>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox">
            <div class="padding8px">
                <asp:Panel ID="pnlSearch" runat="server" DefaultButton="lbtnSearch">
                    <b>搜索：</b>状态：<asp:DropDownList ID="dropStateSearch" runat="server">
                        <asp:ListItem Text="全部" Value=""></asp:ListItem>
                        <asp:ListItem Text="已处理" Value="1"></asp:ListItem>
                        <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;用户名称：<asp:TextBox ID="txtUserName" runat="server" Width="100px"></asp:TextBox>
                    &nbsp;店铺地址：<asp:TextBox ID="txtShopAddress" runat="server" Width="231px"></asp:TextBox>
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn_bg" OnClick="lbtnSearch_Click">搜索</asp:LinkButton></asp:Panel>
            </div>
        </div>
        <div class="ht2">
        </div>
        <div class="divbox2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                <tr>
                    <th width="3%" class="input_no">
                        <input id="Checkbox1" type="checkbox" onclick="UnSelectCheckBox(this,'chkSelect')" />
                    </th>
                    <th width="16%">
                        用户名称
                    </th>
                    <th width="3%">
                        年龄
                    </th>
                    <th width="16%">
                        电话
                    </th>
                    <th>
                        店铺地址
                    </th>
                    <th width="6%">
                        店铺面积
                    </th>
                    <th width="8%">
                        状态
                    </th>
                    <th width="7%">
                        查看
                    </th>                    
                    <th width="18%">
                        处理
                    </th>
                </tr>
                <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td align="center" class="input_no">
                                <asp:Literal ID="litID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Literal>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </td>
                            <td align="center">
                                <%#Eval("UserName")%>
                            </td>
                            <td align="center">
                                <%#Eval("Age")%>
                            </td>
                            <td align="center">
                                <%#Eval("Telephone")%>
                            </td>
                            <td align="left">
                                <%#Eval("ShopAddress")%>
                            </td>
                            <td align="left">
                                <%#Eval("ShopAcreage")%>
                            </td>
                            <td align="center">
                                <%#Eval("State") != DBNull.Value && Eval("State").ToString()=="1"?"已处理":"未处理"%>
                            </td>
                            <td align="center">
                                <a href="JoinView.aspx?ID=<%#Eval("ID")%>" title="查看当前信息"><img src="../images/icon_hf.gif" border="0" align="absmiddle" /></a>
                            </td>                            
                            <td align="center">
                                <asp:DropDownList ID="dropState" runat="server">
                                    <asp:ListItem Text="已处理" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:LinkButton ID="lbtnState" runat="server" CssClass="btn_bg" ToolTip="确定已选择操作"
                                    CommandArgument='<%#Eval("ID")%>' CommandName="State_Command" OnClientClick="return confirm('确认将当前操作吗？')">确定</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div class="ht2">
        </div>
        <div class="padding4px">
            <input type="button" id="Button7" value="全选" onclick="SelectCheckBox(this, 'chkSelect',1)"
                class="btn_bg2" />
            <input type="button" id="Button8" value="反选" onclick="UnSelectCheckBox(this,'chkSelect')"
                class="btn_bg2" />
            <input type="button" id="Button9" value="取消选择" onclick="SelectCheckBox(this, 'chkSelect',2)"
                class="btn_bg2" />
            |
            <asp:DropDownList ID="dropState" runat="server">
                <asp:ListItem Text="已处理" Value="1"></asp:ListItem>
                <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btnAll" runat="server" Text="确定已选择操作" CssClass="btn_bg2" OnClientClick="return confirm('确认当前操作？')"
                ToolTip="批量处理当前选中项" Width="112px" OnClick="btnAll_Click" />
        </div>
        <div class="webpage">
            <cc1:WebPage ID="WebPage1" runat="server" PageSize="20">
            </cc1:WebPage>
        </div>
        <div class="ht">
        </div>
        <div class="ht">
        </div>
        <ul class="ac_intro" runat="server" id="boxPageExplain">
            <li class="ac_intro_title">说明：</li>
            <li class="ac_intro_item">1. 加盟管理。</li>
        </ul>
    </div>
    </form>
</body>
</html>
