298 lines
13 KiB
Plaintext
298 lines
13 KiB
Plaintext
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_List2.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_List2" %>
|
||
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head id="Head1" runat="server">
|
||
<title></title>
|
||
|
||
|
||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||
<meta http-equiv="Cache-Control" content="no-store" />
|
||
<meta http-equiv="Pragma" content="no-cache" />
|
||
<meta http-equiv="Expires" content="0" />
|
||
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9,IE=10" />
|
||
<script src="/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
|
||
<script type="text/javascript" src="/Scripts/bootstrap.min.js"></script>
|
||
<script src="/Scripts/common.js" type="text/javascript"></script>
|
||
<link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
|
||
|
||
<!-- Basic Styles -->
|
||
|
||
<meta name="description" content="">
|
||
<meta name="author" content="">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/bootstrap.css">
|
||
<!--[if IE 7]>
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/font-awesome-ie7.min.css">
|
||
<![endif]-->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-production.css">
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/smartadmin-skins.css">
|
||
|
||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/your_style.css">
|
||
|
||
<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/demo.css">
|
||
|
||
|
||
<!-- FAVICONS -->
|
||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||
|
||
|
||
<link rel="stylesheet" type="text/css" href="/css/cjadd.css">
|
||
<script type="text/javascript">
|
||
//去掉空格
|
||
function fTrim(str) {
|
||
return str.replace(/(^\s*)|(\s*$)/g, "");
|
||
}
|
||
function showchongzhi(t, id, UserName) {
|
||
|
||
if (t == 0) {
|
||
$("#modal-title").html("修改充值金额");
|
||
} else if (t == 11) {
|
||
$("#modal-title").html("充值现金");
|
||
} else if (t == 2) {
|
||
$("#modal-title").html("修改提货券");
|
||
} else if (t == 3) {
|
||
$("#modal-title").html("修改注册币");
|
||
} else if (t == 4) {
|
||
$("#modal-title").html("修改消费券");
|
||
} else if (t == 6) {
|
||
$("#modal-title").html("修改烧伤值");
|
||
}
|
||
$("#txttype").val(t);
|
||
$("#txtid").val(id);
|
||
$("#txtUserName").html(UserName);
|
||
$('#successModal').modal('show');
|
||
}
|
||
function onchongzhi() {
|
||
var b = true;
|
||
if (fTrim($("#txtJE").val()) == "") {
|
||
b = false;
|
||
alert("修改金额不能为空!");
|
||
$("#txtJE").focus();
|
||
}
|
||
if (fTrim($("#txtBody").val()) == "") {
|
||
b = false;
|
||
alert("修改内容不能为空!");
|
||
$("#txtBody").focus();
|
||
}
|
||
if (b) {
|
||
$("#btn-continue").attr("disabled", true);
|
||
$.ajaxSettings.async = true;
|
||
var t = $("#txttype").val();
|
||
var id = $("#txtid").val();
|
||
$.post("/Ajax.ashx", { action: 'onchongzhi', t: t, id: id, je: escape($("#txtJE").val()), Body: escape($("#txtBody").val()) }, function (data) {
|
||
switch (data) {
|
||
case "0":
|
||
alert("操作成功!");
|
||
$("#btn-continue").removeAttr("disabled");
|
||
var umoney = (parseFloat($("#umoney" + t + "_" + id).html()) + parseFloat($("#txtJE").val()));
|
||
$("#umoney" + t + "_" + id).html(umoney);
|
||
$("#txtJE").val("");
|
||
$('#successModal').modal('hide');
|
||
break;
|
||
default: alert(data);
|
||
$("#btn-continue").removeAttr("disabled");
|
||
}
|
||
});
|
||
}
|
||
}
|
||
var search2 = function () {
|
||
var key = $("#text_key");
|
||
var state = $("#Drop_State");
|
||
var MorN = $("#Drop_MorN");
|
||
var Order = $("#Drop_Order");
|
||
/**var IFKD = 0;
|
||
if ($("#check_IFKD").prop("checked") == true) {
|
||
IFKD = 1;
|
||
}
|
||
var IFNoKD = 0;
|
||
if ($("#check_IFNoKD").prop("checked") == true) {
|
||
IFNoKD = 1;
|
||
}*/
|
||
location.href = "Admin_Member_List1.aspx?morn=" + MorN.val() + "&key=" + escape(key.val()) + "&state=" + escape(state.val()) + "&Order=" + Order.val(); //&IFKD=" + IFKD + "&IFNoKD=" + IFNoKD
|
||
|
||
};
|
||
function qingkong(t,id) {
|
||
var b = true;
|
||
var je = fTrim($("#umoney" + t + "_" + id).val());
|
||
if (je == "") {
|
||
b = false;
|
||
alert("修改金额不能为空!");
|
||
$("#umoney" + t + "_" + id).focus();
|
||
}
|
||
|
||
if (b) {
|
||
$("#btn" + t + "_" + id).attr("disabled", true);
|
||
$("#btn" + t + "_" + id).val("请稍候...");
|
||
$.ajaxSettings.async = true;
|
||
$.post("/Ajax.ashx", { action: 'qingkong', t: t, id: id, je: je }, function (data) {
|
||
switch (data) {
|
||
case "0":
|
||
alert("操作成功!");
|
||
$("#umoney" + t + "_" + id).val("");
|
||
break;
|
||
default: alert(data);
|
||
}
|
||
$("#btn" + t + "_" + id).removeAttr("disabled");
|
||
$("#btn" + t + "_" + id).val("请稍候...");
|
||
});
|
||
}
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<form runat="server">
|
||
<!-- RIBBON -->
|
||
<div id="ribbon">
|
||
|
||
<span class="ribbon-button-home"><img src="/images/home.png" /></span>
|
||
|
||
<!-- breadcrumb -->
|
||
<ol class="breadcrumb">
|
||
<li><a href="/gl.aspx" target="_top">主页</a></li>
|
||
<li><a href="/Member_Index.aspx">会员中心首页</a></li>
|
||
<li><a href="/Admin_Member_config.aspx">后台管理</a></li>
|
||
<li>普通会员列表</li>
|
||
</ol>
|
||
<!-- end breadcrumb -->
|
||
</div>
|
||
<!-- END RIBBON -->
|
||
<!-- MAIN CONTENT -->
|
||
<div style="opacity: 1;" id="content">
|
||
<div class="frontMain">
|
||
|
||
<h1 class="title01"><span class="semi-bold">普通会员列表</span></h1>
|
||
<div class="MainContent">
|
||
<table width="100%" border="0" class="data_table" cellspacing="1" cellpadding="0">
|
||
<tr>
|
||
<td>
|
||
会员搜索:
|
||
|
||
<asp:DropDownList ID="Drop_State" 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:DropDownList>
|
||
<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: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:DropDownList> <input id="text_key" value="<%=Request.QueryString["key"] %>" type="text" />
|
||
<input id="btn_search" type="button" value="搜索" onclick="search2()" class="abtn" />
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table width="100%" border="0" class="data_table" id="p_table" cellspacing="0" cellpadding="0">
|
||
|
||
|
||
<tr bgcolor="#f7f7f7">
|
||
<td><strong>选择</strong></td>
|
||
<td><strong>账号/姓名</strong></td>
|
||
|
||
<td><strong>现金</strong></td>
|
||
<td><strong>注册时间</strong></td>
|
||
<td><strong>最新验证码</strong></td>
|
||
<td style=" width:100px;"><strong>状态</strong></td>
|
||
<td><strong>操作</strong></td>
|
||
</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())%>">
|
||
|
||
<a href="Admin_Member_Info.aspx?ID=<%#Eval("ID") %>"><%#Eval("UserName")%>/<%#Eval("RealName")%></a>
|
||
</td>
|
||
|
||
<td><a href="Admin_Member_Commissionmx.aspx?MemberId=<%#Eval("ID") %>&t=6"><span id="umoney11_<%#Eval("ID") %>"><%#Convert.ToDouble(Eval("umoney39")).ToString("f2")%></span></a><br><%if (MemberJS.IndexOf("修改订单积分") != -1)
|
||
{ %><br><input type="button" onclick="showchongzhi(11, <%#Eval("ID") %>,'<%#Eval("UserName")%>(<%#Eval("RealName")%>)')" class="abtn" value="充值" /> <%} %></td>
|
||
|
||
|
||
|
||
|
||
|
||
<td><%#Eval("RegTime").ToString().Replace(" ", "<br>")%></td>
|
||
<td><%#Eval("PhoneNumber").ToString().Replace(" ", "<br>")%></td>
|
||
<td> <%#Eval("UserState").ToString() == "正常" ? "<font color=\"Green\">正常</font>" : "<font color=\"Red\">" + Eval("UserState") + "</font>"%>
|
||
</td>
|
||
<td>
|
||
|
||
|
||
<%if (MemberJS.IndexOf("删除会员") != -1)
|
||
{ %>
|
||
<br><a href="/admin_member_delete.aspx?ID=<%#Eval("ID") %>">删除此会员</a>
|
||
<%} %>
|
||
|
||
|
||
|
||
</td>
|
||
</tr>
|
||
</ItemTemplate>
|
||
</asp:Repeater>
|
||
<tr>
|
||
<td colspan="15" style="text-align:left">
|
||
操作:<span style=" cursor:pointer; color:Blue;" onclick="seclectall(0)">全选</span> <span style=" cursor:pointer; color:Blue;" onclick="seclectall(1)">取消所选</span>
|
||
将所选项
|
||
|
||
<asp:DropDownList ID="seclect_Drop" runat="server">
|
||
<asp:ListItem Value="0">锁定</asp:ListItem>
|
||
<asp:ListItem Value="1">解锁</asp:ListItem>
|
||
|
||
</asp:DropDownList> <asp:Button ID="Btn_Run" OnClick="Run_Click" runat="server" Text="执行" CssClass="abtn"></asp:Button>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<div style="text-align:center; height:40px; margin:10px 0;">
|
||
<webdiyer:AspNetPager ID="MyPager" AlwaysShow="true" runat="server"
|
||
FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
|
||
CustomInfoHTML="共 <font color="red">%RecordCount%</font> 条记录 当前 <font color="red">%CurrentPageIndex%/%PageCount%</font> 页"
|
||
PrevPageText="上一页" ShowPageIndexBox="Always" ShowCustomInfoSection="Left"
|
||
SubmitButtonText="Go" TextAfterPageIndexBox="页" ShowBoxThreshold="100"
|
||
CurrentPageButtonPosition="Center" ShowMoreButtons="False" PageIndexBoxType="DropDownList"
|
||
TextBeforePageIndexBox="转到" UrlPaging="True">
|
||
</webdiyer:AspNetPager>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<!-- 充值框(Modal) -->
|
||
<div class="modal fade" id="successModal" tabindex="-1" role="dialog" aria-labelledby="successLab" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title"><span id="modal-title">充值</span><span class="close" onclick="$('#successModal').modal('hide');">x</span></h5>
|
||
|
||
</div>
|
||
<div class="modal-body0">
|
||
<ul class="addinfo_box">
|
||
<li><label><font color="red">*</font>会员:</label><p><span id="txtUserName"></span></p></li>
|
||
<li><label><font color="red">*</font>修改金额:</label><p><input id="txtJE" type="text" /></p></li>
|
||
<li><label><font color="red">*</font>备注内容:</label><p><textarea id="txtBody">后台操作</textarea></li>
|
||
</ul>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default text-right" onclick="$('#successModal').modal('hide');" id="Button1">取消</button>
|
||
<button type="button" class="btn btn-success" id="btn-continue" onclick="onchongzhi()">确认</button>
|
||
<input id="txttype" type="hidden" />
|
||
<input id="txtid" type="hidden" />
|
||
</div>
|
||
</div><!-- /.modal-content -->
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</body></html>
|