📄 classphotolist.asp
字号:
<!--#include file=globals.asp -->
<%
ClassID=Session("ClassID")
userid=session("userid")
if ClassID="" then response.redirect "Error.asp?Info=请您先登陆,谢谢!"
page=abs(int(request("page")))
if trim(page)="" or page<1 then
page=1
end if
%>
<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.xian8.com/alumni'>请点这里</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
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
%><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>
</tr>
</table>
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD vAlign=top bgColor=#fbaf0c height=7 width="607"><IMG height=1
src="img/c.gif" width=1></TD>
<TD align=middle width=157 bgColor=#FBAF0C><IMG height=1
src="img/c.gif" width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=761 border=0>
<TBODY>
<TR>
<TD class=bg1 style="BORDER-LEFT: #fbaf0c 7px solid" vAlign=top align=middle
width=123>
<TABLE height=5 cellSpacing=0 cellPadding=0 width=100 border=0>
<TBODY>
<TR>
<TD><IMG height=1 src="img/c.gif"
width=1></TD></TR></TBODY></TABLE><LINK href="img/photo.css"
type=text/css rel=stylesheet>
<TABLE height=22 cellSpacing=2 cellPadding=0 width=114
background=img/cla_bg3.gif border=0>
<TBODY>
<TR>
<TD vAlign=bottom align=middle>我的校友录</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=114 border=0 align=middle>
<TBODY align=middle >
您好:<font color="#FF6600"><%=userid%></font></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=114 height=362 border=0>
<TBODY>
<TR vAlign=top>
<TD height="14" width="114" colspan="3" align="center">
</TD></TR>
<TR vAlign=top>
<TD height="7" width="114" colspan="3">
</TD></TR>
<tr>
<TD height="18" align="center" width="103" colspan="2">
·个人设置</TD>
<TD height="18" align="center" width="11">
</TD>
</tr>
<tr>
<TD height="22" align="center" valign="top" width="114" colspan="3">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -