<!--#include file="../inc/DAL.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../inc/page.asp"-->
<!--#include file="Check.asp"-->
<%
Dim ConfigRS
Set ConfigRS=Server.CreateObject( "ADODB.Recordset" )
if request.form("Method")="AddGift" then
    ConfigRS.OPEN "select * from [i_User_Gift] where [i_User_Gift_ID]="&request.form("GID") , DB_CONN , 1 , 3
    ConfigRS("i_User_Gift_Class")=request.form("Gift_Class")
    ConfigRS("i_User_Gift_Name")=vbsEscape(request.form("Gift_Name"))
    ConfigRS("i_User_Gift_Price")=request.form("Gift_Price")
    ConfigRS("i_User_Gift_ShowType")=request.form("Gift_ShowType")
    ConfigRS("i_User_Gift_PlayTime")=request.form("Gift_PlayTime")
    ConfigRS("i_User_Gift_SwfUrl")=request.form("Gift_SwfUrl")
    ConfigRS("i_User_Gift_Enable")=request.form("Gift_Top")
    ConfigRS("i_User_Gift_Sort")=request.form("Gift_Sort")
    ConfigRS.update()
    RW "<script>location.href='Gift_Manage.asp?t="&request("t")&"';</script>":response.end()
end if

Set ConfigRS=DB_CONN.EXECUTE("select * from [i_User_Gift] where [i_User_Gift_ID]="&request("Gift_ID"))

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ImChat v1.5 Manage System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/layoutContent.css" rel="stylesheet" type="text/css" />
<link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
<link href="/i/v1/css/level.css" rel="stylesheet" type="text/css" />
<style>
.JSTB{border:#ccc solid 1px;border-right:none;border-bottom:none;margin-top:20px;}
.JSTB th,.JSTB td{border-bottom:#ccc solid 1px; border-right:#ccc solid 1px;}
</style>
</head>
<body>
<div class="contentcontainer">
    <div class="headings alt">
        <h2>礼物编辑&nbsp;&nbsp;&nbsp;<a href="javascript:history.back();" style="text-decoration:none;">返回</a>&nbsp;&nbsp;&nbsp;<a href="javascript:\\;" onclick="location.reload();" style="text-decoration:none;">刷新</a></h2>
    </div>
    <div class="contentbox">
        
        <form action="#" method="post" >
            <table class="CB" width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
                    <td width="350">
                        <label for="Gift_Class"><strong>礼物Css样式名:</strong></label>
                        <input type="text" id="Gift_Class" name="Gift_Class" class="inputbox" value="<%=ConfigRS("i_User_Gift_Class")%>"/>
                    </td>
                    <td>
                        <label for="Gift_Name"><strong>礼物名称:</strong></label>
                        <input type="text" id="Gift_Name" name="Gift_Name" class="inputbox" value="<%=ConfigRS("i_User_Gift_Name")%>"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Gift_Price"><strong>礼物价格:</strong></label>
                        <input type="text" id="Gift_Price" name="Gift_Price" class="inputbox" value="<%=ConfigRS("i_User_Gift_Price")%>"/>
                    </td>
                    <td width="350">
                        <label for="Gift_Top"><strong>是否推荐:</strong></label>
                        <select id="Gift_Top" name="Gift_Top">
                            <option value="0" <%if Cstr(ConfigRS("i_User_Gift_Enable"))="0" then RW "selected=""selected"""%>>否</option>
                            <option value="1" <%if Cstr(ConfigRS("i_User_Gift_Enable"))="1" then RW "selected=""selected"""%>>是</option>
                        </select>
                    </td>
                </tr>
				<tr>
                    <td width="350">
                        <label for="Gift_ShowType"><strong>展示类型(数字:0,1,2,3):</strong></label>
                        <input type="text" id="Gift_ShowType" name="Gift_ShowType" class="inputbox" value="<%=ConfigRS("i_User_Gift_ShowType")%>"/>
                    </td>
                    <td>
                        <label for="Gift_PlayTime"><strong>播放时长(数字):</strong></label>
                        <input type="text" id="Gift_PlayTime" name="Gift_PlayTime" class="inputbox" value="<%=ConfigRS("i_User_Gift_PlayTime")%>"/>
                    </td>
                </tr>
                <tr>
					<td colspan="2">
                        <label for="Gift_SwfUrl"><strong>动画文件(swf):</strong></label>
                        <input type="text" id="Gift_SwfUrl" name="Gift_SwfUrl" class="inputbox" value="<%=ConfigRS("i_User_Gift_SwfUrl")%>"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Gift_Sort"><strong>排序(数字):</strong></label>
                        <input type="text" id="Gift_Sort" name="Gift_Sort" class="inputbox" value="<%=ConfigRS("i_User_Gift_Sort")%>"/>
                    </td>
					<td>
						<img class="<%=ConfigRS("i_User_Gift_Class")%> gift-icon" src="/images/pixel.gif">
					</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="hidden" value="<%=request("Gift_ID")%>" name="GID"/>
                        <input type="hidden" value="AddGift" name="Method"/>
                        <input type="submit" value="修改" class="btn" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>
</html>
