$query_top = mysql_query("SELECT * FROM year_level_t " . $set) or die; while ($row = mysql_fetch_assoc($query_top)) { $lvl = $row['lvl_id']; ?> <div class="widget-header"> <h3> <?php $query_lvl = mysql_query("SELECT * FROM year_level_t WHERE lvl_id='{$lvl}'") or die(mysql_error()); $row_lvl = mysql_fetch_assoc($query_lvl); //echo ucfirst($row_lvl['lvl_name']); ?> </h3> <div class="pull-right"> <h3> <?php $total_units = get_total_units($lvl); $total_time = print_time($total_units); //echo "Total Units: ".$total_units." / ".$total_time." hrs"; ?> </h3> </div> </div> <table width="100%" style="border:1px solid black;"> <tr> <td bgcolor="#999999" style="background-color:#999999">Lis of Subjects (<?php echo ucfirst($row_lvl['lvl_name']); ?> )</td> </tr> <tr>
echo $get_curriculum_code; ?> </h3> <?php include "actions/curriculum_functions.php"; ?> <p><?php echo get_curr_name($get_curriculum_code); ?> </p> <p>No. of Subjects: <?php echo get_total_subjects($get_curriculum_code); ?> </p> <p>Total Units: <?php echo get_total_units($get_curriculum_code); ?> </p> <br /> <a class="btn btn-block" href="curriculums.php?curriculum_code=<?php echo $get_curriculum_code; ?> "> Year Levels</a> <a class="btn btn-block" href="subjects.php?curriculum_code=<?php echo $get_curriculum_code; ?> "> Subjects</a> <a class="btn btn-block" href="subject_add.php?curriculum_code=<?php echo $get_curriculum_code; ?> "><i class="icon-plus"></i> Add Subjects</a>