List_Edit.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:3k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="../../inc/conn.asp"-->
- <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <META content="text/html;charset=gb2312" http-equiv="Content-Type">
- <%
- dim rs,sql
- sql="select * from nclass"
- set rs=conn.execute(sql)
- %>
- <script language = "JavaScript">
- //________________栏目选择变化的代码______________
- var onecount;
- onecount=0;
- subcat = new Array();
- <%
- dim count
- count=0
- do while not rs.eof
- %>
- subcat[<%=count%>] = new Array("<%= trim(rs("nclassname"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("id"))%>");
- <%
- count = count + 1
- rs.movenext
- loop
- rs.close
- %>
- onecount=<%=count%>;
- function changelocation(locationid)
- {
- document.form1.nclassid.length = 0;
- var locationid=locationid;
- var i;
- for (i=0;i < onecount; i++)
- {
- if (subcat[i][1] == locationid)
- {
- document.form1.nclassid.options[document.form1.nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
- }
- }
- }
- </script>
- <%
- Dim rs2
- set rs2=conn.execute("select * from info where id="&request("checkbox"))
- %>
- <style type="text/css">
- <!--
- .style1 { color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- <form name="form1" method="post" action="List_Save.asp" enctype="multipart/form-data">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
- <tr bgcolor="#23458B">
- <td height="25" colspan="2">
- <div align="center" class="style1"><b><font color="#FFFFFF">信息修改</font></b></div>
- </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12">
- <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>标题:</DIV>
- </TD>
- <td width="79%" height="12">
- <input name="title" type="text" id="title" value="<%=rs2("title")%>" size="50">
- <select name="wz" id="wz">
- <option value="a" <%if rs2("wz")="a" then response.write "selected='selected'"%>>中文</option>
- <option value="b" <%if rs2("wz")="b" then response.write "selected='selected'"%>>英文</option>
- </select> </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25">
- <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 信息:</DIV>
- </TD>
- <td width="79%" height="25">
- <input name="content" type="hidden" id="content" value="<%=replace(rs2("content"),"""","")%>">
- <IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"></IFRAME></td>
- </tr>
- <tr>
- <td height="25" colspan="2">
- <div align="center">
- <input type="submit" name="Submit2" value="修改">
- <input name="button" type="button" onClick="history.go(-1)" value="取消">
- <input type="hidden" name="operation" value="edit">
- <input type="hidden" name="id" value="<%=request("checkbox")%>">
- </div>
- </td>
- </tr>
- </table>
- <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34">
- <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr>
- </table></form>
- <script language="JavaScript" src="../../Inc/func.js">
- </script>
- <script>
- //ClassSelect(form1.classid,"<%=rs2("classid")%>");
- //ClassSelect(form1.nclassid,"<%=rs2("nclassid")%>");
- </script>
- <%
- call COCLS
- %>