📄 config6.asp
字号:
<!--#include file="../include/buyok_shop_30_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<script language=javascript src=../include/mouse_on_title.js></script>
<%call checkmanage("01")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif">
<%
action=request("ok")
if action="" then
Set rs = conn.Execute("select * from shopsetup")
%>
<table width="98%" border="1" style="border-collapse: collapse; border-style: dotted; border-width: 0px" bordercolor="#333333" cellspacing="0" cellpadding="2">
<form action=config6.asp method=post name=setup>
<tr class=backs><td colspan=2 class=td height=18>商品参数设置 </td></tr>
<tr><td width=20% align=right>首页商品模式</td>
<td >
<input type="radio" name="mosi" value="0" <%if rs("mosi")="0" then%>checked<%end if%>>“新品速递”版块在上方,“推荐商品”版块在下方<br>
<input type="radio" name="mosi" value="1" <%if rs("mosi")="1" then%>checked<%end if%>>“推荐商品”版块在上方,“新品速递”版块在下方<br>
<input type="radio" name="mosi" value="2" <%if rs("mosi")="2" then%>checked<%end if%>>只显示“新品速递”版块<br>
<input type="radio" name="mosi" value="3" <%if rs("mosi")="3" then%>checked<%end if%>>只显示“推荐商品”版块
</td></TR>
<tr><td width=20% align=right>商品图片边框效果</td>
<td >
<input type="radio" name="pic_xiaogao" value="0" <%if rs("pic_xiaogao")="0" then%>checked<%end if%>>无边框<br>
<input type="radio" name="pic_xiaogao" value="1" <%if rs("pic_xiaogao")="1" then%>checked<%end if%>>效果一 <a href=../images/small/pic_bg_big1.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br>
<input type="radio" name="pic_xiaogao" value="2" <%if rs("pic_xiaogao")="2" then%>checked<%end if%>>效果二 <a href=../images/small/pic_bg_big2.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br>
<input type="radio" name="pic_xiaogao" value="3" <%if rs("pic_xiaogao")="3" then%>checked<%end if%>>效果三 <a href=../images/small/pic_bg_big3.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br>
<input type="radio" name="pic_xiaogao" value="4" <%if rs("pic_xiaogao")="4" then%>checked<%end if%>>效果四 <a href=../images/small/pic_bg_big4.gif target=_blank><img src=../images/admin/memo.gif border=0 alt="点击预览效果"></a><br>
</td></TR>
<tr><td width=20% align=right>首页商品图片提示</td><td > <input type="radio" name="index_tishi" value="1" <%if rs("index_tishi")="1" then%>checked<%end if%>>显示 <input type="radio" name="index_tishi" value="0" <%if rs("index_tishi")="0" then%>checked<%end if%>>隐藏 <img src=../images/admin/memo.gif alt="鼠标指向首页商品图片时<br>显示该商品相关的提示信息"> </td></TR>
<tr><td width=20% align=right>显示或隐藏商品总数</td><td > <input type="radio" name="tree_num" value="1" <%if rs("tree_num")="1" then%>checked<%end if%>>显示 <input type="radio" name="tree_num" value="0" <%if rs("tree_num")="0" then%>checked<%end if%>>隐藏 <img src=../images/admin/memo.gif alt="主页左侧分类列表旁显示该分类下的商品总数"> </td></TR>
<tr><td width=20% align=right>显示或隐藏商品分类</td><td > <input type="radio" name="tree_view" value="1" <%if rs("tree_view")="1" then%>checked<%end if%>>显示 <input type="radio" name="tree_view" value="0" <%if rs("tree_view")="0" then%>checked<%end if%>>隐藏 <img src=../images/admin/memo.gif alt="可以把主页左侧的分类列表隐藏起来"> </td></TR>
<tr><td width=20% align=right>分类默认展开或收起</td><td > <input type="radio" name="tree_display" value="1" <%if rs("tree_display")="1" then%>checked<%end if%>>展开 <input type="radio" name="tree_display" value="0" <%if rs("tree_display")="0" then%>checked<%end if%>>收起 <img src=../images/admin/memo.gif alt="你希望主页左侧分类列表默认为展开还是收起状态?<br>建议:分类较多时选择收起,分类较少时可以选择展开"> </td></TR>
<tr><td width=20% align=right>大类颜色</td><td> <input type=text value="<%=rs("lar_color")%>" name=lar_color size="20" maxlength=10> <img src=../images/admin/memo.gif alt="主页左侧分类列表中一级分类的颜色"> </td></TR>
<tr><td width=20% align=right>中类颜色</td><td> <input type=text value="<%=rs("mid_color")%>" name=mid_color size="20" maxlength=10> <img src=../images/admin/memo.gif alt="主页左侧分类列表中二级分类的颜色"> </td></TR>
<tr><td width=20% align=right>首页最新商品数量</td><td> <input type=text value="<%=rs("prompt_num")%>" name=prompt_num size="20" maxlength=2> <img src=../images/admin/memo.gif alt="首页“新品上架”位置的商品总数<br>必须是4的倍数"> </td></TR>
<tr><td width=20% align=right>首页推荐商品数量</td><td> <input type=text value="<%=rs("newprod_num")%>" name=newprod_num size="20" maxlength=2> <img src=../images/admin/memo.gif alt="首页“推荐商品”位置的商品总数<br>必须是4的倍数"> </td></TR>
<tr><td width=20% align=right>首页热门排行数量</td><td> <input type=text value="<%=rs("renmen_num")%>" name=renmen_num size="20" maxlength=2> <img src=../images/admin/memo.gif alt="主页左侧下方热门商品数量,推荐10<br>技巧:灵活的调整此数,可对齐左右版面,从页使页面变得整齐美观"> </td></TR>
<tr><td width=20% align=right>次页商品数量</td><td> <input type=text value="<%=rs("fenlei_num")%>" name=fenlei_num size="20" maxlength=2> <img src=../images/admin/memo.gif alt="商品分类页面、商品搜索页面中,每页显示的商品数,推荐10"> </td></TR>
<tr><td width=20% align=right>商品缺货时提示语</td><td> <input type=text value="<%=rs("quehuo")%>" name=quehuo size="20" maxlength=9> <img src=../images/admin/memo.gif alt="例如:“货品准备中”"> </td></TR>
<tr><td width=20% align=right>无价格时的提示语</td><td> <input type=text value="<%=rs("wujiage")%>" name=wujiage size="20" maxlength=9> <img src=../images/admin/memo.gif alt="例如:“价格请咨询”"> </td></TR>
<tr><td width=20% align=right>未登陆会员价提示</td><td> <input type=text value="<%=rs("huiyuanjia")%>" name=huiyuanjia size="20" maxlength=5> <img src=../images/admin/memo.gif alt="例如:“请先登陆”、“登陆更优惠”等"> </td></TR>
<tr><td colspan=2 width="568" ><INPUT name="ok" TYPE="hidden" value="ok"><INPUT name=action TYPE="submit" value="保存设置"> </td></tr>
</form>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if action="ok" then
if request.form("mosi")="" or request.form("tree_num")="" or request.form("mid_color")="" or request.form("lar_color")="" or request.form("quehuo")="" or request.form("wujiage")="" or request.form("huiyuanjia")="" then er=1
if not isNumeric(request.form("prompt_num")) then er=1
if not isNumeric(request.form("newprod_num")) then er=1
if not isNumeric(request.form("renmen_num")) then er=1
if not isNumeric(request.form("fenlei_num")) then er=1
if er=1 then
response.write "<script language='javascript'>"
response.write "alert('出错了,资料填写完整,或不符合要求。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if request.form("newprod_num") mod 4 <>0 then er=2
if request.form("prompt_num") mod 4 <>0 then er=2
if request.form("prompt_num")<=0 then er=2
if request.form("newprod_num")<=0 then er=2
if request.form("renmen_num")<=0 then er=2
if request.form("fenlei_num")<=0 then er=2
if er=2 then
response.write "<script language='javascript'>"
response.write "alert('出错了,资料填写完整,或不符合要求。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from shopsetup"
rs.open sql,conn,1,3
rs("prompt_num")=trim(request.form("prompt_num"))
rs("newprod_num")=trim(request.form("newprod_num"))
rs("renmen_num")=trim(request.form("renmen_num"))
rs("fenlei_num")=trim(request.form("fenlei_num"))
rs("mosi")=trim(request.form("mosi"))
rs("pic_xiaogao")=trim(request.form("pic_xiaogao"))
rs("index_tishi")=trim(request.form("index_tishi"))
rs("tree_num")=trim(request.form("tree_num"))
rs("tree_view")=trim(request.form("tree_view"))
rs("tree_display")=trim(request.form("tree_display"))
rs("lar_color")=trim(request.form("lar_color"))
rs("mid_color")=trim(request.form("mid_color"))
rs("quehuo")=request.form("quehuo")
rs("wujiage")=request.form("wujiage")
rs("huiyuanjia")=request.form("huiyuanjia")
rs.update
url="config6.asp"
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('操作成功,您设置的信息已保存!');"
response.write "location.href='"&url&"';"
response.write "</script>"
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -