|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/826e9916/5874ee3e/ |
?#pragma checksum "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "55EB9143A74C9E9992728C0102927E6BEF09D0A6"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具天生。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且若是
// 沉新天生代码,这些更改将会迷失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP {
#line 332 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Linq;
#line default
#line hidden
#line 339 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Security;
#line default
#line hidden
#line 2 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
using System.Collections.Generic;
#line default
#line hidden
#line 334 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Text.RegularExpressions;
#line default
#line hidden
#line 342 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.WebControls;
#line default
#line hidden
#line 345 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Xml.Linq;
#line default
#line hidden
#line 341 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI;
#line default
#line hidden
#line 5 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
using DTcms.Common;
#line default
#line hidden
#line 326 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System;
#line default
#line hidden
#line 344 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.HtmlControls;
#line default
#line hidden
#line 335 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web;
#line default
#line hidden
#line 327 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Collections;
#line default
#line hidden
#line 331 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Configuration;
#line default
#line hidden
#line 330 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.ComponentModel.DataAnnotations;
#line default
#line hidden
#line 3 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
using System.Text;
#line default
#line hidden
#line 340 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Profile;
#line default
#line hidden
#line 336 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.Caching;
#line default
#line hidden
#line 4 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
using System.Data;
#line default
#line hidden
#line 343 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.UI.WebControls.WebParts;
#line default
#line hidden
#line 329 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Collections.Specialized;
#line default
#line hidden
#line 338 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.SessionState;
#line default
#line hidden
#line 337 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config"
using System.Web.DynamicData;
#line default
#line hidden
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
public class aspx_main_useramount_aspx : global::DTcms.Web.UI.Page.useramount, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
private static bool @__initialized;
private static object @__fileDependencies;
#line 7 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
override protected void OnInit(EventArgs e)
{
/*
This page was created by DTcms Template Engine at 2020-04-19 17:32:21.
本页面代码由DTcms模板引擎天生于 2020-04-19 17:32:21.
*/
base.OnInit(e);
StringBuilder templateBuilder = new StringBuilder(220000);
templateBuilder.Append("<!doctype html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title>账户余额 - ");
templateBuilder.Append(Utils.ObjectToStr(site.name));
templateBuilder.Append("</title>\r\n<meta name=\"keywords\" content=\"");
templateBuilder.Append(Utils.ObjectToStr(site.seo_keyword));
templateBuilder.Append("\" />\r\n<meta name=\"description\" content=\"");
templateBuilder.Append(Utils.ObjectToStr(site.seo_description));
templateBuilder.Append("\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/artdialog/ui-dialog.css\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/css/style.css\" />\r\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/jquery/jquery-1.11.2.min.js\"></");
templateBuilder.Append("script>\r\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/artdialog/dialog-plus-min.js\"></");
templateBuilder.Append("script>\r\n<script type=\"text/javascript\" charset=\"utf-8\" src=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/js/common.js\"></");
templateBuilder.Append("script>\r\n</head>\r\n\r\n<body>\r\n<!--页面头部-->\r\n");
templateBuilder.Append("<div class=\"header\">\r\n <div class=\"head-top\">\r\n <div class=\"section\">\r\n <div class=\"left-box\">\r\n <span>客服(QQ:2258784815)</span>\r\n\r\n </div>\r\n <script type=\"text/javascript\">\r\n $.ajax({\r\n type: \"POST\",\r\n url: \"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_check_login\",\r\n dataType: \"json\",\r\n timeout: 20000,\r\n success: function (data, textStatus) {\r\n if (data.status == 1) {\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("usercenter","exit"));
templateBuilder.Append("\">退出</a><strong>|</strong>');\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("usercenter","index"));
templateBuilder.Append("\">代理中心</a><strong>|</strong>');\r\n } else {\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("register"));
templateBuilder.Append("\">注册</a><strong>|</strong>');\r\n $(\"#menu\").prepend('<a href=\"");
templateBuilder.Append(linkurl("login"));
templateBuilder.Append("\">代理入口</a><strong>|</strong>');\r\n }\r\n }\r\n });\r\n </");
templateBuilder.Append("script>\r\n <div id=\"menu\" class=\"right-box\">\r\n <a href=\"http://wpa.qq.com/msgrd?v=3&uin=2258784815&site=qq&menu=yes\"><i class=\"iconfont icon-phone\"></i>联系918博天堂</a><strong>|</strong>\r\n <!--<a href=\"");
templateBuilder.Append(linkurl("feedback"));
templateBuilder.Append("\" title=\"反馈\"><i class=\"iconfont icon-comment\"></i>反馈</a>-->\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"head-nav\">\r\n <div class=\"section\">\r\n <div class=\"logo\">\r\n <a href=\"");
templateBuilder.Append(linkurl("index"));
templateBuilder.Append("\"><img src=\"");
templateBuilder.Append("/templates/main");
templateBuilder.Append("/images/logo2.png\" /></a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>");
templateBuilder.Append("\r\n<!--/页面头部-->\r\n\r\n<!--当前地位-->\r\n<div class=\"section\">\r\n <div class=\"location\">\r\n <span>当前地位:</span>\r\n <a href=\"");
templateBuilder.Append(linkurl("index"));
templateBuilder.Append("\">首页</a> >\r\n <a href=\"");
templateBuilder.Append(linkurl("usercenter","index"));
templateBuilder.Append("\">代理中心</a>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\">账户余额</a>\r\n </div>\r\n</div>\r\n<!--/当前地位-->\r\n\r\n<div class=\"section clearfix\">\r\n <!--页面左边-->\r\n ");
templateBuilder.Append("<script type=\"text/javascript\">\r\n //初始化附件窗口\r\n function addUserDialog(obj) {\r\n var objNum = arguments.length;\r\n var addDialog = top.dialog({\r\n id: 'renewDialogId',\r\n title: \"增长一个新的授权账号\",\r\n url: '/home/user/add_user_dialog.aspx',\r\n width: 360,\r\n height: 400,\r\n onclose: function () {\r\n var liHtml = this.returnValue; //获取返回值\r\n if (liHtml.length > 0) {\r\n var tipdialog = dialog(liHtml).show();\r\n setTimeout(function () {\r\n tipdialog.close().remove();// 关关提醒窗口\r\n location.replace('");
templateBuilder.Append(linkurl("userlicense","list"));
templateBuilder.Append("');// 刷新当前窗口\r\n }, 3000);\r\n }\r\n }\r\n }).showModal();\r\n //若是是批改状态,将对象传进去\r\n if (objNum == 1) {\r\n addDialog.data = obj;\r\n }\r\n }\r\n\r\n //初始化附件窗口\r\n function showBuyDialog(obj) {\r\n var objNum = arguments.length;\r\n var attachDialog = top.dialog({\r\n id: 'renewDialogId',\r\n title: \"采办新的群控授权 - 账户余额:¥");
templateBuilder.Append(userModel.amount.ToString());
templateBuilder.Append("元\",\r\n url: '/home/user/buy_license_dialog.aspx',\r\n width: 400,\r\n //height: 520,\r\n onclose: function () {\r\n var liHtml = this.returnValue; //获取返回值\r\n if (liHtml.length > 0) {\r\n var tipdialog = dialog(liHtml).show();\r\n setTimeout(function () {\r\n tipdialog.close().remove();// 关关提醒窗口\r\n location.replace('");
templateBuilder.Append(linkurl("userlicense","list"));
templateBuilder.Append("');// 刷新当前窗口\r\n }, 3000);\r\n }\r\n }\r\n }).showModal();\r\n //若是是批改状态,将对象传进去\r\n if (objNum == 1) {\r\n attachDialog.data = obj;\r\n }\r\n }\r\n\r\n</");
templateBuilder.Append("script>\r\n\r\n\r\n <div class=\"left-260\">\r\n <div class=\"bg-wrap\">\r\n <div class=\"avatar-box\">\r\n <a class=\"img-box\" href=\"");
templateBuilder.Append(linkurl("usercenter","avatar"));
templateBuilder.Append("\">\r\n ");
if (userModel.avatar!="")
{
templateBuilder.Append("\r\n <img src=\"");
templateBuilder.Append(Utils.ObjectToStr(userModel.avatar));
templateBuilder.Append("\" />\r\n ");
}
else
{
templateBuilder.Append("\r\n <i class=\"iconfont icon-user-full\"></i>\r\n ");
} //end for if
templateBuilder.Append("\r\n </a>\r\n <h3>\r\n ");
if (userModel.nick_name!="")
{
templateBuilder.Append("\r\n ");
templateBuilder.Append(Utils.ObjectToStr(userModel.nick_name));
templateBuilder.Append("\r\n ");
}
else
{
templateBuilder.Append("\r\n ");
templateBuilder.Append(Utils.ObjectToStr(userModel.user_name));
templateBuilder.Append("\r\n ");
} //end for if
templateBuilder.Append("\r\n </h3>\r\n <p><b>");
templateBuilder.Append(Utils.ObjectToStr(groupModel.title));
templateBuilder.Append("</b></p>\r\n </div>\r\n \r\n <div class=\"center-nav\">\r\n <ul>\r\n <li>\r\n <h2>\r\n <i class=\"iconfont icon-order\"></i>\r\n <span>授权治理</span>\r\n </h2>\r\n <div class=\"list\">\r\n <p><a href=\"");
templateBuilder.Append(linkurl("userlicense","list"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>我的群控授权列表</a></p>\r\n <p><a href=\"javascript:;\" onclick=\"showBuyDialog(this);\"><i class=\"iconfont icon-arrow-right\"></i>采办一个群控授权</a></p>\r\n <p><a href=\"javascript:;\" onclick=\"addUserDialog(this);\"><i class=\"iconfont icon-arrow-right\"></i>新开免费试用授权</a></p>\r\n </div>\r\n </li>\r\n <li>\r\n <h2>\r\n <i class=\"iconfont icon-amount\"></i>\r\n <span>余额治理</span>\r\n </h2>\r\n <div class=\"list\">\r\n <p><a href=\"");
templateBuilder.Append(linkurl("useramount","recharge"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>账户充值</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("useramount","log"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>充值纪录</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>出入明细</a></p>\r\n </div>\r\n </li>\r\n <li>\r\n <h2>\r\n <i class=\"iconfont icon-point\"></i>\r\n <span>积分治理</span>\r\n </h2>\r\n <div class=\"list\">\r\n <p><a href=\"");
templateBuilder.Append(linkurl("userpoint","convert"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>积分兑换</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("userpoint","list"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>积明显细</a></p>\r\n </div>\r\n </li>\r\n <li>\r\n <h2>\r\n <i class=\"iconfont icon-comment\"></i>\r\n <span>站内新闻</span>\r\n </h2>\r\n <div class=\"list\">\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usermessage","system"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>系统新闻</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usermessage","accept"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>收件箱</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usermessage","send"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>发件箱</a></p>\r\n </div>\r\n </li>\r\n <li>\r\n <h2>\r\n <i class=\"iconfont icon-user\"></i>\r\n <span>账户治理</span>\r\n </h2>\r\n <div class=\"list\">\r\n ");
if (userModel.id==1)
{
templateBuilder.Append("\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usercenter","invite"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>约请注册</a></p>\r\n ");
} //end for if
templateBuilder.Append("\r\n\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usercenter","proinfo"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>账户资料</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usercenter","avatar"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>头像设置</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usercenter","password"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>批改密码</a></p>\r\n <p><a href=\"");
templateBuilder.Append(linkurl("usercenter","exit"));
templateBuilder.Append("\"><i class=\"iconfont icon-arrow-right\"></i>退出登录</a></p>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n </div>\r\n </div>");
templateBuilder.Append("\r\n <!--/页面左边-->\r\n \r\n <!--页面左边-->\r\n <div class=\"right-auto\">\r\n <div class=\"bg-wrap\" style=\"min-height:765px;\">\r\n \r\n ");
if (action=="recharge")
{
templateBuilder.Append("\r\n <!--账户充值-->\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("css/validate.css\" />\r\n <script type=\"text/javascript\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/jquery/jquery.form.min.js\"></");
templateBuilder.Append("script>\r\n <script type=\"text/javascript\" src=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("scripts/jquery/Validform_v5.3.2_min.js\"></");
templateBuilder.Append("script>\r\n <script type=\"text/javascript\">\r\n $(function(){\r\n //初始化表单\r\n AjaxInitForm('#rechargeForm', '#btnSubmit', 0);\r\n });\r\n </");
templateBuilder.Append("script>\r\n <div class=\"sub-tit\">\r\n <a class=\"add\" href=\"javascript:history.go(-1);\"><i class=\"iconfont icon-reply\"></i>返回</a>\r\n <ul>\r\n <li class=\"selected\">\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","recharge"));
templateBuilder.Append("\">账户充值</a>\r\n </li>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","log"));
templateBuilder.Append("\">充值纪录</a>\r\n </li>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\">出入明细</a>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n <form id=\"rechargeForm\" name=\"rechargeForm\" url=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_amount_recharge&site_id=");
templateBuilder.Append(Utils.ObjectToStr(site.id));
templateBuilder.Append("\">\r\n <div class=\"form-box\">\r\n <dl class=\"form-group\">\r\n <dt>账户余额:</dt>\r\n <dd>\r\n 当前账户金额为:<b>¥");
templateBuilder.Append(Utils.ObjectToStr(userModel.amount));
templateBuilder.Append("</b> 元\r\n </dd>\r\n </dl>\r\n <dl class=\"form-group\">\r\n <dt>充值金额:</dt>\r\n <dd>\r\n <input name=\"order_amount\" id=\"order_amount\" type=\"text\" class=\"input code\" onkeydown=\"return checkNumber(event);\" datatype=\"n\" nullmsg=\"请输入金额\" sucmsg=\" \" /> 元\r\n </dd>\r\n </dl>\r\n <dl class=\"form-group\">\r\n <dt>支付方式:</dt>\r\n <dd>\r\n ");
DataTable payList = get_payment_list(0, "type=1 and payment_id>2 and site_id="+site.id);
templateBuilder.Append(" <!--获得一个DataTable-->\r\n ");
int dr__loop__id=0;
foreach(DataRow dr in payList.Rows)
{
dr__loop__id++;
if (dr__loop__id==(payList.Rows.Count))
{
templateBuilder.Append("\r\n <label class=\"mart\"><input name=\"payment_id\" type=\"radio\" value=\"" + Utils.ObjectToStr(dr["id"]) + "\" datatype=\"*\" sucmsg=\" \" /> " + Utils.ObjectToStr(dr["title"]) + "</label>\r\n ");
}
else
{
templateBuilder.Append("\r\n <label class=\"mart\"><input name=\"payment_id\" type=\"radio\" value=\"" + Utils.ObjectToStr(dr["id"]) + "\" /> " + Utils.ObjectToStr(dr["title"]) + "</label>\r\n ");
} //end for if
} //end for if
templateBuilder.Append("\r\n </dd>\r\n </dl>\r\n <dl class=\"form-group\">\r\n <dd>\r\n <input id=\"btnSubmit\" name=\"btnSubmit\" type=\"submit\" value=\"确认充值\" class=\"submit\" />\r\n </dd>\r\n </dl>\r\n </div>\r\n </form>\r\n <!--账户充值-->\r\n \r\n ");
}
else if (action=="log")
{
templateBuilder.Append("\r\n <!--充值纪录-->\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("css/pagination.css\" />\r\n <script type=\"text/javascript\">\r\n function ExecPostBack(checkValue) {\r\n if (arguments.length == 1) {\r\n ExecDelete('");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_recharge_delete', checkValue, '#turl');\r\n }else{\r\n var valueArr = '';\r\n $(\"input[name='checkId']:checked\").each(function(i){\r\n valueArr += $(this).val();\r\n if(i < $(\"input[name='checkId']:checked\").length - 1){\r\n valueArr += \",\"\r\n }\r\n });\r\n ExecDelete('");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_recharge_delete', valueArr, '#turl');\r\n }\r\n }\r\n </");
templateBuilder.Append("script>\r\n \r\n <div class=\"sub-tit\">\r\n <a class=\"add\" href=\"javascript:history.go(-1);\"><i class=\"iconfont icon-reply\"></i>返回</a>\r\n <ul>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","recharge"));
templateBuilder.Append("\">账户充值</a>\r\n </li>\r\n <li class=\"selected\">\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","log"));
templateBuilder.Append("\">充值纪录</a>\r\n </li>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\">出入明细</a>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n <div class=\"table-wrap\">\r\n <table width=\"100%\" class=\"mtable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tbody>\r\n ");
DataTable rechargeList = get_user_recharge_list(10, page, "user_id="+userModel.id, out totalcount);
templateBuilder.Append(" <!--获得一个DataTable-->\r\n ");
string pagelist = get_page_link(10, page, totalcount, "useramount", action, "__id__");
templateBuilder.Append(" <!--获得分页页码列表-->\r\n ");
foreach(DataRow dr in rechargeList.Rows)
{
templateBuilder.Append("\r\n <tr>\r\n <td width=\"20\" align=\"center\">\r\n <input name=\"checkId\" class=\"checkall\" type=\"checkbox\" value=\"" + Utils.ObjectToStr(dr["id"]) + "\" >\r\n </td>\r\n <td>" + Utils.ObjectToStr(dr["add_time"]) + "</td>\r\n <td width=\"140\">" + Utils.ObjectToStr(dr["recharge_no"]) + "</td>\r\n <td width=\"80\">");
templateBuilder.Append(get_payment_title(Utils.StrToInt(Utils.ObjectToStr(dr["payment_id"]), 0)).ToString());
templateBuilder.Append("</td>\r\n <td width=\"80\">¥" + Utils.ObjectToStr(dr["amount"]) + "</td>\r\n <td width=\"50\">\r\n ");
if (Utils.StrToInt(Utils.ObjectToStr(dr["status"]), 0)>0)
{
templateBuilder.Append("\r\n 已实现\r\n ");
}
else
{
templateBuilder.Append("\r\n 未实现\r\n ");
} //end for if
templateBuilder.Append("\r\n </td>\r\n <td width=\"30\">\r\n <a onclick=\"ExecPostBack('" + Utils.ObjectToStr(dr["id"]) + "');\" href=\"javascript:;\">删除</a>\r\n </td>\r\n </tr>\r\n ");
} //end for if
if (rechargeList.Rows.Count==0)
{
templateBuilder.Append("\r\n <tr><td align=\"center\">暂无充值纪录...</td></tr>\r\n ");
} //end for if
templateBuilder.Append("\r\n </tbody>\r\n </table>\r\n \r\n <div class=\"page-foot\">\r\n <div class=\"flickr right\">");
templateBuilder.Append(Utils.ObjectToStr(pagelist));
templateBuilder.Append("</div><!--搁置页码列表-->\r\n <div class=\"btn-box\">\r\n <a onclick=\"checkAll(this);\" href=\"javascript:;\">全选</a>\r\n <a onclick=\"ExecPostBack();\" href=\"javascript:;\">删除</a>\r\n </div>\r\n </div>\r\n </div>\r\n <input id=\"turl\" type=\"hidden\" value=\"");
templateBuilder.Append(linkurl("useramount","log"));
templateBuilder.Append("\" /><!--存在跳转的URL值-->\r\n <!--/充值纪录-->\r\n \r\n ");
}
else if (action=="list")
{
templateBuilder.Append("\r\n <!--出入明细-->\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("css/pagination.css\" />\r\n <script type=\"text/javascript\">\r\n function ExecPostBack(checkValue) {\r\n if (arguments.length == 1) {\r\n ExecDelete('");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_amount_delete', checkValue, '#turl');\r\n }else{\r\n var valueArr = '';\r\n $(\"input[name='checkId']:checked\").each(function(i){\r\n valueArr += $(this).val();\r\n if(i < $(\"input[name='checkId']:checked\").length - 1){\r\n valueArr += \",\"\r\n }\r\n });\r\n ExecDelete('");
templateBuilder.Append(Utils.ObjectToStr(config.webpath));
templateBuilder.Append("tools/submit_ajax.ashx?action=user_amount_delete', valueArr, '#turl');\r\n }\r\n }\r\n </");
templateBuilder.Append("script>\r\n \r\n <div class=\"sub-tit\">\r\n <a class=\"add\" href=\"javascript:history.go(-1);\"><i class=\"iconfont icon-reply\"></i>返回</a>\r\n <ul>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","recharge"));
templateBuilder.Append("\">账户充值</a>\r\n </li>\r\n <li>\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","log"));
templateBuilder.Append("\">充值纪录</a>\r\n </li>\r\n <li class=\"selected\">\r\n <a href=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\">出入明细</a>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n <div class=\"table-wrap\">\r\n <table width=\"100%\" class=\"mtable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tbody>\r\n ");
DataTable amountList = get_user_amount_list(10, page, "user_id="+userModel.id, out totalcount);
templateBuilder.Append(" <!--获得一个DataTable-->\r\n ");
string pagelist = get_page_link(10, page, totalcount, "useramount", action, "__id__");
templateBuilder.Append(" <!--获得分页页码列表-->\r\n ");
foreach(DataRow dr in amountList.Rows)
{
templateBuilder.Append("\r\n <tr>\r\n <td width=\"20\" align=\"center\">\r\n <input name=\"checkId\" class=\"checkall\" type=\"checkbox\" value=\"" + Utils.ObjectToStr(dr["id"]) + "\" >\r\n </td>\r\n <td width=\"150\">" + Utils.ObjectToStr(dr["add_time"]) + "</td>\r\n <td>" + Utils.ObjectToStr(dr["remark"]) + "</td>\r\n <td width=\"50\">\r\n ");
if (Utils.StrToInt(Utils.ObjectToStr(dr["value"]), 0)>0)
{
templateBuilder.Append("\r\n +" + Utils.ObjectToStr(dr["value"]) + "\r\n ");
}
else
{
templateBuilder.Append("\r\n " + Utils.ObjectToStr(dr["value"]) + "\r\n ");
} //end for if
templateBuilder.Append("\r\n </td>\r\n <td width=\"30\">\r\n <a onclick=\"ExecPostBack('" + Utils.ObjectToStr(dr["id"]) + "');\" href=\"javascript:;\">删除</a>\r\n </td>\r\n </tr>\r\n ");
} //end for if
if (amountList.Rows.Count==0)
{
templateBuilder.Append("\r\n <tr><td align=\"center\">暂无消费明细...</td></tr>\r\n ");
} //end for if
templateBuilder.Append("\r\n </tbody>\r\n </table>\r\n \r\n <div class=\"page-foot\">\r\n <div class=\"flickr right\">");
templateBuilder.Append(Utils.ObjectToStr(pagelist));
templateBuilder.Append("</div><!--搁置页码列表-->\r\n <div class=\"btn-box\">\r\n <a onclick=\"checkAll(this);\" href=\"javascript:;\">全选</a>\r\n <a onclick=\"ExecPostBack();\" href=\"javascript:;\">删除</a>\r\n </div>\r\n </div>\r\n </div>\r\n <input id=\"turl\" type=\"hidden\" value=\"");
templateBuilder.Append(linkurl("useramount","list"));
templateBuilder.Append("\" /><!--存在跳转的URL值-->\r\n <!--出入明细-->\r\n ");
} //end for if
templateBuilder.Append("\r\n \r\n </div>\r\n </div>\r\n <!--/页面左边-->\r\n</div>\r\n\r\n<!--页面底部-->\r\n");
templateBuilder.Append("<div class=\"footer\">\r\n <div class=\"section\">\r\n <div class=\"foot-box\" style=\"text-align:center;color:gray\">\r\n <p class=\"gray\">");
templateBuilder.Append(Utils.ObjectToStr(site.copyright));
templateBuilder.Append(" ");
templateBuilder.Append(Utils.ObjectToStr(site.crod));
templateBuilder.Append("</p>\r\n </div>\r\n </div>\r\n</div>");
templateBuilder.Append("\r\n<!--/页面底部-->\r\n</body>\r\n</html>");
Response.Write(templateBuilder.ToString());
}
#line default
#line hidden
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public aspx_main_useramount_aspx() {
string[] dependencies;
((global::DTcms.Web.UI.Page.useramount)(this)).AppRelativeVirtualPath = "~/aspx/main/useramount.aspx";
if ((global::ASP.aspx_main_useramount_aspx.@__initialized == false)) {
dependencies = new string[1];
dependencies[0] = "~/aspx/main/useramount.aspx";
global::ASP.aspx_main_useramount_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
global::ASP.aspx_main_useramount_aspx.@__initialized = true;
}
this.Server.ScriptTimeout = 30000000;
}
protected System.Web.Profile.DefaultProfile Profile {
get {
return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
}
}
protected System.Web.HttpApplication ApplicationInstance {
get {
return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void @__BuildControlTree(aspx_main_useramount_aspx @__ctrl) {
#line 1 "D:\wwwroot\west202004\wwwroot\aspx\main\useramount.aspx"
this.InitializeCulture();
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void FrameworkInitialize() {
base.FrameworkInitialize();
this.@__BuildControlTree(this);
this.AddWrappedFileDependencies(global::ASP.aspx_main_useramount_aspx.@__fileDependencies);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override int GetTypeHashCode() {
return 5381;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override void ProcessRequest(System.Web.HttpContext context) {
base.ProcessRequest(context);
}
}
}