</p></td> <td align="center" class="adAction"> <?php $str = ''; $key = array_keys($row); for ($j = 0; $j < count($key); $j++) { if (!preg_match("/date/", $key[$j])) { $str .= '"' . $key[$j] . '":"' . $row[$key[$j]] . '", '; } else { $str .= '"' . $key[$j] . '":"' . $c->_model->_viewDateTime($row[$key[$j]]) . '", '; } } $str = rtrim($str, ', '); echo '<div class="data">{' . $str . '}</div>'; $link = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/' . $para . '&id=' . $row['id']; echo status_edit($row['status'], $link); echo $btnDelete; ?> </td> </tr> <?php } ?> </table> <div class="pageList"> <?php $urlSearch = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/?' . $arr['urlSearch']; $offSet = 5; $totalRows = $arr['totalRows']; $currentPage = $arr['currentPage']; $data = $c->pagesList($urlSearch, $totalRows, CONS_ADMIN_PER_PAGE, $offSet, $currentPage);
</td> <td align="center" class="adAction"> <?php $str = ''; $key = array_keys($row); for ($j = 0; $j < count($key); $j++) { if (!preg_match("/date/", $key[$j])) { $str .= '"' . $key[$j] . '":"' . $row[$key[$j]] . '", '; } else { $str .= '"' . $key[$j] . '":"' . $c->_model->_viewDateTime($row[$key[$j]]) . '", '; } } $str = rtrim($str, ', '); echo '<div class="data">{' . $str . '}</div>'; $link = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/' . $para . '&id=' . $row['id']; echo status_edit(NULL, $link); ?> </td> </tr> <?php } ?> </table> <div class="pageList"> <?php $urlSearch = CONS_LINK_ADMIN . '/' . $navigator['url'] . '/?' . $arr['urlSearch']; $offSet = 5; $totalRows = $arr['totalRows']; $currentPage = $arr['currentPage']; $data = $c->pagesList($urlSearch, $totalRows, CONS_ADMIN_PER_PAGE, $offSet, $currentPage); echo $data;