⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nclass.asp

📁 模块及功能: 1.汽车新闻 分类.查询.翻页 2.出售信息 搜索.评估.地区展示.发布.展示.固顶.刷新 3.求购信息 发布.展示.固顶.刷新 3.加盟商家管理 注册.登录.信
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="session1.asp"-->
<%dim anclassid,anclass,paixu
anclass=request.QueryString("nclass")
anclassid=request.QueryString("id")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr height=25> 
	<th class="tableHeaderText" colspan=6 height=25>品<span lang="zh-cn">牌小类查看删除</span></th>	
  </tr>
  <tr> 
    <td colspan=6  class="forumRowHighlight"><div align="center">
	<select name="select" 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 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%>
		 <%
        if anclassid="" then
        response.Write "<font color=red></font>"
        else
        set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from nclass where anclassid="&anclassid&" order by nclassidorder",conn,1,1
         if rs.EOF and rs.BOF then
		  response.Write "<font color=red>还没有大分类</font>"
		  paixu=0
		  else
       
    %></div>
    </td>
  </tr>
  <tr> 
   <td width="12%" class="forumRowHighlight" ><div align="center">品牌名称</div></td>
   <td width="11%" class="forumRowHighlight" >
	<p align="center"><span lang="zh-cn">品牌图片</span></td>
   <td width="27%" class="forumRowHighlight" >
	<p align="center">图片路径</td>
   <td width="26%" class="forumRowHighlight" >
	<p align="center"><span lang="zh-cn">品牌简介</span></td>
   <td width="8%" class="forumRowHighlight"><div align="center">分类排序</div></td>
   <td width="14%" class="forumRowHighlight"><div align="center">确定操作</div></td>
 </tr>
 <%  do while not rs.EOF%>
   <form name="form1" method="post" action="savenclass.asp?action=edit&id=<%=rs("nclassid")%>&anclass=<%=request.QueryString("anclass")%>">
   <tr> 
     <td width="12%" class="forumRowHighlight" ><div align="center">
	 <input name="nclass" type="text" id="nclass" size="16" value="<%=trim(rs("nclass"))%>">
	 <input name="anclassid" type="hidden" value="<%=request.QueryString("id")%>" id="Hidden1"></div>
     </td>
     <td width="11%" class="forumRowHighlight" >
	 <p align="center"><%if rs("nclasspic")<>"" then %>
	 <img border="0" src="../<%=rs("nclasspic")%>" width="50" height="50">
	 <%end if%>
	 </td>
     <td width="27%" class="forumRowHighlight" >
	 <p align="left">
	 <input name="nclasspic" type="text" id="<%=rs("nclassid")%>" size="30" value="<%=rs("nclasspic")%>">
   &nbsp;
   </td>
     <td width="26%" class="forumRowHighlight" >
	 <input name="nclasscontent" type="text"  size="30" value="<%=rs("nclasscontent")%>"></td>
     <td width="8%"  class="forumRowHighlight"><div align="center"><input name="nclassidorder" type="text" id="nclassidorder" size="4" value="<%=int(rs("nclassidorder"))%>"></div></td>
	<td width="14%"  class="forumRowHighlight"><div align="center"><input class=button type="submit" name="Submit" value="修 改">&nbsp;<a href="savenclass.asp?id=<%=int(rs("nclassid"))%>&action=del&anclassid=<%=request.QueryString("id")%>&anclass=<%=request.QueryString("anclass")%>" onClick="return confirm('此删除操作,会删除此分类下的所有汽车!您确定进行删除操作吗?')"><font color=red>删除</font></a> </div></td>
  </tr> </form>
 <%rs.movenext
        loop
        paixu=rs.RecordCount
        rs.close
        set rs=nothing
        end if
        end if
	%>
	  <form name="myform" method="post" action="">
   <tr> 
     <td width="12%" class="forumRowHighlight" >
		<p align="center">图片上传</td>
     <td width="11%" class="forumRowHighlight" >
	 <span lang="zh-cn">图片在这上传,把生成路径复制到上面的图片路径中,再点击修改即可。</span></td>
     <td width="53%" class="forumRowHighlight" colspan="2" >
	 <input name="carpic" type="text" id="carpic" size="30">
   &nbsp;<input  type="button" name="Submit4" value="上传图片" onClick="window.open('../Up_byshopPic.asp?formname=myform&editname=carpic&byshopuppath=pingpai&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
   </td>
     <td width="8%"  class="forumRowHighlight"> </td>
	<td width="14%"  class="forumRowHighlight"> </td>
  </tr>
</form>
  </table>
<br>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
  <tr height=25> 
	<th class="tableHeaderText" colspan=5 height=25>品牌小类添加</th>	
  </tr>
    <tr> 
   <td colspan=5 valign="top" class="forumRowHighlight"><div align="center">注意:分类名称不要含有非法字符<br>
        增加小分类时,如果没有选择此小类所属大分类,则被列为“其它”分类</div></td>
  </tr>
  <tr> 
   <td colspan=5 valign="top" class="forumRowHighlight"><div align="center">
   <select name="select2" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
	<option >选择品牌分类</option>
	<%set rs2=server.createobject("adodb.recordset")
		rs2.Open "select * from anclass order by anclassidorder",conn,1,1
		do while not rs2.eof %>
	<option value="nclass.asp?id=<%=rs2("anclassid")%>&anclass=<%=rs2("anclass")%>" <%if rs2("anclassid")=cint(request.QueryString("id")) then %>selected<%end if%>><%=trim(rs2("anclass"))%></option>
    <%rs2.movenext
		loop
		rs2.close
		set rs2=nothing
		%>
     </select>当前分类:<%=request.QueryString("anclass")%></div></td>
  </tr>
  <tr> 
   <td width="11%" class="forumRowHighlight"><div align="center">品牌名称</div></td>
   <td width="39%" class="forumRowHighlight">
	<p align="center"><span lang="zh-cn">品牌图片</span></td>
   <td width="26%" class="forumRowHighlight">
	<p align="center"><span lang="zh-cn">品牌简介</span></td>
   <td width="8%" class="forumRowHighlight"><div align="center">分类排序</div></td>
   <td width="13%" class="forumRowHighlight"><div align="center">确定操作</div></td>
 </tr>
 <form name="form2" method="post" action="savenclass.asp?action=add&anclass=<%=request.QueryString("anclass")%>">
 <tr> 
   <td width="11%" class="forumRowHighlight"><div align="center"><input name="nclass2" type="text" id="nclass22" size="16"><input name="anclassid" type="hidden" value="<%=request.QueryString("id")%>"></div></td>
   <td width="39%" class="forumRowHighlight">
	 <p align="center">
	 <input name="nclasspic" type="text" id="nclass24" size="40" ></td>
   <td width="26%" class="forumRowHighlight">
	 <input name="nclasscontent" type="text"  size="30" ></td>
   <td width="8%" class="forumRowHighlight"><div align="center"><input name="nclassidorder2" type="text" id="nclassidorder22" size="4" value="<%=paixu+1%>"></div></td>
   <td width="13%" class="forumRowHighlight"><div align="center"><input class="button" type="submit" name="Submit2" value="添 加"></div></td>
 </tr>
</form>
</table>
<br>
</body>
</html> 
  

⌨️ 快捷键说明

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