Output_Tab : set mode to row by default + cosmetic

This commit is contained in:
Dany De Bontridder 2020-04-06 10:34:48 +02:00
parent 84131820af
commit b8fafe1f2b
2 changed files with 14 additions and 2 deletions

View file

@ -48,6 +48,7 @@ class Output_Html_Tab
$this->a_tabs=[];
$this->class_tab="tabs";
$this->class_tab_selected="tabs_selected";
$this->set_mode("tab");
}
/**
@ -232,6 +233,7 @@ class Output_Html_Tab
break;
default:
throw new Exception('OUTPUTHTMLTAB01');
break;
}
if ( $this->get_mode()=="row") {
@ -253,7 +255,14 @@ class Output_Html_Tab
}
private function print_div($p_index)
{
printf('<div id="div%s" style="display:none;clear:both" class="tab_row">',$this->a_tabs[$p_index]->get_id());
$class="";
if ( $this->get_mode() == "row") {
$class="tab_row";
}
printf('<div id="div%s" style="display:none;clear:both" class="%s">',
$this->a_tabs[$p_index]->get_id(),
$class);
echo $this->a_tabs[$p_index]->get_content();
echo '</div>';

View file

@ -51,9 +51,12 @@ if ( $xml == NULL) {
$a_plugin=$xml->xpath('//plugins/plugin');
$nb_plugin=count($a_plugin);
echo _("Les extensions doivent être activées dans le dossier après installation");
echo '<p>';
echo _("Recherche").HtmlInput::filter_table("tab_plugin",'0,1,2,3',1);
echo '</p>';
?>
<table>
<table id="tab_plugin" class="result">
<tr>
<th>
<?= _("Nom") ?>