".htmlentities($msg[103], ENT_QUOTES, $charset)." ".htmlentities($msg['acquisition_lgstat_arelancer'], ENT_QUOTES, $charset)." "; $tab_lgstat = lgstat::getList(); $parity=1; foreach($tab_lgstat as $id_statut=>$lgstat) { if ($parity % 2) { $pair_impair = "even"; } else { $pair_impair = "odd"; } $parity += 1; $tr_javascript=" onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" onmousedown=\"document.location='./admin.php?categ=acquisition&sub=lgstat&action=modif&id=$id_statut';\" "; print ""; if ($id_statut==1) print "".htmlentities($lgstat[0], ENT_QUOTES, $charset).""; else print "".htmlentities($lgstat[0], ENT_QUOTES, $charset).""; $arelancer=$msg[39]; if($lgstat[1]=='1') { $arelancer=$msg[40]; } print "".htmlentities($arelancer, ENT_QUOTES, $charset).""; print ""; } print " "; } function show_lgstat_form($id=0) { global $msg; global $charset; global $lgstat_form; global $ptab; $lgstat_form = str_replace('!!id!!', $id, $lgstat_form); $sel_relance_option_0= ""; $sel_relance_option_1= " selected='selected' "; if(!$id) { $lgstat_form = str_replace('!!form_title!!', htmlentities($msg['acquisition_lgstat_add'],ENT_QUOTES,$charset), $lgstat_form); $lgstat_form = str_replace('!!libelle!!', '', $lgstat_form); } else { $lgstat = new lgstat($id); if($lgstat->relance==0) { $sel_relance_option_0=" selected='selected' "; $sel_relance_option_1=""; } $lgstat_form = str_replace('!!form_title!!', htmlentities($msg['acquisition_lgstat_mod'],ENT_QUOTES,$charset), $lgstat_form); $lgstat_form = str_replace('!!libelle!!', htmlentities($lgstat->libelle,ENT_QUOTES,$charset), $lgstat_form); $ptab = str_replace('!!id!!', $id, $ptab); $ptab = str_replace('!!libelle_suppr!!', addslashes($lgstat->libelle), $ptab); if ($lgstat->id_statut!='1') $lgstat_form = str_replace('', $ptab, $lgstat_form); } $sel_relance = ""; $lgstat_form = str_replace('!!sel_relance!!', $sel_relance, $lgstat_form); print confirmation_delete("./admin.php?categ=acquisition&sub=lgstat&action=del&id="); print $lgstat_form; } $lgstat_form = "

!!form_title!!

!!sel_relance!!
 
"; $ptab = ""; ?> 0 ) { error_form_message($libelle.$msg['acquisition_lgstat_already_used']); break; } $lgstat = new lgstat($id); $lgstat->libelle = $libelle; $lgstat->relance = $relance; $lgstat->save(); show_lgstat_list(); break; case 'del': if($id) { if ($id=='1') { //statut de ligne d'acte avec id=1 non supprimable $msg_suppr_err = $msg['acquisition_lgstat_used'] ; error_message($msg[321], $msg_suppr_err, 1, 'admin.php?categ=acquisition&sub=lgstat'); } else { $total1 = lgstat::isUsed($id); if ($total1==0) { lgstat::delete($id); } else { $msg_suppr_err = $msg['acquisition_lgstat_used'] ; if ($total1) $msg_suppr_err .= "
- ".$msg['acquisition_lgstat_used_lgact'] ; error_message($msg[321], $msg_suppr_err, 1, 'admin.php?categ=acquisition&sub=lgstat'); } } } show_lgstat_list(); break; default: show_lgstat_list(); break; }