?? ratio.asp
字號:
<!--#include file="../Session.asp"-->
<%
if request("action")="save" then
if request("Glevel")="" then
response.Write "<script language=javascript>alert('請輸入會員級別數(shù)!');history.go(-1);</script>"
response.End
elseif IsNumeric(request("Glevel"))=False then
response.Write "<script language=javascript>alert('會員級別數(shù)只能是數(shù)字且是整數(shù)!');history.go(-1);</script>"
response.End
elseif request("Glevel")<1 then
response.Write "<script language=javascript>alert('會員級別數(shù)不能小于 1 !');history.go(-1);</script>"
response.End
elseif request("Glevel")>20 then
response.Write "<script language=javascript>alert('會員級別數(shù)不能大于20 !');history.go(-1);</script>"
response.End
else
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file=fso.opentextfile(server.mappath("../../Config/Config.asp"),1)
MB=file.readall
file.close
set file = nothing
Glevel2="Glevel="""&Request("Glevel")&""""
MB=replace(MB,"Glevel="""&Glevel&"""",Glevel2)
set file=fso.createtextfile(server.mappath("../../Config/Config.asp"),true)
file.write MB
file.close
set file = nothing
Response.Write("<script>alert(""修改成功"");location.href=""Ratio.asp"";</script>")
set fso = nothing
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="?action=save" method="post">
<table width="100%" align="center" cellpadding="0" cellspacing="2">
<tr>
<td height="50" align="center" class="tdstyle"><strong><font color="#000000" size="3">會員級數(shù)設(shè)置</font></strong></td>
</tr>
<tr>
<td height="70" align="center" class="tdstyle">會員級數(shù)
<input name="Glevel" type="text" class="input1" id="Glevel" value="<%=Glevel%>" size="3" maxlength="3">
<font color="#FF0000">*</font>請?zhí)顚憯?shù)字,且只能是大于“0”小于“20”的整數(shù)<br>
<input name="Submit1" type="submit" class="button" id="Submit1" value="確認(rèn)更改">
<input name="Submit3" type="button" class="button" id="Submit3" onClick="javascript:window.history.go(-1)" value="返回">
</td>
</tr>
<tr>
<td height="130" align="center" class="text"><font color="#FF3300" size="3"><strong>警告</strong></font><br>
<br>
<strong>(前提:如果商城中己經(jīng)添加商品)</strong><br>
1.設(shè)置會員級數(shù)后,要進(jìn)行折扣計算,所有商品的會員價將按您設(shè)定的折扣率重置!<br>
2.如某商戶不同意您設(shè)定的折扣率計算出的商品價格,請及時通知其修改商品價格!<br>
3.請執(zhí)行 <input name="B12" type="button" class="button" onclick="window.location='Rebate.asp'" value="折扣設(shè)置">和<input name="B12" type="button" class="button" onclick="window.location='RebateCount.asp'" value="折扣計算">或改回原來的會員級別數(shù)量,否則將導(dǎo)致系統(tǒng)異常!</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -