function publish() { $status = $_POST['status']; $id = $_POST['id']; $field = $_POST['field']; $table = $_POST['table']; if ($status == 0) { $pub = 1; } else { $pub = 0; } $vdata['published'] = $pub; $this->db->update($table, $vdata, array($field => $id)); echo icon_active("'{$table}'", "'{$field}'", $id, $pub); }
?> "> <input type="hidden" name="id[]" value="<?php echo $rs2->cat_id; ?> "> </td> <td align="center"> <?php echo icon_edit('category/edit/' . $rs2->cat_id); ?> <span id="publish<?php echo $rs2->cat_id; ?> "><?php echo icon_active("'category'", "'cat_id'", $rs2->cat_id, $rs2->published); ?> </span> </td> </tr> <?php } ?> <?php } ?> <?php $k = 1 - $k; } ?>
?> </td> <td><?php echo number_format($rs->price, 0, '.', '.'); ?> </td> <td><?php echo $rs->categoryname; ?> </td> <td class="text-right"> <?php echo icon_edit('product/edit/' . $rs->id . '/' . $page_ . '/' . $this->str); ?> <?php echo icon_active("'product'", "'id'", $rs->id, $rs->published); ?> <?php echo icon_del('product/del/' . $rs->id . '/' . $page_ . '/' . $this->str); ?> </td> </tr> <?php } ?> </table> </div> <?php echo form_close(); ?> <div class="table-footer clearfix">
<td style="width: 200px;"> <?php echo $cat->cat_name; ?> </td> <td align="center"> <?php echo icon_edit('news/edit/' . $rs->id . $page); ?> <span id="publish<?php echo $rs->id; ?> "><?php echo icon_active("'news'", "'id'", $rs->id, $rs->published); ?> </span> <?php echo icon_del('news/del/' . $rs->id . $page); ?> </td> </tr> <?php $k = 1 - $k; } ?> <tfoot> <td colspan="8"> Hiện có <?php echo $num;
echo $rs->username; ?> </td> <td><?php echo $rs->group_name; ?> </td> <td align="center"> <?php echo icon_edit('account/edit/' . $rs->user_id . '/' . $page); ?> <span id="publish<?php echo $rs->user_id; ?> "><?php echo icon_active("'user'", "'user_id'", $rs->user_id, $rs->published); ?> </span> <?php if ($rs->user_id != 1) { echo icon_del('account/del/' . $rs->user_id . '/' . $page); } ?> </td> </tr> <?php $k = 1 - $k; } } ?>
?> "> <input type="hidden" name="id[]" value="<?php echo $rs1->catid; ?> "> </td> <td align="center"> <?php echo icon_edit('pcat/editmaincat/' . $rs1->catid); ?> <span id="publish<?php echo $rs1->catid; ?> "><?php echo icon_active("'pcat'", "'catid'", $rs1->catid, $rs1->published); ?> </span> <?php echo icon_del('pcat/delmaincat/' . $rs1->catid); ?> </td> </tr> <?php } ?> <?php $k = 1 - $k; } ?>
</td> <td><?php echo $rs->email; ?> </td> <td><?php echo date('H:i:s d/m/Y', $rs->time); ?> </td> <td align="center"> <span id="publish<?php echo $rs->id; ?> "><?php echo icon_active("'hoidap'", "'id'", $rs->id, $rs->published); ?> </span> <?php echo icon_del('hoidap/del/' . $rs->id . '/' . (int) $this->uri->segment(4)); ?> </td> </tr> <?php $k = 1 - $k; } ?> <tfoot> <td colspan="7">
echo site_url('khachhang/edit/' . $rs->id . $page); ?> "><?php echo $rs->name; ?> </a> </td> <td align="center"> <?php echo icon_edit('khachhang/edit/' . $rs->id . $page); ?> <span id="publish<?php echo $rs->id; ?> "><?php echo icon_active("'khachhang'", "'id'", $rs->id, $rs->published); ?> </span> <?php echo icon_del('khachhang/del/' . $rs->id . $page); ?> </td> </tr> <?php $k = 1 - $k; } ?> <tfoot> <td colspan="8"> Hiện có <?php echo $num;
<td><a href="<?php echo $rs->link; ?> " target="_blank"><?php echo $rs->link; ?> </a></td> <td align="center"> <?php echo icon_edit('weblink/edit/' . $rs->id); ?> <span id="publish<?php echo $rs->id; ?> "><?php echo icon_active("'weblink'", "'id'", $rs->id, $rs->published); ?> </span> <?php echo icon_del('weblink/del/' . $rs->id); ?> </td> </tr> <?php $k = 1 - $k; } ?> </table> <?php echo form_close();
?> "> <input type="hidden" name="id[]" value="<?php echo $rs->id; ?> "> </td> <td align="center"> <?php echo icon_edit('mod/edit/' . $rs->id); ?> <span id="publish<?php echo $rs->id; ?> "><?php echo icon_active("'modules'", "'id'", $rs->id, $rs->published); ?> </span> </td> </tr> <?php $k = 1 - $k; } ?> <tfoot> <td colspan="8"> Hiện có <?php echo $num; ?> Modules <span class="pages"><?php echo $pagination;