From 1808442881002384b18ea43434c56faad81b31f9 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 15 Feb 2009 15:50:02 +0000 Subject: [PATCH] add tabs on bottom as well --- planetlab/events/events.php | 2 ++ planetlab/events/events_choser.php | 2 ++ planetlab/includes/plc_minitabs.php | 11 ++++++----- planetlab/nodes/interface.php | 2 ++ planetlab/nodes/node.php | 1 + planetlab/nodes/nodes.php | 2 ++ planetlab/peers/peer.php | 2 ++ planetlab/peers/peers.php | 2 ++ planetlab/persons/person.php | 2 ++ planetlab/persons/persons.php | 2 ++ planetlab/sites/site.php | 3 ++- planetlab/sites/sites.php | 2 ++ planetlab/tags/nodegroup.php | 3 +++ planetlab/tags/nodegroups.php | 2 ++ planetlab/tags/tag.php | 2 ++ planetlab/tags/tags.php | 2 ++ 16 files changed, 36 insertions(+), 6 deletions(-) diff --git a/planetlab/events/events.php b/planetlab/events/events.php index 5ef4ec4..07edd3a 100644 --- a/planetlab/events/events.php +++ b/planetlab/events/events.php @@ -283,6 +283,8 @@ $table->set_options(array('notes'=>array("The R column shows the call result val "Click the button in the D(etails) column to get more details"))); $table->end(); +plc_tabs ($tabs,"bottom"); + // Print footer include 'plc_footer.php'; diff --git a/planetlab/events/events_choser.php b/planetlab/events/events_choser.php index 08cc193..6d86ca7 100644 --- a/planetlab/events/events_choser.php +++ b/planetlab/events/events_choser.php @@ -72,6 +72,8 @@ $details->th_th(html_div($from_picker->html()) , html_div($until_picker->html()) $details->end(); $form->end(); +plc_tabs ($tabs,"bottom"); + // Print footer include 'plc_footer.php'; diff --git a/planetlab/includes/plc_minitabs.php b/planetlab/includes/plc_minitabs.php index db8301d..b6dbf36 100644 --- a/planetlab/includes/plc_minitabs.php +++ b/planetlab/includes/plc_minitabs.php @@ -44,7 +44,9 @@ drupal_set_html_head(' // (*) you need to tune the image size, which is wrong, as the image should rather be bottom-aligned function plc_tabs ($array, $id=NULL) { - if (! $id) $id="minitabs"; + // need id to pass to the onclick function attached to the input buttons + $id="minitabs"; + if (! $id) $id .= '-' + $id; print "
"; print "