//print_r($temp); } ?> <style type="text/css">.bold-option{font-weight:bold} </style> <form class="form-horizontal form-bordered"> <?php echo isset($_GET['id']) ? '<fieldset disabled>' : ''; ?> <div class="form-group"> <label class="col-md-3 control-label" for="example-select">NHÓM MENU***</label> <div class="col-md-6"> <select id="group_menu" name="menu_group" class="form-control" size="1"> <option value="0">Chọn nhóm menu</option> <?php $menu_group_obj = new menu_group(); $temp_menu_group = $menu_group_obj->getAllMenuGroup(1); foreach ($temp_menu_group as $val) { ?> <option value="<?php echo $val['menu_gr_id']; ?> " <?php if (isset($_GET['id'])) { if ($val['menu_gr_id'] == $temp['menu_gr_id']) { echo "selected"; } } if (isset($_GET['group_id'])) { if ($val['menu_gr_id'] == $_GET['group_id']) { echo " selected";
<?php require_once '../models/class-menu.php'; $menu_group_obj = new menu_group(); $sort = ''; if (isset($_GET['sort'])) { $sort = $_GET['sort']; } switch ($sort) { case 'name': $a = $menu_group_obj->getAllMenuGroup('', 'menu_group_name'); break; case 'status': $a = $menu_group_obj->getAllMenuGroup('', 'status'); break; default: $a = $menu_group_obj->getAllMenuGroup(); } ?> <table class="table table-bordered table-striped table-condensed flip-content"> <thead class="flip-content"> <tr> <th width="5%">STT</th> <th><a href="index.php?view=list-menu-group&sort=name">Category Name</a></th> <th class="numeric"><a href="index.php?view=list-menu-group&sort=status">Trạng thái</a></th> <th class="numeric">Sửa</th> <th class="numeric">Xóa</th> </tr> </thead> <tbody> <?php