From: Thierry Parmentelat Date: Sun, 15 Feb 2009 15:50:02 +0000 (+0000) Subject: add tabs on bottom as well X-Git-Tag: PLEWWW-4.3-1~39 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=1808442881002384b18ea43434c56faad81b31f9 add tabs on bottom as well --- 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 "