?? config.asp
字號:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<html>
<head>
<title><%=dianming%> - 基本信息設置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<%
if fla5="0" then
%>
<br><center><font color="#FF0000">你不具備此權限,請與管理員聯系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<form name="form1">
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21"> <img src="../Images/ico/ico00.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle"><font size="+1"><strong> 基本信息設置</strong></font></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30" style="color:#ffffff;font-size:14px" colspan="2"><img src="../images/add.gif" border="0" hspace="2" align="absmiddle">基本信息設置</th>
</tr>
<tr bgcolor="#ffffff">
<td width="28%" height="30" align="right"><b>專賣店名稱:</b> </td>
<td width="72%">
<input type="text" name="dianming" style="width:300px" value="<%=dianming%>"></td>
</tr>
<tr class="a3">
<td width="28%" height="30" align="right"><b>介紹一個會員加多少積分:</b> </td>
<td width="72%">
<input type="text" name="jieshaojifen" style="width:200px" value="<%=jieshaojifen%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯數字)</font> </td>
</tr>
<tr bgcolor="#ffffff">
<td width="28%" height="30" align="right"><b>續會加多少積分:</b> </td>
<td width="72%">
<input type="text" name="xuhuijifen" style="width:200px" value="<%=xuhuijifen%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
<font color="#666666">(只能是阿拉伯數字)</font></td>
</tr>
<tr class="a3">
<td width="28%" height="30" align="right"><b>是否啟用庫存報警功能:</b> </td>
<td width="72%">
<input type="checkbox" name="baojin"<%if baojin="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr class="a3">
<td width="28%" height="30" align="right"><b>是否啟用會員生日報警功能:</b> </td>
<td width="72%">
<input type="checkbox" name="baojin2"<%if baojin2="yes" then%> checked="checked"<%end if%> value="yes"></td>
</tr>
<tr class="a3">
<td height="30"> </td>
<td>
<input name="submit" type="submit" value=" 確 認 ">
<input type="hidden" name="hid1" value="ok">
<input name="reset" type="reset" value=" 重新填寫 ">
</td>
</tr>
</table>
</form>
<%
else
nowdianming=request("dianming")
nowjieshaojifen=request("jieshaojifen")
if nowjieshaojifen="" then
nowjieshaojifen=0
end if
nowxuhuijifen=request("xuhuijifen")
if nowxuhuijifen="" then
nowxuhuijifen=0
end if
nowbaojin=request("baojin")
if nowbaojin="" then
nowbaojin="no"
end if
nowbaojin2=request("baojin2")
if nowbaojin2="" then
nowbaojin2="no"
end if
sql="update config set dianming='"&nowdianming&"',jieshaojifen="&nowjieshaojifen&",xuhuijifen="&nowxuhuijifen&",baojin='"&nowbaojin&"',baojin2='"&nowbaojin2&"'"
conn.execute(sql)
%>
<script language="javascript">
alert("基本信息設置成功!")
window.location.href="config.asp"
</script>
<%
end if
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -