</h3> <!--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)) {
<input type="text" class="form-control" name="date2" value="<?php echo date('Y-m-d'); echo " "; echo date('h:m'); ?> "> <!--</div> <!--<div class="form-group">--> <label>Subject</label> <select name="subject" class="form-control"> <!--PHP--> <?php if (isset($cur_dep) && isset($cur_sem)) { $subjc = select_all_sub($cur_dep, $cur_sem); while ($subjs = mysqli_fetch_assoc($subjc)) { ?> <option value="<?php echo $subjs["Suid"]; ?> "><?php echo $subjs["Su_name"]; ?> </option> <!--PHP--> <?php } }
</h5> <div class="header clearfix"></div> <table class="table table-striped"> <thead> <tr> <th>Subject_code</th> <th>Subject_Name</th> <th>Classes_Happened</th> <th>Classes_Attended</th> </tr> </thead> <tbody> <?php $sublist = select_all_sub($cur_dep, $cur_sem); while ($subj = mysqli_fetch_assoc($sublist)) { ?> <tr> <td> <?php echo $subj["Suid"]; ?> </td> <td><?php echo $subj["Su_name"]; ?> </td> <td> <?php $i = retrive_happned($cur_dep, $cur_sem, $subj["Suid"]); $j = mysqli_fetch_assoc($i); echo $j["count(DISTINCT t)"];