📄 jcsj.asp
字号:
<!--#include file=conn.asp --><!--#include file="char.inc"--><!--#include file=../include/config.asp --><!--#include file="chkuser.asp" -->
<%
IF request.cookies("KEY")="" THEN
response.redirect "index_face.asp"
response.end
else
usernamecookie=CheckStr(request.cookies("UserName"))
passwdcookie=replace(trim(Request.cookies("passwd")),"'","''")
KEYcookie=replace(trim(request.cookies("KEY")),"'","''")
if usernamecookie="" or passwdcookie="" then
response.redirect "login.asp"
response.end
else
'判断用户的合法性
set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='"&usernamecookie&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect "login.asp"
response.end
end if
IF passwdcookie<>rs("passwd") THEN
response.redirect "login.asp"
response.end
END IF
'下面判断用户级别实际在有用户级别是都应该判断
if KEYcookie<>rs("OSKEY") then
response.redirect "index_face.asp"
response.end
end if
rs.close
set rs=nothing
END IF
END IF
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%> <%=ver%> - 个人资料修改</title>
<script LANGUAGE="javascript">
<!--
function FrmAddLink_onsubmit() {
if (document.FrmAddLink.passwd.value=="")
{
alert("对不起,请您输入密码!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length < 4)
{
alert("为了安全,您的密码应该长一点!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length > 16)
{
alert("您的密码太长了吧!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.username.value==document.FrmAddLink.passwd.value)
{
alert("为了安全,用户名与密码不应该相同!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd2.value=="")
{
alert("对不起,请您输入验证密码!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
{
alert("对不起,您两次输入的密码不一致!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.question.value=="")
{
alert("对不起,请您输入提示问题!")
document.FrmAddLink.question.focus()
return false
}
else if (document.FrmAddLink.answer.value=="")
{
alert("对不起,请您输入问题答案!")
document.FrmAddLink.answer.focus()
return false
}
else if (document.FrmAddLink.question.value==document.FrmAddLink.answer.value)
{
alert("为了安全,提示问题与问题答案不应该相同!")
document.FrmAddLink.answer.focus()
return false
}
else if (document.FrmAddLink.fullname.value=="")
{
alert("对不起,请输入您的真实姓名!")
document.FrmAddLink.fullname.focus()
return false
}
else if (document.FrmAddLink.depid.value=="")
{
alert("对不起,请输入您的工作单位!")
document.FrmAddLink.depid.focus()
return false
}
else if (document.FrmAddLink.sex.value=="")
{
alert("对不起,请输入您的性别!")
document.FrmAddLink.sex.focus()
return false
}
else if (document.FrmAddLink.tel.value=="")
{
alert("对不起,请输入您的联系电话!")
document.FrmAddLink.tel.focus()
return false
}
else if (document.FrmAddLink.email.value=="")
{
alert("对不起,请输入您的电子邮件!")
document.FrmAddLink.email.focus()
return false
}
else if (document.FrmAddLink.email.value.indexOf("@",0)== -1||document.FrmAddLink.email.value.indexOf(".",0)==-1)
{
alert("对不起,您输入的电子邮件有误!")
document.FrmAddLink.email.focus()
return false
}
}
//-->
</script>
</head>
<body topmargin="0">
<!--#include file=top.asp--><br>
<table border="1" width="750" cellspacing="0" cellpadding="0" style="border-collapse: collapse" align=center>
<form method="POST" name="FrmAddLink" LANGUAGE="javascript"
onsubmit="return FrmAddLink_onsubmit()" action="jcsjsave.asp">
<tr>
<td width="39%">
<p align="right">照片:</td>
<td width="60%"><iframe name="ad" frameborder=0 width=100% height=20 scrolling=no src=uploadface.asp></iframe>
<input name="photo" type="text" size="30" class="smallInput" style="font-family: 宋体; font-size: 9pt" title="个人照片。您可以上传自己的照片,也可以直接填写您的网上照片的地址。">
</td>
</tr>
<tr>
<td width="39%">
<p align="right">说明:</td>
<td width="60%"><textarea rows="5" name="shuoming" cols="30" style="font-family: 宋体; font-size: 9pt"></textarea>
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center">
<input type="submit" value="提交"
name="cmdok" class="buttonface" style="font-family: 宋体; font-size: 9pt;">
<input type="reset" value="复 原"
name="cmdcancel" class="buttonface" style="font-family: 宋体; font-size: 9pt;">
<input type="reset" value="返 回" onclick="javascript:history.go(-1)" class="buttonface" style="font-family: 宋体; font-size: 9pt;">
</td>
</tr>
<tr>
<td width="100%" colspan="2" align=center></td>
</tr>
</table>
</form>
<hr>
<%
set rst=server.createobject("adodb.recordset")
sql="select * from jcsj order by id desc"
rst.open sql,conn,1,1
%><%
if Not(rst.bof and rst.eof) then'判别数据表中是否为空记录
NumRecord=rst.recordcount
rst.pagesize=6
NumPage=rst.Pagecount
if request("page")=empty then
NoncePage=1
else
if Cint(request("page"))<1 then
NoncePage=1
else
NoncePage=request("page")
end if
if Cint(Trim(request("page")))>Cint(NumPage) then NoncePage=NumPage
end if
else
NumRecord=0
NumPage=0
NoncePage=0
end if
%>
<div align="center">
<table border="0" width="750">
<tr>
<td width="115" bgcolor="#EBE9FE" align="center">日期</td>
<td width="508" bgcolor="#EBE9FE" align="center">说明</td>
<td width="113" bgcolor="#EBE9FE" align="center" colspan="3">操作</td>
</tr>
<%if Not(rst.bof and rst.eof) then
rst.move (Cint(NoncePage)-1)*10,1
for i=1 to rst.pagesize
%>
<tr>
<td width="115" align="center"><%=(year(rst("date")))%>-<%=(month(rst("date")))%>-<%=(day(rst("date")))%></td>
<td width="508" align="center"> <%=rst("shuoming")%></td>
<td width="69" align="center"><a target="_blank" href=../<%=rst("photo")%>>查看照片</a></td>
<td width="40" align="center">
<a href="jcsjdel.ASP?id=<%=rst("id")%>">删除</a></td>
</tr>
<% rst.movenext
if rst.eof then exit for
next
else
response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if
rst.close
set rst=nothing
%>
</table>
<table width="621" border="0" align="center">
<tr> <td width="90"> </td>
<td height="17" width="521">
<div align="right">
<input type="hidden" name="page" value="<%=NoncePage%>">
<%
if NoncePage>1 then
response.write "|<a href=sqstar.asp?page=1>首 页</a>| |<a href=sqstar.asp?page="&NoncePage-1&">上一页</a>| "
else
response.write "|首 页| |上一页| "
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
response.write "|<a href=sqstar.asp?page="&NoncePage+1&">下一页</a>| |<a href=sqstar.asp?page="&NumPage&">尾 页</a>|"
else
response.write "|下一页| |尾 页|"
end if
%>
页次:<font color="#0033CC"><%=NoncePage%></font>/<font color="#0033CC"><%=NumPage%></font>
共<font color="#0033CC"><%=NumRecord%></font>条记录 </div>
</td>
</table>
</div></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -