<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--
'##################################################################                                                                 
'★         web08.net - 威博购物系统                                              
'★  版权所有: web08.net                                                                                                       
'★  程序制作: 威博网络技术公司                                     
'★           email:web08net@hotmail.com                           
'★            Q Q :645095280,475980829
'★	       电话:021-55520018                                                                                                         
'★  相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html
'★            [支持论坛] http://bbs.web08.net/                                                                                     
'★  主页地址: http://www.web08.net/  
'★		http://www.021web.com.cn/			                                                                 
'###################################################################
-->
<html>
<head>
<title>商城系统-威博单用户商城后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>

<!--#include file=../include2.asp-->
<script language="JavaScript" type="text/JavaScript">
function uppic(model,frmname) 
{
  window.open("../upload/upload.asp?uppath=gifts&ProdId="+model+"&frmname="+frmname,"upload", "width=550, height=280, resizable=no,menubar=1,scrollbars=1")
}
</script>
<script language="javascript">

function regInput(obj, reg, inputStr)
{
	var docSel	= document.selection.createRange()
	if (docSel.parentElement().tagName != "INPUT")	return false
	oSel = docSel.duplicate()
	oSel.text = ""
	var srcRange	= obj.createTextRange()
	oSel.setEndPoint("StartToStart", srcRange)
	var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
	return reg.test(str)
}
</script>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background" onLoad="LoadFinish()">
<!-- #include file="../loading2.asp" -->
<center>
<!--#include file="../mall/web_mall_include.asp"-->
<div class="div-top">
<span class="right-span"><a href="javascript:history.go(-1);"><font color="#990000">返回礼品管理</font></a>&nbsp;&nbsp;</span>
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - <%#@~^GQAAAA==r6P.;!+/D`r2k9Jb'rJ~O4+xGggAAA==^#~@%>添加礼品<%#@~^BAAAAA==n^/nqQEAAA==^#~@%>编辑礼品<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> </span>
</div>
<div class="tab-div">
<div id="mytips" style="position:absolute;border:1px solid #cccccc;padding:0px 3px;color:#ff0000;display:none;height:20px;line-height:20px;background:#fcfcfc"></div>
<%#@~^GQAAAA==r6P.;!+/D`r2k9Jb'rJ~O4+xGggAAA==^#~@%>

<form action="wactivesave.asp?action=addgift" method="post" name="myform">   
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
  <td height="10" align="center" bgcolor="#FFFFFF">&nbsp;</td>
  <td height="10" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="25" align="right" bgcolor="#FFFFFF">礼品名称：</td>
<td width="80%" bgcolor="#FFFFFF"><label>
<input name="gname" type="text" id="gname" maxlength="25">
</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品价值：</td>
<td bgcolor="#FFFFFF">￥<input name="gmoney" type="text" id="gmoney" maxlength="8" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this,	/^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品品牌：</td>
<td bgcolor="#FFFFFF"><input name="brand" type="text" id="brand" maxlength="25"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品小图：</td>
<td bgcolor="#FFFFFF"><input name="smallphoto" type="text" id="smallphoto" size="50" maxlength="25">
<label>
<input type="button" name="Submit6" value="上传小图片" onClick="javascript:uppic('one','smallphoto');">
</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品大图：</td>
<td bgcolor="#FFFFFF"><input name="bigphoto" type="text" id="bigphoto" size="50" maxlength="25">
<label>
<input type="button" name="Submit5" value="上传大图片" onClick="javascript:uppic('one','bigphoto');">
</label></td>
</tr>

<tr  style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">允许兑换等级：</td>
<td bgcolor="#FFFFFF"><input name="memlevel" type="radio" value="0" onClick="showstyle(0)" checked>所有注册会员
<input name="memlevel" type="radio" value="1" onClick="showstyle(3)"> 等级会员	</td>
</tr>
<tr id="tshow" style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF"><select name="uclass"  multiple id="uclass" style="width:40%">
<%#@~^bAAAAA==^KxU94@#@&/Y,./|mslk/x^Kxxcn6mEDncJk+^+^Y~M,0.Ws~4m;k+D/sm/dPK.9+.,4HPk9P9n/1Jb@#@&kW~M/{1slk/RGWPDtx~fCQAAA==^#~@%>
<option value="">会员等级</option>
<%#@~^IgAAAA==n^/n@#@&9WPStbs+,xGY,Ddm1VlkdRW0,PwsAAA==^#~@%>
<option value="<%=#@~^DgAAAA==.k{^^lk/`rk9E#vAQAAA==^#~@%>" ><%=#@~^GQAAAA==OMkhvDk{m^lkd`rj/{glhnr##dAgAAA==^#~@%></option>
<%#@~^OQAAAA==.k{^^lk/RsW7nx6O@#@&VGGa@#@&Md{1Vlkd m^Wk+@#@&nU9Pr0@#@&2BAAAA==^#~@%>
</select></td>
</tr>
<tr style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">兑换方式：</td>
<td bgcolor="#FFFFFF"><p>

<label>
<input type="radio" name="rg" value="1" onClick="tscore.style.display='none';bf.style.display='';">
优惠券兑换</label>

<label>
<input type="radio" name="rg" value="2" onClick="tscore.style.display='';bf.style.display='none';">
积分兑换</label>
<label>
<input type="radio" name="rg" value="3" onClick="tscore.style.display='';bf.style.display='';" checked>
优惠券/积分兑换</label>
<br>
</p></td>
</tr>
<tr  id="tscore" style="display:none" >
<td height="25" align="right" bgcolor="#FFFFFF">兑换积分：</td>
<td bgcolor="#FFFFFF"><input name="score" type="text" id="score" ONKEYPRESS="event.returnValue=IsDigit();" maxlength="5">
兑换该礼品所需的积分</td>
</tr>

<tr id="bf" style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">优惠券面值：</td>
<td bgcolor="#FFFFFF"><label>
<input name="BenefitMoney" type="text" id="BenefitMoney" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this,	/^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))" maxlength="8">
&nbsp;当面值≥该金额时 才允许兑换</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品模版：</td>
<td bgcolor="#FFFFFF"><input name="Templet" type="text" id="Templet" size="50" value="<%=#@~^DQAAAA==	4m;{^/{Tk6OBwUAAA==^#~@%>">
<input type="button" name="Submit4" value="选择模板" onClick="OpenWindowAndSetValue('../../inc/SelectTemplet.asp?CurrPath=<%=#@~^EgAAAA==	4m;{k+Y!w6GV9+.P7AYAAA==^#~@%><%=#@~^EAAAAA==	4m:2tnSAKUmf&IKQUAAA==^#~@%>',400,300,window,document.myform.Templet);document.myform.Templet.focus();" maxlength="100"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品关键字：</td>
<td bgcolor="#FFFFFF"><label>
<textarea name="keyword" cols="50" rows="6" id="keyword" onpropertychange="if(value.length>500) value=value.substr(0,500)"></textarea>
</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品简介：</td>
<td bgcolor="#FFFFFF"><label>
<textarea name="content" cols="50" rows="10" id="content"></textarea>
</label></td>
</tr>

<tr>
<td height="25" align="right" bgcolor="#FFFFFF">状态：</td>
<td bgcolor="#FFFFFF"><p>
<label>
<input type="radio" name="state" value="1">
开启</label>

<label>
<input name="state" type="radio" value="0" checked>
禁止</label>
<br>
</p></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
<td height="50" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit3" value=" 确 定 ">
<input type="submit" name="Submit" value=" 取 消 ">
</label></td>
</tr>
</table>
</form>

<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>
<%#@~^HAAAAA==r6P.;!+/D`r2k9Jb@!@*JE~Dt+	VwgAAA==^#~@%>
<%#@~^VAAAAA==^KxU94@#@&/Y,./{mGx	RnamEDn`r/+^n^Y,e,0.Wh~q+8{Tr0D/~A4+Dn~bNxJL.;;/D`Jak9E#LJE#pRsAAA==^#~@%>

<form action="wactivesave.asp?action=editgift" method="post" name="myform">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
  <td height="25" align="right" bgcolor="#FFFFFF">&nbsp;</td>
  <td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="25" align="right" bgcolor="#FFFFFF">礼品名称：</td>
<td width="80%" bgcolor="#FFFFFF"><label>
<input name="gname" type="text" id="gname" value=<%=#@~^EgAAAA==OMkhvDk`JV{	C:Jb#zgUAAA==^#~@%> maxlength="25">
</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品价值：</td>
<td bgcolor="#FFFFFF">￥<input name="gmoney" type="text" id="gmoney" value=<%=#@~^EwAAAA==OMkhvDk`JV{h.k1+E#*IAYAAA==^#~@%> maxlength="8" onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this,	/^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品品牌：</td>
<td bgcolor="#FFFFFF"><input name="brand" type="text" id="brand" value=<%=#@~^EwAAAA==OMkhvDk`JV{~.l	NE#*FAYAAA==^#~@%> maxlength="25"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品小图：</td>
<td bgcolor="#FFFFFF"><input name="smallphoto" type="text" id="smallphoto" value=<%=#@~^FAAAAA==OMkhvDk`JV{U2tKYGJ*#qgYAAA==^#~@%> size="50">
<label>
<input type="button" name="Submit6" value="上传图片" onClick="javascript:uppic('one','smallphoto');" maxlength="25">
</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品大图：</td>
<td bgcolor="#FFFFFF"><input name="bigphoto" type="text" id="bigphoto"  value=<%=#@~^FAAAAA==OMkhvDk`JV{~2tKYGJ*#mQYAAA==^#~@%> size="50">
<label>
<input type="button" name="Submit5" value="上传图片" onClick="javascript:uppic('one','bigphoto');" maxlength="25">
</label></td>
</tr>

<tr  style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">允许兑换等级：</td>
<td bgcolor="#FFFFFF"><input name="memlevel" type="radio" value="0" onClick="showstyle(0)" <%#@~^GAAAAA==r6P.k`rM{!m^C/kJb'ZPO4x1gcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>所有注册会员
<input name="memlevel" type="radio" value="1" onClick="showstyle(3)" <%#@~^GAAAAA==r6P.k`rM{!m^C/kJb'8PO4x1wcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>  等级会员	</td>
</tr>
<tr id="tshow"  <%#@~^GAAAAA==r6P.k`rM{!m^C/kJb'8PO4x1wcAAA==^#~@%><%#@~^BAAAAA==n^/nqQEAAA==^#~@%>style="display:none"<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF" >
<select name="uclass"  multiple id="uclass" style="width:40%">
<%#@~^bQAAAA==^KxU94@#@&/Y,./|mslk/x^Kxxcn6mEDncJk+^+^Y~M,0.Ws~4m;k+D/sm/dP,GMNnMP(XPbN,[+kmE#@#@&rW,D/|^Vm//cnG0,Y4+UPnCQAAA==^#~@%>
<option value="">会员等级</option>
<%#@~^IgAAAA==n^/n@#@&9WPStbs+,xGY,Ddm1VlkdRW0,PwsAAA==^#~@%>
<option value="<%=#@~^DgAAAA==.k{^^lk/`rk9E#vAQAAA==^#~@%>" <%=#@~^KAAAAA==rkmsm/k`Dk`r!{`mslk/r[r#~Md{1VlkdcJbNr#bgw0AAA==^#~@%>><%=#@~^GQAAAA==OMkhvDk{m^lkd`rj/{glhnr##dAgAAA==^#~@%></option>
<%#@~^OQAAAA==.k{^^lk/RsW7nx6O@#@&VGGa@#@&Md{1Vlkd m^Wk+@#@&nU9Pr0@#@&2BAAAA==^#~@%>
</select></td>
</tr>
<tr style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">兑换方式：</td>
<td bgcolor="#FFFFFF"><p>
<label></label>

<label>
<input type="radio" name="rg" value="1" onClick="tscore.style.display='none';bf.style.display='';" <%#@~^FgAAAA==r6P.k`rM{wVmLJ*'qPDtnUxgYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
优惠券兑换</label>

<label>
<input type="radio" name="rg" value="2" onClick="tscore.style.display='';bf.style.display='none';" <%#@~^FgAAAA==r6P.k`rM{wVmLJ*'+PDtnUxwYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
积分兑换</label>
<label>
<input type="radio" name="rg" value="3" onClick="tscore.style.display='';bf.style.display='';" <%#@~^FgAAAA==r6P.k`rM{wVmLJ*'fPDtnUyAYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
优惠券/积分兑换</label>
<br>
</p></td>
</tr>
<tr  id="tscore" <%#@~^KAAAAA==r6P.k`rM{wVmLJ*'+PKD~.k`JVms^lorbx&,Y4+U8gsAAA==^#~@%><%#@~^BAAAAA==n^/nqQEAAA==^#~@%>style="display:none"<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>  style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF">兑换积分：</td>
<td bgcolor="#FFFFFF"><input name="score" type="text" id="score" value=<%=#@~^EwAAAA==OMkhvDk`JV{k^WM+E#*SQYAAA==^#~@%> ONKEYPRESS="event.returnValue=IsDigit();" maxlength="5">
兑换该礼品所需的积分</td>
</tr>

<tr id="bf" <%#@~^KAAAAA==r6P.k`rM{wVmLJ*'qPKD~.k`JVms^lorbx&,Y4+U8QsAAA==^#~@%><%#@~^BAAAAA==n^/nqQEAAA==^#~@%>style="display:none"<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> style="display:none">
<td height="25" align="right" bgcolor="#FFFFFF" >优惠券面值：</td>
<td bgcolor="#FFFFFF"><label>
<input name="BenefitMoney" type="text" id="BenefitMoney" value=<%=#@~^GgAAAA==OMkhvDk`JV{~nx0rYtWUnHJ#*8ggAAA==^#~@%> onKeyPress= "return regInput(this,/^\d*\.?\d{0,2}$/,String.fromCharCode(event.keyCode))" onpaste= "return regInput(this,/^\d*\.?\d{0,2}$/,window.clipboardData.getData('Text'))" ondrop="return regInput(this,	/^\d*\.?\d{0,2}$/,event.dataTransfer.getData('Text'))" maxlength="8">
&nbsp;当面值≥该金额时 才允许兑换</label></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品模版：</td>
<td bgcolor="#FFFFFF"><input name="Templet" type="text" id="Templet" size="50" value=<%=#@~^EwAAAA==OMkhvDk`JD+s2VYE#*ggYAAA==^#~@%>>
<input type="button" name="Submit4" value="选择模板" onClick="OpenWindowAndSetValue('../../inc/SelectTemplet.asp?CurrPath=<%=#@~^EgAAAA==	4m;{k+Y!w6GV9+.P7AYAAA==^#~@%><%=#@~^EAAAAA==	4m:2tnSAKUmf&IKQUAAA==^#~@%>',400,300,window,document.myform.Templet);document.myform.Templet.focus();" maxlength="100"></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品关键字：</td>
<td bgcolor="#FFFFFF"><label>
<textarea name="keyword" cols="50" rows="6" id="keyword" onpropertychange="if(value.length>500) value=value.substr(0,500)"><%=#@~^EwAAAA==OMkhvDk`J0+HAWMNE#*jAYAAA==^#~@%></textarea>
</label></td>
</tr>											  
<tr>
<td height="25" align="right" bgcolor="#FFFFFF">礼品简介：</td>
<td bgcolor="#FFFFFF"><label>
<textarea name="content" cols="50" rows="10" id="content"><%=#@~^FQAAAA==OMkhvDk`JV{;GxD+UYr#bCAcAAA==^#~@%></textarea>
<input type="hidden" name="gid" value="<%=#@~^DgAAAA==.;;/D`Jak9E#2wQAAA==^#~@%>">
<input type="hidden" name="page" value="<%=#@~^DwAAAA==.;;/D`JalTnJ*OwUAAA==^#~@%>">
</label></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF"><label>
<input type="radio" name="state" value="1" <%#@~^GAAAAA==~b0~M/vJM|/DCYJb'8PO4xjQcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
开启</label>
<label>
<input type="radio" name="state" value="0" <%#@~^GAAAAA==~b0~M/vJM|/DCYJb'ZPO4xjAcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
禁止</label></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
<td height="50" bgcolor="#FFFFFF"><label>
<input type="submit" name="Submit3" value=" 确 定 ">
<input type="submit" name="Submit2" value=" 取 消 ">
</label></td>
</tr>
</table></form>

<%#@~^BwAAAA==n	N~b0,RgIAAA==^#~@%>
</div>
</center>
<!-- #include file="../bottom2.asp" -->
</body>
</html>
<%#@~^KwEAAA==~@#@&W!x1YkKx,r/1VC/k`^sm//b[~!kN*@#@&db0,mslddbN@!@*rEPDtnU@#@&d7Oswx/asbYc1Vm//bNBE~r#@#@&idWGMPk{TPDWP!8GE	NvYhwb@#@&d7dbWP1kUOvYDrhvYhwvr*#b{mbxYvEb[#,Y4+	P@#@&iddir/1VlkdxJk+^+^Yn[r@#@&di7d6rO,0W.@#@&d7dsk+7@#@&iddikk^Vm/d',JE@#@&dd@#@&did+	[~k6P@#@&7@#@&7ixn6D@#@&i+U[,k0@#@&Ax[P6;	mObW	@#@&n0kAAA==^#~@%>
<script type="text/javascript">
	function showstyle(type)
	{
		if (type == 3){
			tshow.style.display = "";
		}else{
			tshow.style.display = "none";
		}
	}

	
</script>
 

