From e5c0107d8c0dca4bdbbfa6fa26c2ef4d8997be6a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Feb 2019 14:28:52 +0100 Subject: lib/style.php,packages/index.php: move displaying part of package listing to a separate function in a separate file --- lib/style.php | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) (limited to 'lib/style.php') diff --git a/lib/style.php b/lib/style.php index 622e764..2fe2992 100644 --- a/lib/style.php +++ b/lib/style.php @@ -74,3 +74,99 @@ function print_footer() { \n"; + print " \n"; + print " \n"; + + foreach ($sorts as $get => $sort) { + print " \n"; + if ($print_order_links) { + print " " . $sort["label"] . "\n"; + } else + print " " . $sort["label"] . "\n"; + print " \n"; + } + + print " \n"; + print " \n"; + print " \n"; + $oddity = "odd"; + foreach ($list as $row) { + print " \n"; + print " \n"; + print " " . $row["arch"] . "\n"; + print " \n"; + print " \n"; + print " " . $row["repo"] . "\n"; + print " \n"; + print " \n"; + print " " . $row["pkgname"] . "\n"; + print " \n"; + print " \n"; + print " " . $row["version"] . "\n"; + print " \n"; + print " \n"; + print " "; + if ($row["has_issues"]) + print "has open bug reports"; + else + print " "; + print "\n"; + print " \n"; + print " \n"; + print " "; + if (isset($row["build_date"])) + print $row["build_date"]; + else + print " "; + print "\n"; + print " \n"; + print " \n"; + print " "; + if (isset($row["move_date"])) + print $row["move_date"]; + else + print " "; + print "\n"; + print " \n"; + print " \n"; + print " "; + if ($row["is_to_be_deleted"]) + print "to be deleted"; + else + print " "; + print "\n"; + print " \n"; + print " \n"; + if ($oddity == "odd" ) + $oddity = "even"; + else + $oddity = "odd"; + } + print " \n"; + print " \n"; +} -- cgit v1.2.3-70-g09d2