📄 zyzn_fupdate.asp
字号:
<%
if session("cjuser")="" and session("pwdd")="" then
response.write"<SCRIPT language=JavaScript>alert('你没有登录,无权进入!');"
response.write"this.location.href='error.htm';</SCRIPT>"
response.end
end if
%>
<!--#include file=../conn/adodb1.asp -->
<%
dim id
id=request.querystring("id")
session("dd")=id
dim sql,rs
sql="select * from zyzn where id=cstr('"&id&"')"
set rs=db.execute(sql)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.f {
font-size: 10pt;
}
-->
</style>
<SCRIPT language=JavaScript>
function check()
{
if(frm1.title.value == "")
{
alert("您忘了填写标题了!");
frm1.title.focus();
return false;
}
if(frm1.link.value == "" && frm1.content.value == "")
{
alert("您忘了填写内容了!");
frm1.content.focus();
return false;
}
if(frm1.link.value != "" && frm1.content.value != "")
{
alert("链接网页,就不能写内容了,只能选择一项!");
return false;
}
}
</script>
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="100">
<table width="89%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><form name="frm1" method="post" action="zyzn_update.asp">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr class="xiangxi" >
<td colspan="4"><span class="f"><strong> </strong></span><strong>修改新闻</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="11%" height="25" class="f"> 标题: </td>
<td height="25" colspan="3"> <input name="title" type="text" id="title" value="<%=rs("title")%>" size="30">
<select name="lx">
<option value="购房指南">购房指南</option>
<option value="租房指南" selected>租房指南</option>
<option value="收费指南" selected>收费指南</option>
<option value="政策法规" selected>政策法规</option>
<option value="房产新闻" selected>房产新闻</option>
<option value="银行贷款" selected>银行贷款</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" class="f"> 链接地址:</td>
<td height="25" colspan="3" class="f"> <input name="link" type="text" id="link" value="<%=rs("link")%>" size="50">
(如果链接其他网页,内容勿填写)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="19" align="center" class="f">内<br> <br>
容</td>
<td colspan="3"><br> <textarea name="content" cols="70" rows="15" id="content"><%=rs("content")%>
</textarea>
<br> <br> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" colspan="4" class="f">
<input type="submit" name="Submit" onClick=" return check();" value="确定">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -