D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
dadmin.php
back
Copy
<?php //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1); //error_reporting(E_ALL); //echo("I dey here Now oooo"); include("Connecter/dataconn.php"); $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; $mat = $_SESSION["matric_no"]; $surname = $_SESSION["surname"]; $firstname = $_SESSION["firstname"]; $othernames = $_SESSION["othernames"]; $bb = ""; /*include("upload.php");*/ include("forall.php"); /*include("uploadpic.php");*/ $chapprov=0; $sql="select * from sessions where status='started'"; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num>0){ $row=mysql_fetch_array($result); $statusjoy=$row['stage']; $sesjoy=$row['session']; if($statusjoy==0){ include('newsession2.php'); exit(); } if($statusjoy==1){ include('newsession3.php'); exit(); } } $sql="select * from sessions where status='editstu'"; $result=mysql_query($sql); $num=mysql_num_rows($result); if($num>0){ $row=mysql_fetch_array($result); $statusjoy=$row['stage']; $sesjoy=$row['session']; $pp2=basename($_SERVER['PHP_SELF']); $pp4=$_SERVER['PHP_SELF']; $pp6=str_replace($pp2,"",$pp4); if($statusjoy==0){ //$yy='http://localhost'.$pp6.'managestudents.php?returnstudent=' . $statusjoy . '&ses=' . $sesjoy; $yy='http://result.dominicaninstitute.edu.ng/'.$pp6.'managestudents.php?returnstudent=' . $statusjoy . '&ses=' . $sesjoy; //echo($yy); //exit(); //include($yy); //header('Location: ' . $yy); //exit(); $chapprov=1; } else{ //$yy='http://localhost'.$pp6.'liststudentsassigned2.php?tab=' . $statusjoy . '&ses=' . $sesjoy; $yy='http://result.dominicaninstitute.edu.ng/'.$pp6.'liststudentsassigned2.php?tab=' . $statusjoy . '&ses=' . $sesjoy; //echo($yy); //exit(); //include($yy); //header('Location: ' . $yy); //exit(); $chapprov=1; } } if(isset($acc) && $acc=="studentoftheuniversity2015byto"){ if(isset($_POST['addnew'])){ $titler=getst($_POST['titler']); $contenter=getst($_POST['contenter']); $dater=getst($_POST['dater']); $matric=getst($_POST['matric']); $archived="No"; $sql=sprintf("insert into transcripts (institute, address, dater, archived, matric) VALUES ('%s', '%s', '$dater', '$archived', '$matric')", mysql_real_escape_string($titler), mysql_real_escape_string($contenter)); if (mysql_query($sql)) $bb="<p>Transcript Request Successfully added</p>"; else $bb="<p>Unable to add your Transcript Request: " . mysql_error() . "</p>"; } /*$mat = $_SESSION["matric_no"]; $pro = $_SESSION["deptsn"]; $yea = $_SESSION["yearofentry"]; $dde = $_SESSION["dde"];*/ } if (isset($_POST['subcom'])) { $matric = $_POST['matric']; $secred = $_POST['secred']; $systematic = $_POST['systematic']; $moral = $_POST['moral']; $secredo = $_POST['secredo']; $systematico = $_POST['systematico']; $moralo = $_POST['moralo']; $query_ass2="select * from comprehensive where matric = '$matric'"; $result_ass2=mysql_query($query_ass2) or die(mysql_error()); $row_ass2=mysql_fetch_assoc($result_ass2); $totalrow2 = mysql_num_rows($result_ass2); if ($totalrow2 == 0) { if (empty($secred) || empty($systematic) || empty($moral) || empty($secredo) || empty($systematico) || empty($moralo)) { echo "<script> alert('Please fill all fields') </script>"; }else{ $sql=sprintf("insert into comprehensive (matric, secred, systematic, moral, secredo, systematico, moralo) VALUES ('$matric', '$secred', '$systematic', '$moral', '$secredo', '$systematico', '$moralo')"); if (mysql_query($sql)) $bb="<p>Successfully Added A Comprehensive Result</p>"; else $bb="<p>Unable to Result: " . mysql_error() . "</p>"; } if (isset($bb)) { echo "<script>alert($bb)</script>"; } } } ?> <!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"> <?php include("head.php"); ?> </head> <body> <?php if($chapprov==1){ ?> <script> setTimeout(function(){ window.location.href = '<?php echo($yy); ?>'; }, 500); </script> <?php } else{ include("top.php"); include("dtable0.php"); //include("nav.php"); include("dtable1.php"); include("topcontainer.php"); ?> <div><?php echo $bb; ?></div> <?php if($_SESSION['dtype'] == "superadmin"){ include("menu/adminmenu.ini"); } elseif($_SESSION['dtype'] == "exams"){ include("menu/examsmenu.ini"); } elseif($_SESSION['dtype'] == "records"){ include("menu/recordsmenu.ini"); } elseif($_SESSION['dtype'] == "superior"){ include("menu/superiormenu.ini"); } elseif($_SESSION['dtype'] == "lecturer"){ include("menu/lecturermenu.ini"); } elseif($_SESSION['dtype'] == "student"){ include("menu/studentmenu.ini"); } elseif($_SESSION['dtype'] == "faculty"){ include("menu/facultymenu.ini"); } ?> <!--Content Ends Here--> <?php include("bottomcontainer.php"); include("dtable2.php"); include("side.php"); include("dtable3.php"); include("foot.php"); } ?> </body> </html>