<?php $backup = new modelBackupRestore(); $backup->_clearLogs(); echo '<div id="tableName" style="display:none">' . $table . '</div>'; echo $c->viewFormSearch(); ?> <div id="content"> <table width="100%" border="0" cellpadding="0" cellspacing="0" id="view_select"> <tr bgcolor="#88C4FF"> <th width="50">STT</th> <th align="left">Mô tả</th> <th width="100" align="left">Action</th> <th width="140" align="left">Table</th> <th width="120" align="left">Date</th> <th width="80" align="left">User</th> <th width="80">Thao tác</th> </tr> <?php $i = 0; $data = $c->selectFromAll('', $arr, $table, "`{$table}`.`action`, `{$table}`.`table`, `{$table}`.`datetime`, `{$table}`.`username`"); foreach ($data as $row) { $i++; ?> <tr class="row"> <td align="center"><?php echo $arr['startRow'] + $i; ?> </td> <td><p class="height_row_hidden"><?php echo $row['name'];
/*logs*/ if (isset($_POST['ajaxRestore'])) { $id = $_POST['ajaxRestore']; settype($id, "int"); $backup = new modelBackupRestore(); echo $backup->_restoreData($id); return true; } if (isset($_POST['clearLogs'])) { $soNgayLuuLai = $_POST['clearLogs']; settype($soNgayLuuLai, "int"); if ($soNgayLuuLai < 30) { return false; } $logs = new modelBackupRestore(); $data = $logs->_clearLogs($soNgayLuuLai); return true; } /*end logs*/ /*clearCache*/ if (isset($_POST['clearCache'])) { $c->remove_dir(CONS_CACHE_URL_FILE); return true; } if (isset($_POST['ajaxNumberItem'])) { $table = $c->_model->_changeDauNhay($_POST['table']); $para = str_replace("'", "'", $_POST['parameter']); if ($table == '') { return false; } $str = '';