📄 popwindow_modifyinfo.asp
字号:
<%@ Language=VBScript %>
<%Response.buffer=true%>
<!--#include file=globals.asp -->
<script language="javascript">
function selectclass(curid){
if (curid!=0) {
window.location.href="class_index.asp?selectclassid="+curid
}
}
function personalinfo(userid){
window.open("popwindow_perinfo.asp?userID="+userid,"top","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=580,height=400")
}
function personallogout(){
if (confirm("你确定要注销在这个班级的身份吗?"))
{
window.location.href="class_index.asp?act=del"
}
}
function manage(){
window.open("popwindow_manage.asp","top","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=570,height=500")
}
function PopWindowUpload(){
window.open("PopWindowUpload.asp","top","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=570,height=380")
}
</script>
<%
userid=session("userid")
realname=session("realname")
set rs = createobject("ADODB.recordset")
selectclassid=trim(request("selectclassid"))
act=trim(request("act"))
if act="del" then
sql="select * from classinfo where classid='"&session("classid")&"'"
rs.open SQL,schooldb
if not rs.eof then
monitor=rs("monitor")
monitor1=rs("monitor1")
end if
rs.close
if userid=monitor then
response.redirect "../error.asp?info=对不起您是本班的正班长,您不能注销自己的身份!"
end if
if userid= monitor1 then
sql="select * from classinfo where classid='"&session("classid")&"'"
rs.open SQL,schooldb,1,3
if not rs.eof then
rs("monitor1")=""
rs.update
end if
rs.close
end if
sql="delete from userjoinclassinfo where userid='"&userid&"' and classid='"&session("classid")&"'"
rs.open SQL,schooldb,1,3
SQL = "select * from userjoinclassinfo where userid='"&userid&"' order by joindate"
rs.open SQL,schooldb
if not rs.eof then
response.redirect "class_index.asp?selectclassid="&rs("classid")
else
Session.Abandon
response.redirect "../success.asp?info=您已经注销了在该班级的身份,而且您现在没有加入任何一个班级,<a href='http://www.sun2003.com/school'>请点这里</a>,登陆后重新注册班级!"
end if
rs.close
end if
if selectclassid<>"" then
sql="select * from userjoinclassinfo where userid='"&userid&"' and classid='"&selectclassid&"'"
rs.open SQL,schooldb
if rs.eof then
response.redirect "../error.asp?info=对不起,您不是本班成员无权进入!"
end if
rs.close
session("classid")=selectclassid
sql="select * from online where userid='"&userid&"'"
rs.open SQL,schooldb,1,3
if not rs.eof then
rs("classid")=selectclassid
rs.update
end if
rs.close
sql="select * from userjoinclassinfo where userid='"&userid&"' and classid='"&selectclassid&"'"
rs.open SQL,schooldb,1,3
if not rs.eof then
if session("loginflag")="" then
rs("logintimes")=rs("logintimes")+1
session("loginflag")=true
end if
rs("lastlogintime")=now
rs.update
end if
rs.close
end if
curclassid=Session("classid")
if userid="" then
response.redirect "../error.asp?info=对不起,您已经掉线了,请重新进入!"
end if
set rss = createobject("ADODB.recordset")
sql="select * from classinfo where classid='"&curclassid&"'"
rs.open SQL,schooldb
if not rs.eof then
classname=rs("classname")
monitor=rs("monitor")
monitor1=rs("monitor1")
tonggao=rs("tonggao")
regdate=rs("regdate")
enterdate=rs("enterdate")
end if
rs.close
set rs = createobject("ADODB.recordset")
sql="select * from userinfo where userid='"&userid&"'"
rs.open SQL,schooldb
if not rs.eof then
realname=rs("realname")
dearname=rs("dearname")
userbirth=rs("userbirth")
byear=year(userbirth)
bmonth=month(userbirth)
bday=day(userbirth)
passask=rs("passask")
anwserpass=rs("anwserpass")
end if
rs.close
sql="select * from usercommunicationinfo where userid='"&userid&"'"
rs.open SQL,schooldb
if not rs.eof then
communicationaddr=rs("communicationaddr")
telephone=rs("telephone")
mobile=rs("mobile")
bp=rs("bp")
qq=rs("qq")
workshop=rs("workshop")
homeaddr=rs("homeaddr")
email=rs("email")
iscashow=rs("iscashow")
ishashow=rs("ishashow")
isemailshow=rs("isemailshow")
isqqshow=rs("isqqshow")
istelephoneshow=rs("istelephoneshow")
ismobileshow=rs("ismobileshow")
isbpshow=rs("isbpshow")
iswsshow=rs("iswsshow")
end if
rs.close
schoolid=left(curclassid,8)
sc=schoolid
sql="select * from schoolinfo where schoolid='"&schoolid&"'"
rs.open SQL,schooldb
if not rs.eof then
schoolname=rs("schoolname")
end if
rs.close
sql="select * from userjoinclassinfo where userid='"&userid&"' and classid='"&curclassid&"'"
rs.open SQL,schooldb
if not rs.eof then
logintimes=rs("logintimes")
userstatus=rs("userstatus")
end if
rs.close
sql="select count(*) as a from userjoinclassinfo where userid='"&userid&"'"
rs.open SQL,schooldb,1,3
joinnum=rs("a")
rs.close
sql="select count(*) as b from userjoinclassinfo where classid='"&curclassid&"' and userstatus='成员'"
rs.open SQL,schooldb,1,3
membernum=rs("b")
rs.close
sql="select count(*) as c from userjoinclassinfo where classid='"&curclassid&"' and userstatus='教师'"
rs.open SQL,schooldb,1,3
teachernum=rs("c")
rs.close
sql= "Select count(*) as c from message where ClassID='"&curclassid&"' and Deleted=0 and Hits=0 and ToUserID='"&userid&"'"
rs.open SQL,schooldb,1,3
MsgNum=rs("c")
rs.close
%>
<%
set rs=server.createobject("adodb.recordset")
ClassID=Session("ClassID")
%>
<HTML><HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<TITLE>中国 创网-校友录 <%=schoolname%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript src="img/alumni.js"></SCRIPT>
<LINK href="img/alumni.css" type=text/css rel=stylesheet>
<script language="javascript">
function Del(URL)
{
if (confirm("你确定要删除吗?"))
{
//window.open("notebook.asp?curID="+curid+"&act=del","top","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=400")
window.location.href=URL
}
}
</script>
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY bgColor=white leftMargin=0 topMargin=5 >
<CENTER>
<!--#include file=../top.htm-->
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD vAlign=top bgColor=#fbaf0c height=7 colspan="2" width="760">
<table cellSpacing="0" cellPadding="0" width="760" border="0" height="1">
<tr>
<td width="141" bgcolor="#FFFFFF" height="1" valign="bottom">
<img src="img/cr_a1.gif" width="133" height="6"></td>
<td width="72" bgcolor="#FFFFFF" height="1"> </td>
<td width="98" bgcolor="#FFFFFF" height="1"> </td>
<td width="105" bgcolor="#FFFFFF" height="1"> </td>
<td width="108" bgcolor="#FFFFFF" height="1"> </td>
<td width="102" bgcolor="#FFFFFF" height="1"> </td>
<td vAlign="top" width="134" bgcolor="#FFFFFF" height="1"> </td>
</tr>
<tr>
<td width="141" height="32" background="img/cr_a31.gif">
<img src="img/cr_a2.gif" border="0" width="141" height="32"></td>
<td width="72" background="img/cr_a31.gif" height="32">
</td>
<td width="98" height="32" background="img/cr_a31.gif">
</td>
<td width="105" height="32" background="img/cr_a31.gif">
</td>
<td width="108" height="32" background="img/cr_a31.gif">
</td>
<td width="102" background="img/cr_a31.gif" height="32">
</td>
<td vAlign="top" width="134" background="img/cr_a32.gif" height="32">
<table height="26" cellSpacing="0" cellPadding="0" width="120" border="0">
<tr>
<td><a class="cnn" href="javascript:login()">
<img src="img/cr_a22.gif" border="0" width="16" height="16"></a></td>
<td class="cnn"><a class="cnn" href="javascript:login()">
<font color="#ffffff">登录</font></a></td>
<td width="12">
<img src="img/cr_a23.gif" width="2" height="16"></td>
<td><a class="cnn" href="../classlogout.asp">
<img src="img/cr_a22.gif" border="0" width="16" height="16"></a></td>
<td class="cnn"><a class="cnn" href="../classlogout.asp">
<font color="#ffffff">注销</font></a></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -