Commit 139045e6 authored by Sarah's avatar Sarah
Browse files

FAIM

parent 18f4b395
......@@ -1184,14 +1184,14 @@ else
$req = new requete($site->db,"SELECT `id_carte_ae`, `etat_vie_carte_ae`, `cle_carteae` FROM `ae_carte` INNER JOIN `ae_cotisations` ON `ae_cotisations`.`id_cotisation`=`ae_carte`.`id_cotisation` WHERE `ae_cotisations`.`id_utilisateur`='".$user->id."' AND `ae_carte`.`etat_vie_carte_ae`<".CETAT_EXPIRE."");
//$item = $req->get_row();
$item = $req->get_row();
$tbl = new sqltable(
"listasso",
"Ma carte AE", $req, "user.php?id_utilisateur=".$user->id,
"Ma carte AE", array($item), "user.php?id_utilisateur=".$user->id,
"id_carte_ae",
array("id_carte_ae"=>"N°","cle_carteae"=>"Lettre clé","etat_vie_carte_ae"=>"Etat"),
$site->user->is_in_group("gestion_ae")?array("reprint"=>"Re-imprimer carte", "retrait"=>"Retrait carte"):array(),
$site->user->is_in_group("gestion_ae")?array("reprint"=>"Re-imprimer carte", ($item['etat_vie_carte_ae']==CETAT_AU_BUREAU_AE)?"retrait"=>"Retrait carte":""):array(),
array(), array("etat_vie_carte_ae"=>$EtatsCarteAE )
);
$cts->add($tbl,true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment