<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopUserCheck, mallz" title="商城会员认证" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<script type="text/javascript">
function UserIdentify(u_id,u_name)
{
  var link="Admin_ShopIdentifyUser.aspx?userid="+u_id+"&&userName="+escape(u_name)+"&type=1";
 
  window.open(link,"个人认证管理","width=760px; height=600px;help=no; scroll=yes; status=no;","个人认证管理");
} 
</script>
<script src="Js/Function.js" type="text/javascript"></script> 
     <table class="adminheading" width="100%">
         <tr>
            <th class="user" align="left">会员认证管理</th>
            <td align="right"></td>
                <td class="rtdw"></td>
        </tr></table>

<table class="nick"><tr><td colspan="6" class="tit">快速查找</td></tr>
    <tr>
       <td class="ltd" style="width: 10%">用户名称:</td>
       <td class="rtd" style="width: 16%">
           <asp:TextBox ID="TxtNickName" runat="server" />
       </td>       
       <td class="ltd" style="width: 10%">认证类型：</td>
       <td class="rtd" style="width: 32%">
          <asp:CheckBoxList ID="ChkAuthenticationType" runat="server"  RepeatLayout="Flow" RepeatDirection="Horizontal" RepeatColumns="3">              
              <asp:ListItem Value="AuthenticationType" Text="身份证认证" Selected="True"/>
              <asp:ListItem Value="CompanyIdentify" Text="企业认证" />
              <asp:ListItem Value="BandShopIdentify" Text="诚信商家认证" />
           </asp:CheckBoxList> </td>
       <td class="ltd" style="width: 10%">认证状态：</td>
       <td class="rtd">          
           <asp:DropDownList ID="DropIdentity" runat="server">
                    <asp:ListItem Value="9" Selected="True">已递交申请</asp:ListItem>
                    <asp:ListItem Value="-1" >未通过认证</asp:ListItem>                   
                    <asp:ListItem Value="1">已通过认证</asp:ListItem>                  
                </asp:DropDownList>
                <asp:Button ID="QuickSearchBtn" runat="server" Text="查找"  OnClick="QuickSearchBtn_Click"/>
       </td>
     </tr>
</table><br />
            
                    <asp:GridView id="GridView1" runat="server"  CssClass="adminlist" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="UserInfoID" AllowPaging="True" PageSize="10"  OnPageIndexChanging="GridView1_PageIndexChanging"><Columns>
                    <asp:TemplateField HeaderStyle-Width="60px">
                        <HeaderTemplate>
                             <input id="chkAll" onclick="SelectAllCheckboxes(this,'chk_select');"  type="checkbox" />全选
                        </HeaderTemplate>
                    <ItemTemplate>
                         <input type="checkbox" name="chk_select" id="chk_select" value='<%# Eval("UserID") %>' />
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="UserID" HeaderText="会员ID" HeaderStyle-Width="8%" />
                    <asp:HyperLinkField HeaderText="会员名" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName"  />
                    <asp:TemplateField HeaderText="身份证认证"  HeaderStyle-Width="10%" >
                        <ItemTemplate>
                            <asp:HyperLink ID="AuthenticationType" runat="server" NavigateUrl='<%# "Admin_ShopIdentifyUser.aspx?type=1&userid="+Eval("UserID") %>' Text='<%# GetType(Eval("AuthenticationType").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="企业认证" HeaderStyle-Width="10%" >
                        <ItemTemplate>
                            <asp:HyperLink ID="CompanyIdentify" runat="server" NavigateUrl='<%# "Admin_Application.aspx?type=2&userid="+Eval("UserID") %>' Text='<%# GetType(Eval("CompanyIdentify").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="诚信商家认证" HeaderStyle-Width="10%" >
                        <ItemTemplate>
                            <asp:Literal ID="BandShopIdentify" runat="server" Text='<%# GetType(Eval("BandShopIdentify").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                    <tr>
                        <th>用户ID</th><th>用户名</th><th>身份证认证</th><th>企业认证</th><th>诚信商家认证</th>
                    </tr>
                    <tr>
                        <td colspan="8">暂无认证信息！</td>
                    </tr>
                    </EmptyDataTemplate>
                    </asp:GridView>
                    
                    <div class="page">
                        <asp:Label ID="PagePanel" runat="server" />
                    </div>
                    
                    <asp:Label id="err_tips" runat="server" CssClass="helpStyle" width="96%"  Visible="false"/> 
                    
                
               <div style=" text-align:center">
                   <asp:CheckBoxList ID="IdentifyCheckBoxList" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                      <asp:ListItem Value="AuthenticationType" Text="身份验证" />
                      <asp:ListItem Value="CompanyIdentify" Text="企业验证" />
                      <asp:ListItem Value="BandShopIdentify" Text="诚信商家认证" />
                   </asp:CheckBoxList>
                   <br />
                   <asp:Button ID="PassIdentify" runat="server" Text="通过认证" CommandName="1"  OnCommand="IdentifyUserType" />
                   <asp:Button ID="CancleIdentify" runat="server" Text="取消认证"  CommandName="0" OnCommand="IdentifyUserType"/>
                   <asp:Button ID="RefuseIdentify" runat="server" Text="拒绝认证"  CommandName="-1" OnCommand="IdentifyUserType"/>
                   <asp:Button ID="ApplyIdentify" Visible="false" runat="server" Text="设为申请状态"  CommandName="9" OnCommand="IdentifyUserType"/>
                  
               </div>
               <div class="help_intro" >
                   <h1>帮助说明：</h1>
                   
                     <ul>
                        <li>系统默认打开页面时搜索“提交个人身份认证”的用户名单。管理员可选择不同认证方式和认证状态进行用户搜索</li><li>直接输入用户名称并点击确定按钮将直接搜索该用户所提交的所有申请</li><li>管理员也可对没有提交申请的用户进行手动审核，点击该会员所对应的认证，则会自动新开认证窗口，填写相关资料确认即可</li></ul>
                       
                      
               </div>

    
 
</asp:Content>

