Files
g.hnyhua.cn/Mtxfw.VipSite/Admin_Member_List_HongBao.aspx
2026-02-07 15:48:27 +08:00

307 lines
13 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_List_HongBao.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_List_HongBao" %>
<%@ 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">
<style type="text/css">
.data_table td input[type="text"]
{
width:100px;
text-align:center;
}
</style>
<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 == 1) {
$("#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 == 5) {
$("#modal-title").html("修改产品券");
} else if (t == 6) {
$("#modal-title").html("修改溯源通");
} else if (t == 7) {
$("#modal-title").html("修改烧伤值");
} else if (t == 11) {
$("#modal-title").html("修改收益额度");
} else if (t == 12) {
$("#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 uLevel = $("#Drop_uLevel");
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_list_HongBao.aspx?morn=" + MorN.val() + "&key=" + escape(key.val()) + "&state=" + escape(state.val()) + "&Order=" + Order.val(); // + "&uLevel=" + escape(uLevel.val()) + "&IFKD=" + IFKD + "&IFNoKD=" + IFNoKD
};
function onGoToMemberId(id) {
$("#GoToMemberId").val("登录中...");
$("#GoToMemberId").attr("disabled", true);
$.post("/Ajax.ashx", { action: 'GoToMemberId', id: id }, function (data) {
switch (data) {
case "0":
window.open('/Member.aspx');
$("#GoToMemberId").val("登录会员后台");
$("#GoToMemberId").removeAttr("disabled");
break;
default: alert(data);
$("#GoToMemberId").val("登录会员后台");
$("#GoToMemberId").removeAttr("disabled");
}
});
}
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-alignment"> <span id="refresh" class="btn btn-ribbon" data-title="refresh" rel="tooltip" data-placement="bottom" data-original-title="&lt;i class='text-warning fa fa-warning'&gt;&lt;/i&gt; 注意!这会重新设置小工具的排位." data-html="true" data-reset-msg="刷新网站?"><i class="fa fa-refresh"></i></span> </span>
<!-- breadcrumb -->
<ol class="breadcrumb">
<li><a href="/" 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>
用户名、姓名:<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">
<% if (MemberJS.IndexOf("高级管理功能") != -1)
{ %>
<td><strong>选择</strong></td>
<%} %>
<td><strong>账号/姓名</strong></td>
<td><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\"'"%>>
<% if (MemberJS.IndexOf("高级管理功能") != -1)
{ %>
<td><asp:checkbox ID="checka" runat="server" CssClass='<%#Eval("ID") %>'></asp:checkbox></td>
<%} %>
<td>
<a href="Admin_Member_Info<%=MemberJS.IndexOf("修改会员资料") != -1?"":"2" %>.aspx?ID=<%#Eval("ID") %>"><%#Eval("UserName")%><br><%#Eval("RealName")%></a>
</td>
<td><a href="Admin_Member_Commissionmx.aspx?t=12&MemberId=<%#Eval("ID") %>"><span id="umoney12_<%#Eval("ID") %>"><%#(Convert.ToDouble(Eval("umoney41"))).ToString("f2")%></span></a> <%if (MemberJS.IndexOf("修改红包额度") != -1)
{ %> <br><input type="button" onclick="showchongzhi(12, <%#Eval("ID") %>,'<%#Eval("UserName")%>(<%#Eval("RealName")%>)')" class="abtn" value="修改" />
<%} %>
</td>
<td><asp:TextBox ID="txtLinkID" runat="server" Text='<%#Eval("uLevel22")%>' /></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<% if (MemberJS.IndexOf("高级管理功能") != -1)
{ %>
<tr>
<td colspan="16" 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="0">修改领红包排序</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="共 &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>
</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>