Пример #1
0
                                
                                <!-- /widget-header -->
                                <div class="widget-content" >
                                  <table class="table table-striped table-bordered">
                                        <thead>
                                          <tr>
                                            <th>Year Level</th>
                                            <th>#</th>
                                            <th>%</th>
                                          </tr>
                                        </thead>
                                  		
                                        <?php 
$sy_id = $school_yr;
$query_lvl = mysql_query("SELECT * FROM year_level_t");
$total = classes_teacher($emp_id, $school_yr);
$query_lvl = mysql_query("SELECT * FROM year_level_t");
while ($row_lvl = mysql_fetch_assoc($query_lvl)) {
    $lvl = $row_lvl['lvl_id'];
    $lvl_name = $row_lvl['lvl_name'];
    $count_cat = 0;
    $query_class = mysql_query("SELECT * from class_t WHERE teacher_id={$_GET['emp_id']} AND sy_id={$sy_id} AND subject_code IN (SELECT subject_code FROM subject_t WHERE year_level={$lvl}) ");
    $row_class = mysql_fetch_assoc($query_class);
    $count_lvl = mysql_num_rows($query_class);
    ?>
													<tr>
													  <td><?php 
    echo ucfirst($lvl_name);
    ?>
</td>
													  <td><center><?php 
Пример #2
0
			  <td><?php 
echo $row_emp['emp_id'];
?>
 <br /></td>
            </tr>
            <tr >
              <td>Max Load: </td>
			  <td><?php 
echo $row_load['max_load'];
?>
 <br /></td>
            </tr>
            <tr >
              <td>No. of Classes: </td>
			  <td><?php 
echo classes_teacher($_GET['emp_id'], $school_yr);
?>
 <br /></td>
            </tr>
            <tr >
              <td>Total Units: </td>
			  <td><?php 
echo $total_unit;
?>
 <br /></td>
            </tr>
            <tr >
              <td>Total Time: </td>
			  <td>
			  <?php 
$time = unit_to_time($total_unit);