<a class="list-group-item" href="attend_status.php?dept=<?php echo $dep["Did"]; ?> &semist=<?php echo $sem["Sid"]; ?> "><?php echo $sem["S_name"]; ?> <span class="sr-only">(current)</span></a> <!==============================select subject========================================--> <?php if ($sem["Sid"] == $cur_sem) { if (isset($cur_dep) && isset($cur_sem)) { $subj = select_all_sub($cur_dep, $cur_sem); $elec = select_all_ele($cur_dep, $cur_sem); while ($sub = mysqli_fetch_assoc($subj)) { ?> <ul class="list-group"> <?php echo "<li "; if ($sub["SID"] == $cur_sub) { echo "class=\"subactive\""; } else { echo "class=\"subnative\""; } echo ">"; ?> <!--PHP--> <a class="list-group-item" href="attend_status.php?dept=<?php echo $dep["Did"];
<!--PHP--> <?php } ?> <h3><p>Now that have opted one of the semister,</p><p>From the Navigation Bar in the left side, Select the required subject</p> <p>Based on the subject,start marking the attendance.</p></h3> <?php } ?> <?php //if the department,semister and any subj is selected from the nav bar then show the corresponding attendance mar form if (isset($cur_dep) && isset($cur_sem) && isset($cur_sub)) { $stud = select_all_student($cur_dep, $cur_sem); $cur_subjects = select_all_sub($cur_dep, $cur_sem); $cur_elective = select_all_ele($cur_dep, $cur_sem); while ($css = mysqli_fetch_assoc($cur_subjects)) { ?> <h3> <?php if ($cur_sub == $css["Suid"]) { echo "Current subject is <b>" . $css["Su_name"]; } ?> </h3> <!--PHP--> <?php } //------------------------------------------------------------------------------------------------------ while ($ss = mysqli_fetch_assoc($cur_elective)) { ?>