📄 writetzh.asp
字号:
<%
if session("username")="" or session("password")="" then
session.timeout=5
response.write "<script language='javascript'>"
response.write "alert('账号或密码错误!');"
response.write "history.go(-1);"
response.write "</script>"
response.end
end if
%>
<!--#include file="../conn.asp"-->
<%
Set rs= Server.CreateObject("ADODB.Recordset")
sql1="select * from tzh where id=1 "
rs.open sql1,conn,3,2
%>
<html>
<head>
<style>
<!--
p{color:000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 20px;}
a {color:#000000;FONT-FAMILY: "??"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "??"; font-size: 9pt}
-->
<!--
a:link {FONT-FAMILY: "??"; font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "??"; font-size: 9pt; color:#000000}
-->
</style>
<style>
<!--
p{color:000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px;}
a {color:#000000;FONT-FAMILY: "宋体"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "宋体"; font-size: 9pt}
-->
a:link {FONT-FAMILY: "宋体"; font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "宋体"; font-size: 9pt; color:#000000}
-->
</style>
<script>
function checkForm()
{
if (document.other.zth.value.length > 500)
{
alert("最多不能多于500个字!");
return false;
}
if (document.other.tzh.value.length == 0)
{
alert("你提交的信息为空!");
return false;
}
return true;
}
</script>
<title>首页滚动信息</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body bgcolor="#7bb5de">
<div align="center">
<form name="other" METHOD="post" action="tzhend.asp" onsubmit="return checkForm()" >
<div align="center">
<center>
<table border="1" cellpadding="4" class=lowcolor cellspacing="0" bordercolor="#7bb5de" style="border-collapse: collapse">
<tr >
<td valign="top" align="center" width="100%" height="28"> <span style="font-size: 14px; font-weight: 700">写
通 知 信 息</span></td>
</tr>
<tr>
<td valign="top" align="right" width="100%">
<p align="left">
<textarea rows="7" name="tzh" cols="59"><%=rs("tzh")%></textarea>
</td>
</tr>
<tr>
<td valign="top" align="center">
<div align="center">字的颜色:
<select name="id">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type="submit" value=" 发布首页信息 " name="submit" class="lkbtn">
<br>
1表示默认,2表示红色,3表示蓝色,4表示白色 </div>
</td>
</tr>
</table>
</center>
</div>
</form>
</div>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -