diff --git a/PDF Format/pftTemplate.php b/PDF Format/pftTemplate.php index 335e968..c6c38ae 100644 --- a/PDF Format/pftTemplate.php +++ b/PDF Format/pftTemplate.php @@ -133,7 +133,7 @@ '. $grades[$x]['subject_name'] .' '. ($grades[$x]['lec_units'] + $grades[$x]['lab_units']) .' '. $grades[$x]['grade'] .' - + '; } @@ -202,7 +202,7 @@
- +
Adviser @@ -223,7 +223,7 @@
- RODERICK P. GO, PhD +
OIC-DEAN, CSS
@@ -251,7 +251,7 @@
- LUCY FELIX-SADIWA, MSCS +
Member/Computer Science Department Head
@@ -259,7 +259,7 @@
- GADMAR M. BELAMIDE, MEnggEd +
Member/College Secretary
@@ -268,7 +268,7 @@
- MARJORIE A. ROJAS +
Member/Student Affairs Coordinator
@@ -277,7 +277,7 @@
- JOHN ED AUGUSTUS A. ESCORIAL, MIT +
Member/Information Technology Department Head
@@ -285,8 +285,7 @@
- ODON A. MARAVILLAS JR, MSCS - +
Chairperson/Associate Dean
@@ -352,10 +351,16 @@ function download(){ callback: function(docPDF) { docPDF.save('HTML Linuxhint web page.pdf'); }, - x: 15, - y: 15, - width: 170, - windowWidth: 650 + x: 20, + y: 2, + width: 170, + windowWidth: 700, + // orientation: "portrait", + // unit: "in", + // format: [8, 12], + orientation: "l", + unit: "in", + // format: 'legal', }); } diff --git a/apply/admin-application.php b/apply/admin-application.php index 02d99d4..1340e91 100644 --- a/apply/admin-application.php +++ b/apply/admin-application.php @@ -285,7 +285,7 @@ function large() {
-
+
@@ -309,7 +309,6 @@ function large() { - @@ -330,126 +329,126 @@ function large() { $suffix = "th"; } $user_id = $row["id"]; - echo "" . "" . '" . '' . ""; } } ?> -
Curriculum Section Total GPAEmail Address Adviser Status Action
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "" . $row["email"] . "" . $row["adviser_status"] . " + echo "
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . round($row["gpa"],4) . "" . $row["adviser_status"] . "
-
-
- - +
+
+ +
-
+
@@ -473,7 +472,6 @@ function large() { - @@ -500,8 +498,7 @@ function large() { - - +
-
+ Curriculum
- + @@ -559,7 +556,7 @@ function large() { $suffix = "th"; } $user_id = $row["user_id"]; - echo ""; + echo ""; } } ?> @@ -580,7 +577,7 @@ function large() { \ No newline at end of file diff --git a/apply/adviser-application.php b/apply/adviser-application.php index 3ca84b9..99436f8 100644 --- a/apply/adviser-application.php +++ b/apply/adviser-application.php @@ -284,24 +284,24 @@ function large() {
-
+
@@ -329,7 +329,6 @@ function large() {
- @@ -347,11 +346,11 @@ function large() { $suffix = "th"; } $user_id = $row["id"]; - echo "" . '" . '' . ""; ?> @@ -434,7 +433,7 @@ function large() {
-
+ Curriculum
- @@ -488,7 +486,6 @@ function large() { -
-
+ Curriculum
- + @@ -546,7 +543,7 @@ function large() { $suffix = "th"; } $user_id = $row["user_id"]; - echo ""; + echo ""; } } ?> @@ -559,15 +556,37 @@ function large() { - - + \ No newline at end of file diff --git a/apply/adviser-update.php b/apply/adviser-update.php index 21d981a..9964b7c 100644 --- a/apply/adviser-update.php +++ b/apply/adviser-update.php @@ -3,7 +3,6 @@ $conn = mysqli_connect('localhost', 'root', '', 'deanslist'); if (isset($_POST["accept"])) { - $sql = "UPDATE deanslist_applicants SET adviser_status = 'Accepted' WHERE id =".$_POST['app_id'].""; mysqli_query($conn, $sql); // redirect to this page diff --git a/apply/application-edit.php b/apply/application-edit.php new file mode 100644 index 0000000..3067b34 --- /dev/null +++ b/apply/application-edit.php @@ -0,0 +1,286 @@ + applicant_id = $_SESSION['user_id']; + +$listOfSubject = []; + +$programs = new Program(); + +// GET data from dtbase +$listOfSubject = $subject->GetCertainApplicationSubjects($_GET["id"]); + +$semtocheck = false; +// ADD A NEW APPLICANT WHEN FIRST STEP DONE +$fullname = $_SESSION['user_firstname'] . " " . $_SESSION['user_lastname']; +$currentDate = date("Y-m-d"); + + +if (isset($_POST['grade'])){ + $grades = $_POST['grade']; + $subjectIDs = $_POST['subjectId']; + $appID = $_GET["id"]; + + $initialGrade = 0; + $count = 0; + + foreach($grades as $grade){ + $initialGrade += floatval($grade); + $count++; + } + $average = $initialGrade / $count; + + foreach($subjectIDs as $key => $n ) { + if ($applicant->updateGradesPerSubject($appID, $n, $grades[$key]) && $applicant->updateApplicantGPA($appID,$average)){ + header('location: application-new.php'); + } + } +} + +?> + + + + + + + + + + + + + + + + + + + + + + + + Application | Dean's List Application System - CCS + + + + + +
+

Are you sure you want to logout?

+
+ + + +
+ + + + + +
+ +
+
+ + \ No newline at end of file diff --git a/apply/application-new.php b/apply/application-new.php index 44dd59f..acd98a9 100644 --- a/apply/application-new.php +++ b/apply/application-new.php @@ -1,4 +1,8 @@ applicant_id = $_SESSION['user_id']; @@ -38,7 +39,6 @@ $semtocheck = false; // ADD A NEW APPLICANT WHEN FIRST STEP DONE $fullname = $_SESSION['user_firstname'] . " " . $_SESSION['user_lastname']; - $currentDate = date("Y-m-d"); foreach ($programs->year_application($_POST['schoolyear']) as $yearapp) { @@ -93,8 +93,15 @@ // Code to calculate for GPA // Formula I used: (SUM OF GRADES) / (NUMBER OF GRADES) // If wrong, adjust accordingly - $_sem = $_POST['_sem']; - $_sy = $_POST['_sy']; + $_sem = null; + $_sy = null; + + if(isset($_POST['_sem'])) { + $_sem = $_POST['_sem']; + } + if(isset($_POST['_sy'])) { + $_sem = $_POST['_sy']; + } $initialGrade = 0; $count = 0; @@ -139,14 +146,12 @@ $subjectIDs = $_POST['subjectId']; foreach($subjectIDs as $key => $n ) { - $applicant->recordGradesPerSubject($_SESSION['tableid'], $n, $grades[$key]); + if (!($applicant->ChecKIfExist_GradePerSubject($_SESSION['tableid'], $n))){ + $applicant->recordGradesPerSubject($_SESSION['tableid'], $n, $grades[$key]); + } } // FINISH APPLICATION!!! - - - - /* // 1. Insert data to tlb_applicant // 1.1 CREATE A FUNCTION THAT WILL INSERT DATA TO tlb_applicant @@ -208,10 +213,7 @@ $updateGPA = "UPDATE dean_applicants SET total_gpa='$average' AND user_id = '1' WHERE name='$name'w "; mysqli_query($conn, $updateGPA);*/ -} - - - +} ?> @@ -429,15 +431,11 @@ function large() { } -
- +
- - - \ No newline at end of file diff --git a/apply/apply-edit.php b/apply/apply-edit.php new file mode 100644 index 0000000..f1310e7 --- /dev/null +++ b/apply/apply-edit.php @@ -0,0 +1,124 @@ + + + + Application | Dean's List Application System + + + + + + + + + + + + + + +
+
+
+ + 0) { + $existing = true; + } + + $sqlReApply = "SELECT * FROM `deanslist_applicants` WHERE (app_status = 'Pending' AND user_id = $userid);"; + $resultReApply = mysqli_query($conn, $sqlReApply); + if (mysqli_num_rows($resultReApply) > 0) { + $withPending = true; + } + ?> +
+
+ +
+
+
Edit Application Grades
+
+
+
+
NAME: ' . $_SESSION['user_firstname'] . ' ' . $_SESSION['user_lastname'] . ''; ?>
+
COURSE: ' . $_SESSION['curriculum'] . ''; ?>
+
+
+
Email: ' . $_SESSION['user_email'] . ''; ?>
+
+
+ +
" method="post" enctype="multipart/form-data" class="firstStepForm d-flex flex-column align-items-center"> +
+
+
List of Grades
+
+
+ +
+
+
+
+
+
Units:
+
+
+
Grade:
+ + +
+
+ + +
+

+
+
+
+ +
+
+
+
+ + +
+
+ +
+
+
+ +
+ + + + \ No newline at end of file diff --git a/apply/apply-new.php b/apply/apply-new.php index 9b842ae..e4423f8 100644 --- a/apply/apply-new.php +++ b/apply/apply-new.php @@ -28,15 +28,23 @@ $programs = new Program(); $existing = false; - $userid = $_SESSION['user_id']; + $withPending = false; + $userid = $_SESSION['user_id']; $conn = mysqli_connect('localhost', 'root', '', 'deanslist'); - $sql = "SELECT * FROM deanslist_applicants WHERE user_id = '$userid' AND (app_status = 'Pending' OR app_status = 'Accepted' OR app_status = 'Declined')"; + $sql = "SELECT * FROM deanslist_applicants WHERE (app_status = 'Pending' OR app_status = 'Accepted' OR app_status = 'Declined') AND (accept_reapplication = 0) AND user_id = '$userid'"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { $existing = true; } + + $sqlReApply = "SELECT * FROM `deanslist_applicants` WHERE (app_status = 'Pending' AND user_id = $userid);"; + $resultReApply = mysqli_query($conn, $sqlReApply); + if (mysqli_num_rows($resultReApply) > 0) { + $withPending = true; + } + ?>
@@ -77,10 +85,10 @@
NAME: ' . $_SESSION['user_firstname'] . ' ' . $_SESSION['user_lastname'] . ''; ?>
COURSE: ' . $_SESSION['curriculum'] . ''; ?>
+
+
Email: ' . $_SESSION['user_email'] . ''; ?>
+
- - - - - - + + - + @@ -123,17 +128,19 @@ if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $applicantID = $row["id"]; + $dte = date_create($row["created_at"]); ?> - - + + + - + -
@@ -339,6 +345,10 @@
+
+ +
+ @@ -368,7 +381,7 @@ if (!isset($_POST['firstStepSubmit'])) { ?> type="submit" name="firstStepSubmit" type="button" data-bs-toggle="modal" data-bs-target="#successModal" type="button" id="submitgrades" class="btn btn-success nxtBtn"> @@ -411,7 +424,42 @@ + + - + \ No newline at end of file diff --git a/apply/apply.js b/apply/apply.js index a44cca7..8b56d69 100644 --- a/apply/apply.js +++ b/apply/apply.js @@ -12,9 +12,11 @@ document.querySelector("input[name='calculate']").addEventListener("click", func initial += parseFloat(grade.value); }) - let finalCalc = (initial / totalSubject).toFixed(2); + let finalCalc = (initial / totalSubject).toFixed(4); if (!isNaN(finalCalc)) document.querySelector(".totalGrade").textContent = finalCalc; else document.querySelector(".totalGrade").textContent = "Please fill up all the grades"; -}); \ No newline at end of file +}); + + diff --git a/apply/documents/315151856_1414174432444235_641450182668883501_n.jpg b/apply/documents/315151856_1414174432444235_641450182668883501_n.jpg new file mode 100644 index 0000000..0341283 Binary files /dev/null and b/apply/documents/315151856_1414174432444235_641450182668883501_n.jpg differ diff --git a/apply/documents/WIN_20230219_20_07_27_Pro.jpg b/apply/documents/WIN_20230219_20_07_27_Pro.jpg new file mode 100644 index 0000000..3f2dfe0 Binary files /dev/null and b/apply/documents/WIN_20230219_20_07_27_Pro.jpg differ diff --git a/apply/documents/ss.png b/apply/documents/ss.png new file mode 100644 index 0000000..d598e6a Binary files /dev/null and b/apply/documents/ss.png differ diff --git a/apply/reapply.php b/apply/reapply.php new file mode 100644 index 0000000..ce462f3 --- /dev/null +++ b/apply/reapply.php @@ -0,0 +1,20 @@ +ReApply($ID)){ + header('location: application-new.php'); + } + } + if (isset($_GET['idy'])) { + $ID = $_GET['idy']; + $listers = new Listers(); + if($listers->CancelPending($ID)){ + header('location: application-new.php'); + } + } + else{ + header('location: application-new.php'); + } +?> \ No newline at end of file diff --git a/apply/update.php b/apply/update.php index e1f9ecc..bb6894c 100644 --- a/apply/update.php +++ b/apply/update.php @@ -5,27 +5,12 @@ if (isset($_POST["accept"])) { $sql = "UPDATE deanslist_applicants SET app_status = 'Accepted', adviser_status = 'Accepted' WHERE id =".$_POST['app_id'].""; mysqli_query($conn, $sql); - - $sql2 = "INSERT INTO deans_listers (app_id, fullname, gpa, department, yearlevel) - VALUES (?, ?, ?, ?, ?);"; - - $stmt = mysqli_stmt_init($conn); - if (!mysqli_stmt_prepare($stmt, $sql2)) { - echo "SOMETHING WENT WRONG!"; - return false; - } - - mysqli_stmt_bind_param($stmt, "sssss", $_POST['app_id'], $_POST['fullname'], $_POST['gpa'], $_POST['department'], $_POST['year_level']); - mysqli_stmt_execute($stmt); - mysqli_stmt_close($stmt); - - -} else if (isset($_POST["decline"])) { +} +else if (isset($_POST["decline"])) { $sql = "UPDATE deanslist_applicants SET app_status = 'Declined', adviser_status = 'Declined' WHERE id =".$_POST['app_id'].";"; mysqli_query($conn, $sql); - } -Header("Location: admin-application.php"); +//Header("Location: admin-application.php"); exit(); \ No newline at end of file diff --git a/class/control.php b/class/control.php index 9073384..d068d29 100644 --- a/class/control.php +++ b/class/control.php @@ -27,9 +27,72 @@ $returnData["Student_List"] = $listdata; echo json_encode($returnData); break; - case "GetCertainStudentGrades": + include_once 'subject.class.php'; + $subject = new subject; $ID = $_POST["ID"]; + $data = $subject->GetCertainStudentGrade($ID); + $returnval = array(); + $ctrListData = 0; + foreach ($data as $row) { + $returnval[$ctrListData]["ID"] = $row["tmpID"]; + $returnval[$ctrListData]["Subject_Code"] = $row["subject_code"]; + $returnval[$ctrListData]["Subject_Name"] = $row["subject_name"]; + $returnval[$ctrListData]["Grades"] = $row["grade"]; + $returnval[$ctrListData]["GPA"] = $row["gpa"]; + $returnval[$ctrListData]["Img_File"] = $row["app_file"]; + $ctrListData++; + } + echo json_encode($returnval); + break; + case "ApproveDeanlist": + include_once 'listers.class.php'; + $lister = new Listers; + $ID = $_POST["ID"]; + if($lister->Approved_Deanlist($ID)){ + $dnlstData = $lister->GetCertainDeanListApplicant($ID); + $lister->App_ID = $dnlstData["tmp_appid"]; + $lister->Fullname = $dnlstData["user_name"]; + $lister->GPA = round($dnlstData["gpa"],4); + $lister->department = $dnlstData["curriculum"]; + $lister->year_level = $dnlstData["year_level"]; + if($lister->add2()){ + echo 1; + } + else{ + echo 0; + } + } + else{ + echo 0; + } + break; + case "DeclineDeanlist": + include_once 'listers.class.php'; + $lister = new Listers; + $ID = $_POST["ID"]; + $Feedback = $_POST["Feedback"]; + if($lister->Decline_Deanlist($ID,$Feedback)) + echo 1; + else + echo 0; + break; + case "GetNotification": + include_once 'listers.class.php'; + $lister = new Listers; + $ID = $_SESSION['user_id']; + $data = $lister->GetNotifications($ID); + if (!is_null($data)) { + $returnval = array(); + $returnval["NotifCode"] = $data["notif"]; + $returnval["Feedback"] = $data["feedback"]; + echo json_encode($returnval); + $lister->RemoveNotification($ID); + }else{ + echo 0; + } + + break; default: echo 0; } diff --git a/class/listers.class.php b/class/listers.class.php index 18fdbf4..b280ef7 100644 --- a/class/listers.class.php +++ b/class/listers.class.php @@ -60,6 +60,23 @@ function add(){ } } + function add2(){ + $sql = "INSERT INTO deans_listers (app_id,fullname, gpa, department, yearlevel) VALUES + (:appid, :fullname, :GPA, :department, :year_level);"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':appid', $this->App_ID); + $query->bindParam(':fullname', $this->Fullname); + $query->bindParam(':GPA', $this->GPA); + $query->bindParam(':department', $this->department); + $query->bindParam(':year_level', $this->year_level); + if($query->execute()){ + return true; + } + else{ + return false; + } + } + function GetTopDeanLister_ByValue(){ $sql = "SELECT * FROM deans_listers ORDER BY GPA ASC LIMIT 5;"; $query=$this->db->connect()->prepare($sql); @@ -67,7 +84,6 @@ function GetTopDeanLister_ByValue(){ $data = $query->fetchAll(); } return $data; - } function GetDeanListers_OrderByRank(){ @@ -79,6 +95,57 @@ function GetDeanListers_OrderByRank(){ return $data; } + function Approved_Deanlist($record_id){ + $sql = "UPDATE deanslist_applicants SET app_status = 'Accepted', adviser_status = 'Accepted' WHERE id = :ID"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); + + if($query->execute()){ + return true; + } + else { + return false; + } + } + + function Decline_Deanlist($record_id,$feedback){ + $sql = "UPDATE deanslist_applicants SET app_status = 'Declined', adviser_status = 'Declined', feedback = :feed WHERE id = :ID"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); + $query->bindParam(':feed', $feedback); + if($query->execute()){ + return true; + } + else { + return false; + } + } + + function ReApply($record_id){ + $sql = "UPDATE deanslist_applicants SET accept_reapplication = 1 + WHERE user_id = :ID AND (app_status != 'Pending')"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); + if($query->execute()){ + return true; + } + else { + return false; + } + } + + function CancelPending($record_id){ + $sql = "DELETE FROM deanslist_applicants WHERE user_id = :ID AND (app_status = 'Pending')"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); + if($query->execute()){ + return true; + } + else { + return false; + } + } + function show(){ $sql = "SELECT * FROM deans_listers ORDER BY GPA ASC;"; $query=$this->db->connect()->prepare($sql); @@ -98,7 +165,7 @@ function GetAllDeanlistApplicants(){ } function GetAllDeanlistApplicants_ExeptDupicate(){ - $sql = "SELECT * FROM deanslist_applicants where id not in (SELECT app_id from deans_listers);"; + $sql = "SELECT * FROM deanslist_applicants WHERE (app_status = 'Accepted' AND adviser_status = 'Accepted') AND id not in (SELECT app_id from deans_listers);"; $query=$this->db->connect()->prepare($sql); if($query->execute()){ $data = $query->fetchAll(); @@ -239,11 +306,11 @@ function addApplicant($userid, $fullname, $email, $curriculum, $sem, $yearlevel, } function updateApplicant($id, $gpa, $appstatus, $fileName){ - $sql = "UPDATE deanslist_applicants SET gpa=:gpa, app_status=:appstatus, app_file=:appfilename WHERE id = :appid;"; + $sql = "UPDATE deanslist_applicants SET gpa=:gpa, app_status=:appstatus, app_file=:appfilename WHERE (app_status= 'Incomplete' AND id = :appid);"; $query=$this->db->connect()->prepare($sql); - + $finalGPA = round($gpa, 4); $query->bindParam(':appid', $id); - $query->bindParam(':gpa', $gpa); + $query->bindParam(':gpa', $finalGPA); $query->bindParam(':appstatus', $appstatus); $query->bindParam(':appfilename', $fileName); @@ -253,19 +320,73 @@ function updateApplicant($id, $gpa, $appstatus, $fileName){ else{ return false; } - } - function recordGradesPerSubject($app_id, $subject_id, $grade){ - $sql = "INSERT INTO applicants_grades (applicant_id, subject_id, grade) VALUES (:appid, :subjectid, :subgrade)"; + function updateGradesPerSubject($app_id, $subject_id, $grade){ + $sql = "UPDATE applicants_grades SET grade= :subgrade WHERE (applicant_id = :appid AND subject_id = :subjectid);"; $query=$this->db->connect()->prepare($sql); - $query->bindParam(':appid', $app_id); $query->bindParam(':subjectid', $subject_id); $query->bindParam(':subgrade', $grade); + if($query->execute()) + return true; + else + return false; + } + function updateApplicantGPA($id, $gpa){ + $sql = "UPDATE `deanslist_applicants` SET gpa = :gpa WHERE id = :appid"; + $query=$this->db->connect()->prepare($sql); + $finalGPA = round($gpa, 4); + $query->bindParam(':appid', $id); + $query->bindParam(':gpa', $finalGPA); + if($query->execute()) + return true; + else + return false; + } + + function ChecKIfExist_GradePerSubject($app_id, $subject_id){ + $sql = "SELECT id FROM `applicants_grades` WHERE (applicant_id = :appid AND subject_id = :subjectid);"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':appid', $app_id); + $query->bindParam(':subjectid', $subject_id); + if($query->execute()){ + $data = $query->fetchAll(); + if (count($data) > 0){ + return true; + } + } + return false; + } + + function RemoveNotification($record_id) { + $sql = "UPDATE `deanslist_applicants` SET `notificationseen` = 1 WHERE user_id = :ID"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); $query->execute(); + } + function GetNotifications($record_id) { + $sql = "SELECT IF(app_status = 'Accepted', 1, 0) as 'notif',feedback FROM `deanslist_applicants` WHERE (notificationseen = 0 AND (app_status = 'Accepted' OR app_status = 'Declined')) AND user_id = :uid ORDER by id DESC LIMIT 1;"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':uid', $record_id); + if($query->execute()){ + if ($query->rowCount() > 0){ + $data = $query->fetch(); + return $data; + } + } + return null; + } + + function recordGradesPerSubject($app_id, $subject_id, $grade){ + $sql = "INSERT INTO applicants_grades (applicant_id, subject_id, grade) VALUES (:appid, :subjectid, :subgrade)"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':appid', $app_id); + $query->bindParam(':subjectid', $subject_id); + $query->bindParam(':subgrade', $grade); + return $query->execute(); } function get_submitted_grades($app_id){ diff --git a/class/program.class.php b/class/program.class.php index 2f43b6d..7abfc2c 100644 --- a/class/program.class.php +++ b/class/program.class.php @@ -11,7 +11,6 @@ public $description; public $years; public $level; - protected $db; @@ -40,6 +39,21 @@ function add(){ } } + function addCourse(){ + $sql = "INSERT INTO `course`(`course_name`,`course_fullname`) VALUES (:cname,:cfname);"; + + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':cname', $this->code); + $query->bindParam(':cfname', $this->description); + + if($query->execute()){ + return true; + } + else{ + return false; + } + } + function edit(){ $sql = "UPDATE programs SET code=:code, description=:description, years=:years, level=:level WHERE id = :id;"; @@ -68,6 +82,15 @@ function fetch($record_id){ return $data; } + function GetAllCourse(){ + $sql = "SELECT * FROM `course`;"; + $query=$this->db->connect()->prepare($sql); + if($query->execute()){ + $data = $query->fetchAll(); + } + return $data; + } + function delete($record_id){ $sql = "DELETE FROM programs WHERE id = :id;"; $query=$this->db->connect()->prepare($sql); diff --git a/class/subject.class.php b/class/subject.class.php index f107f33..d1d78f6 100644 --- a/class/subject.class.php +++ b/class/subject.class.php @@ -25,12 +25,17 @@ function __construct() $this->db = new Database(); } - - function GetCertainStudentGrade(){ - $sql = "SELECT * FROM `deanslist_applicants` as a - JOIN `applicants_grades` as b ON a.id = b.applicant_id - JOIN `sy_subjects` as c on b.subject_id = c.id - WHERE a.id = :ID;"; + function GetCertainStudentGrade($record_id){ + $sql = "SELECT *,a.id as 'tmpID' FROM `applicants_grades` as a + JOIN `sy_subjects` as b on b.id = a.subject_id + JOIN `deanslist_applicants` as c on c.id = a.applicant_id + WHERE a.applicant_id = :ID"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':ID', $record_id); + if($query->execute()){ + $data = $query->fetchAll(); + } + return $data; } function fetch($record_id){ @@ -72,6 +77,18 @@ function getSubjects() { return $data; } + function GetCertainApplicationSubjects($record_id){ + $sql = "SELECT * FROM `applicants_grades` as a + JOIN sy_subjects as b on b.id = a.subject_id + WHERE a.applicant_id = :id"; + $query=$this->db->connect()->prepare($sql); + $query->bindParam(':id', $record_id); + if($query->execute()){ + $data = $query->fetchAll(); + } + return $data; + } + function addApplicant() { $sql = "INSERT INTO `tlb_applicant` (`applicant_id`, `user_id`, `grade_file`) VALUES (NULL, :user_id, NULL)"; diff --git a/css/jquery.toast.css b/css/jquery.toast.css new file mode 100644 index 0000000..54ddf67 --- /dev/null +++ b/css/jquery.toast.css @@ -0,0 +1,28 @@ +/** + * jQuery toast plugin created by Kamran Ahmed copyright MIT license 2014 + */ +.jq-toast-wrap { display: block; position: fixed; width: 250px; pointer-events: none !important; margin: 0; padding: 0; letter-spacing: normal; z-index: 9000 !important; } +.jq-toast-wrap * { margin: 0; padding: 0; } + +.jq-toast-wrap.bottom-left { bottom: 20px; left: 20px; } +.jq-toast-wrap.bottom-right { bottom: 20px; right: 40px; } +.jq-toast-wrap.top-left { top: 20px; left: 20px; } +.jq-toast-wrap.top-right { top: 20px; right: 40px; } + +.jq-toast-single { display: block; width: 100%; padding: 10px; margin: 0px 0px 5px; border-radius: 4px; font-size: 12px; font-family: arial, sans-serif; line-height: 17px; position: relative; pointer-events: all !important; background-color: #444444; color: white; } + +.jq-toast-single h2 { font-family: arial, sans-serif; font-size: 14px; margin: 0px 0px 7px; background: none; color: inherit; line-height: inherit; letter-spacing: normal; } +.jq-toast-single a { color: #eee; text-decoration: none; font-weight: bold; border-bottom: 1px solid white; padding-bottom: 3px; font-size: 12px; } + +.jq-toast-single ul { margin: 0px 0px 0px 15px; background: none; padding:0px; } +.jq-toast-single ul li { list-style-type: disc !important; line-height: 17px; background: none; margin: 0; padding: 0; letter-spacing: normal; } + +.close-jq-toast-single { position: absolute; top: 3px; right: 7px; font-size: 14px; cursor: pointer; } + +.jq-toast-loader { display: block; position: absolute; top: -2px; height: 5px; width: 0%; left: 0; border-radius: 5px; background: red; } +.jq-toast-loaded { width: 100%; } +.jq-has-icon { padding: 10px 10px 10px 50px; background-repeat: no-repeat; background-position: 10px; } +.jq-icon-info { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII='); background-color: #31708f; color: #d9edf7; border-color: #bce8f1; } +.jq-icon-warning { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII='); background-color: #8a6d3b; color: #fcf8e3; border-color: #faebcc; } +.jq-icon-error { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII='); background-color: #a94442; color: #f2dede; border-color: #ebccd1; } +.jq-icon-success { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg=='); color: #dff0d8; background-color: #3c763d; border-color: #d6e9c6; } \ No newline at end of file diff --git a/curriculum/curriculum.php b/curriculum/curriculum.php index c51d5e8..4bb6289 100644 --- a/curriculum/curriculum.php +++ b/curriculum/curriculum.php @@ -76,7 +76,6 @@ - Curriculum | CCS @@ -395,100 +394,94 @@ function large() { ?>
-

CCS COURSES

- +

PLEASE SELECT A CCS COURSE

- - - - - - - - - - + GetAllCourse() as $value) { + ?> + + + +
-
Select Department
-
Curriculum Section Total GPAEmail Address
Section Total GPAEmail AddressFeedback
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " YearBS" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "" . $row["email"] . "
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " YearBS" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . round($row["gpa"],4) . "" . $row["feedback"] . "
Curriculum Section Total GPAEmail Address Action
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "" . $row["email"] . " + echo "
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "
- +
Section Total GPAEmail Address
Section Total GPAEmail AddressFeedback
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "" . $row["email"] . "
" . $row["user_name"] . "" . $row["year_level"] . $suffix . " Year" . strtoupper($row["curriculum"]) . "Section " . $row["section"] . "" . $row["gpa"] . "" . $row["feedback"] . "
#EmailDateFeedback Academic RankYearSem GPA Status
' . $row["user_id"] . ''; ?>' . $row["email"] . ''; ?>' . date_format($dte,"M/d") . ''; ?>' . $row["feedback"] . ''; ?> Student'; ?>

">">">
- - - - - - - - - - - - - - - - - - - - - +
Subject CodeSubject NameLecLabPre-requisite
+ + + + + + + + + + + + + + + + + + + + - -
Subject CodeSubject NameLecLabPre-requisite
- -
- - + + + +
-
+ +
-
- - - - - - +
+ + - + Dashboard | Dean's List Application System - +
@@ -148,10 +147,10 @@ var theHREF = $(this).attr("href"); $("#logout-dialog").dialog('option', 'buttons', { - "Yes" : function() { + "Yes": function() { window.location.href = theHREF; }, - "No" : function() { + "No": function() { $(this).dialog("close"); } }); @@ -169,40 +168,40 @@
- '.$_SESSION['user_firstname'].' '.$_SESSION['user_lastname'].''; ?> + ' . $_SESSION['user_firstname'] . ' ' . $_SESSION['user_lastname'] . ''; ?>
- + } +
-
-
-
-
Students
-
-
- As of -
-
- +
+
+
+
Students
+
+
+ As of
+
+ +
-
-
-
Faculty
-
-
- As of -
-
- +
+
+
Faculty
+
+
+ As of
+
+ +
-
-
-
Programs
-
-
- As of -
-
- +
+
+
Programs
+
+
+ As of
+
+ +
-
-
-
Dean's Listers
-
-
- - As of -
-
- +
+
+
+ Dean's Listers
+
+
+ As of +
+
+
-
+
+
+
+

TOP 3 STUDENTS

-
+
+
+
+ + + + \ No newline at end of file diff --git a/deanslist.sql b/deanslist.sql index 04e6ed3..7fca71d 100644 --- a/deanslist.sql +++ b/deanslist.sql @@ -1,11 +1,11 @@ -- phpMyAdmin SQL Dump --- version 5.1.1 +-- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 --- Generation Time: Apr 14, 2023 at 06:26 PM --- Server version: 10.4.22-MariaDB --- PHP Version: 8.1.2 +-- Generation Time: May 04, 2023 at 06:08 AM +-- Server version: 10.4.28-MariaDB +-- PHP Version: 8.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; @@ -32,7 +32,7 @@ CREATE TABLE `applicants_grades` ( `applicant_id` int(11) NOT NULL, `subject_id` int(11) NOT NULL, `grade` float NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `applicants_grades` @@ -87,15 +87,6 @@ INSERT INTO `applicants_grades` (`id`, `applicant_id`, `subject_id`, `grade`) VA (119, 69, 111, 1.5), (120, 69, 112, 1.5), (121, 69, 113, 1), -(122, 70, 102, 2), -(123, 70, 103, 2), -(124, 70, 104, 2), -(125, 70, 105, 2), -(126, 70, 106, 2), -(127, 70, 107, 2), -(128, 70, 108, 2), -(129, 70, 109, 2), -(130, 70, 110, 2), (131, 71, 27, 1.5), (132, 71, 28, 1.5), (133, 72, 27, 1.5), @@ -108,7 +99,171 @@ INSERT INTO `applicants_grades` (`id`, `applicant_id`, `subject_id`, `grade`) VA (140, 75, 27, 1.5), (141, 75, 28, 1.5), (142, 76, 27, 2.5), -(143, 76, 28, 1.5); +(143, 76, 28, 1.5), +(847, 100, 39, 1), +(848, 100, 40, 1), +(849, 100, 41, 1), +(850, 100, 42, 1), +(851, 100, 43, 1), +(852, 100, 39, 1), +(853, 100, 40, 1), +(854, 100, 41, 1), +(855, 100, 42, 1), +(856, 100, 43, 1), +(857, 100, 39, 1), +(858, 100, 40, 1), +(859, 100, 41, 1), +(860, 100, 42, 1), +(861, 100, 43, 1), +(862, 100, 39, 1), +(863, 100, 40, 1), +(864, 100, 41, 1), +(865, 100, 42, 1), +(866, 100, 43, 1), +(867, 100, 39, 1), +(868, 100, 40, 1), +(869, 100, 41, 1), +(870, 100, 42, 1), +(871, 100, 43, 1), +(872, 100, 39, 1), +(873, 100, 40, 1), +(874, 100, 41, 1), +(875, 100, 42, 1), +(876, 100, 43, 1), +(877, 100, 39, 1), +(878, 100, 40, 1), +(879, 100, 41, 1), +(880, 100, 42, 1), +(881, 100, 43, 1), +(882, 100, 39, 1), +(883, 100, 40, 1), +(884, 100, 41, 1), +(885, 100, 42, 1), +(886, 100, 43, 1), +(887, 100, 39, 1), +(888, 100, 40, 1), +(889, 100, 41, 1), +(890, 100, 42, 1), +(891, 100, 43, 1), +(892, 100, 39, 1), +(893, 100, 40, 1), +(894, 100, 41, 1), +(895, 100, 42, 1), +(896, 100, 43, 1), +(897, 100, 39, 1), +(898, 100, 40, 1), +(899, 100, 41, 1), +(900, 100, 42, 1), +(901, 100, 43, 1), +(902, 100, 39, 1), +(903, 100, 40, 1), +(904, 100, 41, 1), +(905, 100, 42, 1), +(906, 100, 43, 1), +(907, 100, 39, 1), +(908, 100, 40, 1), +(909, 100, 41, 1), +(910, 100, 42, 1), +(911, 100, 43, 1), +(912, 100, 39, 1), +(913, 100, 40, 1), +(914, 100, 41, 1), +(915, 100, 42, 1), +(916, 100, 43, 1), +(917, 100, 39, 1), +(918, 100, 40, 1), +(919, 100, 41, 1), +(920, 100, 42, 1), +(921, 100, 43, 1), +(922, 100, 39, 1), +(923, 100, 40, 1), +(924, 100, 41, 1), +(925, 100, 42, 1), +(926, 100, 43, 1), +(927, 100, 39, 1), +(928, 100, 40, 1), +(929, 100, 41, 1), +(930, 100, 42, 1), +(931, 100, 43, 1), +(932, 100, 39, 1), +(933, 100, 40, 1), +(934, 100, 41, 1), +(935, 100, 42, 1), +(936, 100, 43, 1), +(937, 100, 39, 1), +(938, 100, 40, 1), +(939, 100, 41, 1), +(940, 100, 42, 1), +(941, 100, 43, 1), +(942, 100, 39, 1), +(943, 100, 40, 1), +(944, 100, 41, 1), +(945, 100, 42, 1), +(946, 100, 43, 1), +(947, 100, 39, 1), +(948, 100, 40, 1), +(949, 100, 41, 1), +(950, 100, 42, 1), +(951, 100, 43, 1), +(952, 100, 39, 1), +(953, 100, 40, 1), +(954, 100, 41, 1), +(955, 100, 42, 1), +(956, 100, 43, 1), +(1642, 129, 153, 1), +(1643, 129, 154, 1), +(1644, 129, 155, 1), +(1645, 129, 156, 1), +(1646, 129, 157, 1), +(1647, 129, 158, 1), +(1648, 129, 159, 1), +(1649, 129, 160, 1), +(1650, 129, 161, 1), +(1734, 135, 153, 1), +(1735, 135, 154, 1), +(1736, 135, 155, 1), +(1737, 135, 156, 1), +(1738, 135, 157, 1), +(1739, 135, 158, 1), +(1740, 135, 159, 1), +(1741, 135, 160, 1), +(1742, 135, 161, 1), +(1835, 153, 153, 1), +(1836, 153, 154, 1), +(1837, 153, 155, 1), +(1838, 153, 156, 1), +(1839, 153, 157, 1), +(1840, 153, 158, 1), +(1841, 153, 159, 1), +(1842, 153, 160, 1), +(1843, 153, 161, 1), +(1844, 153, 153, 1), +(1845, 153, 154, 1), +(1846, 153, 155, 1), +(1847, 153, 156, 1), +(1848, 153, 157, 1), +(1849, 153, 158, 1), +(1850, 153, 159, 1), +(1851, 153, 160, 1), +(1852, 153, 161, 1), +(1853, 153, 153, 1), +(1854, 153, 154, 1), +(1855, 153, 155, 1), +(1856, 153, 156, 1), +(1857, 153, 157, 1), +(1858, 153, 158, 1), +(1859, 153, 159, 1), +(1860, 153, 160, 1), +(1861, 153, 161, 1), +(1862, 154, 153, 1), +(1863, 154, 154, 1), +(1864, 154, 155, 1), +(1865, 154, 156, 1), +(1866, 154, 157, 1), +(1867, 154, 158, 1), +(1868, 154, 159, 1.25), +(1869, 154, 160, 1.5), +(1870, 154, 161, 1.5); -- -------------------------------------------------------- @@ -120,7 +275,7 @@ CREATE TABLE `course` ( `id` int(11) NOT NULL, `course_name` varchar(255) NOT NULL, `course_fullname` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `course` @@ -128,7 +283,9 @@ CREATE TABLE `course` ( INSERT INTO `course` (`id`, `course_name`, `course_fullname`) VALUES (1, 'BSCS', 'Bachelor of Science in Computer Science'), -(2, 'BSIT', 'Bacher of Science in Information Technology'); +(2, 'BSIT', 'Bacher of Science in Information Technology'), +(3, 'BSS', 'SAMPLE DESC'), +(4, 'BSVS', 'BACHELOR OF SCIENCE IN VULCANIZING SHOP'); -- -------------------------------------------------------- @@ -140,7 +297,7 @@ CREATE TABLE `course_schoolyear` ( `id` int(11) NOT NULL, `school_year` varchar(255) NOT NULL, `course_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `course_schoolyear` @@ -150,7 +307,8 @@ INSERT INTO `course_schoolyear` (`id`, `school_year`, `course_id`) VALUES (1, '2022-2023', 1), (3, '2021-2022', 1), (15, '2022-2023', 2), -(16, '2023-2024', 2); +(16, '2023-2024', 2), +(17, '2023-2024', 3); -- -------------------------------------------------------- @@ -173,32 +331,48 @@ CREATE TABLE `deanslist_applicants` ( `app_file` varchar(255) NOT NULL, `adviser_id` int(11) NOT NULL, `adviser_status` varchar(255) NOT NULL, - `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + `feedback` varchar(500) NOT NULL, + `created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `accept_reapplication` tinyint(1) NOT NULL DEFAULT 0 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `deanslist_applicants` -- -INSERT INTO `deanslist_applicants` (`id`, `user_id`, `user_name`, `email`, `curriculum`, `semester`, `year_level`, `section`, `school_year_id`, `gpa`, `app_status`, `app_file`, `adviser_id`, `adviser_status`, `created_at`) VALUES -(46, 48, 'test test', 'test123@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Declined', 'score.png', 7, 'Declined', '2023-04-14 13:38:06'), -(47, 50, 'Daph Nagata', 'daphnagata@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(54, 51, 'Denise Gerzon', 'denisegerzon@wmsu.edu.ph', 'BSCS', '1', '3', 'A', 1, 2, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(55, 52, 'Abdulasis Hamja', 'abdulasis@wmsu.edu.ph', 'BSCS', '2', '3', 'C', 1, 1.35, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(56, 53, 'Josh Yasil', 'joshyasil@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(57, 54, 'Mark Vladimir', 'markvladimir@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.83333, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(60, 55, 'Bushra Adjaluddin', 'bushra@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.25, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(61, 56, 'Juan Dela Cruz', 'juandelacruz@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(66, 64, 'LeBron James', 'lebronjames@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Accepted', 'scorequiz.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(67, 65, 'Aiyayuu Misyu', 'aiyayuu@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.625, 'Accepted', 'male.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(69, 66, 'Lucky Me Maggie', 'maggie@wmsu.edu.ph', 'BSIT', '2', '4', 'A', 15, 1.33333, 'Accepted', 'male.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(70, 67, 'kyrie irving', 'kyrie@wmsu.edu.ph', 'BSCS', '1', '1', 'A', 1, 2, 'Declined', 'ballaho.png', 7, 'Declined', '2023-04-14 13:38:06'), -(71, 68, 'juan juan', '1@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Accepted', 'male.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(72, 69, 'Two Two', '2@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Declined', 'male.png', 7, 'Declined', '2023-04-14 13:38:06'), -(73, 70, 'three three', 'three@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.5, 'Declined', 'male.png', 7, 'Declined', '2023-04-14 13:38:06'), -(74, 71, 'Four Four', 'four@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Accepted', 'male.png', 7, 'Accepted', '2023-04-14 13:38:06'), -(75, 72, 'Hay Payb', 'haypayb@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Pending', 'male.png', 7, 'Accepted', '2023-04-14 16:23:52'), -(76, 73, 'Up Here', 'uphere@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 2, 'Declined', 'male.png', 8, 'Declined', '2023-04-14 16:25:25'); +INSERT INTO `deanslist_applicants` (`id`, `user_id`, `user_name`, `email`, `curriculum`, `semester`, `year_level`, `section`, `school_year_id`, `gpa`, `app_status`, `app_file`, `adviser_id`, `adviser_status`, `feedback`, `created_at`, `accept_reapplication`) VALUES +(46, 48, 'test test', 'test123@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Declined', 'score.png', 7, 'Declined', '', '2023-05-03 07:16:38', 0), +(47, 50, 'Daph Nagata', 'daphnagata@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Declined', 'ccs-logo.png', 7, 'Declined', '', '2023-05-03 07:02:41', 0), +(54, 51, 'Denise Gerzon', 'denisegerzon@wmsu.edu.ph', 'BSCS', '1', '3', 'A', 1, 2, 'Declined', 'ccs-logo.png', 7, 'Declined', 'sample', '2023-05-03 07:06:59', 0), +(55, 52, 'Abdulasis Hamja', 'abdulasis@wmsu.edu.ph', 'BSCS', '2', '3', 'C', 1, 1.35, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '', '2023-05-02 15:37:33', 0), +(56, 53, 'Josh Yasil', 'joshyasil@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Accepted', 'ccs-logo.png', 7, 'Accepted', '', '2023-05-03 12:39:37', 0), +(57, 54, 'Mark Vladimir', 'markvladimir@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.83333, 'Pending', 'ccs-logo.png', 7, 'Accepted', '', '2023-05-03 12:39:57', 0), +(60, 55, 'Bushra Adjaluddin', 'bushra@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.25, 'Declined', 'ccs-logo.png', 7, 'Declined', '', '2023-05-03 05:56:32', 0), +(61, 56, 'Juan Dela Cruz', 'juandelacruz@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Pending', 'ccs-logo.png', 7, 'Accepted', '', '2023-05-03 12:40:14', 0), +(66, 64, 'LeBron James', 'lebronjames@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.375, 'Pending', 'scorequiz.png', 7, 'Accepted', '', '2023-05-03 12:40:16', 0), +(67, 65, 'Aiyayuu Misyu', 'aiyayuu@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.625, 'Declined', 'male.png', 7, 'Declined', 'SAMPLE FEED yeah!!', '2023-05-03 05:51:35', 0), +(69, 66, 'Lucky Me Maggie', 'maggie@wmsu.edu.ph', 'BSIT', '2', '4', 'A', 15, 1.33333, 'Pending', 'male.png', 7, 'Accepted', '', '2023-05-03 12:40:42', 0), +(70, 67, 'kyrie irving', 'kyrie@wmsu.edu.ph', 'BSCS', '1', '1', 'A', 1, 2, 'Pending', 'ballaho.png', 7, 'Accepted', 'sample feedback', '2023-05-03 12:40:45', 0), +(71, 68, 'juan juan', '1@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Pending', 'male.png', 7, 'Accepted', '', '2023-05-03 12:40:48', 0), +(72, 69, 'Two Two', '2@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Pending', 'male.png', 7, 'Pending', '', '2023-05-02 15:26:20', 0), +(73, 70, 'three three', 'three@wmsu.edu.ph', 'BSCS', '2', '4', 'A', 1, 1.5, 'Declined', 'male.png', 7, 'Declined', 'sample feed\n', '2023-05-04 03:38:36', 0), +(74, 71, 'Four Four', 'four@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Declined', 'male.png', 7, 'Declined', 'four four sample feedback', '2023-05-03 07:15:18', 0), +(75, 72, 'Hay Payb', 'haypayb@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 1.5, 'Accepted', 'male.png', 7, 'Accepted', '', '2023-05-03 12:35:58', 0), +(76, 73, 'Up Here', 'uphere@wmsu.edu.ph', 'BSCS', '1', '4', 'A', 1, 2, 'Pending', 'male.png', 8, 'Pending', '', '2023-05-02 15:26:20', 0), +(78, 74, 'qwe qwe', 'qwe@wmsu.edu.ph', 'BSCS', '1', '1', 'B', 1, 1.19444, 'Pending', 'photo_6217418791567078755_y.jpg', 17, 'Pending', '', '2023-05-02 15:26:20', 0), +(100, 125, '123 123', 'eh202200295@wmsu.edu.ph', 'BSCS', '2', '3', 'A', 1, 1, 'Declined', 'photo_6217418791567078755_y.jpg', 13, 'Declined', 'sample feedback', '2023-05-02 15:34:15', 0), +(129, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 1, 1, 'Accepted', 'ss.png', 4, 'Accepted', '', '2023-05-03 13:28:47', 1), +(134, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 1, 0, 'Incomplete', '', 18, 'Pending', '', '2023-05-04 00:20:12', 1), +(135, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 1, 1, 'Accepted', 'ss.png', 18, 'Accepted', '', '2023-05-04 00:20:12', 1), +(136, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 3, 0, 'Incomplete', '', 19, 'Pending', '', '2023-05-04 03:47:58', 1), +(138, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '2', 'B', 1, 0, 'Incomplete', '', 4, 'Pending', '', '2023-05-04 03:47:58', 1), +(139, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '2', 'B', 1, 0, 'Incomplete', '', 4, 'Pending', '', '2023-05-04 03:47:58', 1), +(143, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '2', '1', 'B', 1, 0, 'Incomplete', '', 6, 'Pending', '', '2023-05-04 03:47:58', 1), +(147, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '2', 'C', 3, 0, 'Incomplete', '', 19, 'Pending', '', '2023-05-04 03:47:58', 1), +(148, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '3', 'B', 3, 0, 'Incomplete', '', 15, 'Pending', '', '2023-05-04 03:47:58', 1), +(152, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '2', '2', 'C', 1, 0, 'Incomplete', '', 10, 'Pending', '', '2023-05-04 03:47:58', 1), +(153, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 1, 1, 'Declined', 'ss.png', 7, 'Declined', 'sample 12234444', '2023-05-04 03:47:58', 1), +(154, 44, 'John Doe', 'johndoe@wmsu.edu.ph', 'BSCS', '1', '1', 'C', 1, 1.14, 'Pending', 'ss.png', 19, 'Pending', '', '2023-05-04 03:48:39', 0); -- -------------------------------------------------------- @@ -213,25 +387,17 @@ CREATE TABLE `deans_listers` ( `gpa` float NOT NULL, `department` varchar(255) NOT NULL, `yearlevel` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `deans_listers` -- INSERT INTO `deans_listers` (`id`, `app_id`, `fullname`, `gpa`, `department`, `yearlevel`) VALUES -(2, 47, 'Daph Nagata', 1.375, 'BSCS', '4'), -(3, 54, 'Denise Gerzon', 2, 'BSCS', '3'), -(4, 55, 'Abdulasis Hamja', 1.35, 'BSCS', '3'), -(5, 56, 'Josh Yasil', 1.375, 'BSCS', '4'), -(6, 57, 'Mark Vladimir', 1.83333, 'BSCS', '4'), -(7, 60, 'Bushra Adjaluddin', 1.25, 'BSCS', '4'), -(8, 61, 'Juan Dela Cruz', 1.5, 'BSCS', '4'), -(12, 66, 'LeBron James', 1.375, 'BSCS', '4'), -(13, 67, 'Aiyayuu Misyu', 1.625, 'BSCS', '4'), -(14, 69, 'Lucky Me Maggie', 1.33333, 'BSIT', '4'), -(15, 71, 'juan juan', 1.5, 'BSCS', '4'), -(16, 74, 'Four Four', 1.5, 'BSCS', '4'); +(9, 55, 'Abdulasis Hamja', 1.35, 'BSCS', '3'), +(10, 56, 'Josh Yasil', 1.375, 'BSCS', '4'), +(11, 75, 'Hay Payb', 1.5, 'BSCS', '4'), +(13, 129, 'John Doe', 1, 'BSCS', '1'); -- -------------------------------------------------------- @@ -250,7 +416,7 @@ CREATE TABLE `dean_applicants` ( `total_gpa` float NOT NULL, `status` varchar(255) NOT NULL, `user_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `dean_applicants` @@ -285,47 +451,48 @@ INSERT INTO `dean_applicants` (`id`, `name`, `email`, `school_year`, `curriculum CREATE TABLE `faculty` ( `id` int(11) NOT NULL, - `img` varchar(75) NULL, + `img` varchar(75) DEFAULT NULL, `firstname` varchar(255) NOT NULL, `lastname` varchar(255) NOT NULL, - `rank` varchar(100) NULL, + `rank` varchar(100) DEFAULT NULL, `email` varchar(100) NOT NULL, `status` varchar(100) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), - `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + `user_id` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `faculty` -- -INSERT INTO `faculty` (`id`, `img`, `firstname`, `lastname`, `rank`, `email`, `status`, `created_at`, `updated_at`) VALUES -(3, 'go.png', 'Dr. Roderick', 'P. Go', 'College Dean', 'roderickgo@wmsu.edu.ph', 'Adviser', '2023-01-25 14:03:58', '2023-04-13 14:39:14'), -(4, 'odon.png', 'Engr. Odon A. ', 'Maravillas, Jr., MSCS', 'Associate Dean', 'odonmaravillas@wmsu.edu.ph', 'Adviser', '2023-01-25 14:05:17', '2023-04-13 14:40:55'), -(6, 'belamide.png', 'Engr. Gadmar M.', 'Belamide, MEnggEd-ICT', 'College Secretary', 'gadmarbelamide@wmsu.edu.ph', 'Admin', '2023-01-25 14:06:48', '2023-04-13 14:50:20'), -(7, 'sadiwa.png', 'Ms. Lucy ', 'Felix-Sadiwa, MSCS', 'CS Department Head', 'lucyfelix@wmsu.edu.ph', 'Adviser', '2023-01-25 14:10:13', '2023-04-13 14:50:46'), -(8, 'escorialj.png', 'Mr. John Augustus', 'A. Escorial, MIT', 'IT Department Head', 'johnaugustus@wmsu.edu.ph', 'Adviser', '2023-01-25 14:11:18', '2023-04-13 14:51:04'), -(9, 'escoriala.png', 'Mrs. Aida ', 'A. Escorial, MIT', 'Graduate Program Chair', 'aidaescorial@wmsu.edu.ph', 'Adviser', '2023-01-25 14:12:48', '2023-04-13 14:50:05'), -(10, 'aripE.png', 'Engr. Edwip I. ', 'Arip, MEnggEd-ICT', 'External Studies Unit Technical Associate', 'edwinarip@wmsu.edu.ph', 'None', '2023-01-25 14:13:50', '2023-04-13 14:49:47'), -(11, 'aripJ.png', 'Mr. John Paul ', ' I. Arip LMS', 'Quality Assurance', 'johpaularip@wmsu.edu.ph', 'None', '2023-01-25 14:14:25', '2023-04-13 14:49:26'), -(12, 'female.png', 'Mrs. Justin Anne ', ' Albay-Arip', 'Visiting Lecturer', 'justinannearip@wmsu.edu.ph', 'None', '2023-01-25 14:15:02', '2023-04-13 14:48:49'), -(13, 'ballaho.png', 'Mr. Jaydee ', 'C. Ballaho', 'LMS Lead Developer', 'jaydeeballaho@wmsu.edu.ph', 'Adviser', '2023-01-25 14:15:37', '2023-04-13 14:47:49'), -(14, 'catadman.png', 'Mr. Jason', 'A. Catadman ', 'LMS Assistant Developer', 'jasoncatadman@wmsu.edu.ph', 'Adviser', '2023-01-25 14:16:11', '2023-04-13 14:51:27'), -(15, 'flores.png', 'Engr. Mark L. ', 'Flores, MEnggEd-ICT ', 'Director, Data Protection and Security', 'markflores@wmsu.edu.ph', 'None', '2023-01-25 14:17:53', '2023-04-13 14:52:44'), -(16, 'gregana.png', 'Ms. Pauleen Jean ', 'E. Gregana ', 'Inactive', 'pauleenjeangregana@wmsu.edu.ph', 'None', '2023-01-25 14:18:37', '2023-04-13 14:54:04'), -(17, 'female.png', 'Ms. Aradzna ', ' M. Kamman', 'Visiting Lecturer', 'aradznakamman@wmsu.edu.ph', 'None', '2023-01-25 14:19:25', '2023-04-13 14:54:25'), -(18, 'female.png', 'Ms. Mara ', 'Marie Liao', 'Visiting Lecturer', 'maramarieliao@wmsu.edu.ph', 'Adviser', '2023-01-25 14:20:14', '2023-04-13 14:54:46'), -(19, 'lines.png', 'Engr. Marvic ', 'A. Lines, MEnggEd-ICT', 'LMS Training and Management', 'marviclines@wmsu.edu.ph', 'Adviser', '2023-01-25 14:21:12', '2023-04-13 14:55:19'), -(20, 'female.png', 'Ms. Ceed Janelle ', 'B. Lorenzo', 'Visiting Lecturer', 'ceedjanellelorenzo@wmsu.edu.ph', 'None', '2023-01-25 14:22:11', '2023-04-13 14:55:51'), -(21, 'lorenzo.png', 'Engr. Ceed Jezreel ', 'B. Lorenzo, MIT', 'Research Coordinator', 'ceedjezreellorenzo@wmsu.edu.ph', 'None', '2023-01-25 14:23:18', '2023-04-13 14:56:19'), -(22, 'rojas.png', 'Engr. Marjorie ', 'A. Rojas', 'Student Affairs and Guidance Coordinator', 'marjorierojas@wmsu.edu.ph', 'Adviser', '2023-01-25 14:24:09', '2023-04-13 14:56:42'), -(23, 'male.png', 'Mr. Theo Jay ', 'M'lleno Sanson', 'Visiting Lecturer', 'theojaysanson@wmsu.edu.ph', 'None', '2023-01-25 14:24:52', '2023-04-13 14:52:05'), -(24, 'tahil.png', 'Mr. Salimar B. ', 'Tahil, MEnggEd-ICT', 'Asst. Director, MISTO', 'salimartahil@wmsu.edu.ph', 'Adviser', '2023-01-25 14:25:31', '2023-04-13 14:57:09'), -(25, 'timpangco.png', 'Mr. Whesley', 'G. Timpangco ', 'LMS Network Engineer', 'whesleytimpangco@wmsu.edu.ph', 'None', '2023-01-25 14:26:12', '2023-04-13 14:57:25'), -(26, 'jackaria.png', 'Ms. Alhadzra ', 'M. Jackaria', 'Laboratory Technician', 'alhadzrajackaria@wmsu.edu.ph', 'None', '2023-01-25 14:26:58', '2023-04-13 14:58:12'), -(27, 'male.png', 'Mr. John Roy ', 'S. Velario', 'Administrative Assistant', 'johnroyvelario@wmsu.edu.ph', 'None', '2023-01-25 14:27:34', '2023-04-13 14:57:43'), -(43, 'male.png', 'LeBron', 'James', 'Goat', 'lebronjames@wmsu.edu.ph', 'None', '2023-04-13 14:59:22', '2023-04-13 14:59:33'), -(44, 'male.png', 'Mark', 'Vladimir', 'Tampa LeadDev', 'markvladimir@wmsu.edu.ph', 'None', '2023-04-13 14:59:58', '2023-04-13 14:59:58'); +INSERT INTO `faculty` (`id`, `img`, `firstname`, `lastname`, `rank`, `email`, `status`, `created_at`, `updated_at`, `user_id`) VALUES +(3, '', 'Dr. Roderick', 'P. Go', 'College Dean', 'roderickgo@wmsu.edu.ph', 'Adviser', '2023-01-25 14:03:58', '2023-04-27 10:30:35', 0), +(4, 'odon.png', 'Engr. Odon A. ', 'Maravillas, Jr., MSCS', 'Associate Dean', 'odonmaravillas@wmsu.edu.ph', 'Adviser', '2023-01-25 14:05:17', '2023-04-13 14:40:55', 0), +(6, 'belamide.png', 'Engr. Gadmar M.', 'Belamide, MEnggEd-ICT', 'College Secretary', 'gadmarbelamide@wmsu.edu.ph', 'Admin', '2023-01-25 14:06:48', '2023-04-13 14:50:20', 0), +(7, 'sadiwa.png', 'Ms. Lucy ', 'Felix-Sadiwa, MSCS', 'CS Department Head', 'lucyfelix@wmsu.edu.ph', 'Adviser', '2023-01-25 14:10:13', '2023-04-13 14:50:46', 0), +(8, 'escorialj.png', 'Mr. John Augustus', 'A. Escorial, MIT', 'IT Department Head', 'johnaugustus@wmsu.edu.ph', 'Adviser', '2023-01-25 14:11:18', '2023-04-13 14:51:04', 0), +(9, 'escoriala.png', 'Mrs. Aida ', 'A. Escorial, MIT', 'Graduate Program Chair', 'aidaescorial@wmsu.edu.ph', 'Adviser', '2023-01-25 14:12:48', '2023-04-13 14:50:05', 0), +(10, 'aripE.png', 'Engr. Edwip I. ', 'Arip, MEnggEd-ICT', 'External Studies Unit Technical Associate', 'edwinarip@wmsu.edu.ph', 'None', '2023-01-25 14:13:50', '2023-04-13 14:49:47', 0), +(11, 'aripJ.png', 'Mr. John Paul ', ' I. Arip LMS', 'Quality Assurance', 'johpaularip@wmsu.edu.ph', 'None', '2023-01-25 14:14:25', '2023-04-13 14:49:26', 0), +(12, 'female.png', 'Mrs. Justin Anne ', ' Albay-Arip', 'Visiting Lecturer', 'justinannearip@wmsu.edu.ph', 'None', '2023-01-25 14:15:02', '2023-04-13 14:48:49', 0), +(13, 'ballaho.png', 'Mr. Jaydee ', 'C. Ballaho', 'LMS Lead Developer', 'jaydeeballaho@wmsu.edu.ph', 'Adviser', '2023-01-25 14:15:37', '2023-04-13 14:47:49', 0), +(14, 'catadman.png', 'Mr. Jason', 'A. Catadman ', 'LMS Assistant Developer', 'jasoncatadman@wmsu.edu.ph', 'Adviser', '2023-01-25 14:16:11', '2023-04-13 14:51:27', 0), +(15, 'flores.png', 'Engr. Mark L. ', 'Flores, MEnggEd-ICT ', 'Director, Data Protection and Security', 'markflores@wmsu.edu.ph', 'None', '2023-01-25 14:17:53', '2023-04-13 14:52:44', 0), +(16, 'gregana.png', 'Ms. Pauleen Jean ', 'E. Gregana ', 'Inactive', 'pauleenjeangregana@wmsu.edu.ph', 'None', '2023-01-25 14:18:37', '2023-04-13 14:54:04', 0), +(17, 'female.png', 'Ms. Aradzna ', ' M. Kamman', 'Visiting Lecturer', 'aradznakamman@wmsu.edu.ph', 'None', '2023-01-25 14:19:25', '2023-04-13 14:54:25', 0), +(18, 'female.png', 'Ms. Mara ', 'Marie Liao', 'Visiting Lecturer', 'maramarieliao@wmsu.edu.ph', 'Adviser', '2023-01-25 14:20:14', '2023-04-13 14:54:46', 0), +(19, 'lines.png', 'Engr. Marvic ', 'A. Lines, MEnggEd-ICT', 'LMS Training and Management', 'marviclines@wmsu.edu.ph', 'Adviser', '2023-01-25 14:21:12', '2023-04-13 14:55:19', 0), +(20, 'female.png', 'Ms. Ceed Janelle ', 'B. Lorenzo', 'Visiting Lecturer', 'ceedjanellelorenzo@wmsu.edu.ph', 'None', '2023-01-25 14:22:11', '2023-04-13 14:55:51', 0), +(21, 'lorenzo.png', 'Engr. Ceed Jezreel ', 'B. Lorenzo, MIT', 'Research Coordinator', 'ceedjezreellorenzo@wmsu.edu.ph', 'None', '2023-01-25 14:23:18', '2023-04-13 14:56:19', 0), +(22, 'rojas.png', 'Engr. Marjorie ', 'A. Rojas', 'Student Affairs and Guidance Coordinator', 'marjorierojas@wmsu.edu.ph', 'Adviser', '2023-01-25 14:24:09', '2023-04-13 14:56:42', 0), +(23, 'male.png', 'Mr. Theo Jay ', 'M'lleno Sanson', 'Visiting Lecturer', 'theojaysanson@wmsu.edu.ph', 'None', '2023-01-25 14:24:52', '2023-04-13 14:52:05', 0), +(24, 'tahil.png', 'Mr. Salimar B. ', 'Tahil, MEnggEd-ICT', 'Asst. Director, MISTO', 'salimartahil@wmsu.edu.ph', 'Adviser', '2023-01-25 14:25:31', '2023-04-13 14:57:09', 0), +(25, 'timpangco.png', 'Mr. Whesley', 'G. Timpangco ', 'LMS Network Engineer', 'whesleytimpangco@wmsu.edu.ph', 'None', '2023-01-25 14:26:12', '2023-04-13 14:57:25', 0), +(26, 'jackaria.png', 'Ms. Alhadzra ', 'M. Jackaria', 'Laboratory Technician', 'alhadzrajackaria@wmsu.edu.ph', 'None', '2023-01-25 14:26:58', '2023-04-13 14:58:12', 0), +(27, 'male.png', 'Mr. John Roy ', 'S. Velario', 'Administrative Assistant', 'johnroyvelario@wmsu.edu.ph', 'None', '2023-01-25 14:27:34', '2023-04-13 14:57:43', 0), +(43, 'male.png', 'LeBron', 'James', 'Goat', 'lebronjames@wmsu.edu.ph', 'None', '2023-04-13 14:59:22', '2023-04-13 14:59:33', 0), +(44, 'male.png', 'Mark', 'Vladimir', 'Tampa LeadDev', 'markvladimir@wmsu.edu.ph', 'None', '2023-04-13 14:59:58', '2023-04-13 14:59:58', 0); -- -------------------------------------------------------- @@ -346,26 +513,27 @@ CREATE TABLE `grades_list` ( -- CREATE TABLE `listers` ( + `id` bigint(20) NOT NULL, `firstname` varchar(30) NOT NULL, `lastname` varchar(30) NOT NULL, `GPA` float NOT NULL, `department` varchar(30) NOT NULL, `year_level` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `listers` -- -INSERT INTO `listers` (`firstname`, `lastname`, `GPA`, `department`, `year_level`) VALUES -('Mark', 'Vladimir', 1.25, 'Computer Science', 3), -('Pogi', 'Hamja', 1, 'BSCS', 3), -('hAMJA', 'vLADIMIR', 2, 'BSCS', 4), -('Nash', 'Sari', 1.5, 'BSCS', 3), -('Andrei', 'Cafino', 1.75, 'BSIT', 3), -('Denise', 'Vonn', 1.75, 'BSCS', 3), -('Jsohua', 'Yasil', 1, 'BSCS', 3), -('Jenny', 'Vladimir', 1.5, 'BSCS', 3); +INSERT INTO `listers` (`id`, `firstname`, `lastname`, `GPA`, `department`, `year_level`) VALUES +(1, 'Mark', 'Vladimir', 1, 'BSCS', 3), +(2, 'Pogi', 'Hamja', 1, 'BSCS', 3), +(3, 'hAMJA', 'vLADIMIR', 2, 'BSCS', 4), +(4, 'Nash', 'Sari', 1.5, 'BSCS', 3), +(5, 'Andrei', 'Cafino', 1.75, 'BSIT', 3), +(6, 'Denise', 'Vonn', 1.75, 'BSCS', 3), +(7, 'Jsohua', 'Yasil', 1, 'BSCS', 3), +(8, 'Jenny', 'Vladimir', 1.5, 'BSCS', 3); -- -------------------------------------------------------- @@ -381,18 +549,17 @@ CREATE TABLE `programs` ( `level` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `programs` -- INSERT INTO `programs` (`id`, `code`, `description`, `years`, `level`, `created_at`, `updated_at`) VALUES -(1, 'BSCS', 'Bachelor of Science in Computer Science', 4, 'Bachelor', '2022-11-03 07:10:55', '2023-04-13 13:59:59'), +(1, 'BSCS', 'Bachelor of Science in Computer Science', 3, 'Bachelor', '2022-11-03 07:10:55', '2023-04-26 20:34:34'), (2, 'BSIT', 'Bachelor of Science in Information Technology', 4, 'Bachelor', '2022-11-03 07:24:14', '2023-04-10 12:49:33'), -(16, 'BSCpE', 'Bachelor of Science in Computer Engineering', 5, 'Bachelor', '2023-04-13 14:02:31', '2023-04-13 14:03:51'), -(17, 'BSCE', 'Bachelor of Science in Civil Engineering', 5, 'Bachelor', '2023-04-13 14:04:21', '2023-04-13 14:04:21'), -(19, 'MIT', 'Master in Information Technology', 4, 'Masteral', '2023-04-13 14:05:26', '2023-04-13 14:13:32'); +(21, 'BSS', 'SAMPLE DESC', 2, 'Diploma', '2023-05-03 04:54:31', '2023-05-03 04:54:31'), +(22, 'BSVS', 'BACHELOR OF SCIENCE IN VULCANIZING SHOP', 2, 'Bachelor', '2023-05-03 05:25:40', '2023-05-03 05:25:40'); -- -------------------------------------------------------- @@ -409,7 +576,7 @@ CREATE TABLE `sy_application_time` ( `1st_sem_end` date DEFAULT NULL, `2nd_sem_start` date DEFAULT NULL, `2nd_sem_end` date DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `sy_application_time` @@ -417,9 +584,10 @@ CREATE TABLE `sy_application_time` ( INSERT INTO `sy_application_time` (`id`, `sy_id`, `1st_sem`, `2nd_sem`, `1st_sem_start`, `1st_sem_end`, `2nd_sem_start`, `2nd_sem_end`) VALUES (1, 1, 1, 1, NULL, NULL, NULL, NULL), -(3, 3, 0, 0, NULL, NULL, NULL, NULL), +(3, 3, 1, 1, NULL, NULL, NULL, NULL), (7, 15, 1, 1, NULL, NULL, NULL, NULL), -(8, 16, 0, 0, NULL, NULL, NULL, NULL); +(8, 16, 1, 1, NULL, NULL, NULL, NULL), +(9, 17, 1, 1, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- @@ -438,7 +606,7 @@ CREATE TABLE `sy_subjects` ( `course_id` int(11) NOT NULL, `year_level` int(11) NOT NULL, `sy_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `sy_subjects` @@ -503,18 +671,20 @@ INSERT INTO `sy_subjects` (`id`, `subject_code`, `subject_name`, `lec_units`, `l (90, 'IT 137', 'Web Systems and Technologies', 3, 3, 'CC 104', 1, 2, 3, 15), (91, 'IT 139', 'IT Elective 1', 2, 3, '3rd Year Standing', 1, 2, 3, 15), (92, 'CC 105', 'Application Development and Emerging Technologies', 2, 3, 'CC 104', 1, 2, 3, 15), -(102, 'CC 100', 'Introduction to Computing', 2, 3, 'None', 1, 1, 1, 1), -(103, 'CC 101', 'Computer Programming 1 ', 3, 3, 'None', 1, 1, 1, 1), -(104, 'CAS 101', 'Purposive Communication', 3, 0, 'None', 1, 1, 1, 1), -(105, 'MATH 100', 'Mathematics in the Modern World', 3, 0, 'None', 1, 1, 1, 1), -(106, 'US 101', 'Understanding the Self', 3, 0, 'None', 1, 1, 1, 1), -(107, 'FIL 101', 'Komunikasyon sa Akademikong Filipino', 3, 0, 'None', 1, 1, 1, 1), -(108, 'PE 101', 'Physical Education 1', 2, 0, 'None', 1, 1, 1, 1), -(109, 'NSTP', 'National Service Training Program 1', 3, 0, 'None', 1, 1, 1, 1), -(110, 'EUTH A', 'Euthenics A', 2, 0, 'None', 1, 1, 1, 1), (111, 'IT 142', 'Systems Administration and Maintenance', 2, 3, 'IT 143', 2, 2, 4, 15), (112, 'IT 144', 'Practicum / Industry Immersion', 0, 9, 'Graduating', 2, 2, 4, 15), -(113, 'IT 123', 'Bulkanizing', 3, 3, 'None', 2, 2, 4, 15); +(113, 'IT 123', 'Bulkanizing', 3, 3, 'None', 2, 2, 4, 15), +(123, 'SM 101', 'SAMPLE 101', 3, 0, 'NONE', 1, 3, 1, 17), +(124, 'SM 102', 'SAMPLE 102', 3, 0, 'NONE', 1, 3, 1, 17), +(153, 'CC 100', 'Introduction to Computing', 2, 3, 'None', 1, 1, 1, 1), +(154, 'CC 101', 'Computer Programming 1 ', 3, 3, 'None', 1, 1, 1, 1), +(155, 'CAS 101', 'Purposive Communication', 3, 0, 'None', 1, 1, 1, 1), +(156, 'MATH 100', 'Mathematics in the Modern World', 3, 0, 'None', 1, 1, 1, 1), +(157, 'US 101', 'Understanding the Self', 3, 0, 'None', 1, 1, 1, 1), +(158, 'FIL 101', 'Komunikasyon sa Akademikong Filipino', 3, 0, 'None', 1, 1, 1, 1), +(159, 'PE 101', 'Physical Education 1', 2, 0, 'None', 1, 1, 1, 1), +(160, 'NSTP', 'National Service Training Program 1', 3, 0, 'None', 1, 1, 1, 1), +(161, 'EUTH A', 'Euthenics A', 2, 0, 'None', 1, 1, 1, 1); -- -------------------------------------------------------- @@ -527,7 +697,7 @@ CREATE TABLE `tbl_list_grades` ( `subject_id` int(11) NOT NULL, `applicant_id` int(11) NOT NULL, `grade` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `tbl_list_grades` @@ -1365,7 +1535,7 @@ CREATE TABLE `tbl_subject` ( `sem` int(11) NOT NULL, `curriculum` varchar(50) NOT NULL, `year_level` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `tbl_subject` @@ -1484,7 +1654,7 @@ CREATE TABLE `tlb_applicant` ( `applicant_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `grade_file` varchar(255) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `tlb_applicant` @@ -1615,44 +1785,64 @@ CREATE TABLE `users` ( `user_firstname` varchar(255) NOT NULL, `user_lastname` varchar(255) NOT NULL, `user_type` varchar(255) NOT NULL, - `curriculum` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + `curriculum` varchar(255) NOT NULL, + `user_status` varchar(255) NOT NULL, + `verify_token` varchar(255) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `users` -- -INSERT INTO `users` (`user_id`, `user_email`, `user_password`, `user_firstname`, `user_lastname`, `user_type`, `curriculum`) VALUES -(44, 'johndoe@wmsu.edu.ph', 'password', 'John', 'Doe', 'student', 'BSCS'), -(45, 'lucyfelix@wmsu.edu.ph', 'password', 'Lucy Felix', 'Sadiwa', 'adviser', 'BSCS'), -(46, 'janedoe@wmsu.edu.ph', 'password', 'Jane', 'Doe', 'student', 'BSCS'), -(47, 'gadmarbelamide@wmsu.edu.ph', 'password', 'Gadmar', 'Belamide', 'admin', 'BSCS'), -(48, 'test123@wmsu.edu.ph', 'password', 'test', 'test', 'student', 'BSCS'), -(49, 'wadwad@wmsu.edu.ph', 'password', 'wad', 'wad', 'student', 'BSCS'), -(50, 'daphnagata@wmsu.edu.ph', 'password', 'Daph', 'Nagata', 'student', 'BSCS'), -(51, 'denisegerzon@wmsu.edu.ph', 'password', 'Denise', 'Gerzon', 'student', 'BSCS'), -(52, 'abdulasis@wmsu.edu.ph', 'password', 'Abdulasis', 'Hamja', 'student', 'BSCS'), -(53, 'joshyasil@wmsu.edu.ph', 'password', 'Josh', 'Yasil', 'student', 'BSCS'), -(54, 'markvladimir@wmsu.edu.ph', 'password', 'Mark', 'Vladimir', 'student', 'BSCS'), -(55, 'bushra@wmsu.edu.ph', 'password', 'Bushra', 'Adjaluddin', 'student', 'BSCS'), -(56, 'juandelacruz@wmsu.edu.ph', 'password', 'Juan', 'Dela Cruz', 'student', 'BSCS'), -(57, 'faberdrive@wmsu.edu.ph', 'password', 'Faber', 'Drive', 'student', 'BSCS'), -(58, 'aprilboy@wmsu.edu.ph', 'password', 'April', 'Boy', 'student', 'BSCS'), -(59, 'andreicafino@wmsu.edu.ph', 'password', 'Andrei', 'Cafino', 'student', 'BSIT'), -(60, 'peejayvidad@wmsu.edu.ph', 'password', 'Peejay', 'Vidad', 'student', 'BSCS'), -(61, 'shift@wmsu.edu.ph', 'password', 'Shift', 'Na Tayo', 'student', 'BSCS'), -(62, 'minmax@wmsu.edu.ph', 'password', 'Min', 'Max', 'student', 'BSCS'), -(63, 'stephencurry@wmsu.edu.ph', 'password', 'Stephen', 'Curry', 'student', 'BSCS'), -(64, 'lebronjames@wmsu.edu.ph', 'password', 'LeBron', 'James', 'student', 'BSCS'), -(65, 'aiyayuu@wmsu.edu.ph', 'password', 'Aiyayuu', 'Misyu', 'student', 'BSCS'), -(66, 'maggie@wmsu.edu.ph', 'password', 'Lucky Me', 'Maggie', 'student', 'BSIT'), -(67, 'kyrie@wmsu.edu.ph', 'password', 'kyrie', 'irving', 'student', 'BSCS'), -(68, '1@wmsu.edu.ph', 'passowrd', 'juan', 'juan', 'student', 'BSCS'), -(69, '2@wmsu.edu.ph', 'passowrd', 'Two', 'Two', 'student', 'BSCS'), -(70, 'three@wmsu.edu.ph', 'password', 'three', 'three', 'student', 'BSCS'), -(71, 'four@wmsu.edu.ph', 'password', 'Four', 'Four', 'student', 'BSCS'), -(72, 'haypayb@wmsu.edu.ph', 'password', 'Hay', 'Payb', 'student', 'BSCS'), -(73, 'uphere@wmsu.edu.ph', 'password', 'Up', 'Here', 'student', 'BSCS'); +INSERT INTO `users` (`user_id`, `user_email`, `user_password`, `user_firstname`, `user_lastname`, `user_type`, `curriculum`, `user_status`, `verify_token`) VALUES +(44, 'johndoe@wmsu.edu.ph', 'password', 'John', 'Doe', 'student', 'BSCS', 'Active', ''), +(45, 'lucyfelix@wmsu.edu.ph', 'password', 'Lucy Felix', 'Sadiwa', 'adviser', 'BSCS', 'Active', ''), +(46, 'janedoe@wmsu.edu.ph', 'password', 'Jane', 'Doe', 'student', 'BSCS', '', ''), +(47, 'gadmarbelamide@wmsu.edu.ph', 'password', 'Gadmar', 'Belamide', 'admin', 'BSCS', 'Active', ''), +(48, 'test123@wmsu.edu.ph', 'password', 'test', 'test', 'student', 'BSCS', '', ''), +(49, 'wadwad@wmsu.edu.ph', 'password', 'wad', 'wad', 'student', 'BSCS', '', ''), +(50, 'daphnagata@wmsu.edu.ph', 'password', 'Daph', 'Nagata', 'student', 'BSCS', '', ''), +(51, 'denisegerzon@wmsu.edu.ph', 'password', 'Denise', 'Gerzon', 'student', 'BSCS', 'Active', ''), +(52, 'abdulasis@wmsu.edu.ph', 'password', 'Abdulasis', 'Hamja', 'student', 'BSCS', '', ''), +(53, 'joshyasil@wmsu.edu.ph', 'password', 'Josh', 'Yasil', 'student', 'BSCS', '', ''), +(54, 'markvladimir@wmsu.edu.ph', 'password', 'Mark', 'Vladimir', 'student', 'BSCS', '', ''), +(55, 'bushra@wmsu.edu.ph', 'password', 'Bushra', 'Adjaluddin', 'student', 'BSCS', '', ''), +(56, 'juandelacruz@wmsu.edu.ph', 'password', 'Juan', 'Dela Cruz', 'student', 'BSCS', '', ''), +(57, 'faberdrive@wmsu.edu.ph', 'password', 'Faber', 'Drive', 'student', 'BSCS', '', ''), +(58, 'aprilboy@wmsu.edu.ph', 'password', 'April', 'Boy', 'student', 'BSCS', '', ''), +(59, 'andreicafino@wmsu.edu.ph', 'password', 'Andrei', 'Cafino', 'student', 'BSIT', '', ''), +(60, 'peejayvidad@wmsu.edu.ph', 'password', 'Peejay', 'Vidad', 'student', 'BSCS', '', ''), +(61, 'shift@wmsu.edu.ph', 'password', 'Shift', 'Na Tayo', 'student', 'BSCS', '', ''), +(62, 'minmax@wmsu.edu.ph', 'password', 'Min', 'Max', 'student', 'BSCS', '', ''), +(63, 'stephencurry@wmsu.edu.ph', 'password', 'Stephen', 'Curry', 'student', 'BSCS', '', ''), +(64, 'lebronjames@wmsu.edu.ph', 'password', 'LeBron', 'James', 'student', 'BSCS', '', ''), +(65, 'aiyayuu@wmsu.edu.ph', 'password', 'Aiyayuu', 'Misyu', 'student', 'BSCS', '', ''), +(66, 'maggie@wmsu.edu.ph', 'password', 'Lucky Me', 'Maggie', 'student', 'BSIT', '', ''), +(67, 'kyrie@wmsu.edu.ph', 'password', 'kyrie', 'irving', 'student', 'BSCS', '', ''), +(68, '1@wmsu.edu.ph', 'passowrd', 'juan', 'juan', 'student', 'BSCS', '', ''), +(69, '2@wmsu.edu.ph', 'passowrd', 'Two', 'Two', 'student', 'BSCS', '', ''), +(70, 'three@wmsu.edu.ph', 'password', 'three', 'three', 'student', 'BSCS', '', ''), +(71, 'four@wmsu.edu.ph', 'password', 'Four', 'Four', 'student', 'BSCS', '', ''), +(72, 'haypayb@wmsu.edu.ph', 'password', 'Hay', 'Payb', 'student', 'BSCS', '', ''), +(73, 'uphere@wmsu.edu.ph', 'password', 'Up', 'Here', 'student', 'BSCS', '', ''), +(74, 'qwe@wmsu.edu.ph', '123123', 'qwe', 'qwe', 'student', 'BSCS', 'Active', '439169408fd156f12fcc72a92725125b'), +(75, 'asd@wmsu.edu.ph', '123456', 'qwe', 'qwe', 'student', 'BSCS', 'Active', 'c427859d63cf5de36812bbdd10f5be86'), +(76, 'asd@wasd.com', '123123', 'qwe', 'qwe', 'student', 'BSCS', 'Active', 'beefa17837aebd84e2c57d44112507bb'), +(77, '123@gmail.com', '123123', 'asd', 'asd', 'student', 'BSCS', 'Active', '60b524804ffa5a72f17a32e006de06d3'), +(78, 'qweqwe@gmail.com', '123123', 'qwe', 'qwe', 'student', 'BSCS', 'Active', 'e427b05b8ca440b38dfd39f335c04b36'), +(79, 'asdasd@wmsu.edu.ph', '123123', 'asd', 'asd', 'student', 'BSCS', 'Pending', 'fb350a038b9b8100310174cc2d123b26'), +(80, 'helloworld1@wmsu.edu.ph', '123123', 'zzxc', 'zxccc', 'student', 'BSCS', 'Pending', 'cab9c4ce563b8d8b9bcd7b9c261b4adf'), +(87, 'xt202002168@wmsu.edu.ph', '123', 'test', 'testtt', 'student', 'BSIT', 'Pending', '329fce9f3431c35b43d7453dfc4690b9'), +(92, 'a@wmsu.edu.ph', '123', '123', '123', 'student', 'BSCS', 'Pending', '21e31e6e62402e1522162b5c1473d69f'), +(93, 'akosidoggie@wmsu.edu.ph', '123', '123', '123', 'student', 'BSCS', 'Pending', '4336bd48973de497183affa978b586b3'), +(108, 'eh20220029512@wmsu.edu.ph', '123', 'sample', 'sample', 'student', 'BSCS', 'Pending', 'a62e6c49d35a59b9a4659ca2dfd331cd'), +(114, 'sample@wmsu.edu.ph', '123', '1234', '1234', 'student', 'BSCS', 'Pending', '9920c81b6b710425a8e49ab8b33b3bf3'), +(117, 'eh2022002qqww95@wmsu.edu.ph', 'qwqw', 'qwqw', 'qwqw', 'student', 'BSCS', 'Pending', 'ba791d0f06b903d27347dd8bbed48246'), +(118, 'jascha.mascunana@wmsu.edu.ph', 'chazz123123123', 'Jascha', 'Mascuñana', 'student', 'BSCS', 'Active', '1e4be8c85665d6414df4beba48c6fbd2'), +(123, 'jaydeeballaho@wmsu.edu.ph', 'password', 'Jaydee', 'Ballaho', 'adviser', 'BSCS', 'Active', '175777eaf8ac5f11304e6dd222836f19'), +(125, 'eh202200295@wmsu.edu.ph', '123', '123', '123', 'student', 'BSCS', 'Active', '1caf56e5dbebedb385800587d2184965'), +(126, 'eh2022002951@wmsu.edu.ph', '123', '123', '123', 'student', 'BSCS', 'Pending', '7686c85eedf854ce1e5c71f67cc9f2d6'), +(127, 'sajdnasjjas@wmsu.edu.ph', '123', '123', '123', 'student', 'BSCS', 'Pending', 'a5057119e4aa32890de1f008a9b2052a'); -- -------------------------------------------------------- @@ -1716,6 +1906,12 @@ ALTER TABLE `dean_applicants` ALTER TABLE `faculty` ADD PRIMARY KEY (`id`); +-- +-- Indexes for table `listers` +-- +ALTER TABLE `listers` + ADD PRIMARY KEY (`id`); + -- -- Indexes for table `programs` -- @@ -1771,31 +1967,31 @@ ALTER TABLE `users` -- AUTO_INCREMENT for table `applicants_grades` -- ALTER TABLE `applicants_grades` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=144; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1871; -- -- AUTO_INCREMENT for table `course` -- ALTER TABLE `course` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `course_schoolyear` -- ALTER TABLE `course_schoolyear` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `deanslist_applicants` -- ALTER TABLE `deanslist_applicants` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=155; -- -- AUTO_INCREMENT for table `deans_listers` -- ALTER TABLE `deans_listers` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `dean_applicants` @@ -1807,25 +2003,31 @@ ALTER TABLE `dean_applicants` -- AUTO_INCREMENT for table `faculty` -- ALTER TABLE `faculty` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; + +-- +-- AUTO_INCREMENT for table `listers` +-- +ALTER TABLE `listers` + MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `programs` -- ALTER TABLE `programs` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `sy_application_time` -- ALTER TABLE `sy_application_time` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `sy_subjects` -- ALTER TABLE `sy_subjects` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=162; -- -- AUTO_INCREMENT for table `tbl_list_grades` @@ -1843,7 +2045,7 @@ ALTER TABLE `tlb_applicant` -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` - MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=74; + MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=128; -- -- Constraints for dumped tables diff --git a/js/jquery.toast.js b/js/jquery.toast.js new file mode 100644 index 0000000..1563986 --- /dev/null +++ b/js/jquery.toast.js @@ -0,0 +1,374 @@ +// jQuery toast plugin created by Kamran Ahmed copyright MIT license 2015 +if ( typeof Object.create !== 'function' ) { + Object.create = function( obj ) { + function F() {} + F.prototype = obj; + return new F(); + }; +} + +(function( $, window, document, undefined ) { + + "use strict"; + + var Toast = { + + _positionClasses : ['bottom-left', 'bottom-right', 'top-right', 'top-left', 'bottom-center', 'top-center', 'mid-center'], + _defaultIcons : ['success', 'error', 'info', 'warning'], + + init: function (options, elem) { + this.prepareOptions(options, $.toast.options); + this.process(); + }, + + prepareOptions: function(options, options_to_extend) { + var _options = {}; + if ( ( typeof options === 'string' ) || ( options instanceof Array ) ) { + _options.text = options; + } else { + _options = options; + } + this.options = $.extend( {}, options_to_extend, _options ); + }, + + process: function () { + this.setup(); + this.addToDom(); + this.position(); + this.bindToast(); + this.animate(); + }, + + setup: function () { + + var _toastContent = ''; + + this._toastEl = this._toastEl || $('
', { + class : 'jq-toast-single' + }); + + // For the loader on top + _toastContent += ''; + + if ( this.options.allowToastClose ) { + _toastContent += '×'; + }; + + if ( this.options.text instanceof Array ) { + + if ( this.options.heading ) { + _toastContent +='

' + this.options.heading + '

'; + }; + + _toastContent += '
    '; + for (var i = 0; i < this.options.text.length; i++) { + _toastContent += '
  • ' + this.options.text[i] + '
  • '; + } + _toastContent += '
'; + + } else { + if ( this.options.heading ) { + _toastContent +='

' + this.options.heading + '

'; + }; + _toastContent += this.options.text; + } + + this._toastEl.html( _toastContent ); + + if ( this.options.bgColor !== false ) { + this._toastEl.css("background-color", this.options.bgColor); + }; + + if ( this.options.textColor !== false ) { + this._toastEl.css("color", this.options.textColor); + }; + + if ( this.options.textAlign ) { + this._toastEl.css('text-align', this.options.textAlign); + } + + if ( this.options.icon !== false ) { + this._toastEl.addClass('jq-has-icon'); + + if ( $.inArray(this.options.icon, this._defaultIcons) !== -1 ) { + this._toastEl.addClass('jq-icon-' + this.options.icon); + }; + }; + + if ( this.options.class !== false ){ + this._toastEl.addClass(this.options.class) + } + }, + + position: function () { + if ( ( typeof this.options.position === 'string' ) && ( $.inArray( this.options.position, this._positionClasses) !== -1 ) ) { + + if ( this.options.position === 'bottom-center' ) { + this._container.css({ + left: ( $(window).outerWidth() / 2 ) - this._container.outerWidth()/2, + bottom: 20 + }); + } else if ( this.options.position === 'top-center' ) { + this._container.css({ + left: ( $(window).outerWidth() / 2 ) - this._container.outerWidth()/2, + top: 20 + }); + } else if ( this.options.position === 'mid-center' ) { + this._container.css({ + left: ( $(window).outerWidth() / 2 ) - this._container.outerWidth()/2, + top: ( $(window).outerHeight() / 2 ) - this._container.outerHeight()/2 + }); + } else { + this._container.addClass( this.options.position ); + } + + } else if ( typeof this.options.position === 'object' ) { + this._container.css({ + top : this.options.position.top ? this.options.position.top : 'auto', + bottom : this.options.position.bottom ? this.options.position.bottom : 'auto', + left : this.options.position.left ? this.options.position.left : 'auto', + right : this.options.position.right ? this.options.position.right : 'auto' + }); + } else { + this._container.addClass( 'bottom-left' ); + } + }, + + bindToast: function () { + + var that = this; + + this._toastEl.on('afterShown', function () { + that.processLoader(); + }); + + this._toastEl.find('.close-jq-toast-single').on('click', function ( e ) { + + e.preventDefault(); + + if( that.options.showHideTransition === 'fade') { + that._toastEl.trigger('beforeHide'); + that._toastEl.fadeOut(function () { + that._toastEl.trigger('afterHidden'); + }); + } else if ( that.options.showHideTransition === 'slide' ) { + that._toastEl.trigger('beforeHide'); + that._toastEl.slideUp(function () { + that._toastEl.trigger('afterHidden'); + }); + } else { + that._toastEl.trigger('beforeHide'); + that._toastEl.hide(function () { + that._toastEl.trigger('afterHidden'); + }); + } + }); + + if ( typeof this.options.beforeShow == 'function' ) { + this._toastEl.on('beforeShow', function () { + that.options.beforeShow(that._toastEl); + }); + }; + + if ( typeof this.options.afterShown == 'function' ) { + this._toastEl.on('afterShown', function () { + that.options.afterShown(that._toastEl); + }); + }; + + if ( typeof this.options.beforeHide == 'function' ) { + this._toastEl.on('beforeHide', function () { + that.options.beforeHide(that._toastEl); + }); + }; + + if ( typeof this.options.afterHidden == 'function' ) { + this._toastEl.on('afterHidden', function () { + that.options.afterHidden(that._toastEl); + }); + }; + + if ( typeof this.options.onClick == 'function' ) { + this._toastEl.on('click', function () { + that.options.onClick(that._toastEl); + }); + }; + }, + + addToDom: function () { + + var _container = $('.jq-toast-wrap'); + + if ( _container.length === 0 ) { + + _container = $('
',{ + class: "jq-toast-wrap", + role: "alert", + "aria-live": "polite" + }); + + $('body').append( _container ); + + } else if ( !this.options.stack || isNaN( parseInt(this.options.stack, 10) ) ) { + _container.empty(); + } + + _container.find('.jq-toast-single:hidden').remove(); + + _container.append( this._toastEl ); + + if ( this.options.stack && !isNaN( parseInt( this.options.stack ), 10 ) ) { + + var _prevToastCount = _container.find('.jq-toast-single').length, + _extToastCount = _prevToastCount - this.options.stack; + + if ( _extToastCount > 0 ) { + $('.jq-toast-wrap').find('.jq-toast-single').slice(0, _extToastCount).remove(); + }; + + } + + this._container = _container; + }, + + canAutoHide: function () { + return ( this.options.hideAfter !== false ) && !isNaN( parseInt( this.options.hideAfter, 10 ) ); + }, + + processLoader: function () { + // Show the loader only, if auto-hide is on and loader is demanded + if (!this.canAutoHide() || this.options.loader === false) { + return false; + } + + var loader = this._toastEl.find('.jq-toast-loader'); + + // 400 is the default time that jquery uses for fade/slide + // Divide by 1000 for milliseconds to seconds conversion + var transitionTime = (this.options.hideAfter - 400) / 1000 + 's'; + var loaderBg = this.options.loaderBg; + + var style = loader.attr('style') || ''; + style = style.substring(0, style.indexOf('-webkit-transition')); // Remove the last transition definition + + style += '-webkit-transition: width ' + transitionTime + ' ease-in; \ + -o-transition: width ' + transitionTime + ' ease-in; \ + transition: width ' + transitionTime + ' ease-in; \ + background-color: ' + loaderBg + ';'; + + + loader.attr('style', style).addClass('jq-toast-loaded'); + }, + + animate: function () { + + var that = this; + + this._toastEl.hide(); + + this._toastEl.trigger('beforeShow'); + + if ( this.options.showHideTransition.toLowerCase() === 'fade' ) { + this._toastEl.fadeIn(function ( ){ + that._toastEl.trigger('afterShown'); + }); + } else if ( this.options.showHideTransition.toLowerCase() === 'slide' ) { + this._toastEl.slideDown(function ( ){ + that._toastEl.trigger('afterShown'); + }); + } else { + this._toastEl.show(function ( ){ + that._toastEl.trigger('afterShown'); + }); + } + + if (this.canAutoHide()) { + + var that = this; + + window.setTimeout(function(){ + + if ( that.options.showHideTransition.toLowerCase() === 'fade' ) { + that._toastEl.trigger('beforeHide'); + that._toastEl.fadeOut(function () { + that._toastEl.trigger('afterHidden'); + }); + } else if ( that.options.showHideTransition.toLowerCase() === 'slide' ) { + that._toastEl.trigger('beforeHide'); + that._toastEl.slideUp(function () { + that._toastEl.trigger('afterHidden'); + }); + } else { + that._toastEl.trigger('beforeHide'); + that._toastEl.hide(function () { + that._toastEl.trigger('afterHidden'); + }); + } + + }, this.options.hideAfter); + }; + }, + + reset: function ( resetWhat ) { + + if ( resetWhat === 'all' ) { + $('.jq-toast-wrap').remove(); + } else { + this._toastEl.remove(); + } + + }, + + update: function(options) { + this.prepareOptions(options, this.options); + this.setup(); + this.bindToast(); + }, + + close: function() { + this._toastEl.find('.close-jq-toast-single').click(); + } + }; + + $.toast = function(options) { + var toast = Object.create(Toast); + toast.init(options, this); + + return { + + reset: function ( what ) { + toast.reset( what ); + }, + + update: function( options ) { + toast.update( options ); + }, + + close: function( ) { + toast.close( ); + } + } + }; + + $.toast.options = { + text: '', + heading: '', + showHideTransition: 'fade', + allowToastClose: true, + hideAfter: 3000, + loader: true, + loaderBg: '#9EC600', + stack: 5, + position: 'bottom-left', + bgColor: false, + textColor: false, + textAlign: 'left', + icon: false, + beforeShow: function () {}, + afterShown: function () {}, + beforeHide: function () {}, + afterHidden: function () {}, + onClick: function () {} + }; + +})( jQuery, window, document ); diff --git a/listers/deletelisters.php b/listers/deletelisters.php index 4f5585d..9107a0c 100644 --- a/listers/deletelisters.php +++ b/listers/deletelisters.php @@ -1,5 +1,4 @@