Esempio n. 1
0
</td>
                                                <td>&nbsp;</td>       
                                                <td align="left">&nbsp;Total Grade:</td>
                                                <td><?php 
                echo check_gpa($gpa);
                ?>
</td>
                                            </tr>
                                             <tr  height="48" style="font-weight:bold;">
                                                <td align="left"><?php 
                echo ' Status ';
                ?>
</td>
                                               
                                               <?php 
                if ('F' != check_gpa($gpa)) {
                    $status = 'Pass';
                } else {
                    $status = 'Fail';
                }
                if ($status == 'Fail') {
                    ?>
                                                <td class="btn btn-danger" height="44">&nbsp;&nbsp;<?php 
                    echo $status;
                    ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                                <?php 
                } elseif ($status == 'Absent') {
                    ?>
                                                <td class="btn btn-warning ">&nbsp;&nbsp;<?php 
                    echo $status;
        ?>
 </b>&nbsp;</td> 
      <td style="font-size:12px" >&nbsp;&nbsp; <?php 
        echo $name;
        ?>
 &nbsp;</td>
      <td width="auto" style="font-size:12px" >&nbsp;<?php 
        echo $department;
        ?>
 </td>
      <td width="auto" align="center" style="font-size:13px" >&nbsp;<?php 
        echo '<strong>' . round($gpa, 2) . '</strong>';
        ?>
 </td>
      <td width="auto" align="center" style="font-size:14px" >&nbsp;<?php 
        echo '<strong>' . check_gpa($gpa) . '</strong>';
        ?>
 </td>
      <?php 
        if ($gpa > 0) {
            ?>
      <td width="auto" align="center" style="font-size:13px;color:green;" >&nbsp;<?php 
            echo '<strong> Pass</strong>';
            ?>
 </td>
      <?php 
        } else {
            ?>
      <td width="auto" align="center"  style="font-size:13px;color:#F00;" >&nbsp;<strong>Fail</strong></td>
<?php 
        }