Tag:html php mysql database
<?php include_once ' adminService.class.php '; Include_once ' admin.class.php '; Session_Start (); $name = $_session[' admin_name '); 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); ? ><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
If the login is a super Administrator:
<?php include_once ' adminService.class.php '; Session_Start (); $name = $_session[' admin_name '); 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); ? ><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Preview:
"PHP" 8, Student management system-View Administrator