<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WebXabara_user_Default" %>

<!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="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        <!--
        body {
            margin-left: 0px;
            margin-top: 15px;
            margin-right: 10px;
            margin-bottom: 10px;
        }
        -->
    </style>
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/all.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="divWidth">
            <div class="titleBg">
                用户资料<asp:DropDownList
                    ID="levList" runat="server" AutoPostBack="True" CssClass="inputText"
                    OnSelectedIndexChanged="levList_SelectedIndexChanged">
                    <asp:ListItem Value="-1">所有会员</asp:ListItem>
                </asp:DropDownList>
                &nbsp;<asp:TextBox ID="searchWord" runat="server" CssClass="inputText" Width="120px" ToolTip="输入用户名或姓名搜索"></asp:TextBox>
                <asp:Button ID="SearchButton" runat="server" CssClass="inputBottom" Text="搜索" OnClick="SearchButton_Click" />
                <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator1"
                    runat="server" ControlToValidate="searchWord" ErrorMessage="请输入关键词"></asp:RequiredFieldValidator>
            </div>
            <div class="height10px">
            </div>
            <asp:Repeater ID="RepeaterList" runat="server">
                <HeaderTemplate>
                    <table width="100%" class="tableLine">
                        <tr>
                            <td class="trTitleBG">会员
                            </td>
                            <td class="trTitleBG">头像
                            </td>
                            <td class="trTitleBG">
                                <a href="?orderby=userLevel&level=-1">级别</a>
                            </td>
                            <td class="trTitleBG">姓名
                            </td>
                            <td class="trTitleBG">所在地区
                            </td>
                            <td class="trTitleBG">联系方式
                            </td>
                            <td class="trTitleBG">电子邮箱
                            </td>
                            <td class="trTitleBG">即时通讯
                            </td>
                            <td class="trTitleBG">
                                <a href="?orderby=loginDate&level=-1">日期</a> / <a href="?orderby=loginNum&level=-1">次数</a>
                            </td>
                            <td class="trTitleBG">操作
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td style="text-align: left;">
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("userCardID","exe.aspx?id={0}").ToString().Trim() %> '><%# Eval("userCardID").ToString().Trim()%></asp:HyperLink><br />
                            <%# Eval("userID").ToString().Trim()%><br />
                            <%# Eval("qqID").ToString().Trim()%><br />
                            <%# Eval("alipayID").ToString().Trim()%>
                        </td>
                        <td style="text-align: center;">
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# img(Eval("userImg").ToString().Trim()) %>' Height="30px" Width="30px" />
                        </td>
                        <td style="text-align: center;">
                            <%# getL(Eval("userLevel").ToString().Trim()) + "<br />" + Convert.ToDateTime(Eval("userLevelDate")).ToString("yy-MM-dd")%>
                        </td>
                        <td title='<%# Eval("userIdCard").ToString().Trim()%>'>
                            <%# Eval("userName").ToString().Trim()%>
                        </td>
                        <td style="text-align: left;" title='<%# Eval("userAdd").ToString().Trim() +"　"+ Eval("userZip").ToString().Trim()%>'>
                            <%# cityName(Eval("userProvince").ToString().Trim(), Eval("userCity").ToString().Trim(), Eval("userArea").ToString().Trim()) + "<br />" + getIPStr(Eval("loginIP").ToString().Trim())%>
                        </td>
                        <td>
                            <%# Eval("userTel").ToString().Trim()+"<br />"+Eval("userMobile").ToString().Trim() %>
                        </td>
                        <td style="text-align: left;">
                            <%# Eval("userEmail").ToString().Trim() %>
                        </td>
                        <td style="text-align: center;">
                            <%# getQQHtm(Eval("userQQ").ToString().Trim()) + "<br />" + getWWHtm(Eval("userWW").ToString().Trim())%>
                        </td>
                        <td style="text-align: center;">
                            <%# Convert.ToDateTime(Eval("loginDate")).ToString("yy-MM-dd") + "<br />" + Eval("loginNum").ToString().Trim() + "<br />" + Convert.ToDateTime(Eval("postDate")).ToString("yy-MM-dd")%>
                        </td>
                        <td style="text-align: center; line-height: 20px;">
                            <asp:HyperLink ID="flag" runat="server" NavigateUrl='<%# Eval("Uid","flag.aspx?id={0}&fid=").ToString().Trim() + (Convert.ToInt32(Eval("LoginFlag")) > 0?"0":"1")+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"]%> ' Font-Bold="True"><span onclick="return confirm('确定此操作吗？');"><%# Convert.ToInt32(Eval("LoginFlag")) > 0 ? "锁定" : "<font color='red'>解锁</font>"%></span></asp:HyperLink>&nbsp;&nbsp;<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# Eval("Uid","newPass.aspx?id={0}").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"]%>' Font-Bold="True"><span onclick="return confirm('确定该用户密码初始化吗？');">密码</span></asp:HyperLink><br />
                            <a href="edit.aspx?id=<%# Eval("userCardID").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"] %>" style="font-weight: bold;">修改</a>&nbsp;&nbsp;<a href="del.aspx?id=<%# Eval("userCardID").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"] %>" style="font-weight: bold;" onclick="return confirm('确定删除该用户吗？');">删除</a>&nbsp;&nbsp;<a href="login.aspx?ucID=<%# Eval("userCardID").ToString().Trim() %>&email=<%# Eval("userEmail").ToString().Trim() %>" target="_blank" style="font-weight: bold;">登录</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr>
                        <td style="background-color: #E9F8FC; text-align: left;">
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("userCardID","exe.aspx?id={0}").ToString().Trim() %> '><%# Eval("userCardID").ToString().Trim()%></asp:HyperLink><br />
                            <%# Eval("userID").ToString().Trim()%><br />
                            <%# Eval("qqID").ToString().Trim()%><br />
                            <%# Eval("alipayID").ToString().Trim()%>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: center;">
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# img(Eval("userImg").ToString().Trim()) %>' Height="30px" Width="30px" />
                        </td>
                        <td style="background-color: #E9F8FC; text-align: center;">
                            <%# getL(Eval("userLevel").ToString().Trim()) + "<br />" + Convert.ToDateTime(Eval("userLevelDate")).ToString("yy-MM-dd")%>
                        </td>
                        <td style="background-color: #E9F8FC;" title='<%# Eval("userIdCard").ToString().Trim()%>'>
                            <%# Eval("userName").ToString().Trim()%>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: left;" title='<%# Eval("userAdd").ToString().Trim() +"　"+ Eval("userZip").ToString().Trim()%>'>
                            <%# cityName(Eval("userProvince").ToString().Trim(), Eval("userCity").ToString().Trim(), Eval("userArea").ToString().Trim()) + "<br />" + getIPStr(Eval("loginIP").ToString().Trim())%>
                        </td>
                        <td style="background-color: #E9F8FC;">
                            <%# Eval("userTel").ToString().Trim()+"<br />"+Eval("userMobile").ToString().Trim() %>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: left;">
                            <%# Eval("userEmail").ToString().Trim() %>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: center;">
                            <%# getQQHtm(Eval("userQQ").ToString().Trim()) + "<br />" + getWWHtm(Eval("userWW").ToString().Trim())%>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: center;">
                            <%# Convert.ToDateTime(Eval("loginDate")).ToString("yy-MM-dd") + "<br />" + Eval("loginNum").ToString().Trim() + "<br />" + Convert.ToDateTime(Eval("postDate")).ToString("yy-MM-dd")%>
                        </td>
                        <td style="background-color: #E9F8FC; text-align: center; line-height: 20px;">
                            <asp:HyperLink ID="flag" runat="server" NavigateUrl='<%# Eval("Uid","flag.aspx?id={0}&fid=").ToString().Trim() + (Convert.ToInt32(Eval("LoginFlag")) > 0?"0":"1")+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"]%> ' Font-Bold="True"><span onclick="return confirm('确定此操作吗？');"><%# Convert.ToInt32(Eval("LoginFlag")) > 0 ? "锁定" : "<font color='red'>解锁</font>"%></span></asp:HyperLink>&nbsp;&nbsp;<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# Eval("Uid","newPass.aspx?id={0}").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"]%>' Font-Bold="True"><span onclick="return confirm('确定该用户密码初始化吗？');">密码</span></asp:HyperLink><br />
                            <a href="edit.aspx?id=<%# Eval("userCardID").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"] %>" style="font-weight: bold;">修改</a>&nbsp;&nbsp;<a href="del.aspx?id=<%# Eval("userCardID").ToString().Trim()+"&page="+Request.QueryString["page"]+"&level="+Request.QueryString["level"] %>" style="font-weight: bold;" onclick="return confirm('确定删除该用户吗？');">删除</a>&nbsp;&nbsp;<a href="login.aspx?ucID=<%# Eval("userCardID").ToString().Trim() %>&email=<%# Eval("userEmail").ToString().Trim() %>" target="_blank" style="font-weight: bold;">登录</a>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div class="height10px">
            </div>
            <div>
                <asp:Label ID="lblCurrentPage" runat="server"></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
