Exemplo n.º 1
0
  */
 if ($sa == "po_delete") {
     $po = new Anc_Account($cn, $_REQUEST['po_id']);
     $po->delete();
     $sa = "pa_detail";
 }
 // show the detail
 if ($sa == "pa_detail") {
     $new = new Anc_Plan($cn, $_GET['pa_id']);
     $wSa = HtmlInput::hidden("sa", "pa_update");
     $new->get();
     $ret .= '<div class="content">';
     $ret .= '<h2 class="info">' . _("Mise à jour") . '</h2>';
     $ret .= '<form method="post">';
     $ret .= dossier::hidden();
     $ret .= $new->form();
     $ret .= $wSa;
     $ret .= HtmlInput::submit("submit", _("Enregistre"));
     $ret .= HtmlInput::button_anchor(_('Efface'), '', 'remove_analytic_plan', 'onclick="return confirm_box(\'remove_analytic_plan\',\'Effacer ?\',function () {window.location=\'do.php?ac=' . $_REQUEST['ac'] . '&pa_id=' . $_GET['pa_id'] . '&sa=pa_delete&' . $str_dossier . '\';})"', 'smallbutton');
     $ret .= '</form>';
     /**
      * Detail now
      */
     $count = 0;
     $new = new Anc_Plan($cn, $_REQUEST['pa_id']);
     $new->get();
     $array = $new->get_poste_analytique(" order by po_name");
     $ret .= '<div class="content">';
     $ret .= '<table class="table_large">';
     $ret .= "<tr>";
     $ret .= "<th>" . _("Nom") . " </td>";