togglable sections everywhere
[plewww.git] / planetlab / common / about.php
1 <?php
2 // $Id$
3 //
4 // Get session and API handles
5 require_once 'plc_session.php';
6 global $plc, $api, $adm;
7
8 // Print header
9 require_once 'plc_drupal.php';
10 drupal_set_title('About myplc');
11 include 'plc_header.php';
12
13 // Common functions
14 require_once 'plc_functions.php';
15
16 function __cmp_lower ($a,$b) {
17   return strcmp(strtolower($a),strtolower($b));
18 }
19
20 $release=$adm->GetPlcRelease ();
21
22 print "<table><tbody>\n";
23
24 foreach ( array( "build", "tags", "rpms" ) as $field) {
25
26   print "<tr><th colspan=2 align='center'></th></tr>\n";
27   print "<tr><th colspan=2 align='center'><h2>" . ucwords($field . " details") . "</h2></th></tr>\n";
28   $keys=array_keys($release[$field]);
29   usort($keys,"__cmp_lower");
30
31   foreach ($keys as $key) {
32     print "<tr><th align='right'>" . $key . "</th>";
33     print "<td class='plc-foreign'>"  . $release[$field][$key] . "</td></tr>";
34   }
35 }
36
37 print '</tbody></table>';
38   
39 include 'plc_footer.php';
40
41 ?>