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

236 lines
8.7 KiB
Plaintext

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_HongBao_JS.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_HongBao_JS" %>
<%@ 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 src="/Scripts/jquery-migrate-1.1.1.min.js" type="text/javascript"></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 src="Scripts/setdate.js" type="text/javascript"></script>
<script type="text/javascript">
var ifcj = 0;
function onFHJS() {
var b = true;
if (ifcj == 0) {
if (!confirm("您确定要结算吗")) {
b = false;
}
}
$("#abtn1").attr("disabled", true);
$("#abtn1").val("请稍候...");
$.post("/Ajax.ashx", { action: "onHBJS", ifcj: ifcj }, function (data) {
switch (data) {
case "0":
alert("操作成功!");
$("#abtn1").removeAttr("disabled");
$("#abtn1").val("立即结算");
location.href = location.href.toString();
break;
default:
if (data == "今日已结算过") {
if (confirm("今日已结算过,是否还要结算一次?")) {
ifcj = 1;
onFHJS();
} else {
$("#abtn1").removeAttr("disabled");
$("#abtn1").val("立即结算");
}
} else {
alert(data);
$("#abtn1").removeAttr("disabled");
$("#abtn1").val("立即结算");
}
}
});
}
function onSaveHBJSJE(){
$("#abtn3").attr("disabled", true);
$("#abtn3").val("请稍候...");
$.post("/Ajax.ashx", { action: "onSaveHHJSJE", FHMoney: $("#FHMoney").val() }, function (data) {
switch (data) {
case "0":
alert("保存成功!");
$("#abtn3").removeAttr("disabled");
$("#abtn3").val("保存");
location.href = location.href.toString();
break;
default: alert(data);
$("#abtn3").removeAttr("disabled");
$("#abtn3").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="0" cellpadding="0">
<tr>
<td class="font1">
红包池总额:<%=zjjc %>
</td>
</tr>
<tr>
<td class="font1">
昨日红包池:<%=zrhbcje %>
</td>
</tr>
<!-- <tr>
<td class="font1">
今日红包池:<%=jrhbcje %>
</td>
</tr>-->
<tr>
<td class="font1">
结算人数:<%=JQFHCount1 %>
</td>
</tr>
<tr>
<td class="font1">
结算份数:<%=jsfs %>
</td>
</tr>
<tr>
<td class="font1">
结算金额:<%=jsje %><!--<input type="button" id="abtn3" value="保存" onclick="onSaveHBJSJE()" Class="abtn" />-->
</td>
</tr>
<%if (config.FHEnable5 == "0")
{ %>
<tr>
<td class="font1">
<input type="button" id="abtn1" value="立即结算" onclick="onFHJS()" Class="abtn" />
</td>
</tr>
<%}
else
{ %>
<tr>
<td class="font1">
自动结算...
</td>
</tr>
<%} %>
</table>
<table width="100%" border="0" class="data_table" id="p_table" cellspacing="0" cellpadding="0">
<tr>
<td colspan="10">
</td>
</tr>
<tr bgcolor="#f7f7f7">
<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 style=" width:90px;"><%#Eval("addtime")%></td>
<td><%#Convert.ToDouble(Eval("zcount")).ToString()%></td>
<td><%#Convert.ToDouble(Eval("Totalmoney")).ToString("f2")%></td>
<td><a href="/Admin_Member_HongBao.aspx?t=-1&SJ=<%#Eval("addtime")%>&SJ2=<%#Eval("addtime")%>">查看详情</a></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr class="bottom_title">
<td >合计</td>
<td><asp:Label ID="Label_b1" runat="server"></asp:Label></td>
<td><asp:Label ID="Label_Totalmoney" runat="server"></asp:Label></td>
</tr>
<tr>
<td colspan="10"> <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></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body></html>