"Click the button in the D(etails) column to get more details")));
$table->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$details->end();
$form->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
// (*) 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 "<div id='$id' class='minitabs'>";
print "<ul>";
foreach ($array as $label=>$todo) {
if (is_string ($todo)) $todo=array('method'=>'GET','url'=>$todo);
// the 'label' key, if set in the hash, supersedes key
if ($todo['label']) $label=$todo['label'];
- $tracer="class=minitabs";
- if ($todo['id'])
- $tracer .= " id=".$todo['id'];
+ $tracer="";
+ if ($todo['id']) $tracer .= "id=".$todo['id'];
print "<li $tracer>";
// set default method
if ( ! $todo['method'] ) $todo['method']='GET';
if ( ! $values) $values = array();
if ($url_values) $values = array_merge($values,$url_values);
if ( $values ) foreach ($values as $key=>$value) {
- print "<input class='minitabs-hidden' type=hidden name='$key' value='$value' />";
+ print "<input type=hidden name='$key' value='$value' />";
}
$tracer="class=minitabs-submit";
// image and its companions 'height'
$table->end();
$form->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
////////////////////////////////////////////////////////////
$peers->block_end($peer_id);
+plc_tabs ($tabs,"bottom");
// Print footer
include 'plc_footer.php';
$table->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$details->th_td("Number of slices",href(l_slices_peer($peer_id),"$nb slices"));
$details->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$table->end();
}
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$form->end();
$peers->block_end($peer_id);
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$notes=array("The S column shows the number of slices for the given user");
$table->end(array('notes'=>$notes));
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$tabs=array();
-$tabs []= tab_sites();
$tabs []= tab_sites_local();
// available actions
////////////////////////////////////////
$peers->block_end($peer_id);
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$table->end(array('notes'=>$notes));
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
}
$table->end ();
+
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$table->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$table->end();
}
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';
$table->end();
$form->end();
+plc_tabs ($tabs,"bottom");
+
// Print footer
include 'plc_footer.php';