From 5eb4ae1264ddbbb277c13d04b0db56341e940908 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 26 Apr 2018 15:47:04 +0200 Subject: lib/style.php: new to reduce duplicate code --- lib/style.php | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ packages/index.php | 59 +++++------------------------------------------ packages/pkginfo.php | 61 +++++------------------------------------------- 3 files changed, 77 insertions(+), 108 deletions(-) create mode 100644 lib/style.php diff --git a/lib/style.php b/lib/style.php new file mode 100644 index 0000000..b7e35ad --- /dev/null +++ b/lib/style.php @@ -0,0 +1,65 @@ + + + + + + Arch Linux 32 - <?php print $title; ?> + + + + + +
+ + +
+
+ + +
+ + + + - - - - - Arch Linux 32 - Package Search - - - - - - -
- - -
-
- -
- - - + fetch_assoc()) $elsewhere[] = $row; + print_header($content["Name"] . " " . $content["Version"] . " (" . $content["Architecture"] . ")"); + ?> - - - - - Arch Linux 32 - <?php print $content["Name"] . " " . $content["Version"] . " (" . $content["Architecture"]; ?>) - - - - - - -
- - -
-
@@ -531,29 +505,6 @@ if (count($elsewhere)>0) {
- - - - - +