[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") ?>
- [Noalyss-commit] [noalyss] 38/46: Fiche.Test : add test cmp_name and get_row, (continued)
- [Noalyss-commit] [noalyss] 38/46: Fiche.Test : add test cmp_name and get_row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 40/46: Fix cosmetic and typo, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 22/46: HtmlOutput tab , add mode row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 27/46: Task #0001793: Installation mot de passe, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 29/46: Task #0001793: Installation mot de passe for password , use NOALYSS_ADMIN_PASSWORD, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 31/46: Task #0001793: Installation mot de passe Adapt comment, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 37/46: Bug database.class.php : n'applique pas le patch, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 39/46: Test Unit Acc_Account_Legder , rounded value fixed, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 41/46: Cleanup + new logo, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 43/46: Improve installation for MONO : doc + password, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 45/46: Output_Tab : set mode to row by default + cosmetic,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 46/46: Merge branch 'dev7220' into pre7300, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 42/46: Improve installation for MONO : doc + password, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 44/46: fixup! Fix cosmetic and typo, Dany De Bontridder, 2020/05/04