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

📄 anclass.asp

📁 使用说明: 请将ASPBook文件夹直接复制到硬盘上
💻 ASP
字号:
<!--#include file="conn.inc"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>

<body bgcolor="#D9E6FF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20">
      <div align="center"><font color="#000000">图书大类管理</font></div></td>
  </tr>
  <tr>
    <td height="44">
      <table width="80%" border="0" align="center" cellpadding="1" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="106" height="16"> 分类名称 </td>
          <td width="51" valign="top"> 分类排序</td>
          <td width="53" valign="top"> 确定操作</td>
        </tr>
        <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from shop_anclass order by anclassid ",conn,1,1
		  if rs.EOF and rs.BOF then
		  response.Write "<div align=center><font color=red>还没有分类</font></center>"
		  else
		  do while not rs.EOF
		  %>
        <form name="form1" method="post" action="saveanclass.asp?action=edit&id=<%=int(rs("anclassid"))%>">
          <tr>
            <td height="37">
              <div align="center">
                <input name="anclass" type="text" id="anclass" size="12" value="<%=trim(rs("anclass"))%>">
            </div></td>
            <td align="center" valign="middle">
              <div align="center">
                <input name="anclassid" type="text" id="anclassid" size="4" value="<%=int(rs("anclassid"))%>">
            </div></td>
            <td colspan="2" align="center" valign="middle">
              <div align="center">
                <input type="submit" name="Submit" value="修 改">
&nbsp; <a href="saveanclass.asp?id=<%=int(rs("anclassid"))%>&action=del" onClick="return confirm('您确定进行删除操作吗?')"><font color=red>删除</font></a> </div></td>
          </tr>
        </form>
        <%
								paixu=rs("anclassid")
								rs.MoveNext
								loop
                                end if%>
    </table></td>
  </tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20">
      <div align="center"><font color="#000000">添加图书大类</font></div></td>
  </tr>
  <tr>
    <td>
      <table width="80%" border="0" align="center" cellpadding="1" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="121" height="16"> 分类名称 </td>
          <td width="54" valign="top"> 分类排序</td>
          <td width="56" valign="top"> 确定操作</td>
        </tr>
        <form name="form1" method="post" action="saveanclass.asp?action=add">
          <tr>
            <td height="23">
              <div align="center">
                <input name="anclass2" type="text" id="anclass22" size="12">
            </div></td>
            <td align="center" valign="middle">
              <div align="center">
                <input name="anclassid2" type="text" id="anclassid22" size="4" value="<%=paixu+1%>">
            </div></td>
            <td valign="top">
              <div align="center">
                <input type="submit" name="Submit3" value="添 加">
            </div></td>
          </tr>
        </form>
    </table></td>
  </tr>
</table>
<br>
</body>
</html>

⌨️ 快捷键说明

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