function doDelsy() { $domainId = $_GET['domainId']; @($id = $_POST['selector']); $key = count($id); if (!$id == '') { //multi delete using checkbox as a selector for ($i = 0; $i < $key; $i++) { //echo $id[$i]; $sy = new Schoolyr(); $sy->delete($id[$i]); } message("Schoolyear is successfully deleted!", "info"); redirect('index.php?view=view&domainId=' . $domainId . ''); } else { message("Select your Schoolyear first, if you want to delete it!", "error"); redirect('index.php?view=view&domainId=' . $domainId . ''); } }
function doEnroll() { if (isset($_POST['savestep1'])) { $created = strftime("%Y-%m-%d %H:%M:%S", time()); $idno = $_POST['idno']; $Status = $_POST['Status']; $course = $_POST['course']; $ay = $_POST['ay']; $Semester = $_POST['Semester']; $sy = new Schoolyr(); $sy->AY = $ay; $sy->STATUS = $Status; $sy->SEMESTER = $Semester; $sy->COURSE_ID = $course; $sy->IDNO = $idno; $sy->DATE_RESERVED = $created; $istrue = $sy->create(); if ($istrue == 1) { message("competences successfully enrolled! Assign now the competence's subjects.", "success"); // check_message(); redirect('index.php?view=view&competenceId=' . $idno . ''); } } }
<div class="rows"> <div class="col-12 col-sm-12 col-lg-12"> <?php if (isset($_GET['studentId'])) { $student = new Student(); $cur = $student->single_student($_GET['studentId']); } if (isset($_POST['savestep1'])) { $created = strftime("%Y-%m-%d %H:%M:%S", time()); $idno = $_POST['idno']; $Status = $_POST['Status']; $course = $_POST['course']; $ay = $_POST['ay']; $Semester = $_POST['Semester']; $sy = new Schoolyr(); $sy->AY = $ay; $sy->SEMESTER = $Semester; $sy->COURSE_ID = $course; $sy->IDNO = $idno; $sy->DATE_RESERVED = $created; $istrue = $sy->create(); if ($istrue == 1) { message("Students successfully enrolled! Assign now the student's subjects.", "success"); // check_message(); redirect('studentsubjects.php?studentId=' . $idno . ''); } } ?> <form class="form-horizontal span4" action="#.php" method="POST">
.left { border-left:thin solid; border-color:black; } .right { border-right:thin solid; border-color:black; } .header-row { position:fixed; top:0; left:0; } .table {padding-top:5px; } </style> <?php $Schoolyr = new Schoolyr(); $sy = $Schoolyr->single_sy($_GET['txtsearch']); $course = new Course(); $studcourse = $course->single_course($sy->COURSE_ID); $student = new Student(); $cur = $student->single_student($_GET['txtsearch']); ?> <div class="rows"> <div class="col-10 col-sm-10 col-lg-10"> <div class="panel panel-primary"> <div class="panel-body">
<div class="rows"> <div class="col-12 col-sm-12 col-lg-12"> <?php if (isset($_GET['studentId'])) { if ($_GET['studentId'] == "") { message("ID Number is required!", "error"); check_message(); } else { $Schoolyr = new Schoolyr(); $NumberofResult = $Schoolyr->findsy($_GET['studentId']); if ($NumberofResult == 0) { // message("This Student is advice to go back from step 1!","error"); // check_message(); redirect("enrollment.php?studentId=" . $_GET['studentId']); } else { $sy = $Schoolyr->single_sy($_GET['sy']); $course = new Course(); $studcourse = $course->single_course($sy->COURSE_ID); //the button in assigning the subjects. $button = '<a href = "index.php?view=assign&studentId=' . $_GET['studentId'] . '&SY=' . $sy->AY . '&cid=' . $sy->COURSE_ID . '&sy=' . $_GET['sy'] . '" class="btn btn-default"><span class="glyphicon glyphicon-plus-sign"></span>Assign Subject</a> <button type="submit" class="btn btn-default" name="delete"><span class="glyphicon glyphicon-trash"></span> Delete Selected</button>'; } $student = new Student(); $cur = $student->single_student($_GET['studentId']); } } ?> <!-- <form class="form-horizontal span4" action="#.php" method="POST"> -->
function doDelete() { @($id = $_POST['selector']); $key = count($id); //multi delete using checkbox as a selector for ($i = 0; $i < $key; $i++) { $bureau = new bureau(); $bureau->delete($id[$i]); $details = new bureau_details(); $details->delete($id[$i]); $sy = new Schoolyr(); $sy->delete($id[$i]); $req = new Requirements(); $req->delete($id[$i]); } message("bureau has successfully deleted!", "info"); redirect('index.php'); }
border-color:black; } .header-row { position:fixed; top:0; left:0; } .table {padding-top:5px; } </style> <div class="rows"> <div class="col-12 col-sm-12 col-lg-12"> <?php if (isset($_POST['search'])) { if ($_POST['txtsearch'] == "") { message("ID Number is required!", "error"); check_message(); } else { $Schoolyr = new Schoolyr(); $NumberofResult = $Schoolyr->findsy($_POST['txtsearch']); if ($NumberofResult == 0) { message("This Student is advice to go back from step 1!", "error"); check_message(); } else { $sy = $Schoolyr->single_sy($_POST['txtsearch']); $course = new Course(); $studcourse = $course->single_course($sy->COURSE_ID); } $student = new Student(); $cur = $student->single_student($_POST['txtsearch']); } } ?> <nav class="navbar navbar-default" role="navigation">