[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 144/219: ANC : Bouton "recherche" sont des lo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 144/219: ANC : Bouton "recherche" sont des loupes |
Date: |
Mon, 18 Dec 2017 13:22:53 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 4a8629e388736d23f5ade315b6492cc01b0c51c0
Author: Dany De Bontridder <address@hidden>
Date: Tue Nov 7 09:53:43 2017 +0100
ANC : Bouton "recherche" sont des loupes
---
include/class/anc_balance_double.class.php | 24 ++++++++++++++----------
include/class/anc_print.class.php | 20 +++++++-------------
include/lib/html_input.class.php | 5 +++--
3 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/include/class/anc_balance_double.class.php
b/include/class/anc_balance_double.class.php
index 7d19984..67b727f 100644
--- a/include/class/anc_balance_double.class.php
+++ b/include/class/anc_balance_double.class.php
@@ -342,18 +342,22 @@ class Anc_Balance_Double extends Anc_Print
$plan_id->selected=$this->pa_id2;
$r.= "Plan Analytique :".$plan_id->input();
$r.=HtmlInput::request_to_hidden(array('ac'));
+
+
+
+
$poste=new IText();
$poste->size=10;
- $r.="Entre le poste ".$poste->input("from_poste2",$this->from_poste2);
- $choose=new IButton();
- $choose->name="Choix Poste";
- $choose->label=_("Recherche");
-
$choose->javascript="onClick=search_ca(".dossier::id().",'from_poste2','pa_id2')";
- $r.=$choose->input();
-
- $r.=" et le poste ".$poste->input("to_poste2",$this->to_poste2);
-
$choose->javascript="onClick=search_ca(".dossier::id().",'to_poste2','pa_id2')";
- $r.=$choose->input();
+ $r.=_('Entre le poste ');
+ $r.=$poste->input("from_poste2",$this->from_poste2);
+ $javascript="search_ca(".dossier::id().",'from_poste2','pa_id2')";
+ $r.=HtmlInput::button_image($javascript, uniqid(),
'alt="'._('Recherche').'" class="image_search"',"image/magnifier13.png");
+
+ $r.=_(" et le poste ");
+ $r.=$poste->input("to_poste2",$this->to_poste2);
+ $r.=HtmlInput::button_image($javascript, uniqid(),
'alt="'._('Recherche').'" class="image_search"',"image/magnifier13.png");
+ $javascript="search_ca(".dossier::id().",'to_poste2','pa_id2')";
+
$r.='<span class="notice" style="display:block">'.
_('Selectionnez le plan qui vous intéresse avant de cliquer
sur Recherche').
'</span>';
diff --git a/include/class/anc_print.class.php
b/include/class/anc_print.class.php
index bb14ba4..cfa8edb 100644
--- a/include/class/anc_print.class.php
+++ b/include/class/anc_print.class.php
@@ -125,19 +125,13 @@ class Anc_Print
$plan_id=new ISelect("pa_id");
$plan_id->value=$this->db->make_array("select pa_id, pa_name from
plan_analytique order by pa_name");
$plan_id->selected=$this->pa_id;
- $choose_from=new IButton();
- $choose_from->name=_("Choix Poste");
- $choose_from->label=_("Recherche");
-
$choose_from->javascript="onClick=search_ca(".dossier::id().",'from_poste','pa_id')";
-
-
- $choose_to=new IButton();
- $choose_to->name=_("Choix Poste");
- $choose_to->label=_("Recherche");
+ $javascript="search_ca(".dossier::id().",'from_poste','pa_id')";
+ $choose_from=HtmlInput::button_image($javascript, uniqid(),
'alt="'._('Recherche').'" class="image_search"',"image/magnifier13.png");
-
$choose_to->javascript="onClick=search_ca(".dossier::id().",'to_poste','pa_id')";
-
+ $javascript="search_ca(".dossier::id().",'to_poste','pa_id')";
+ $choose_to=HtmlInput::button_image($javascript, uniqid(),
'alt="'._('Recherche').'" class="image_search"',"image/magnifier13.png");
+
$r.=HtmlInput::request_to_hidden(array('ac'));
ob_start();
?>
@@ -179,9 +173,9 @@ class Anc_Print
<?php
$r.=ob_get_clean();
$r.=_("Entre l'activité ").$from_poste->input();
- $r.=$choose_from->input();
+ $r.=$choose_from;
$r.=_(" et l'activité ").$to_poste->input();
- $r.=$choose_to->input();
+ $r.=$choose_to;
$r.='</span>';
return $r;
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 9f9f497..1c748cb 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -535,9 +535,10 @@ class HtmlInput
* @param string $p_js javascript when the image is clicked
* @param string $p_message Message
*/
- static function image_click($p_image,$p_js,$p_message)
+ static function image_click($p_image,$p_js,$p_message,$p_class)
{
- $ret=sprintf('<a class="nav" style="display:inline" title="%s"><img
src="image/%s" onclick="%s"></a>',
+ $ret=sprintf('<a class="nav %s" style="display:inline" title="%s"><img
src="image/%s" onclick="%s"></a>',
+ $p_class,
$p_message,$p_image,$p_js);
return $ret;
- [Noalyss-commit] [noalyss] 118/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN Improve operation message, (continued)
- [Noalyss-commit] [noalyss] 118/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN Improve operation message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 74/219: Security : SQL use directly $_SESSION, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 103/219: Réécriture de CFGPCMN pour utiliser ManageTable Ajout bouton ajout dans menu, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 120/219: Task #0001328: Problème affichage totaux achat, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 119/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN Improve operation message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 80/219: Bug : export_document the parameters id, ag_id and value are optionnal, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 45/219: Improve SQL class generation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 101/219: Réécriture de CFGPCMN pour utiliser ManageTable, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 17/219: Add test for Manage_Table_SQL, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 127/219: Task #0001484: CA : opération diverses , possibilité d'ajouter une fiche Add card to misc operation ANC, - implemented also in Printing : balance , History , General Ledger..., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 144/219: ANC : Bouton "recherche" sont des loupes,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 25/219: Ajout des ASBL, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 53/219: typo, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 28/219: Task #0001447: Solde des opérations rapprochées Take in account the VAT autopurged, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 15/219: Infobulle : info : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 38/219: task #0001411: Faire des boutons du menu des... boutons, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 95/219: Recording operation : when adding a row , the css class was not copied, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 02/219: Improve redirect, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 87/219: Esthetic : no span surrounding the value, must be done in the caller, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 140/219: Javascript : small error, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 115/219: Correct indentation, Dany De Bontridder, 2017/12/18