<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"> -->
} .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"> <!-- Brand and toggle get grouped for better mobile display -->