Files
g.hnyhua.cn/Mtxfw.shop/_Admin/admin_member_card.aspx

242 lines
12 KiB
Plaintext
Raw Permalink Normal View History

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_member_card.aspx.cs" Inherits="Mtxfw.shop._Admin.admin_member_card" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/Burgundy.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.Layout{
background:#333;position:absolute;margin:0; padding:0; top:0px; left:0px; filter: alpha(opacity=60); opacity: 0.6; display:none;
}
.myLayout{
background:#fff; border:1px solid #ccc;position:absolute; width:300px; height:100px; display:none;
}
.myLayout h3{
margin:0; padding:0 0 0 10px; background:#F0F0F0; height:25px; line-height:25px; font-size:12px; font-weight:bold; border-bottom:1px solid #ccc;
}
.myLayout table{
width:98%; margin:4px 0px; text-align:center;
}
.myLayout #msg{
color:Red;
}
</style>
<script src="/Scripts/jquery-1.7.2.js" type="text/javascript"></script>
<script type="text/javascript">
var cityID = '<%=CityID %>';
var countyID = '<%=CountyID %>';
$(document).ready(function () {
$('#Drop_Province').change(function () {//获取城市
getCity();
});
$('#Drop_City').change(function () {//获取县区
getCounty();
});
getCity();
});
function getCity() {
if ($('#Drop_Province').val() != '-1') {
$.post("/Ajax.ashx", { action: 'GetCity', ProvinceID: $('#Drop_Province').val(), cityIDs: cityID }, function (data) {
if (data != 'false') {
$('#Drop_City').html(data); getCounty();
}
});
}
}
function getCounty() {
if ($('#Drop_City').val() != '-1') {
$.post("/Ajax.ashx", { action: 'GetCounty', CityID: $('#Drop_City').val(), countyIDs: countyID }, function (data) {
if (data != 'false')
$('#Drop_County').html(data);
});
}
}
var search = function () {
var key = document.getElementById('text_key');
var MorN = document.getElementById('Drop_MorN');
var Province = document.getElementById("Drop_Province");
var City = document.getElementById("Drop_City");
var County = document.getElementById("Drop_County");
var Order = document.getElementById("Drop_Order");
location.href = 'admin_member_card.aspx?morn=' + MorN.value + '&key=' + escape(key.value) + '&Province=' + Province.value + '&City=' + City.value + '&County=' + County.value + '&Order=' + Order.value;
};
var seclectall = function (a) {
var p_table = document.getElementById('p_table');
var checka = p_table.getElementsByTagName('input');
for (var i = 0; i < checka.length; i++) {
if (checka[i].type == "checkbox") {
if (a == 0) {
checka[i].checked = true;
} else {
checka[i].checked = false;
}
}
}
};
</script>
<script src="/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
<script src="/artDialog/iframeTools.js" type="text/javascript"></script>
<script type="text/javascript">
var open = function (ID, url) {
art.dialog.open(url + "?ID=" + ID, {
title: '绑定卡号',
width: '500px',
height: '400px',
lock: true
});
};
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="main">
<div class="bt1">会员管理 - VIP卡会员管理</div>
<div class="bt3" id="p_table">
<div class="ltitle"> 会员搜索:
<asp:DropDownList ID="Drop_Province" runat="server">
<asp:ListItem Text="所有省份" Value="-1"></asp:ListItem>
</asp:DropDownList>
<select id="Drop_City" runat="server" class="k2">
<option value="-1">--市--</option>
</select>
<select id="Drop_County" runat="server" class="k3">
<option value="-1">--县区--</option>
</select>
<asp:DropDownList ID="Drop_MorN" runat="server">
<asp:ListItem Text="会员卡号" Value="会员卡号"></asp:ListItem>
<asp:ListItem Text="用户名" Value="用户名"></asp:ListItem>
<asp:ListItem Text="真实姓名" Value="真实姓名"></asp:ListItem>
<asp:ListItem Text="推荐人" Value="推荐人"></asp:ListItem>
<asp:ListItem Value="普通会员">普通会员</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drop_Order" runat="server">
<asp:ListItem Text="按ID排序" Value="0"></asp:ListItem>
<asp:ListItem Text="按注册时间排序" Value="1"></asp:ListItem>
<asp:ListItem Text="按现金排序" Value="2"></asp:ListItem>
<asp:ListItem Text="按消费币排序" Value="3"></asp:ListItem>
</asp:DropDownList><input id="text_key" type="text" style=" width:200px;" />
<input id="btn_search" type="button" value="搜索" onclick="search()" class="chaxun" />
</div>
<table width="100%" class="addtable">
<tr>
<th style=" width:50px;"><b>选择</b></th>
<th><b>卡号</b></th>
<th><b>用户名</b></th>
<th><b>推荐人</b></th>
<th><b>昵称</b></th>
<th><b>头像</b></th>
<th><b>姓名</b></th>
<th><b>手机</b></th>
<th><b>现金币</b></th>
<th><b>消费币</b></th>
<th><b>收入</b></th>
<th><b>绑定会员</b></th>
<th><b>状态</b></th>
<th><b>操作</b></th>
</tr>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr <%#(Container.ItemIndex + 1)%2==0?"bgColor=\"#f4f4f4\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#f4f4f4\"'":"bgColor=\"#ffffff\" onmouseover=\"this.bgColor='#fdff7e'\" onmouseout='this.bgColor=\"#ffffff\"'"%>>
<td><asp:checkbox ID="checka" runat="server" CssClass='<%#Eval("ID") %>'></asp:checkbox></td>
<td title="密码:<%#Mtxfw.Utility.Security.DecryptString(Eval("password").ToString())%>|<%#Mtxfw.Utility.Security.DecryptString(Eval("password2").ToString())%>"><%#Eval("membercard")%></td>
<td title="密码:<%#Mtxfw.Utility.Security.DecryptString(Eval("password").ToString())%>|<%#Mtxfw.Utility.Security.DecryptString(Eval("password2").ToString())%>"><%#Eval("UserName")%></td>
<td><%#Eval("UserName3")%>(<%#Eval("realname3")%>)</td>
<td><%#Eval("NCName")%></td>
<td><%#Eval("UserPic").ToString() == "" ? "暂无" : "<img src=\"" + Mtxfw.Utility.Common.GetCoverPic(Eval("UserPic").ToString(), "40x40", "cut") + "\" width=\"40\"/>"%></td>
<td><%#Eval("RealName")%></td>
<td><%#Eval("Phone")%></td>
<td><a href="admin_jiangjin_list.aspx?MemberId=<%#Eval("ID") %>"><font color='red'><%#(Convert.ToDouble(Eval("UMoney12"))-Convert.ToDouble(Eval("UMoney22"))).ToString("f2")%></font></a></td>
<td><a href="admin_jiangjin_list.aspx?s=0&MemberId=<%#Eval("ID") %>"><font color='red'><%#(Convert.ToDouble(Eval("UMoney28"))-Convert.ToDouble(Eval("UMoney29"))).ToString("f2")%></font></a></td>
<td><a href="admin_jiangjin_list.aspx?s=1&MemberId=<%#Eval("ID") %>"><font color='red'><%#(Convert.ToDouble(Eval("UMoney30"))-Convert.ToDouble(Eval("UMoney31"))).ToString("f2")%></font></a></td>
<td>
<a href="javascript:open('<%#Eval("ID") %>','admin_cardbind.aspx')">绑定VIP会员</a>(<span id="icount_<%#Eval("ID") %>"><%#Convert.ToInt32(Eval("BindCardCount"))%></span>)<br><a href="javascript:open('<%#Eval("ID") %>','admin_cardbindqx.aspx')">取消绑定VIP会员</a>
</td>
<td><%#Eval("uLevel6").ToString() == "1" ? "<font color='red'>未激活</font>" : "<font color='green'>已激活</font>"%><%#Eval("UserState").ToString() == "正常" ? "" : "<br>"+Eval("UserState").ToString()%><!--<%#Eval("IFStores").ToString() == "1" ? "<br><font color='red'>VIP会员</font>" : (Eval("IFStores").ToString() == "2" ? "<br><font color='red'>运营中心</font>" : (Eval("IFStores").ToString() == "3" ? "<br><font color='red'>一级管理中心</font>" : (Eval("IFStores").ToString() == "4" ? "<br><font color='red'>二级管理中心</font>" : "<br><font color='red'>普通会员</font>")))%>-->
<asp:TextBox ID="TextBox_Seef" Visible="false" runat="server" Text='<%#Eval("UserState") %>'></asp:TextBox>
</td>
<td style=" line-height:25px; text-align:center;">
<br>
<a href="admin_member_info.aspx?ID=<%#Eval("ID") %>">查看详情</a>
<br>
<a href="admin_member_edit.aspx?ID=<%#Eval("ID") %>">充值现金</a>
<br>
<a href="admin_member_edit00.aspx?ID=<%#Eval("ID") %>">修改推荐人</a>
<br>
<a href="admin_vip_gong_add2.aspx?UserName=<%#Eval("UserName") %>">发送信息</a>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr>
<td colspan="14" style="text-align:left">
操作:<span style=" cursor:pointer; color:Blue;" onclick="seclectall(0)">全选</span>&nbsp;<span style=" cursor:pointer; color:Blue;" onclick="seclectall(1)">取消所选</span>
将所选项
<asp:DropDownList ID="seclect_Drop" runat="server">
<asp:ListItem Value="1">锁定</asp:ListItem>
<asp:ListItem Value="0">解锁</asp:ListItem>
<asp:ListItem Value="3">设为普通会员</asp:ListItem>
<asp:ListItem Value="2">删除</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Btn_Run" OnClick="Run_Click" OnClientClick="return confirm('确定要执行吗?')" runat="server" Text="执行" CssClass="zhixing"></asp:Button>提示:锁定后不能登录会员系统
</td>
</tr>
<tr>
<td colspan="14" style="text-align:center">
<webdiyer:AspNetPager ID="AspNetPager1" AlwaysShow="true" runat="server"
FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
CustomInfoHTML="共 &lt;font color=&quot;red&quot;&gt;%RecordCount%&lt;/font&gt; 条记录 当前 &lt;font color=&quot;red&quot;&gt;%CurrentPageIndex%/%PageCount%&lt;/font&gt; 页"
PrevPageText="上一页" ShowPageIndexBox="Always" ShowCustomInfoSection="Left"
SubmitButtonText="Go" TextAfterPageIndexBox="页" ShowBoxThreshold="100"
CurrentPageButtonPosition="Center" ShowMoreButtons="False" PageIndexBoxType="DropDownList"
TextBeforePageIndexBox="转到" UrlPaging="True">
</webdiyer:AspNetPager>
</td>
</tr>
</table>
</div>
</div>
<div class='Layout'>
</div>
<div class='myLayout'>
<h3>绑定卡号</h3>
<table>
<tr>
<th>绑定卡号:</th>
<td>
<input id="txt_card" type="text" />
<input id="btn_go" type="button" value="绑定" class='btn' onclick="cardBind()" />
<input id="hidd_card" type="hidden" />
</td>
</tr>
<tr>
<th colspan="2"><img id='load' src='/images/load.gif' style='display:none;'><span id="msg"></span></th>
</tr>
</table>
</div>
<div class='clear'></div>
</form>
</body>
</html>