Ejemplo n.º 1
0
 }
 $result = $object->fetchAll($sortorder, $sortfield, $limit, $offset, $filter);
 if ($result < 0) {
     setEventMessages($object->error, $object->errors, 'errors');
 }
 if ($action == 'delmouv') {
     $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?mvt_num=' . GETPOST('mvt_num'), $langs->trans('DeleteMvt'), $langs->trans('ConfirmDeleteMvt'), 'delmouvconfirm', '', 0, 1);
     print $formconfirm;
 }
 if ($action == 'delbookkeepingyear') {
     $form_question = array();
     $delyear = GETPOST('delyear');
     if (empty($delyear)) {
         $delyear = dol_print_date(dol_now(), '%Y');
     }
     $year_array = $formventilation->selectyear_accountancy_bookkepping($delyear, 'delyear', 0, 'array');
     $form_question['delyear'] = array('name' => 'delyear', 'type' => 'select', 'label' => $langs->trans('DelYear'), 'values' => $year_array, 'default' => $delyear);
     $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans('DeleteMvt'), $langs->trans('ConfirmDeleteMvt'), 'delbookkeepingyearconfirm', $form_question, 0, 1);
     print $formconfirm;
 }
 print_barre_liste($title_page, $page, $_SERVER["PHP_SELF"], $options, $sortfield, $sortorder, '', $result, $nbtotalofrecords);
 /*print '<form name="add" action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
 	 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 	 print '<input type="hidden" name="action" value="delbookkeeping">';
 	 
 	 print $formventilation->select_bookkeeping_importkey('importkey', GETPOST('importkey'));
 	 
 	 print '<div class="inline-block divButAction"><input type="submit" class="butAction" value="' . $langs->trans("DelBookKeeping") . '" /></div>';
 	 
 	 print '</form>';*/
 print '<form method="GET" id="searchFormList" action="' . $_SERVER["PHP_SELF"] . '">';