List_Add.asp
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:3k
源码类别:

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <!--#include file="../../inc/conn.asp"-->
  2. <%
  3. dim rs,sql
  4. sql="select * from nclass"
  5. set rs=conn.execute(sql)
  6. %>
  7. <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <META content="text/html;charset=gb2312" http-equiv="Content-Type">
  8. <style type="text/css">
  9. <!--
  10. .style1 {
  11. color: #FFFFFF;
  12. font-weight: bold;
  13. }
  14. -->
  15. </style>
  16. <form name="form1" method="post" action="List_Save.asp" enctype="multipart/form-data">
  17.   <table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
  18.     <tr bgcolor="#23458B"> 
  19.       <td height="25" colspan="2"> 
  20.       <div align="center" class="style1">信息添加</div>      </td>
  21.     </tr>
  22.     <tr> 
  23.       <TD WIDTH="21%" height="12"> 
  24.        <div align="right"><FONT COLOR="#FF0000"> * </FONT>产品名称:</div></TD>
  25.       <td width="79%" height="12"> 
  26.         <input type="text" name="title" size="50">      </td>
  27.     </tr>
  28.     <tr>
  29.       <TD height="13"><div align="right"><FONT COLOR="#FF0000">* </FONT>产品类别:</div></TD>
  30.       <td width="79%" height="13"><%
  31.     sql="select * from class"
  32.     set rs=conn.execute(sql)
  33.     if not rs.eof then
  34.     %>一类:
  35.         <select name="classid" >
  36.           <option selected value="<%=trim(rs("id"))%>"><%=trim(rs("classname"))%></option>
  37.           <%
  38. dim selclass
  39.     selclass=rs("id")
  40.     rs.movenext
  41.     %>
  42.           <%do while not rs.eof%>
  43.           <option value="<%=rs("id")%>"><%=rs("classname")%></option>
  44.           <%rs.movenext
  45.         loop
  46. rs.close
  47.         %>
  48.         </select>
  49.         <%else%>
  50.         添加类别
  51.         <%end if%>&nbsp;</td>
  52.     </tr>
  53.     <tr> 
  54.       <TD WIDTH="21%" height="25"> 
  55.        <div align="right"><FONT COLOR="#FF0000">*</FONT> 产品信息:</div></TD>
  56.       <td width="79%" height="25"><IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"> 
  57.         </IFRAME>
  58.         <input name="content" type="hidden" id="content">      </td>
  59.     </tr>
  60.     <tr> 
  61.       <TD WIDTH="21%" height="12">
  62.       <div align="right"><FONT COLOR="#FF0000">*</FONT> 产品图片:</div></TD>
  63.       <td width="79%" height="12">
  64.         <input name="file" type="file" id="file" size="35">      </td>
  65.     </tr>
  66.     <tr> 
  67.       <td height="25" colspan="2"> 
  68.         <div align="center"> 
  69.           <input type="submit" name="Submit" value="添加">
  70.           <input type="button" value="取消" onClick="history.go(-1)">
  71.           <input type="hidden" name="operation" value="add">
  72.       </div>      </td>
  73.     </tr>
  74.   </table>
  75.   <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34"> 
  76. <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr> 
  77. </table></form>