summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-02-11 20:17:46 -0700
committerSteve Dibb <beandog@gentoo.org>2010-02-11 20:17:46 -0700
commit32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b (patch)
treef9b8efa8def14998bc8f7a4fed123cc34c98f8db /useflag.php
parentZero (diff)
downloadznurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.gz
znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.bz2
znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.zip
initial commit
Diffstat (limited to 'useflag.php')
-rw-r--r--useflag.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/useflag.php b/useflag.php
new file mode 100644
index 0000000..380d085
--- /dev/null
+++ b/useflag.php
@@ -0,0 +1,48 @@
+<?
+
+ require_once 'class.db.use.php';
+
+ if($useflag_name) {
+
+ $obj = new DBUse($useflag_name);
+
+ $description = $obj->description;
+
+ $url = $base_uri."categories";
+
+ echo "<h4>$useflag_name</h4>";
+
+ echo "<div class='description'>$description</div>";
+
+ $sql = "SELECT category_name, package_name, description FROM view_package_useflags WHERE useflag_name = ".$db->quote($useflag_name)." ORDER BY category_name, package_name;";
+ $arr = $db->getAll($sql);
+
+ echo "<hr class='pkg_rule' style='margin-bottom: 15px; margin-top: 15px;'/>\n";
+
+ echo "<table class='useflags' cellpadding='4' cellspacing='0'>\n";
+
+ $x = 0;
+
+ foreach($arr as $row) {
+
+ extract($row);
+
+ $class = getRowClass($x++);
+
+ $cp = "$category_name/$package_name";
+ $url = $base_uri.$cp;
+
+ echo "\t<tr class='$class'>\n";
+ echo "\t\t<td valign='top'><a href='$url'>$cp</a></td>\n";
+ echo "\t\t<td>$description</td>\n";
+ echo "\t</tr>\n";
+
+ }
+
+ echo "</table>\n";
+
+
+
+ }
+
+?> \ No newline at end of file