<div style="margin-top:10px;" class="mainbox col-md-12 text-center">

  <div class="row">

    <!-- Simple jQuery calls to switch out divs-->
    <a type="button" class="btn btn-primary" href="reports.php?tab=students">Student</a>
    <a type="button" class="btn btn-primary" href="reports.php?tab=teachers">Teacher</a>
    <a type="button" class="btn btn-primary" href="reports.php?tab=lessons">Lessons</a>
    <a type="button" class="btn btn-primary" href="reports.php?tab=orchestra" >Rowan Orchestra</a>
    <a type="button" class="btn btn-primary" href="reports.php?tab=band">Atlantic Brass Band</a>
    
     <span class="btn-group">
        <button class="drop-down-btn dropdown-toggle" data-toggle="dropdown">Classes <span class="caret"></span></button>
         <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
            <?php 
$result = get_class_list();
while ($class_info = mysql_fetch_assoc($result)) {
    echo '<li role="presentation"><a role="menuitem" href="reports.php?tab=class&class-key=', $class_info['class_id'], '">', $class_info['class_name'], '</a></li>';
}
?>
          </ul>
      </span>

  </div>
  <br />
  

  
  <?php 
if ($tab == 'students') {
    ?>
Example #2
0
    admin_priv('class_manage');
    $smarty->assign('ur_here', "班级列表");
    $smarty->assign('action_link', array('text' => "添加班级", 'href' => 'class.php?act=add'));
    $class_list = get_class_list();
    $grade_list = grade_list();
    $smarty->assign('class_list', $class_list['class_list']);
    $smarty->assign('grade_list', $grade_list);
    $smarty->assign('filter', $class_list['filter']);
    $smarty->assign('record_count', $class_list['record_count']);
    $smarty->assign('page_count', $class_list['page_count']);
    $smarty->assign('full_page', 1);
    $smarty->assign('sort_class_id', '<img src="images/sort_desc.gif">');
    assign_query_info();
    $smarty->display('class_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    $class_list = get_class_list();
    $smarty->assign('class_list', $class_list['class_list']);
    $smarty->assign('filter', $class_list['filter']);
    $smarty->assign('record_count', $class_list['record_count']);
    $smarty->assign('page_count', $class_list['page_count']);
    $sort_flag = sort_flag($class_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('class_list.htm'), '', array('filter' => $class_list['filter'], 'page_count' => $class_list['page_count']));
} elseif ($_REQUEST['act'] == 'add') {
    /* 检查权限 */
    admin_priv('class_manage');
    $class = array();
    $grade_list = grade_list();
    $smarty->assign('grade_list', $grade_list);
    $smarty->assign('ur_here', "添加班级");
    $smarty->assign('action_link', array('text' => "班级列表", 'href' => 'class.php?act=list'));