📄 wyly_ckly_ck1.asp
字号:
<!--#include file="other/customer.inc" -->
<html>
<head>
<title>『晨景软体』-客户资源管理系统</title>
<link rel="stylesheet" href="other/customer.css">
<style>
.drag{position:relative;cursor:hand}
</style>
<script language="JavaScript">
var dragapproved=false
var eventsource,x,y
function move()
{
if (event.button==1&&dragapproved) //改变被拖动元素在页面上的位置
{
self.moveBy (event.clientX-x,event.clientY-y); //改变窗体位置
return false
}
}
function drags()
{
if (!document.all)
return
if (event.srcElement.className=="drag") //捕捉鼠标当前位置
{
dragapproved=true//确信当前鼠标是按下
x=event.clientX//鼠标当前位置
y=event.clientY//鼠标当前位置
document.onmousemove=move//调动move函数
}
}
document.onmousedown=drags //鼠标左键按下时,准备拖动
document.onmouseup=new Function("dragapproved=false")//鼠标左键放开时,拖动停止
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function validateFormInfo()
{
str="请输入您的姓名!";
if (!checkString(form.elements["name"],str))return false;
str="请输入您的标题!";
if (!checkString(form.elements["title"],str))return false;
str="请写一点内容吧!";
if (!checkString(form.elements["reirong"],str))return false;
}
</script>
</head>
<%
'与数据库建立连接
id=request.querystring("id")
id1=clng(id)
set conn=server.createobject("adodb.connection")
conn.open "driver={Microsoft Access Driver (*.mdb)};pwd=webcool_2000;dbq=" & Server.MapPath("../database/customer.mdb")
set rs=conn.execute("select * from bbs where id="&id1)
name=rs("name")
title=rs("title")
email=rs("email")
neirong=rs("neirong")
%>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" width="619">
<FORM METHOD=POST ACTION="wyly_ckly_ck2.asp" name="form">
<tr>
<td><img src="images/spacer.gif" width="5" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="609" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="5" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="3" background="images/cx_r1_c1.gif" class="title" valign="middle"> 『晨景软体』-留言管理
<div id="Layer1" style="position:absolute; width:22px; height:21px; z-index:3; left: 598px; top: 6px"><a href="javascript:window.close()"><img src="images/xx.gif" width="13" height="13" border="0"></a></div>
</td>
<td><img src="images/spacer.gif" width="1" height="26" border="0"></td>
</tr>
<tr>
<td rowspan="2"><img name="cx_r2_c1" src="images/cx_r2_c1.gif" width="5" height="423" border="0"></td>
<td bgcolor="#cdd5e4" valign="top" align="center"> <br>
<table width="590" cellspacing="1" bgcolor="#000000" class="small">
<tr bgcolor="#657cb1">
<td colspan="2"><b class="big">留言信息:</b></td>
</tr>
<tr bgcolor="#F8F4E0">
<td width="80" bgcolor="#F8F4E0">发 送 者:</td>
<td width="491"><%=name%></td>
</tr>
<tr bgcolor="#F4F4E8">
<td width="80">标 题:</td>
<td width="491"><%=title%></td>
</tr>
<tr bgcolor="#F8F4E0">
<td width="80">留言内容:</td>
<td width="491"><font size="2">
<textarea rows="6" name="textarea" cols="70" style="background-color: #F8F4E0; border: 0 solid #B9B9B9" disabled></textarea>
</font></td>
</tr>
</table>
<br>
<table width="590" cellspacing="1" bgcolor="#000000" class="small">
<tr bgcolor="#657cb1">
<td colspan="2"><b class="big">回复留言:</b></td>
</tr>
<tr bgcolor="#F8F4E0">
<td width="80">姓 名:</td>
<td width="491" bgcolor="#F8F4E0">
<input type="text" name="name" size="10" style="background-color: #F8F4E0; border-left: 0 solid #B9B9B9; border-right: 0 solid #B9B9B9; border-top: 0 solid #B9B9B9; border-bottom: 0 solid #B9B9B9" maxlength="10">
</td>
</tr>
<tr bgcolor="#F4F4E8">
<td width="80">标 题:</td>
<td width="491" bgcolor="#F4F4E8">
<input type="text" name="title" size="40" style="background-color: #F4F4E8; border-left: 0 solid #B9B9B9; border-right: 0 solid #B9B9B9; border-top: 0 solid #B9B9B9; border-bottom: 0 solid #B9B9B9" maxlength="40">
</td>
</tr>
<tr bgcolor="#F8F4E0">
<td width="80">内 容:</td>
<td width="491"><font size="2">
<textarea rows="5" name="reirong" cols="70" style="background-color: #F8F4E0; border: 0 solid #B9B9B9"></textarea>
</font></td>
</tr>
<tr bgcolor="#F4F4E8">
<td width="80">对 象:</td>
<td width="491">
<select name="username">
<option selected>大家</option>
<%
commandtext="select * from quanxian"
set rs1=conn.execute(commandtext,40,1)
while not rs1.eof
%>
<option value="<%=rs1("user").value%>"><%=rs1("user").value%></option>
<%
rs1.movenext
wend %>
</select>
</td>
</tr>
</table>
<p>
<input type="image" img src="images/qd.gif" width="45" height="17" onClick=" return validateFormInfo()" name="image">
<a href="javascript:window.close()"><img src="images/tc.gif" width="45" height="17" border="0"></a>
</p>
</td>
<td rowspan="2"><img name="cx_r2_c3" src="images/cx_r2_c3.gif" width="5" height="423" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="418" border="0"></td>
</tr>
<tr>
<td><img name="cx_r3_c2" src="images/cx_r3_c2.gif" width="609" height="5" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
</FORM> </table>
<div class="drag" id="Layer2" style="position:absolute; left:2px; top:1px; width:596px; height:22px; z-index:2"></div>
<%set conn=nothing%>
</body>
</html>
<html><script language="JavaScript"> </script></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -