⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wyly_ckly_ck.asp

📁 asp+Access开发的客户资源管理系统,用户名:admin,密码:
💻 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["email"],str))return false;
if (form.elements["email"].value!="")
str="请输入正确的Email地址!\n\n(例如:webmaster@chinawatertreatment.com)";
if (!checkEmail(form.elements["email"],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">
		<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">&nbsp;&nbsp;&nbsp;『晨景软体』-留言管理 
			<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">
			<table width="100%" cellspacing="1" height="415">
			<tr> 
			<td height="6" colspan="2">&nbsp; </td>
		</tr>
		<tr> 
			<td height="349" colspan="2"> 
			<table width="100%" cellspacing="1" bgcolor="#666666">
			<tr bgcolor="#657cb1" class="big_b"> 
			<td colspan="2">留言信息:</td>
		</tr>
		<tr bgcolor="#F8F4E0"> 
			<td width="15%" class="small">发送者姓名:</td>
			<td class="small"><%=name%></td>
		</tr>
		<tr bgcolor="#F4F4E8"> 
			<td class="small" width="15%">标题:</td>
			<td class="small"><%=title%></td>
		</tr>
		<tr bgcolor="#F8F4E0"> 
			<td class="small" width="15%">电子邮件:</td>
			<td class="small"><%=email%></td>
		</tr>
		<tr bgcolor="#F4F4E8"> 
			<td class="small" height="68">留言内容:</td>
			<td class="small" height="68"><font size="2"> 
			<textarea rows="4" name="textarea" cols="70" style="background-color: #cdd5e4; border: 1 solid #B9B9B9" disabled><%=neirong%></textarea>
			</font></td>
		</tr>
		<tr bgcolor="#657cb1" class="big_b"> 
			<td colspan="2">回复留言:</td>
		</tr>
		<tr bgcolor="#F8F4E0"> 
			<td colspan="2" class="small" height="125"> 
			<table width="100%" cellspacing="1" height="167" class="small" bgcolor="#cdd5e4">
			<form name="form" method="post" action="wyly_wyly_1.asp">
		<tr> 
			<td width="8%" height="27">姓名:</td>
			<td width="25%" height="27"> 
			<input type="text" name="name" size="10" style="background-color: #cdd5e4; border-left: 0 solid #B9B9B9; border-right: 0 solid #B9B9B9; border-top: 0 solid #B9B9B9; border-bottom: 1 solid #B9B9B9">
			</td>
			<td width="20%" height="27">电子邮件:</td>
			<td width="47%" height="27"> 
			<input type="text" name="email" size="24" style="background-color: #cdd5e4; border-left: 0 solid #B9B9B9; border-right: 0 solid #B9B9B9; border-top: 0 solid #B9B9B9; border-bottom: 1 solid #B9B9B9">
			</td>
		</tr>
		<tr> 
			<td height="2" width="8%">标题:</td>
			<td colspan="3" height="2"> 
			<input type="text" name="title" size="28" style="background-color: #cdd5e4; border-left: 0 solid #B9B9B9; border-right: 0 solid #B9B9B9; border-top: 0 solid #B9B9B9; border-bottom: 1 solid #B9B9B9">
			</td>
		</tr>
		<tr> 
			<td height="13" width="8%">&nbsp;</td>
			<td colspan="3" height="81" rowspan="2" valign="bottom"><font size="2"> 
			<textarea rows="4" name="reirong" cols="75" style="background-color: #cdd5e4; border: 1 solid #B9B9B9"></textarea>
			</font> </td>
		</tr>
		<tr> 
			<td height="74" width="8%" valign="top">内容:</td>
		</tr>
		<tr> 
			<td width="8%">对象:</td>
			<td colspan="3"> 
			<p> 
			<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>
			</p>
			</td>
		</tr>
		<tr> 
			<td colspan="4"> 
			<table width="100%" cellspacing="1">
		<tr> 
			<td width="44%" height="2"> 
			<div align="right">
			<input type="image" img src="images/qd.gif" width="45" height="17" onclick=" return validateFormInfo()"></div>
			</td>
			<td width="8%" height="2">&nbsp;</td>
			<td width="48%" height="2">
			<A HREF="javascript:window.close()"><img src="images/tc.gif" width="45" height="17" border="0"></A></td>
		</tr>
		</form>
		</table>
		</td>
		</tr>
		</table>
		</td>
		</tr>
		</table>
		</td>
		</tr>
		</table>
		</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>
	</table>
<div class="drag" id="Layer2" style="position:absolute; left:2px; top:1px; width:596px; height:22px; z-index:2"></div>
</body>
</html>
<%set conn=nothing%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -