<%@ page language="C#" autoeventwireup="true" inherits="e_city_m, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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 runat="server">
    <UC:meta ID="meta1" runat="server" />

    <script type="text/javascript" src="../s/skin/city_.js"></script>

</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
    &nbsp;&raquo;&nbsp;会员管理&nbsp;&raquo;&nbsp;网站会员
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <div id="funparentcopy" style="display: none">
    </div>
    <%--main start--%>
    <div class="c1">
        <div class="b1" ondblclick="FunAreaClick()" style="cursor: default" title="双击移动上下布局">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li id="self_tab1" class="on"><a href="city_m.aspx">网站会员</a></li>
                                <li id="self_tab2"><a href="city_m.aspx?sqlwhere=<%=Href1 %>">VIP会员</a></li>
                                <li id="self_tab3" style="width:120px"><a href="city_m.aspx?sqlwhere=dHlwZSA9ICdWSVDkvJrlkZgnIA__">VIP会员(含过期)</a></li>
                                <li><a href="city_m.aspx?showpwd=1" target="_blank">显示密码</a></li>
                                <li><a href="m_property.aspx">会员积分</a></li>
                            </ul>
                            <div class="clear">
                            <script type="text/javascript">
                            if(location.href.indexOf("sqlwhere=dHlwZSA9ICdWSVDkvJrlkZgnIGFuZCBlbmR2aXA")!=-1)
                            {
                            document.getElementById("self_tab1").className="";document.getElementById("self_tab2").className="on";
                            } 
                            else if(location.href.indexOf("sqlwhere=dHlwZSA9ICdWSVDkvJrlkZgnIA__")!=-1)
                            {
                            document.getElementById("self_tab1").className="";document.getElementById("self_tab3").className="on";
                            }                            
                            </script>
                            </div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2">
                            <a href="#" onclick="history.back()">返回上页</a></div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
            <asp:HiddenField ID="HiddenField_sqlwhere" runat="server" />
            <asp:HiddenField ID="HiddenField_sqlorderby" runat="server" />
            <div id="DataPagerCopy" style="padding-top: 3px; display: none">
                <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                    <tr>
                        <td>
                            <DataPager:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                CloneFrom="Pager1">
                            </DataPager:AspNetPager>
                        </td>
                    </tr>
                </table>
                <div class="clear" style="height: 5px">
                </div>
            </div>

            <script type="text/javascript" src="../s/skin/list.js"></script>

            <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 12px">
                    No data!</div>

                <script type="text/javascript">if(document.getElementById("tip_nodata"))if(location.href.indexOf("sqlwhere=")!=-1)document.getElementById("tip_nodata").innerHTML= "<a href=\"#\" onclick=\"history.back()\">No data, Back!</a>";</script>

                <style type="text/css">
                    .self_funparent, #funparentcopy
                    {
                        display: none;
                    }
                </style>
            </asp:Panel>
            <asp:Panel ID="Panel_List" runat="server">
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <div class="list1">
                            <table id="listtable" border="0" cellspacing="1" cellpadding="0" width="100%">
                                <tr>
                                    <th width="40">
                                        <a href="javascript:void(0)" title="选择" onclick="selectAll('listtable')">选择</a>
                                    </th>
                                    <th width="120">
                                        <a href="#pagebottom" title="跳转至列表底端">操作</a>
                                    </th>
                                    <th width="80">
                                        <a href="#" title="排序" onclick="orderby('orderby_id=sc')">编号</a>
                                    </th>
                                    <th width="140">
                                        <a href="#" title="排序" onclick="orderby('orderby_u=sc')">用户名</a>
                                    </th>
                                    <th><div><%=WMcompare.IsEqual(WM.RQ("showpwd"), "1", "会员密码", "会员邮箱")%></div>
                                    </th>
                                    <th width="60">
                                        <a href="#" title="排序" onclick="orderby('orderby_enable=sc')">审核状态</a>
                                    </th>
                                    <th width="60"><div>积分</div></th>
                                    <th width="150">
                                        <a href="#" title="排序" onclick="orderby('orderby_<%=WMcompare.IsEqual(Request.RawUrl.Contains("dHlwZSA9ICdWSVDkvJrlkZgnI"),"endvip","time")%>=sc')">[<%=WMcompare.IsEqual(Request.RawUrl.Contains("dHlwZSA9ICdWSVDkvJrlkZgnI"), "VIP到期时间", "注册时间")%>]</a>
                                    </th>
                                </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:CheckBox ID="chk" runat="server" onclick="tdsel(this)" ToolTip='<%#Eval("id")%>' />
                            </td>
                            <td>
                                <a href="#" onclick="window.location='city_m.aspx?act=enable&id=<%#Eval("id")%>&ReturnUrl='+base64en(location.href)">
                                    <%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("enable").ToString()),"1","禁用","恢复")%></a>&nbsp;
                                <a title="以该会员身份登录" href="city_tou.aspx?uid=<%#WMencrypt.Base64UrlEncode(Eval("id").ToString())%>"
                                    target="_blank">登录</a>&nbsp;
                                <a href="city_m.aspx?act=unbind&id=<%#WMencrypt.Base64UrlEncode(Eval("id").ToString())%>" target="_blank">解绑</a>
                            </td>
                            <td>
                                <blockquote>
                                    <a href="view.aspx?table=<%=strTableName %>&id=<%#Eval("id")%>" target="_blank">
                                        <asp:Literal ID="iid" runat="server" Text='<%#Eval("id")%>'></asp:Literal></a></blockquote>
                            </td>
                            <td title="<%#get1(WMencrypt.Decode(Eval("p").ToString()))%>">
                                <blockquote>
                                <a href="view.aspx?table=<%=strTableName %>&id=<%#Eval("id")%>" target="_blank"><%#WM.E( Eval("u"),16,true)%></a></blockquote>
                            </td>
                            <td>
                            <a href="/space/?uid=<%#Eval("id") %>" target="_blank"><%#WMcompare.IsEqual(WM.RQ("showpwd"), "1", WMencrypt.Decode(Eval("p").ToString()), Eval("email").ToString())%></a>
                             
                            </td>
                            <td>
                                <%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("enable").ToString()), "1", "<img src='../s/skin/true.gif'>", "<img src='../s/skin/false.gif'>")%>
                            </td>
                            <td><blockquote>
                                <a href="/space/me.aspx?uid=<%#Eval("id") %>" target="_blank"><%# WMread.GetBy("integral", "m_property", "uid", Eval("id").ToString())%></a></blockquote></td>
                            <td>
                           <%#WMcompare.IsEqual(Request.RawUrl.Contains("dHlwZSA9ICdWSVDkvJrlkZgnI"), WMtime.FormatDateTime(Eval("endvip").ToString(), ""), WMtime.FormatDateTime(Eval("time").ToString(), ""))%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table><a name="pagebottom" id="pagebottom"></a></div>

                        <script type="text/javascript">
                        AlternatingItemTr("listtable","tr1",1);                   
                        var ListMiniViewPar = new Array(2);
                        ListMiniViewPar[0] = "7,<%=strTableName %>,time,D,text,300,0,20,1,"+base64en("注册时间");    
                        ListMiniViewPar[1] = "-1,<%=strTableName %>,nickname,T,text,300,0,100,1,"+base64en("会员昵称");                  
                        ListMiniViewEdit("listtable",ListMiniViewPar,2);
                        </script>

                    </FooterTemplate>
                </asp:Repeater>
            </asp:Panel>
            <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                <div id="DataPager">
                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                        <tr>
                            <td>
                                <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                    UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                    NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                    CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                    SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                    NumericButtonCount="6">
                                </DataPager:AspNetPager>
                            </td>
                        </tr>
                    </table>
                    <div class="clear" style="height: 8px">
                    </div>
                </div>
            </asp:Panel>
        </div>
    </div>
    <%--main end--%>
    <%--fun start--%>
    <div class="self_funparent" id="funparent">
        <div class="funwrap_show" id="funwrap_show" style="display: none">
            <a href="javascript:void(0)" onclick="showhidefun()">展开选项</a></div>
        <div class="c1" id="funwrap">

            <script type="text/javascript">showhidefun_Auto();</script>

            <div class="b1" ondblclick="FunAreaClick()" style="cursor: default" title="双击移动上下布局">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="b1_l">
                        </td>
                        <td>
                            <div class="con1">
                                <ul>
                                    <li id="funtab1" class="on" onmousedown="movearea1('funtab1','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">常规操作</a></li>
                                    <li id="funtab2" onmousedown="movearea1('funtab2','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">过滤筛选</a></li>
                                    <li id="funtab3" onmousedown="movearea1('funtab3','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">高级筛选</a></li>
                                    <li id="funtab4" onmousedown="movearea1('funtab4','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">排序</a></li>
                                    <li id="funtab5" onmousedown="movearea1('funtab5','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">其它</a></li>
                                        <li id="funtab6" onmousedown="movearea1('funtab6','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">设置积分</a></li><li id="funtab7" onmousedown="movearea1('funtab7','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">设置金币</a></li>
                                        <li id="funtab8" onmousedown="movearea1('funtab8','funarea')"><a href="javascript:void(0)"
                                        onfocus="this.blur()">设置VIP</a></li>
                                </ul>
                                <div class="clear">
                                </div>
                            </div>
                        </td>
                        <td align="right">
                            <div class="con2">
                                <a href="javascript:void(0)" onclick="showhidefun()">隐藏</a></div>
                        </td>
                        <td class="b1_r">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="v1">
                <div class="funbox" id="funarea">
                    <blockquote class="block">
                        <input type="button" value="删除选中" class="but1" onclick="if(!confirm('此项请谨慎操作，请在操作前备份数据库，系统不建议您删除会员，您可以将会员设成禁用(不审核)的状态，或者将会员所关联的无用信息修改为正确可用的信息，现在您仍然决定要删除所选的会员吗？'))return;fun_del('<%=strTableName %>','listtable',location.href)" /><input type="button" value="审核选中" class="but1" onclick="fun_lock('<%=strTableName %>','listtable',location.href,1)" style="margin-left:8px" /><input type="button" value="取消审核" class="but1" onclick="fun_lock('<%=strTableName %>','listtable',location.href,0)" style="margin-left:8px" />
                    </blockquote>
                    <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                            <td>
                            <input type="button" value="只看经纪人" class="but1_86" onclick="window.location='/e/city_m.aspx?sqlwhere=Znd6aiA9ICcxJyA_';" />
                            </td>
                                <td>
                                    <input name="singlewhere1" type="text" id="singlewhere1" maxlength="200" class="inp1"
                                        style="width: 110px;margin-left:8px" value="根据用户名搜索" onfocus="KeyTurn=0;if(this.value=='根据用户名搜索')this.value=''"
                                        onblur="KeyTurn=1;this.value=singlewhereblur(this.value)" onkeyup="this.value=singlewhereblur(this.value)" autocomplete="off">
                                </td>
                                <td style="padding-left: 3px">
                                    <input type="button" value="搜索" class="but1" onclick="if(document.getElementById('singlewhere1').value!='')singlewhere('u like \'%'+document.getElementById('singlewhere1').value+'%\'')">
                                </td>
                                
                                 <td style="padding-left: 10px">
                                    <input name="singlewhere2" type="text" id="singlewhere2" maxlength="200" class="inp1"
                                        style="width: 110px" value="根据昵称搜索" onfocus="KeyTurn=0;if(this.value=='根据昵称搜索')this.value=''"
                                        onblur="KeyTurn=1;this.value=singlewhereblur(this.value)" onkeyup="this.value=singlewhereblur(this.value)" autocomplete="off">
                                </td>
                                <td style="padding-left: 3px">
                                    <input type="button" value="搜索" class="but1" onclick="if(document.getElementById('singlewhere2').value!='')singlewhere('nickname like \'%'+document.getElementById('singlewhere2').value+'%\'')">
                                </td>
                                        <td style="padding-left: 10px">
                                    <input name="singlewhere3" type="text" id="singlewhere3" maxlength="8" class="inp1"
                                        style="width: 100px" value="根据会员ID搜索" onfocus="KeyTurn=0;if(this.value=='根据会员ID搜索')this.value=''"
                                        onblur="KeyTurn=1;this.value=singlewhereblur(this.value)" onkeyup="this.value=singlewhereblur(this.value)" autocomplete="off">
                                </td>
                                <td style="padding-left: 3px">
                                    <input type="button" value="搜索" class="but1" onclick="if(document.getElementById('singlewhere3').value!='')singlewhere('id = '+document.getElementById('singlewhere3').value)">
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                    <blockquote class="none">
                        <div id="sqlwherearea1">
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="DropDownListWhereFields" runat="server" onchange="ShowWhereItem(this.value)"
                                            class="s12" Width="200">
                                        </asp:DropDownList>

                                        <script type="text/javascript">var DableWhereFields="id=编号_N,time=注册时间_D,lastlogintime=最后登录时间_D,enable=审核状态_B,logintotal=登录次数_N,ip=注册IP,u=用户名,tel=手机号,email=会员邮箱,qq=会员QQ,p=null,type=会员类型,face=会员头像,nickname=昵称,realname=真实姓名";</script>

                                    </td>
                                    <td style="padding-left: 3px">
                                        <input type="button" value="自定输入" class="but1" onclick="document.getElementById('sqlwherearea2').style.display='';document.getElementById('sqlwherearea3').style.display='none'" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="sqlwherearea3" style="display: none; padding-bottom: 5px">
                        </div>
                        <div id="sqlwherearea2" style="display: none">
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <input name="SqlWhere" type="text" id="SqlWhere" maxlength="2000" class="inp1" style="width: 700px"
                                            value="输入条件语句，例如：class=1 and id>10" onfocus="KeyTurn=0;if(this.value.indexOf('输入条件语句，例如：')!=-1)this.value=''"
                                            onblur="KeyTurn=1">
                                    </td>
                                    <td style="padding-left: 3px">
                                        <input type="button" value="确定提交" class="but1" onclick="doSqlWhere('SqlWhere')">
                                    </td>
                                    <td style="padding-left: 3px">
                                        <input type="button" value="复位" class="but1" onclick="SqlWhereItem=0;document.getElementById('sqlwherearea3').innerHTML='';document.getElementById('sqlwherearea3').style.display='none';document.getElementById('SqlWhere').value='';document.getElementById('sqlwherearea1').style.display='';document.getElementById('sqlwherearea2').style.display='none'">
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </blockquote>
                    <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <asp:DropDownList ID="DropDownListOrderbyFields" runat="server" onchange="orderby('orderby_'+this.value+'=sc')"
                                        class="s12" Width="200">
                                    </asp:DropDownList>

                                    <script type="text/javascript">var DableOrderbyFields="id=编号,time=注册时间,lastlogintime=最后登录时间,enable=审核状态,logintotal=登录次数,ip=注册IP,u=用户名,tel=手机号,email=会员邮箱,qq=会员QQ,p=null,type=会员类型,face=会员头像,nickname=昵称,realname=真实姓名";</script>

                                </td>
                                <td style="padding-left: 10px">
                                    <input name="OrderCustom" type="text" id="OrderCustom" maxlength="200" class="inp1"
                                        style="width: 400px" value="输入排序语句，例如：time desc,id desc" onfocus="KeyTurn=0;if(this.value.indexOf('输入排序语句，例如：')!=-1)this.value=''"
                                        onblur="KeyTurn=1">
                                </td>
                                <td style="padding-left: 3px">
                                    <input type="button" value="确定" class="but1" onclick="doOrderCustom('OrderCustom')">
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                    <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    共有<%=Pager1.RecordCount %>条数据，每页显示<%=Pager1.PageSize %>条。
                                    <%=Pager1.CurrentPageIndex %>/<%=Pager1.PageCount %>
                                </td>
                                <td style="padding-left: 10px">
                                    <input name="PZ" type="text" id="PZ" maxlength="3" class="inp1" style="width: 110px"
                                        value="输入每页显示数量" onfocus="KeyTurn=0;this.value=''" onblur="KeyTurn=1" autocomplete="off">
                                </td>
                                <td style="padding-left: 3px">
                                    <input type="button" value="确定" class="but1" onclick="doPZ('PZ')">
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                    
                    <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>  <td>
                                    输入用户名：
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox1" runat="server" CssClass="inp1" Width="150" MaxLength="50" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left:8px">
                                    输入积分：
                                </td> <td>
                                    <asp:TextBox ID="TextBox2" runat="server" CssClass="inp1" Width="50" MaxLength="6" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left: 3px">
                                    <asp:Button ID="Button1" runat="server" Text="确定" CssClass="but1" OnClick="Button1_OnClick" OnClientClick="if(document.getElementById('TextBox1').value==''){alert('请输入会员用户名！');return false;}else if(document.getElementById('TextBox2').value==''){alert('请输入积分值！');return false;}" />
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                    
                    <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>  <td>
                                    输入用户名：
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox3" runat="server" CssClass="inp1" Width="150" MaxLength="50" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left:8px">
                                    输入金币：
                                </td> <td>
                                    <asp:TextBox ID="TextBox4" runat="server" CssClass="inp1" Width="50" MaxLength="5" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left: 3px">
                                    <asp:Button ID="Button2" runat="server" Text="确定" CssClass="but1" OnClick="Button2_OnClick" OnClientClick="if(document.getElementById('TextBox3').value==''){alert('请输入会员用户名！');return false;}else if(document.getElementById('TextBox4').value==''){alert('请输入金币值！');return false;}" />
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                      <blockquote class="none">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>  <td>
                                    输入用户名：
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox5" runat="server" CssClass="inp1" Width="150" MaxLength="50" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left:8px">
                                    输入到期时间：
                                </td> <td>
                                    <asp:TextBox ID="TextBox6" runat="server" CssClass="inp1" Width="150" MaxLength="10" autocomplete="off"></asp:TextBox>
                                </td>
                                <td style="padding-left:8px; color:#999">格式：年-月-日，例如：2012-08-16</td>
                                <td style="padding-left: 8px">
                                    <asp:Button ID="Button3" runat="server" Text="确定" CssClass="but1" OnClick="Button3_OnClick" OnClientClick="if(document.getElementById('TextBox5').value==''){alert('请输入会员用户名！');return false;}" />
                                </td>
                            </tr>
                        </table>
                    </blockquote>
                </div>

                <script type="text/javascript" src="../s/skin/list_fun.js"></script>

                <script type="text/javascript">initfuntab();</script>

            </div>
        </div>
    </div>

    <script type="text/javascript" src="../s/skin/list_funwarp.js"></script>

    <div id="ajaxdiv">
    </div>
    <%--fun end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
