$sa = "pa_detail"; } /* delete pa */ if ($sa == "pa_delete") { $delete = new Anc_Plan($cn, $_GET['pa_id']); $delete->delete(); $sa = "anc_menu"; } /* po detail *---> in ajax : montre detail d'un poste analytique * */ if ($sa == "po_detail") { $ret .= h2(_('Modification')); $po = new Anc_Account($cn, $_GET['po_id']); $po->get_by_id(); $ret .= '<div class="content">'; $ret .= '<form method="post">'; $ret .= dossier::hidden(); $ret .= $po->form(); $ret .= HtmlInput::hidden('sa', 'po_update'); $ret .= HtmlInput::submit('Correction', 'Correction'); $ret .= sprintf('<input type="button" class="smallbutton" value="Efface" onClick="return confirm_box(\'anchor_del\',\' Voulez-vous vraiment effacer cette activité\',' . 'function () { window.location=\'do.php?ac=' . $_REQUEST['ac'] . '&sa=po_delete&po_id=%s&pa_id=%s&' . $str_dossier . '\'}) ;"', $po->id, $_REQUEST['pa_id']); $ret .= '</form>'; $ret .= '</div>'; $sa = ""; } /** * mise à jour po */ if ($sa == "po_update") {