📄 welcome.php3
字号:
<?
/*大家好,我是豆腐
提供原码是我的一贯原则,但是希望大家能够尊重豆腐的工作
希望大家在使用的过程中随时和我联系 http://www.asp888.net
您可以随意修改代码,但是请保留我的注释(如果不保留,我也没办法)
如果您觉得这个程序对您有或多或少的帮助,豆腐希望能够得到您的鼓励
您的鼓励和支持,是我们工作的最大动力
. =======
/ \| O O |
\ / \v_'/
# _| |_
(#) ( )
#\//|* *|\\
#\/( * )/ //豆腐制作,都是精品
# =====
# (\ /)
# || ||
.#---'| |----.
#----' -----'
//哲人说:用我的心换你的心,我们便拥有两颗心
*/
function GetManage($classid){
global $conn;
$SQL="select * from class_class where classid='" . $classid . "'";
$st1=opensql($conn,$SQL);
$st=fecthRow($st1);
$managerid=getcolumn($st,"managerid");
$SQL="select * from class_classuser where userid='" . $managerid . "'";
$st1=opensql($conn,$SQL);
$st=fecthRow($st1);
$mailAddr=getcolumn($st,"useremail");
$ret="管理员:<a href='mailto:" . $mailAddr ."'>" . $managerid . "</a>";
return $ret;
}
include("conn.php3");
include("db.php3");
$conn=openconn();
?>
<?
session_start();
$userid=$session_userid;
if($userid=="")
{
echo "对不起,请您合法使用本站点";
exit;
}
?>
<?
$SQL="select * from class_userinfo where userid='" . $userid . "'";
$st2=openSql($conn,$SQL);
$st3=fecthrow($st2);
$loginnum=getcolumn($st3,"login");
$SQL="select * from " . $DataBaseOwerName . ".class_userrelation where userid='" . $userid . "'";
$stmt1=opensql($conn,$SQL);
?>
<HTML>
<HEAD>
<TITLE>欢迎<? echo $userid ?>来到同学录</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="class.css">
<script language="JavaScript">
function logout(){
window.open("logout.php3","","toolbar=no,scrollbars=1,menubar=no,resizable=1,width=1,height=1");
top.location.href="login.htm";
}
</SCRIPT>
</HEAD>
<BODY >
<table width=100% border=1>
<TR>
<td width=70% align=right>
<a href=info.php3 target="_blank">个人信息管理</a>
</td>
<td align=right>
<a href="javascript:logout()">退出登录</a>
</td>
</tr>
</table>
<p></p>
<?echo getcolumn($st3,"userid")?>:这是您第<font color=red><?echo $loginnum?></font>次进入同学录
<?
while($stmt=fecthrow($stmt1)){
if(getcolumn($stmt,"CLASSID")!=""){?>
<table border=1>
<tr>
<?
$classid =getcolumn($stmt,"CLASSID");
?>
<td><? echo $classid; ?></td>
<td><? echo GetManage($classid)?></td>
<td><a href=txl.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="_new">通讯录</a></td>
<td><a href=lyb.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">留言板</a></td>
<td><a href=liuyan.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">我要留言</a></td>
<td><a href=upload.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">照片上载</a></td>
<td><a href=broswer.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">照片浏览</a></td>
<td><a href=static.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">访问统计</a></td>
<td><a href=manager.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">班级管理</a></td>
<td><a href=exitclass.php3?classid=<? echo urlencode(getcolumn($stmt,"CLASSID")) ?> target="new">注销</a></td>
</tr>
</table>
<?
}
}
?>
<p>以下是进行注册自己的学校和班级</p>
<form action="RegSchool.php3?step=1" method="post">
学校所在省份:<select name="selProvince" class=selectFace>
<? include("province.txt"); ?>
</select>
<br>
学校类型:
<select name="selType" class=selectFace>
<? include("schooltype.txt"); ?>
</select>
<br>
<input type=hidden name="userid" value="<? echo $userid ?>">
<input type=submit name="cmdDo" value="确定" class=buttonface>
</form>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -