diff --git a/broadcast/index.frm.php b/broadcast/index.frm.php index 43e50db..dafb8fc 100644 --- a/broadcast/index.frm.php +++ b/broadcast/index.frm.php @@ -8,26 +8,37 @@ - -
-
- -
+
+
- - -
+ +
+
+ +
-
- > -
+
+ + +
-
- +
+ > +
+ +
+ +
+
+
+ +
- diff --git a/broadcast/index.php b/broadcast/index.php index deb15a0..966a9c7 100644 --- a/broadcast/index.php +++ b/broadcast/index.php @@ -4,6 +4,10 @@ const LOG_PATH = './log.txt'; $log_data = []; +$page = (int) ($_GET['p'] ?? 1); +$length = (int) ($_GET['max'] ?? 20); +$asc = ($_GET['asc'] ?? 0) != 0; + $f = fopen (LOG_PATH, 'r'); if ($f !== false) @@ -25,5 +29,10 @@ fclose ($f); unset ($f); +$pages_max = (int) (count ($log_data) / $length); + +if (!($asc)) + $log_data = array_reverse ($log_data); + require_once './index.frm.php'; diff --git a/broadcast/pagination.cmp.php b/broadcast/pagination.cmp.php new file mode 100644 index 0000000..7380e8d --- /dev/null +++ b/broadcast/pagination.cmp.php @@ -0,0 +1,42 @@ +
+ +
+ diff --git a/broadcast/style.css b/broadcast/style.css new file mode 100644 index 0000000..d793d3e --- /dev/null +++ b/broadcast/style.css @@ -0,0 +1,21 @@ +.container-max-width +{ + max-width: 1600px; +} + +.no-wrap +{ + display: inline-block; + float: none; +} + +.custom-width +{ + max-width: 1ex; +} + +.row-width +{ + max-width: 6px; +} +