can_write_repo($_POST['r_id'])) { $cn->exec_sql('delete from stock_change where c_id=$1',array($_POST['c_id'])); } else { alert(_("Vous ne pouvez pas modifier ce dépôt")); } } else { alert(_("Opération non effacée: vous n'avez pas confirmé")); } } $profile=$g_user->get_profile(); $gDossier=dossier::id(); $default_exercice=$g_user->get_exercice(); $p_exercice=$http->get("p_exercice", "string",$default_exercice); $a_change=$cn->get_array("select *,to_char(c_date,'DD.MM.YY') as str_date from stock_change as sc join stock_repository as sr on (sc.r_id=sr.r_id) where sc.r_id in (select r_id from profile_sec_repository where p_id=$1) and c_date >= (select min(p_start) from parm_periode where p_exercice = $2) and c_date <= (select max(p_end) from parm_periode where p_exercice = $2) order by c_date",array($profile,$p_exercice)); $exercice=new Exercice($cn); ?>
select('p_exercice',$p_exercice)->input();?>
>