summaryrefslogtreecommitdiff
blob: 4e4dd870b34b8025617ea5a916c81b2105274596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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";
		

		
	}

?>