Esempio n. 1
0
 $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>";
 $ret .= "<th>" . _("Montant") . " </td>";
 $ret .= "<th>" . _("Description") . " </td>";
 $ret .= "<th>" . _("Groupe") . "</th>";
 $ret .= "<th>" . _("Plan A") . " </td>";
 $ret .= "</tr>";
 $class = "";
 foreach ($array as $obj) {
     $count++;
     if ($count % 2 == 0) {
         $class = "even";
     } else {