?> "><?php echo $val['title']; ?> </a></td> <td class="numeric"><img width="200" src="../uploads/<?php echo $val['images']; ?> "</td> <td class="numeric"><?php echo $val['tomtat']; ?> </td> <?php $cat_obj = new category(); $temp_cat = $cat_obj->getCatById($val['cat_id']); ?> <td class="numeric"><?php echo $temp_cat['cat_name']; ?> </td> <form action="control/proccess-news.php" method="post"> <td class="numeric"> <a href="index.php?view=form-news&act=update&id=<?php echo $val['news_id']; ?> " class="btn default btn-xs purple"><i class="fa fa-edit"></i> Sửa</a></td> <td class="numeric"> <input type="hidden" name="act" value="xoa" /> <input type="hidden" name="id" value="<?php
<?php require_once '../models/class-cat.php'; $cat_obj = new category(); if (isset($_GET['id'])) { $temp = $cat_obj->getCatById($_GET['id']); } ?> <div class="panel panel-danger"> <div class="panel-heading"> <h3 class="panel-title"> <i class="livicon" data-name="bell" data-loop="true" data-color="#fff" data-hovercolor="#fff" data-size="18"></i> <?php if (isset($_GET['act'])) { echo $_GET['act'] == 'update' ? 'Sửa' : 'Thêm'; } else { echo "Thêm"; } ?> danh mục </h3> <span class="pull-right"> <i class="fa fa-fw fa-chevron-up clickable"></i> <i class="fa fa-fw fa-times removepanel clickable"></i> </span> </div> <div class="panel-body border"> <form action="control/proccess-cat.php" method="post" class="form-horizontal form-bordered"> <div class="form-group"> <label class="col-md-3 control-label" for="example-text-input">Tên danh mục</label> <div class="col-md-6">