?? nclass.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
end if
'if session("flag")>1 then
'response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權限!</b></font></div>"
'response.End
'end if
'if qx2<>1 then
'response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權限!</b></font></div>"
'response.End
'end if
%>
<%dim anclassid,anclass,paixu
anclass=request.QueryString("nclass")
anclassid=request.QueryString("id")
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
<tr>
<td width="1%"> </td>
<td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="30%" style="font-size:14px;color:#ffffff"> <strong><font color="#000000">商品小類管理</font></strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"><IMG height=5 src="images/block.gif" width=1><br>
<select name="select" class="wenbenkuang" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
<option >選擇商品分類</option>
<%set rs=server.createobject("adodb.recordset")
rs.Open "select * from shop_anclass order by anclassidorder",conn,1,1
do while not rs.eof %>
<option value="nclass.asp?id=<%=rs("anclassid")%>&anclass=<%=rs("anclass")%>" <%if rs("anclassid")=cint(request.QueryString("id")) then %>selected<%end if%>><%=trim(rs("anclass"))%></option>
<%rs.movenext
loop
rs.close
set rs=nothing
%>
</select>
<%if request.QueryString("id")<>"" then
response.Write "當前查訊:"&request.QueryString("anclass")
end if%>
</td>
</tr>
</table>
<table width="90%" border="0" cellpadding="3" cellspacing="1" align="center" bgcolor="#9DB2D4">
<tr bgcolor="#C7D3E6">
<td>
<div align="center">分類名稱</div></td>
<td>
<div align="center">排序</div></td>
<td>
<div align="center">分類文字顏色</div></td>
<td>
<div align="center">圖片上傳:</div></td>
<td>
<div align="center">連接地址:</div></td>
<td>
<div align="center">行數</div></td>
<td>
<div align="center">列數</div></td>
<td><div align="center">是否顯示</div></td>
<td>
<div align="center">確定操作</div></td>
</tr>
<%
if anclassid="" then
response.Write "<div align=center><font color=red>請選擇左測的分類</font></div>"
else
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_nclass where anclassid="&anclassid&" order by nclassidorder",conn,1,1
if rs.EOF and rs.BOF then
response.Write "<div align=center><font color=red>還沒有分類</font></center>"
paixu=0
else
do while not rs.EOF
%>
<form name="form1" method="post" action="savenclass.asp?action=edit&id=<%=rs("nclassid")%>&anclass=<%=request.QueryString("anclass")%>">
<tr bgcolor="#F0F3F8">
<td>
<div align="center">
<input name="nclass" class="wenbenkuang" type="text" id="nclass" size="12" value="<%=trim(rs("nclass"))%>">
<input name="anclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("id")%>" id="Hidden1">
</div></td>
<td>
<div align="center">
<input name="nclassidorder" class="wenbenkuang" type="text" id="nclassidorder" size="4" value="<%=int(rs("nclassidorder"))%>">
</div></td>
<td>
<div align="center">
<select name="xsztys" id="select14" onChange="FormatText('BackColor',selectbgColour.options[selectbgColour.selectedIndex].value);document.form1.selectbgColour.options[0].selected = true;" onmouseover="window.status='選擇選定文字的背景顏色。';return true;" onmouseout="window.status='';return true;">
<option style="background-color:#666666;color: #666666" value="#666666" <%if rs("xsztys")="#666666" then%>selected<%end if%>>默認顏色</option>
<option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0FFFF" <%if rs("xsztys")="#F0FFFF" then%>selected<%end if%>>#F0FFFF</option>
<option style="background-color:#F0F8FF;color: #F0F8FF" value="#F0F8FF" <%if rs("xsztys")="#F0F8FF" then%>selected<%end if%>>#F0F8FF</option>
<option style="background-color:#FAEBD7;color: #FAEBD7" value="#FAEBD7" <%if rs("xsztys")="#FAEBD7" then%>selected<%end if%>>#FAEBD7</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF" <%if rs("xsztys")="#00FFFF" then%>selected<%end if%>>#00FFFF</option>
<option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4" <%if rs("xsztys")="#7FFFD4" then%>selected<%end if%>>#7FFFD4</option>
<option style="background-color:#F0FFFF;color: #F0FFFF" value="#F0FFFF" <%if rs("xsztys")="#F0FFFF" then%>selected<%end if%>>#F0FFFF</option>
<option style="background-color:#F5F5DC;color: #F5F5DC" value="#F5F5DC" <%if rs("xsztys")="#F5F5DC" then%>selected<%end if%>>#F5F5DC</option>
<option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4" <%if rs("xsztys")="#FFE4C4" then%>selected<%end if%>>#FFE4C4</option>
<option style="background-color:#000000;color: #000000" value="#000000" <%if rs("xsztys")="#000000" then%>selected<%end if%>>#000000</option>
<option style="background-color:#FFEBCD;color: #FFEBCD" value="#FFEBCD" <%if rs("xsztys")="#FFEBCD" then%>selected<%end if%>>#FFEBCD</option>
<option style="background-color:#0000FF;color: #0000FF" value="#0000FF" <%if rs("xsztys")="#0000FF" then%>selected<%end if%>>#0000FF</option>
<option style="background-color:#8A2BE2;color: #8A2BE2" value="#8A2BE2" <%if rs("xsztys")="#8A2BE2" then%>selected<%end if%>>#8A2BE2</option>
<option style="background-color:#A52A2A;color: #A52A2A" value="#A52A2A" <%if rs("xsztys")="#A52A2A" then%>selected<%end if%>>#A52A2A</option>
<option style="background-color:#DEB887;color: #DEB887" value="#DEB887" <%if rs("xsztys")="#DEB887" then%>selected<%end if%>>#DEB887</option>
<option style="background-color:#5F9EA0;color: #5F9EA0" value="#5F9EA0" <%if rs("xsztys")="#5F9EA0" then%>selected<%end if%>>#5F9EA0</option>
<option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00" <%if rs("xsztys")="#7FFF00" then%>selected<%end if%>>#7FFF00</option>
<option style="background-color:#D2691E;color: #D2691E" value="#D2691E" <%if rs("xsztys")="#D2691E" then%>selected<%end if%>>#D2691E</option>
<option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50" <%if rs("xsztys")="#FF7F50" then%>selected<%end if%>>#FF7F50</option>
<option style="background-color:#6495ED;color: #6495ED" value="#6495ED" <%if rs("xsztys")="#6495ED" then%>selected<%end if%>>#6495ED</option>
<option style="background-color:#FFF8DC;color: #FFF8DC" value="#FFF8DC" <%if rs("xsztys")="#FFF8DC" then%>selected<%end if%>>#FFF8DC</option>
<option style="background-color:#DC143C;color: #DC143C" value="#DC143C" <%if rs("xsztys")="#DC143C" then%>selected<%end if%>>#DC143C</option>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -