Follow up search card, add a button to select all , cosmetic add qcode in dialog box for contact option
This commit is contained in:
parent
c1b866fa81
commit
650e55364e
3 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue