noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 45/46: Output_Tab : set mode to row by defaul


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 45/46: Output_Tab : set mode to row by default + cosmetic
Date: Mon, 4 May 2020 13:38:56 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit b8fafe1f2b705272b9e3853a8a791200fb718fa6
Author: Dany De Bontridder <address@hidden>
AuthorDate: Mon Apr 6 10:34:48 2020 +0200

    Output_Tab : set mode to row by default + cosmetic
---
 include/lib/output_html_tab.class.php | 11 ++++++++++-
 include/upgrade-plugin.php            |  5 ++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/lib/output_html_tab.class.php 
b/include/lib/output_html_tab.class.php
index c8af50d..56544f2 100644
--- a/include/lib/output_html_tab.class.php
+++ b/include/lib/output_html_tab.class.php
@@ -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>';
 
diff --git a/include/upgrade-plugin.php b/include/upgrade-plugin.php
index 099db9f..1c9d56b 100644
--- a/include/upgrade-plugin.php
+++ b/include/upgrade-plugin.php
@@ -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") ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]