找传奇、传世资源到传世资源站!

php 研究生档案管理系统源码(含数据库)

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

超级管理员登陆账号:1000 密码:1000管理员账号:1001 密码:1学生端自己注册个吧 密码忘了
from clipboard
php 研究生档案管理系统源码(含数据库) PHP-第2张
from clipboard
from clipboard
from clipboard
from clipboard
from clipboard
from clipboard
学生端登陆后如下:from clipboard
from clipboard
from clipboard

session_start();//防止恶意调用define('IN_GM',true);//定义个常量,用来指定本页的内容define('SCRIPT','login');//引入公共文件require dirname(__FILE__).'/includes/common.inc.php';//开始处理登录信息if($_GET['action']==login){include ROOT_PATH.'includes/register.func.php';if($_system['needcode']==1){_check_code($_SESSION['code'], $_POST['code']);}$clean=array();$clean['num']=_check_username($_POST['num']);$clean['password']=_check_password($_POST['password']);if($rows=_fetch_array("SELECT gm_num,gm_username,gm_active,gm_level FROM gm_user WHERE gm_num='{$clean['num']}' AND gm_password='{$clean['password']}' LIMIT 1")){if ($rows['gm_active']==0){_alert_back('您的资料正在被审核,请耐心等待!');}else {_query("UPDATE gm_user SET gm_last_time=NOW(), gm_last_ip='{$_SERVER["REMOTE_ADDR"]}' WHERE gm_num='{$rows['gm_num']}'");//设置session$_SESSION['num']=$clean['num'];$_SESSION['username']=$rows['gm_username'];$_SESSION['level']=$rows['gm_level'];//判断权限分配页面if($_SESSION['level']==1){_location(null,'student_s.php');}else if ($_SESSION['level']==2 or $_SESSION['level']==3){_location(null,'admin.php');}else{_alert_back('非法操作!');}}}else{_alert_back('用户名或密码错误,忘记密码可请管理员重置');}}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>计算机学院研究生档案管理--登录</title><link rel="stylesheet" type="text/css" href="styles/basic.css" /><link rel="stylesheet" type="text/css" href="styles/login.css" /><script type="text/javascript" src="js/code.js"></script><script type="text/javascript" src="js/login.js"></script></head><body><div id="login"><h1><img src="images/loginlogo.png" alt="计算机学院" /></h1><form name="login" method="post" action="login.php?action=login"><dl><dt></dt><dd><!--<label for="num" >用户名:</label>--><input type="text" name="num" class="text" id="num" placeholder="用户名"/></dd><dd><!--<label for="password"> 密 码:</label>--><input type="password" name="password" class="text" id="password" placeholder="密码"/></dd><?php if($_system['needcode']==1){echo "<dd><label for='code1'></label><input type='text' name='code' class='text code' placeholder=验证码 id='code1' /> <img src='code.php' id='code' /></dd>";}?><dd><input type="submit" value="登 录" class="button" name="submit"/><input type="button" value="注 册" class="button" onclick="location.href='register.php'" /></dd></dl></form><div><h3>*提示信息<span><?php echo $_system['help_login'];?></span></h3></div></div></body></html>

<?php/***2012-7-30 | By:NaV!*///防止恶意调用define('IN_GM',true);//定义个常量,用来指定本页的内容define('SCRIPT','admin');//引入公共文件require dirname(__FILE__).'/includes/common.inc.php';//判断登录状态和权限_login_state(2);$active_num=_num_rows("SELECT gm_id FROM gm_stuinfo WHERE gm_active='0'");$message_num=_num_rows("SELECT gm_id FROM gm_message WHERE (NOW()-gm_systime)<12*3600");$message_re_num=_num_rows("SELECT gm_id FROM gm_message WHERE gm_replytime is null");$teacher_mat_num=_num_rows("SELECT gm_id FROM gm_stuinfo WHERE (gm_teacher is null OR gm_teacher='') AND gm_active='1' ");$funds_num=_num_rows("SELECT gm_fid FROM gm_funds");$user_num=_num_rows("SELECT gm_id FROM gm_user WHERE gm_active='1'");$stu_num=_num_rows("SELECT gm_id FROM gm_stuinfo WHERE gm_active='1'");$message_res=_query("SELECT * FROM gm_message ORDER BY gm_systime DESC LIMIT 8");$teacher_num=_num_rows("SELECT gm_id FROM gm_teacher");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link href="styles/admin.css" rel="stylesheet" type="text/css" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><?phprequire ROOT_PATH.'includes/title_admin.inc.php';?></head><body><?phprequire ROOT_PATH.'includes/header_admin.inc.php';?><div id="main"><div id="left"><dl><dt>统计信息</dt><dd><a href="stu_active.php">发现有<?php echo $active_num?>名学生需要审核</a></dd><dd><a href="message_admin.php">发现有<?php echo $message_num?>条最新的留言</a></dd><dd><a href="message_admin.php?action=some">发现有<?php echo $message_re_num?>条留言未回复</a></dd><dd><a href="teacher_match.php?action=some">发现有<?php echo $teacher_mat_num?>位学生未分配导师</a></dd><dd><a href="funds_admin.php">共有<?php echo $funds_num?>条经费记录</a></dd><dd><a href="user_data.php">共有<?php echo $user_num?>个可登录用户</a></dd><dd><a href="stu_date.php">共有<?php echo $stu_num?>个研究生信息</a></dd><dd><a href="teacher_data.php">共有<?php echo $teacher_num?>个导师信息</a></dd></dl></div><div id="right"><dl><dt> 最新留言</dt><?phpfor($i=0;$i<8;$i ){$message_row=_fetch_array_list($message_res);if($message_row['gm_id']=='')break;echo '<dd><span class="stu"><a href="stu_date_one.php?num='.$message_row['gm_num'].'">'.$message_row['gm_username'].'</a></span><span class="time"> '.date('Y-m-d H:i',strtotime($message_row['gm_systime'])).' </span><a href="message_edit_admin.php?action=edit&id='.$message_row['gm_id'].'">'._cut($message_row['gm_content'],25).'</a>';if($message_row['gm_replytime']==NULL)echo ' [<i>未回复</i>]';echo '</dd>';}?></dl></div></div><?phprequire ROOT_PATH.'includes/footer_admin.inc.php';?></body></html>

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复