Added data officer role

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-07-14 21:58:18 +02:00
parent 0c830b1276
commit ea3b0c372b
23 changed files with 163 additions and 18 deletions

View File

@ -0,0 +1,16 @@
<?php
class ModelAuditRemoval extends Model {
public function get_pending_removals($page_len = 0) {
$limit = '';
$from = (int)$page * (int)$page_len;
if($page_len > 0) { $limit = " LIMIT " . (int)$from . ", " . (int)$page_len; }
$query = $this->db->query("SELECT * FROM " . TABLE_DELETED . " WHERE deleted=0 ORDER BY date1 DESC $limit");
return $query->rows;
}
}