List_Edit.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:2k
源码类别:
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
- set rs=conn.execute("select * from news where id="&request.form("checkbox"))
- %>
- <form name="form1" method="post" action="List_Save.asp" onSubmit="return frmchk();" enctype="multipart/form-data">
- <table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
- <tr bgcolor="#3366CC">
- <td height="25" colspan="2">
- <div align="center"><b><font color="#FFFFFF">信息修改</font></b></div></td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25"> <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>新闻标题:</DIV></TD>
- <td width="79%" height="25"> <input type="text" name="title" size="50" value="<%=rs("title")%>">
- </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25"> <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 新闻内容:</DIV></TD>
- <td width="79%" height="25"> <textarea name="content" cols="85" rows="25"><%=REPLACE(rs("content"),"<br>","")%></textarea>
- </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25"> <div align="center">* 新闻图片:</div></TD>
- <td width="79%" height="25"> <%IF RS("pic")<>"" THEN%> <a href="../../upload/<%=rs("pic")%>" target="_blank">点击查看图片</a><br>
- <%END IF%> <input type="file" name="file" size="35"> </td>
- </tr>
- <tr>
- <td height="25" colspan="2"> <div align="center">
- <input type="submit" name="Submit" value="修改">
- <input type="button" value="取消" onClick="history.go(-1)">
- <input type="hidden" name="operation" value="edit">
- <input type="hidden" name="id" value="<%=request("checkbox")%>">
- </div></td>
- </tr>
- </table>
- <script language="JavaScript">
- function frmchk()
- {
- if (form1.title.value == "")
- {
- alert("请填写新闻标题!");
- return false;
- }
- if (form1.content.value == "")
- {
- alert("请填写新闻内容");
- return false;
- }
- }
- </script> <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>
- <%
- call COCLS
- %>