193 lines
7.7 KiB
Plaintext
193 lines
7.7 KiB
Plaintext
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Admin_Member_JJXF.aspx.cs" Inherits="Mtxfw.VipSite.Admin_Member_JJXF" %>
|
||
<%@ 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 type="text/javascript">
|
||
|
||
var search2 = function () {
|
||
var key = $("#text_key");
|
||
location.href = "admin_member_list.aspx?key=" + escape(key.val());
|
||
|
||
};
|
||
function onqysf() {
|
||
$("#abtn1").attr("disabled", true);
|
||
$("#abtn1").val("请稍候...");
|
||
$.post("/Ajax.ashx", { action: 'onqysf', bfb: $("#txtbfb").val() }, function (data) {
|
||
switch (data) {
|
||
case "0":
|
||
alert("操作成功!");
|
||
$("#abtn1").removeAttr("disabled");
|
||
$("#abtn1").val("开始释放");
|
||
break;
|
||
default: alert(data);
|
||
$("#abtn1").removeAttr("disabled");
|
||
$("#abtn1").val("开始释放");
|
||
}
|
||
});
|
||
}
|
||
function onmfje() {
|
||
var zyj = <%=jjcze %>;
|
||
var bfb=$("#txtbfb").val();
|
||
if(bfb!=""&&zyj>0){
|
||
var mfje = changeTwoDecimal_f((zyj * bfb / 100) / (zyj / 800));
|
||
$("#mfje").html(mfje);
|
||
$("#zgxf").html(changeTwoDecimal_f(mfje*<%=mzfs %>));
|
||
$("#bcbl").html(changeTwoDecimal_f((<%=zjj %>+mfje*<%=mzfs %>)/<%=zzyj %>*100));
|
||
}
|
||
}
|
||
function changeTwoDecimal_f(x) {
|
||
var f_x = parseFloat(x);
|
||
if (isNaN(f_x)) {
|
||
alert('function:changeTwoDecimal->parameter error');
|
||
return false;
|
||
}
|
||
var f_x = Math.round(x * 100) / 100;
|
||
var s_x = f_x.toString();
|
||
var pos_decimal = s_x.indexOf('.');
|
||
if (pos_decimal < 0) {
|
||
pos_decimal = s_x.length;
|
||
s_x += '.';
|
||
}
|
||
while (s_x.length <= pos_decimal + 2) {
|
||
s_x += '0';
|
||
}
|
||
return s_x;
|
||
}
|
||
|
||
</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="<i class='text-warning fa fa-warning'></i> 注意!这会重新设置小工具的排位." 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-->
|
||
<tr>
|
||
|
||
<td>
|
||
奖金池总额:<%=jjcze %>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
|
||
<td>
|
||
释放份数<%=mzfs %>, 释放比例<input id="txtbfb" value="3" style=" width:100px;" onblur="onmfje()" type="text" />%,每份<span id="mfje"></span>, 总共释放<span id="zgxf"></span> 总拨出比例<span id="bcbl"></span>% <input id="abtn1" class="abtn" onclick="onqysf()" value="开始释放" type="button" />
|
||
|
||
</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><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>第<%#Convert.ToDouble(Eval("week")) - 10%>周</td>
|
||
<td><%#Eval("mintime")%>至<%#Eval("maxtime")%></td>
|
||
<td><%#Convert.ToDouble(Eval("zumoney21")).ToString()%></td>
|
||
|
||
<td><%#(Eval("blmoney").ToString()==""?0.00:Convert.ToDouble(Eval("blmoney"))).ToString()%>%</td>
|
||
<td><%#((Convert.ToDouble(Eval("zumoney21")) * (Eval("blmoney").ToString() == "" ? 0.00 : Convert.ToDouble(Eval("blmoney"))) / 100) / (Convert.ToDouble(Eval("zumoney21")) / 800)).ToString()%></td>
|
||
<td><%#Eval("fs")%></td>
|
||
<td><%#(((Convert.ToDouble(Eval("zumoney21")) * (Eval("blmoney").ToString() == "" ? 0.00 : Convert.ToDouble(Eval("blmoney"))) / 100) / (Convert.ToDouble(Eval("zumoney21")) / 800)) * Convert.ToDouble(Eval("fs").ToString() == "" ? "0.00" : Eval("fs").ToString())).ToString()%></td>
|
||
</tr>
|
||
</ItemTemplate>
|
||
|
||
</asp:Repeater>
|
||
<tr>
|
||
<td colspan="2"><strong>合计</strong></td>
|
||
<td><strong><%=zzyj %></strong></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td><strong><%=zfs %></strong></td>
|
||
<td><strong><%=zje %></strong></td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<script> onmfje();</script>
|
||
</form>
|
||
</body></html>
|