📄 admin_product.asp
字号:
<td colspan="2">
<select name="SpecialID" id="SpecialID" multiple="multiple" style="height:90px;width:200px;">
<%=ShowSpecial_Option(ChannelID,SpecialID,1)%>
</select>
<font color="#FF0000"><strong>说明:</strong></font><font color="#0000FF">按“Shift”“Ctrl”可多选</font>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong><%=Cl.ChannelItemName%>名称:</strong></td>
<td colspan="3">
<input name="ProductName" type="text" id="ProductName" value="<%=ProductName%>" size="60" maxlength="150" />
<font color="#FF0000">*</font> <select name="FontType" id="FontType" onChange="updateTitleFont('ProductName');">
<option value="0">字 形</option>
<option value="0">规 则</option>
<option value="1" <%if FontType=1 then response.write " selected"%>>粗 体</option>
<option value="2" <%if FontType=2 then response.write " selected"%>>斜 体</option>
<option value="3" <%if FontType=3 then response.write " selected"%>>粗+斜</option>
</select>
<input name="FontColor" type="hidden" id="FontColor" value="<%=FontColor%>" size="10" onclick="Getcolor(ColorBG,'FontColor');updateTitleFont('ProductName');" readonly="Readonly" />
<img border="0" src="../images/Gcolor.gif" style="cursor:pointer;background-Color:<%=FontColor%>;" onclick="Getcolor(this,'FontColor');updateTitleFont('ProductName');" title="选取标题颜色!" align="absmiddle" id="ColorBG" />
<script type="text/javascript">updateTitleFont('ProductName')</script>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong></strong></td>
<td colspan="3">
<strong>型号:</strong><input name="ProductModel" type="text" id="ProductModel" value="<%=ProductModel%>" size="35" maxlength="50" />
<strong>编号:</strong><input name="ProductSn" type="text" value="<%=ProductSn%>" size="30" maxlength="30" />
<font color="#FF0000">*</font>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>关 键 字:</strong></td>
<td colspan="3"><input name="Keyword" type="text" id="Keyword" value="<%=Keyword%>" size="90" maxlength="255" />
<font color="#FF0000">*</font> <a onclick="SelectCustom('Keyword',<%=ChannelID%>,3,1)" style="cursor:hand;"><font color="#66666">Select...</font></a><br />
<font color="#0000FF">用来查找相关<%=Cl.ChannelItemName%>,可输入多个关键字,中间用<font color="#FF0000">“|”</font>分开。不能出现""'*?,.()等字符。</font></td>
</tr>
<tr class="tdbg"<%=CheckUse("2",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>生 产 商:</strong></td>
<td colspan="3">
<input name="Producer" type="text" id="Producer" value="<%=Producer%>" size="35" maxlength="50" />
<span<%=CheckUse("3",Cl.Channel.selectSingleNode("@disableitem").text)%>> <strong>品牌商标:</strong>
<input name="Trademark" type="text" id="Trademark" value="<%=Trademark%>" size="35" maxlength="30" />
</span>
</td>
</tr>
<tr class="tdbg"<%=CheckUse("5",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>过期时间:</strong></td>
<td colspan="3">
<input name="EndDate" type="text" value="<%=EndDate%>" size="20" maxlength="20" onfocus="show_cele_date(EndDate,'','',EndDate)" disabled="disabled" />
<input type="checkbox" name="NoOver" value="yes" <%if NoOver then%>checked<%end if%> onclick="document.myform.EndDate.disabled=this.checked" />
永不过期
</td>
</tr>
<tr class="tdbg"<%=CheckUse("6",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>购买价格:</strong></td>
<td colspan="3">
<font color="red">市场参考价:</font>
<input name="MarketPrice" type="text" value="<%=MarketPrice%>" size="10" maxlength="10" style="text-align: right;" 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'))" />
<font color='red'>元 *</font><br />
<font color="blue">会员零售价:</font>
<input name="MemberPrice" type="text" value="<%=MemberPrice%>" size="10" maxlength="10" style="text-align: right;" onchange="getprice(this.value)" 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'))" />
<font color='red'>元 *</font> 折扣率:
<input name="Discount" type="text" value="<%=Discount%>" size="4" maxlength="4" style="text-align: center;" onchange="getprice(document.myform.MemberPrice.value)" 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'))" />
折 <font color="blue">10为不打折</font><br />
<font color="blue">实际零售价:</font>
<input name="TruePrice" type="text" value="<%=TruePrice%>" size="10" maxlength="10" style="text-align: right;" 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'))" />
<font color='red'>元 *</font> 当会员零售价×折扣率≠输入的实际零售价,以输入的为准。</td>
</tr>
<%=ShowField(Action,InfoID,5)%>
<!--
<tr class="tdbg">
<td width="100" align="right"><strong>税率设置:</strong></td>
<td colspan="3">
<input name="TaxRate" type="text" value="<%'=TaxRate%>" size="8" style="text-align: right;" maxlength="2" disabled>% <input type="checkbox" name="IncludeTax" value="yes" <%'if IncludeTax then%>checked<%'end if%> onclick="document.myform.TaxRate.disabled=this.checked"> 含税
</td>
</tr>-->
<tr class="tdbg"<%=CheckUse("7",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>购买<%=Cl.Web_Setting(28)%>:</strong></td>
<td colspan="3">
<input name="InfoPoint" type="text" value="<%=InfoPoint%>" size="8" maxlength="10" style="text-align: right;" 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'))" />
<font color='red'><%=Cl.Web_Setting(29)%> 当<%=Cl.Web_Setting(28)%>大于0时,购买此物品除支付现金外,同时还需要支付<%=Cl.Web_Setting(28)%>。</font></td>
</tr>
<tr class="tdbg"<%=CheckUse("8",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>库存数量:</strong></td>
<td colspan="3">
<input name="StockNum" type="text" id="StockNum" value="<%=StockNum%>" size="8" maxlength="8" />
<input name="ProductUnit" type="text" id="ProductUnit" size="10" maxlength="20" value="<%=ProductUnit%>" />
<font color="#FF0000"> *</font> <a onclick="SelectCustom('ProductUnit',<%=ChannelID%>,2,0)" style="cursor:hand;"><font color="#66666">Select...</font></a></td>
</tr>
<tr class="tdbg"<%=CheckUse("9",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>购物积分:</strong></td>
<td colspan="3">购买一件此<%=Cl.ChannelItemName%>可以得到
<input name="PresentExp" type="text" value="<%=PresentExp%>" size="4" maxlength="4" style="text-align: center;" onkeypress="event.returnValue=IsDigit();" />
点积分</td>
</tr>
<tr class="tdbg"<%=CheckUse("10",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong><%=Cl.ChannelItemName%>简介:</strong></td>
<td colspan="3">
<textarea name="Intro" style="width:95%" rows="4"><%=Intro%></textarea><br /> <a href="javascript:admin_Size(-5,'Intro')"><img src="images/minus.gif" unselectable="on" border='0' /></a> <a href="javascript:admin_Size(5,'Intro')"><img src="images/plus.gif" unselectable="on" border='0' /></a>
<font color="#FF0000">注意:简介不能超过250个字节数。</font> </td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>详细说明:</strong></td>
<td colspan="3">
<textarea name="Explain" style="display:none"><%=Explain%></textarea>
<iframe id="editor" src="../Editor/Editor.asp?id=Explain&style=other&cid=<%=ChannelID%>&TObj=TempUploadFiles" frameborder="0" scrolling="No" width="95%" height="300"></iframe>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>缩 略 图:</strong></td>
<td colspan="3"><input name="PicUrl" type="text" id="PicUrl" value="<%=PicUrl%>" size="80" maxlength="200" onclick="doPreview('PicUrl','<%=Cl.WebDir%>','<%=Cl.UploadDir%>')" /> <input type="checkbox" id="IsShowUploadFiles" onclick="chkShowUploadFiles();"> 查看已上传文件
<br />
<iframe style="top:2px" id="UpFile" src="../User/Upload.asp?ID=<%=ChannelID%>&Type=0&Obj=PicUrl&TObj=TempUploadFiles" frameborder="0" scrolling="No" width="530" height="25"></iframe>
</td>
</tr>
<tr class="tdbg" id="ShowUploadFiles" style="display:none;">
<td width="100" align="right"><strong>已 上 传:</strong></td>
<td><select name="TempUploadFiles" style="width:500;height:132" size="2" onclick="doPreview('TempUploadFiles','<%=Cl.WebDir%>','<%=Cl.UploadDir%>')"><%
dim sUploadFiles
sUploadFiles = Trim(UploadFiles)
if Instr(sUploadFiles,"@@@") >0 then
sUploadFiles = Split(sUploadFiles,"@@@")
for i=0 to Ubound(sUploadFiles)
%>
<option value="<%=sUploadFiles(i)%>"><%=sUploadFiles(i)%></option>
<%
Next
elseif sUploadFiles<>"" then
%>
<option value="<%=sUploadFiles%>"><%=sUploadFiles%></option>
<%end if%></select><br />
<input type="button" name="SetDefaultPic" value="设为首页图片" onclick="SetPicUrl('TempUploadFiles','PicUrl');" />
<input type="button" name="InsEditor" value="插入编辑器" onclick="InsertEditor('TempUploadFiles','<%=Cl.WebDir%>','<%=Cl.UploadDir%>');" />
<input type="hidden" name="UploadFiles" value="" />
</td>
<td width="180">
<fieldset style="height:100%">
<legend>预览</legend>
<table border="0" cellpadding="0" cellspacing="1" width="180" height="150" valign="top">
<tr><td align="center" valign="middle" id="tdPreview" height="100%">
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>商品类型:</strong></td>
<td colspan="3"><input name="ProductType" type="radio" value="0" onclick="chkProductType(this.value);" <%if ProductType=0 then%>checked<%end if%> />
普通实物
<input name="ProductType" type="radio" value="1" onclick="chkProductType(this.value);" <%if ProductType=1 then%>checked<%end if%> />
软件
<input name="ProductType" type="radio" value="2" onclick="chkProductType(this.value);" <%if ProductType=2 then%>checked<%end if%> />
充值卡
<span id="ShowCardPoint" style="display:none">
<strong>充值卡<%=Cl.Web_Setting(28)%>:</strong>
<input name="CardPoint" type="text" value="<%=CardPoint%>" size="8" maxlength="10" style="text-align: right;" 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'))" />
<%=Cl.Web_Setting(29)%>
</span>
</td>
</tr>
<tr class="tdbg" id="ShowDownloadUrl" style="display:none">
<td width="100" align="right"><strong>下载地址:</strong></td>
<td colspan="3">
<input type="text" name="DownloadUrl" size="80" maxlength="200" value="<%=DownloadUrl%>" />
<font color="#FF0000">*</font><br />
<iframe style="top:2px" id="UpFile" src="../User/Upload.asp?ID=<%=ChannelID%>&Type=3&Obj=DownLoadUrl&TObj=TempUploadFiles" frameborder='0' scrolling='No' width="530" height="25"></iframe>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>限购用户:</strong></td>
<td colspan="3">
<input name="InfoGroup" type="hidden" id="InfoGroup" value="<%=InfoGroup%>" />
<input name="InfoGroupView" type="text" id="InfoGroupView" value="<%=Cl.GetUserGroupName(InfoGroup)%>" size="80" onclick="SelectUserGroup('InfoGroup');" readonly="Readonly" />
<input type="checkbox" name="GetClassPurview" id="GetClassPurview" value="yes" onclick="document.myform.InfoGroupView.disabled=this.checked" />
继承栏目权限<br /><font color="#0000FF">只有具有相应权限的人才能购买此<%=Cl.ChannelItemName%>。</font></td>
</tr>
<!--
<tr class="tdbg"<%'=CheckUse("12",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>回扣设置:</strong></td>
<td colspan="2">
<%=Cl.Web_Setting(28)%>:<input name="BackPoint" type="text" id="BackPoint" value="<%=BackPoint%>" size="5" maxlength="3" style="text-align: right;"> <%=Cl.Web_Setting(29)%>+<%=Cl.Web_Setting(28)%>的<input name="BackPointRate" type="text" id="BackPointRate" value="<%=BackPointRate%>" size="5" maxlength="2" style="text-align: right;">%<br />
<%=Cl.Web_Setting(26)%>:<input name="BackMoney" type="text" id="BackMoney" value="<%=BackMoney%>" size="5" maxlength="3" style="text-align: right;"> <%=Cl.Web_Setting(27)%>+<%=Cl.Web_Setting(26)%>的<input name="BackMoneyRate" type="text" id="BackMoneyRate" value="<%=BackMoneyRate%>" size="5" maxlength="2" style="text-align: right;">%<br /><font color="#0000FF">即当用户游览或下载此内容时,给予一定的回扣给添加者!</font>
</td>
</tr>-->
<tr class="tdbg">
<td width="100" align="right"><strong><%=Cl.ChannelItemName%>属性:</strong></td>
<td colspan="3"> <input name="OnTop" type="checkbox" id="OnTop" value="yes" <%if OnTop=True then response.write " checked"%> />
固顶<%=Cl.ChannelItemName%> <input name="Hot" type="checkbox" id="Hot" value="yes" <%if Hot=True then response.write " checked"%> />
热门<%=Cl.ChannelItemName%> <input name="Elite" type="checkbox" id="Elite" value="yes" <%if Elite=True then response.write " checked"%> />
推荐<%=Cl.ChannelItemName%> <strong>推荐等级:</strong> <select name="Stars" id="Stars">
<option value="5" <%if Stars=5 then response.write " selected"%>>★★★★★</option>
<option value="4" <%if Stars=4 then response.write " selected"%>>★★★★</option>
<option value="3" <%if Stars=3 then response.write " selected"%>>★★★</option>
<option value="2" <%if Stars=2 then response.write " selected"%>>★★</option>
<option value="1" <%if Stars=1 then response.write " selected"%>>★</option>
<option value="0" <%if Stars=0 then response.write " selected"%>>无</option>
</select> <font color="#FF0000">*</font> <strong>点击次数:</strong><input name="Hits" type="text" id="Hits" value="<%=Hits%>" size="10" maxlength="10" /></td>
</tr>
<tr class="tdbg"<%=CheckUse("13",Cl.Channel.selectSingleNode("@disableitem").text)%>>
<td width="100" align="right"><strong>上架时间:</strong></td>
<td colspan="3"><input name="UpdateTime" type="text" id="UpdateTime" value="<%=UpdateTime%>" maxlength="50" />
<font color="blue"><--【<a href='javascript:ToValue("","UpdateTime","<%=now%>")'>设为当前时间</a>】</font>
<br />
时间格式为“年-月-日 时:分:秒”,如:<font color="#0000FF"><%=now()%></font></td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>模版风格:</strong></td>
<td colspan="3">
<select name="ProjectID" onChange="ChangeTemplate(<%=Cl.Channel.selectSingleNode("@moduleid").text%>,this.options[this.selectedIndex].value,8,'TemplateID','CssID');"><%=TemplateProjectOption%></select>
<select name="TemplateID"><option value="0" selected>默认模板</option></select>
<select name="CssID"><option value="0" selected>默认CSS</option></select>
</td>
</tr>
<tr class="tdbg">
<td width="100" align="right"><strong>立即销售:</strong></td>
<td colspan="3"><input name="Passed" type="checkbox" id="Passed" value="yes" <%if Status=1 then response.write " checked"%> />
是<font color="#0000FF">(如果选中<%=Cl.ChannelItemName%>才开始销售,否则审核后才能销售。)</font>
<input name="NowCreate" type="checkbox" value="yes" checked="checked" />
立即生成</td>
</tr>
</table>
<div align="center">
<p>
<input name="ChannelID" type="hidden" id="ChannelID" value="<%=ChannelID%>" />
<input name="Action" type="hidden" id="Action" value="Save<%=Action%>" />
<%if Action="Modify" then%>
<input name="InfoID" type="hidden" id="InfoID" value="<%=InfoID%>" />
<input name="Save" type="submit" id="Save" value="保存修改结果" style="cursor:hand;" />
<input name="Add" type="submit" id="Add" value="添加为新<%=Cl.ChannelItemName%>" onClick="document.myform.Action.value='SaveAdd';" style="cursor:hand;" />
<%else%>
<input name="Add" type="submit" id="Add" value=" 添 加 " style="cursor:hand;" />
<script type="text/javascript">
$("InfoGroupView").disabled=true;
$("GetClassPurview").checked=true;
</script>
<%end if%>
<input name="Cancel" type="button" id="Cancel" value=" 取 消 " onclick="history.go(-1)" style="cursor:hand;" />
</p>
</div>
</form>
<script type="text/javascript" src="Inc/AjaxTemplate.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
<%if Not NoOver then%>
document.myform.EndDate.disabled=false;
<%end if%>
<%if ProjectID>0 then%>
ChangeTemplate(<%=Cl.Channel.selectSingleNode("@moduleid").text%>,<%=ProjectID%>,8,'TemplateID','CssID');
<%end if%>
CheckSel('ProjectID','<%=ProjectID%>');
CheckSel('TemplateID','<%=TemplateID%>');
CheckSel('CssID','<%=CssID%>');
chkProductType(<%=ProductType%>)
//-->
</script>
<%
End Sub
Sub DoSaveRecord()
FoundErr = False
InfoID = Cl.GetClng(Request.Form("InfoID"))
ClassID = Cl.GetClng(Request.form("ClassID"))
SpecialID = Trim(request.Form("SpecialID"))
AutoGetNum = Trim(request.form("AutoGetNum"))
'if AutoGetNum="yes" then
' ProductSn = Cl.Format_time(now(),8)
'else
ProductSn = Trim(request.form("ProductSn"))
if ProductSn="" then ProductSn=Cl.Format_time(now(),8)
'end if
ProductName = Trim(request.form("ProductName"))
FontColor = Trim(request.form("FontColor"))
FontType = Cl.GetClng(request.form("FontType"))
Prefixion = Trim(request.form("Prefixion"))
Keyword = Trim(request.form("Keyword"))
Producer = Trim(request.form("Producer"))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -