diff options
author | monaco <mr.hedho@yahoo.com> | 2021-05-15 18:57:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 18:57:41 +0000 |
commit | 82cda9b34d358fae320a824c10174834db992454 (patch) | |
tree | 23b60535d1ad399abdc21d81e2cc586cff0c73ef | |
parent | Update archive.php (diff) | |
download | KISSmo-82cda9b34d358fae320a824c10174834db992454.tar.gz KISSmo-82cda9b34d358fae320a824c10174834db992454.zip |
Some masive changes to archive.php
-rw-r--r-- | archive.php | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/archive.php b/archive.php index 54bd4a1..70c916a 100644 --- a/archive.php +++ b/archive.php @@ -4,10 +4,18 @@ // else ob_start(); ?> <title>KISSmo Archive</title> -<link rel="stylesheet" href="./style.css"> +<link rel="stylesheet" href="style.css"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="HandheldFriendly" content="true"> + + + + +<body> + + <center><h2>Runing KISSmo Paste</h2></center><br> <center><form method="POST" action="archive.php" class="search" enctype="multipart/form-data" autocomplete="off"> <input type="text" name="query" maxlength=75 class="searchbox" minlength=3 placeholder="Enter keywords" required> @@ -107,17 +115,18 @@ echo "<br><br>"; ?> <div class="pagination"> - <a class="btn" <?= $page <= 1 ? 'disabled' : '' ?> href="?page=<?= $page - 1 ?>">←</a> + <a <?= $page <= 1 ? 'disabled' : '' ?> href="?page=<?= $page - 1 ?>">←</a> <?php $len = count($filelist) / $options['quantity']; for ($i = 1; $i < $len + 1; $i++) { if (($i == 1 || $i > $len) || ($i > $page - $options['around'] && $i < $page + $options['around'])) { - echo '<a class="btn '. ($page == $i ? 'active' : '') .'" href="?page='.$i.'">'. $i .'</a>'; + echo '<a class="'. ($page == $i ? 'active' : '') .'" href="?page='.$i.'">'. $i .'</a>'; } elseif ($i > $page - $options['around'] - 1 && $i < $page + $options['around'] + 1) { echo '<a disabled class="btn">…</a>'; } } ?> - <a class="btn" <?= $page >= $len ? 'disabled' : '' ?> href="?page=<?= $page + 1 ?>">→</a> + <a <?= $page >= $len ? 'disabled' : '' ?> href="?page=<?= $page + 1 ?>">→</a> +</ul> </div> - +</body> |