0) { $rows = $_POST['rows']; } else { $rows = 10; } ?>
'; $query = 'FROM customoids'; $where = ''; $param = []; if (isset($device['device_id']) && $device['device_id'] > 0) { $where = 'WHERE (device_id=?)'; $param[] = $device['device_id']; } $count = dbFetchCell("SELECT COUNT(*) $query $where", $param); if (isset($_POST['page_num']) && $_POST['page_num'] > 0 && $_POST['page_num'] <= $count) { $page_num = $_POST['page_num']; } else { $page_num = 1; } $start = (($page_num - 1) * $rows); $full_query = "SELECT * $query $where ORDER BY customoid_descr ASC LIMIT $start,$rows"; foreach (dbFetchRows($full_query, $param) as $oid) { echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ""; echo ""; echo ''; echo "\r\n"; }//end foreach if (($count % $rows) > 0) { echo ''; } echo '
Name OID Value Unit Alert Threshold Warning Threshold Alerts Passed Action
High Low High Low
'.$oid['customoid_descr'].''.$oid['customoid_oid'].''.$oid['customoid_current'].''.$oid['customoid_unit'].''.$oid['customoid_limit'].''.$oid['customoid_limit_low'].''.$oid['customoid_limit_warn'].''.$oid['customoid_limit_low_warn'].''; echo "
"; echo ""; echo ""; echo "
"; echo '
'.generate_pagination($count, $rows, $page_num).'
'; ?>