noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 82/119: Follow up search card, add a button t


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 82/119: Follow up search card, add a button to select all , cosmetic add qcode in dialog box for contact option
Date: Mon, 26 Oct 2020 18:27:29 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 650e55364e44aaacf42e98bfe9e5e9a40890f996
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Oct 11 18:10:40 2020 +0200

    Follow up search card, add a button to select all , cosmetic add qcode in 
dialog box for contact option
---
 include/class/card_multiple.class.php             | 5 +++++
 include/template/card_multiple_display_option.php | 3 +++
 include/template/card_multiple_result.php         | 2 +-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/class/card_multiple.class.php 
b/include/class/card_multiple.class.php
index 4f59e8b..60ed305 100644
--- a/include/class/card_multiple.class.php
+++ b/include/class/card_multiple.class.php
@@ -127,6 +127,11 @@ class Card_Multiple
         if ( ! $g_user->can_read_action($ag_id)) {
             throw new Exception (_("CMCDO01"."Security"));
         }
+        // Retrieve Name, first Name and QCODE
+        $aIdentity=$cn->get_row("select (select ad_value from fiche_detail 
where f_id=$1 and ad_id=1) as name , 
+            (select ad_value from fiche_detail where f_id=$1 and ad_id=32) as 
first_name , 
+            (select ad_value from fiche_detail where f_id=$1 and ad_id=23) as 
qcode ",[$fiche_id]); 
+            
         // insert new , synchronized
         $cn->exec_sql("insert into action_person_option 
(ap_value,contact_option_ref_id ,action_person_id ) 
             select null,cor_id,$1
diff --git a/include/template/card_multiple_display_option.php 
b/include/template/card_multiple_display_option.php
index 309aa37..9e37e48 100644
--- a/include/template/card_multiple_display_option.php
+++ b/include/template/card_multiple_display_option.php
@@ -35,6 +35,9 @@ if (!defined('ALLOWED'))
  * @see Card_Multiple
  */
 ?>
+<h3 class="info" style="margin:1px">
+    <?=$aIdentity['name']." ".$aIdentity['first_name']." 
".$aIdentity['qcode']?>
+</h2>
 <form method="POST" onsubmit="save_linked_card_option(this);return false">
     <input type="hidden" name="op" value="card">
     <input type="hidden" name="op2" value="save_card_option">
diff --git a/include/template/card_multiple_result.php 
b/include/template/card_multiple_result.php
index 9afdb56..8c16fc3 100644
--- a/include/template/card_multiple_result.php
+++ b/include/template/card_multiple_result.php
@@ -13,7 +13,7 @@ $nb_array=count($array);
              ?>
         <?php printf (_("Nombre de fiches trouvées %d montrées 
%d"),$count_card,$nb_array);?>
         <table id="card_list" class="result" >
-            <th></th>
+            <th><?= ICheckBox::toggle_checkbox("all", 
"search_card2_frm")?></th>
             <th><?=_("QCode")?></th>
             <th><?=_("Société")?></th>
             <th><?=_("Nom")?></th>



reply via email to

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