classification.asp

来自「一个非常好的旅游网站程序.」· ASP 代码 · 共 220 行

ASP
220
字号
<%@ language="vbscript"%>
<%response.Expires = 0%>
<%
if request.cookies("sp_name")="" then
  response.redirect "login.asp"
end if
%>
<!--#include file="conn.asp"-->

<%
set rs_detail=server.createobject("adodb.recordset")
sqltext2="select * from shop where shop_name1='" & request.cookies("sp_name") & "'"
rs_detail.open sqltext2,conn,1,1
%>
<html>
<head>
<title>商家管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>
BODY {
	FONT-SIZE: 10pt;
	margin-top: 0px;
	background-color: #FF6600;
	margin-bottom: 0px;
}
TD {
	FONT-SIZE: 10pt; LINE-HEIGHT: 150%
}
A {
	TEXT-DECORATION: none
}
A:hover {
	TEXT-DECORATION: underline
}
.blueone {
	CURSOR: crosshair;
	FILTER: glow(color=blue,strength=10);
	WIDTH: auto;
	FILTER: glow(color=blue,strength=10);
	FONT-SIZE: 20pt;
	color:#FFFFFF;
	LINE-HEIGHT: 200%;
	font-family: "长城新艺体";
	font-weight: bolder;
	text-decoration: blink;
}
</STYLE>
<script language="javascript">
<!--
function isok(theform)
{

if (theform.Classification_1.value.length<1)

  {
    alert("商品分类名一不能为空!");
    theform.Classification_1.focus();
    return (false);
  }
if (theform.Classification_2.value.length<2)

  {
    alert("商品分类名二不能为空!");
    theform.Classification_2.focus();
    return (false);
  }  
if (theform.Classification_3.value.length<2)

  {
    alert("商品分类名三不能为空!");
    theform.Classification_3.focus();
    return (false);
  }
if (theform.Classification_4.value.length<2)

  {
    alert("商品分类名四不能为空!");
    theform.Classification_4.focus();
    return (false);
  }

return (true);
}
-->
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="80">
  <tr>
    <td background="pic/topnew.gif">
      <table width="778" border="0" cellspacing="0" cellpadding="0" height="45">
        <tr>
          <td width="319">&nbsp;</td>
          <td width="431" height="35">
            <div class="blueone" align="center"><%=request.cookies("sp_name")%></div></td>
          <td width="28">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="1" bgcolor="#CCCCCC">
  <tr>
    <td></td>
  </tr>
</table>
<table width="778" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="455">
  <tr>
    <td width="158" bgcolor="#FF9900" height="395" valign="top"> 
      <div align="center"><br><br>
        <table width="145" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height="355"> <table width="120" border="1" align="center" cellpadding="1" cellspacing="5" bordercolorlight="#FFCC99" bordercolordark="#FFCC99">
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="default.asp"><font color="#FFFFFF">统计信息</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="shop.asp"><font color="#FFFFFF">基本资料</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="../shop/default.asp?shop_name=<%=request.cookies("sp_name")%>" target="_blank"><font color="#FFFFFF">网站预览</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="moban.asp"><font color="#FFFFFF">选择模板</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="Classification.asp"><font color="#FFFFFF">商品分类</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="myweb.asp"><font color="#FFFFFF">网站维护</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="xinxi.asp"><font color="#FFFFFF">综合资讯</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="product_check.asp"><font color="#FFFFFF">我的商品</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="pic.asp"><font color="#FFFFFF">商品添加</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="travelline_check.asp"><font color="#FFFFFF">我的线路</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="travelline.asp"><font color="#FFFFFF">添加线路</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="http://www.0701.com.cn/web.business/ads/ads.htm" target="_blank"><font color="#FFFFFF">相关服务</font></a></div></td>
                </tr>
                <tr> 
                  <td bgcolor="#FF6600"> <div align="center"><font color="#FFFFFF">☆ </font><a href="end.asp"><font color="#FFFFFF">退出管理</font></a></div></td>
                </tr>
              </table></td>
          </tr>
        </table>
    </div>    </td>
    <td width="1" bgcolor="#eeeeee" height="366"></td>
    <td width="604" height="366" valign="top" bgcolor="#FFCC00"><br><br> 

      <form method="POST" action="update_Classification.asp"  onsubmit="return isok(this)" >
        <br>
        <table width="560" border="0" align="center" cellpadding="6" cellspacing="1" bordercolorlight="#ffd146" bordercolordark="#fffcf0" bgcolor="#FFFF00">
          <tr bgcolor="#FFCC00"> 
            <td height="39" colspan="2" > 注意:<br>
              1、在首次上传商品前必须要设置好你的商品分类名称。<br>
              2、上传商品之后若修改此类商品分类名称,此类名称所有商品将没法在你的网站显示。<br>
              3、上传商品之后若须更改商品分类名称,请在更改后分类名后再到-&gt;我的商品-&gt;修改 里把此类商品原来的类别更改为你现在修改后的类别,此类商才能在你的网站里显示。<br>
               </td>
          </tr>
          <tr bgcolor="#FFCC00"> 
            <td width=175 align="right" > <font color=#e71c17>&nbsp;</font>商品分类名一:</td>
            <td width=379 >&nbsp; 
              <input type="text" name="Classification_1" value="<%=rs_detail("Classification_1")%>">
            &nbsp;</td>
          </tr>
          <tr bgcolor="#FFCC00"> 
            <td width=175 align="right"> <font color=#e71c17>&nbsp;</font>商品分类名二:</td>
            <td width=379>&nbsp; 
            <input type="text" name="Classification_2" value="<%=rs_detail("Classification_2")%>">            </td>
          </tr>
          <tr bgcolor="#FFCC00"> 
            <td width=175 align="right"> <font color=#e71c17>&nbsp;</font>商品分类名三:</td>
            <td width=379>&nbsp; 
            <input type="text" name="Classification_3" value="<%=rs_detail("Classification_3")%>" >            </td>
          </tr>
          <tr bgcolor="#FFCC00"> 
            <td width=175 align="right"> 商品分类名四:</td>
            <td width=379>&nbsp; 
            <input type="text" name="Classification_4" value="<%=rs_detail("Classification_4")%>">            </td>
          </tr>
        </table>
        <div align="center"> <br>
          <input type="submit" value="修改商品分类" name="B4" >
        </div>
      </form>    </td>
  </tr>
</table>
<table width="778" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" height="80" align="center">
  <tr>
    <td height="30" bgcolor="#FFCC00">
      <div align="center">   版权所有:鹰潭便民网  E-mail: style@0701.com.cn </div></td>
  </tr>
</table>
</body>
</html>
<%   
rs_detail.close  
conn.close  
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?