【php】八、学生管理系统-查看管理员

WBOY
Release: 2016-06-13 12:18:50
Original
1434 people have browsed it

【php】8、学生管理系统-查看管理员

<?php include_once &#39;adminService.class.php&#39;;    include_once &#39;admin.class.php&#39;;        session_start();    $name = $_SESSION[&#39;admin_name&#39;];        if($name == "")    {        header("Location: admin_login.php?error=1");        exit();    }        $admin = new admin();    $service = new adminservice();        $admin = $service->getAdminByName($name);    $ii = $admin->getPower();        if($ii > 1)    {        header("Location: godAdminlist.php");        exit();    }    $pagesize = 12;    $pagenow = 1;    $pagecount = 0;        $pagecount = $service->getpagecount($pagesize);    if(!empty($_GET['pagenow']))    {        $pagenow=$_GET['pagenow'];    }    $adminlist = $service->getadminlist($pagesize, $pagenow);    ?>		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	<title>管理员管理系统</title>				  
Copy after login
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?>
管理员ID号 管理员姓名 管理员密码
"; //显示上一页和下一页 if($pagenow > 1) { $prePage=$pagenow - 1; echo "上一页   "; echo "《《   "; } echo ""; //中间打印10页选择 for($i=$pagenow; $i $i   "; } } echo ""; //下一页 if($pagenow 》》   "; echo "下一页   "; } echo ""; echo "当前页$pagenow/共{$pagecount}页面"; echo ""; echo "
跳转到:

如果登陆的是超级管理员的话:

<?php include_once &#39;adminService.class.php&#39;;        session_start();    $name = $_SESSION[&#39;admin_name&#39;];        if($name == "")    {        header("Location: admin_login.php?error=1");        exit();    }        $pagesize = 12;    $pagenow = 1;    $pagecount = 0;    $service = new adminservice();    $pagecount = $service->getpagecount($pagesize);    if(!empty($_GET['pagenow']))    {        $pagenow=$_GET['pagenow'];    }    $adminlist = $service->getadminlist($pagesize, $pagenow);    ?>		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">	<title>管理员管理系统</title>				  
Copy after login
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?>
管理员ID号 管理员姓名 管理员密码 管理员权限 修改管理员
">修改用户
"; //显示上一页和下一页 if($pagenow > 1) { $prePage=$pagenow - 1; echo "上一页   "; echo "《《   "; } echo ""; //中间打印10页选择 for($i=$pagenow; $i $i   "; } } echo ""; //下一页 if($pagenow 》》   "; echo "下一页   "; } echo ""; echo "当前页$pagenow/共{$pagecount}页面"; echo ""; echo "
跳转到:

预览:






Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template