[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>
- [Noalyss-commit] [noalyss] 84/119: Merge extension-crm, (continued)
- [Noalyss-commit] [noalyss] 84/119: Merge extension-crm, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 96/119: Cosmetic, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 100/119: Notice, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 101/119: Grand livre waiting box, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 107/119: Follow-Up : comment optional, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 108/119: fix SQL bug, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 113/119: Bug : create card failed, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 112/119: Cosmetic Follow Up add waiting box for search, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 114/119: Cosmetic & version, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 115/119: Analytic accountancy protect against divide by zero, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 82/119: Follow up search card, add a button to select all , cosmetic add qcode in dialog box for contact option,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 83/119: Bug : from VEN , cannot get the price, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 85/119: Follow-up fix order, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 88/119: Fix bug : follow up option contact are not remove when document type changed, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 99/119: Upgrade DB 147, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 102/119: remove dead code, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 106/119: Filter_Multiselect : make a search on select (multi-row), Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 104/119: Select_Box Add new position : absolute, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 111/119: Follow-Up improve search, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 110/119: Follow Up : an action can have several parents, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 119/119: Tache #0001859: PARAM/CFGDOC : icone fermer + bouton, Dany De Bontridder, 2020/10/26