Search concerned card with company , name , ... and export contact option to CSV
This commit is contained in:
parent
75190f41e1
commit
14a8d24b99
3 changed files with 10 additions and 4 deletions
|
|
@ -112,9 +112,9 @@ for ($i=0; $i<count($a); $i++)
|
|||
$array[$i]['checkbox']=$ic->input();
|
||||
$array[$i]['quick_code']=$a[$i]['quick_code'];
|
||||
$array[$i]['name']=h($a[$i]['vw_name']);
|
||||
$array[$i]['accounting']=$a[$i]['accounting'];
|
||||
$array[$i]['first_name']=h($a[$i]['vw_first_name']);
|
||||
$array[$i]['description']=h($a[$i]['vw_description']);
|
||||
$array[$i]['company']=h($a[$i]['company']);
|
||||
}//foreach
|
||||
|
||||
// No accountancy history
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ class Card_Multiple
|
|||
private $sql ; //!< SQL with the right column name
|
||||
function __construct()
|
||||
{
|
||||
$this->sql="select f_id,quick_code,vw_name,accounting,vw_first_name,vw_description
|
||||
$this->sql="select f_id,quick_code,vw_name,accounting,vw_first_name,vw_description,
|
||||
(select ad_value from fiche_detail fd where fd.f_id=vw_fiche_attr.f_id and fd.ad_id=25) as company
|
||||
from vw_fiche_attr ";
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@ $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><?=_("QCode")?></th>
|
||||
<th><?=_("Société")?></th>
|
||||
<th><?=_("Nom")?></th>
|
||||
<th><?=_("Description")?></th>
|
||||
<?php for ($i=0; $i<$nb_array; $i++) : ?>
|
||||
<?php $class=($i%2==0)?'odd':'even'; ?>
|
||||
<tr class="<?php echo $class; ?>">
|
||||
|
|
@ -22,11 +27,11 @@ $nb_array=count($array);
|
|||
<td style="padding-right:55px">
|
||||
<?php echo $array[$i]['quick_code'] ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php echo $array[$i]['name'] ?>
|
||||
<?php echo $array[$i]['company'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $array[$i]['name'] ?>
|
||||
<?php echo $array[$i]['first_name'] ?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue