diff --git a/_prepend.php b/_prepend.php index 9f614c3..5161d91 100644 --- a/_prepend.php +++ b/_prepend.php @@ -17,5 +17,6 @@ if (!defined('DC_RC_PATH')) { $d = dirname(__FILE__) . '/inc/'; -$__autoload['libEPC'] = $d . 'lib.epc.php'; -$__autoload['epcRecords'] = $d . 'lib.epc.records.php'; \ No newline at end of file +$__autoload['libEPC'] = $d . 'lib.epc.php'; +$__autoload['epcRecords'] = $d . 'lib.epc.records.php'; +$__autoload['adminEpcList'] = $d . 'lib.epc.pager.php'; \ No newline at end of file diff --git a/inc/lib.epc.pager.php b/inc/lib.epc.pager.php new file mode 100644 index 0000000..aa06d6f --- /dev/null +++ b/inc/lib.epc.pager.php @@ -0,0 +1,76 @@ +rs->isEmpty()) { + if ($filter->show()) { + echo '
' . __('No record matches the filter') . '
'; + } else { + echo '' . __('No record') . '
'; + } + } else { + $pager = new dcPager($filter->page, $this->rs_count, $filter->nb, 10); + $pager->base_url = $pager_url; + + $epc_id = []; + if (isset($_REQUEST['epc_id'])) { + foreach ($_REQUEST['epc_id'] as $v) { + $epc_id[(integer) $v] = true; + } + } + + $cols = [ + 'key' => '' . $filter['help'] . '
'; - # Filter title and description +# Filter settings +echo ' +