From 9add0d040b751a690014d61f6652d3c5f0de82e7 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 13 Jan 2009 21:34:57 +0000 Subject: [PATCH] use abstraction for building menu-like stuff based on minitab --- planetlab/includes/plc_minitab.php | 16 ++++++++++++++++ planetlab/nodes/newindex.php | 24 ++++++++---------------- 2 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 planetlab/includes/plc_minitab.php diff --git a/planetlab/includes/plc_minitab.php b/planetlab/includes/plc_minitab.php new file mode 100644 index 0000000..67c32cf --- /dev/null +++ b/planetlab/includes/plc_minitab.php @@ -0,0 +1,16 @@ +'; + print ''; + print ''; + print "\n"; + print "
\n"; +} + +?> diff --git a/planetlab/nodes/newindex.php b/planetlab/nodes/newindex.php index 4350ddc..11cbe98 100644 --- a/planetlab/nodes/newindex.php +++ b/planetlab/nodes/newindex.php @@ -47,22 +47,15 @@ $tablesize=25; drupal_set_title('Nodes'); -?> - -
- -
- - - -"/db/nodes/index.php", + "About"=>"/db/about.php", + "Logout"=>"/planetlab/logout.php", + "And other buttons"=>"http://www.google.com", + "For demo purposes"=>"/undefined"); +plc_show_options($minitab); +// -------------------- $peer_filter=array(); // fetch nodes - use nodepattern for server-side filtering @@ -226,4 +219,3 @@ Notes: Enter & or | in the search area to alternate between AND and
Hold down the shift key to select multiple columns to sort

- -- 2.43.0