 
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/jpg" href="../assets/img/mzumbe1.jpg">
   <title>SARMS | SIKIRARI ACADEMIC RESURT MANAGEMENT SYSTEM</title>  
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../stp_con/fontawesome-free/css/all.min.css">
  <!-- daterange picker -->
  <link rel="stylesheet" href="../stp_con/daterangepicker/daterangepicker.css">
  <!-- iCheck for checkboxes and radio inputs -->
  <link rel="stylesheet" href="../stp_con/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- Bootstrap Color Picker -->
  <link rel="stylesheet" href="../stp_con/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
  <!-- Tempusdominus Bootstrap 4 -->
  <link rel="stylesheet" href="../stp_con/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- Select2 -->
  <link rel="stylesheet" href="../stp_con/select2/css/select2.min.css">
  <link rel="stylesheet" href="stp_con/select2-bootstrap4-theme/select2-bootstrap4.min.css">
  <!-- Bootstrap4 Duallistbox -->
  <link rel="stylesheet" href="../stp_con/bootstrap4-duallistbox/bootstrap-duallistbox.min.css">
  <!-- BS Stepper -->
  <link rel="stylesheet" href="../stp_con/bs-stepper/css/bs-stepper.min.css">
  <!-- dropzonejs -->
  <link rel="stylesheet" href="../stp_con/dropzone/min/dropzone.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="../assets/css/adminlte.min.css">
  <link rel="stylesheet" type="text/css" href="../stp_con/parsley/parsley.css"/>
</head>
<body class="hold-transition sidebar-mini layout-fixed top-nav">
<!-- Site wrapper -->
<div class="wrapper"> 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header" style="background: url('../assets/img/ban.jpg') center center; color: white;">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <a><strong>Course work assessment</strong></a>
          </div> 
        </div>
      </div><!-- /.container-fluid -->
    </section>
  <br>
   <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row"> 
          <!-- /.col -->
          <div class="col-md-12">
            <div class="card"> 
              <!-- /.card-header --> 
              <div class="card-body"> 
                <div class="tab-content"> 
                   <div class="card card-default">  
                    <div class="modal-content"> 
                      <div class="modal-header"> 
                        <h4 class="modal-title" id="modal_title">General Course work </h4> 
                         </div>  
                          <div class="modal-body"> 
                         <?php  
                          $i = 1; 
                         $course_id = $_GET['id'];  
                         $student= mysqli_query($conn,"SELECT *, sum(marks) as total  FROM student_srms,marks_srms AS s WHERE s.class_id = '$class_id' AND s.semister='1' AND  student_srms.student_roll_no = s.student_roll_no AND s.student_roll_no='$course_id';")or die(mysqli_error());
                            $data = mysqli_fetch_array($student);  

                          $query= mysqli_query($conn,"SELECT * FROM marks_srms AS s WHERE s.class_id = '$class_id' AND s.semister='1' and s.student_roll_no='$course_id'")or die(mysqli_error()); 
                              ?> 
 
                              <div class="card-body">
                                <p>For | <?php echo $data['student_name']; ?></p>

                                <table class="table table-bordered">
                                  <thead>
                                    <tr>
                                      <th style="width: 10px">#</th>
                                      <th>Course Code</th>
                                      <th>Marks</th> 
                                    </tr>
                                  </thead>
                                  <tbody>
                                    <?php  while($course = mysqli_fetch_array($query)){  ?>
                                    <tr>
                                      <td><?php echo $i++ ?></td>
                                      <td><?php echo $course['code']; ?></td>
                                      <td><span class="badge bg-success"><?php echo $course['marks']; ?></span></td> 
                                    </tr> 
                                     <?php }?> 
                                  </tbody>
                                   <tfoot>
                                    <tr> 
                                        <th colspan="2">Total</th> 
                                        <th><?php echo $data['total']; ?></th>  
                                    </tr> 
                                  </tfoot>
                                </table>
                              </div> 
                            </div>
                          <div class="modal-footer">  
                           <a href="admin.php?page=profile" class="btn btn-secondary">BACK</a> 
                         </div>
                        </div>
                      </div> 
                     </div> 
                  
                  <!-- /.tab-pane -->
                </div>
                <!-- /.tab-content -->
              </div><!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div> 
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

<!-- ./wrapper -->
<script src="../stp_con/jquery.min.js"></script>
<script src="../stp_con/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../stp_con/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Select2 -->
<script src="../stp_con/select2/js/select2.full.min.js"></script>
<!-- Bootstrap4 Duallistbox -->
<script src="../stp_con/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
<!-- InputMask -->
<script src="../stp_con/moment/moment.min.js"></script>
<script src="stp_con/inputmask/jquery.inputmask.min.js"></script>
<!-- date-range-picker -->
<script src="../stp_con/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="../stp_con/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="../stp_con/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- BS-Stepper -->
<script src="../stp_con/bs-stepper/js/bs-stepper.min.js"></script>
<!-- dropzonejs -->
<script src="../stp_con/dropzone/min/dropzone.min.js"></script>
<!-- AdminLTE App -->
<script src="../assets/js/adminlte.min.js"></script>
<script type="text/javascript" src="../stp_con/parsley/dist/parsley.min.js"></script>

 <script>

$(document).ready(function(){

    $('#login_form').parsley();

});

</script>
 
 
