<div class="form-group <?php if (form_error('parent')) { echo 'has-error'; } ?> "> <label for="parent" class="col-md-2 control-label">Category Root</label> <div class="col-md-9"> <select class="form-control" name="parent"> <option value="0">Root</option> <?php if (!isset($parent) || !isset($id)) { $parent = $id = ""; } $listCate = Mcategory::getMenuCate($parent, $id); echo $listCate; ?> </select> <span class="error"><?php echo form_error('status'); ?> </span> </div> </div> <div class="form-group <?php if (form_error('name')) { echo 'has-error'; } ?> ">
<div class="box-body"> <div class="form-group <?php if (form_error('category')) { echo 'has-error'; } ?> "> <label for="category" class="col-md-2 control-label">Category </label> <div class="col-md-9"> <select class="form-control" name="category"> <option value="0">Root</option> <?php if (!isset($category)) { $category = ""; } $listCate = Mcategory::getMenuCate($category); echo $listCate; ?> </select> <span class="error"><?php echo form_error('status'); ?> </span> </div> </div> <div class="form-group <?php if (form_error('title')) { echo 'has-error'; } ?> ">