Пример #1
0
                $is = $exercice->select('ex', $default, 'onchange = "submit(this)"');
                $old .= _("Autre exercice") . " " . $is->input();
                $old .= HtmlInput::hidden('div', 'popup');
                $old .= HtmlInput::hidden('act', $_GET['act']);
                $old .= HtmlInput::hidden('f_id', $_GET['f_id']);
                $old .= HtmlInput::hidden('ajax', $_GET['ajax']);
                $old .= dossier::hidden();
                $old .= '</form>';
            }
        }
        ob_start();
        require_once NOALYSS_INCLUDE . '/template/history_top.php';
        $detail_card = HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE), $fiche->getName());
        echo h2($fiche->getName() . '[' . $fiche->strAttribut(ATTR_DEF_QUICKCODE) . ']', ' class="title" ');
        echo '<p style="text-align:center;">' . $detail_card . '</p>';
        if ($fiche->HtmlTable($array, 0, $from_div) == -1) {
            echo h2(_("Aucune opération pour l'exercice courant"), 'class="error"');
        }
        echo $old;
        $html = ob_get_contents();
        ob_end_clean();
    }
}
///////////////////////////////////////////////////////////////////////////
// for an account
///////////////////////////////////////////////////////////////////////////
if (isset($_REQUEST['pcm_val'])) {
    $poste = new Acc_Account_Ledger($cn, $_REQUEST['pcm_val']);
    $year = $g_user->get_exercice();
    if ($year == 0) {
        $html = _("erreur aucune période par défaut, allez dans préférence pour en choisir une");
Пример #2
0
             $op->poste = $_GET['poste_id'];
             echo $op->display_jrnx_detail(1);
         }
         echo '</table>';
         echo Acc_Account_Ledger::HtmlTableHeader();
     }
     echo "</div>";
     exit;
 }
 // A QuickCode  is given
 if ($go == 2) {
     if (!isset($_REQUEST['oper_detail'])) {
         echo '<div class="content">';
         echo '<h2 class="info"> ' . '(' . $fiche->id . ')' . $fiche->getName() . ' ' . ' [ ' . $fiche->get_quick_code() . ' ] ' . '</h2>';
         $fiche->HtmlTableHeader();
         $fiche->HtmlTable(null, $_GET['ople']);
         $fiche->HtmlTableHeader();
         echo "</div>";
     } else {
         // Detail //
         echo '<div class="content">';
         echo '<h2 class="info"> ' . '(' . $fiche->id . ')' . $fiche->getName() . ' ' . ' [ ' . $fiche->get_quick_code() . ' ] ' . '<h2>';
         $fiche->HtmlTableHeader();
         $fiche->HtmlTableDetail();
         $fiche->HtmlTableHeader();
         echo "</div>";
     }
     exit;
 }
 // All the children account
 if ($go == 3) {
Пример #3
0
} else {
    $per = new Periode($cn);
    $limit_periode = $per->get_limit($year);
    $array['from_periode'] = $limit_periode[0]->first_day();
    $array['to_periode'] = $limit_periode[1]->last_day();
    if (isset($_GET['ex'])) {
        $limit_periode = $per->get_limit($_GET['ex']);
        $array['from_periode'] = $limit_periode[0]->first_day();
    }
    /*
     * Add button to select another year
     */
    if ($exercice->count() > 1) {
        $default = isset($_GET['ex']) ? $_GET['ex'] : $year;
        $dossier = dossier::id();
        $old = '<form method="get" action="do.php">';
        $is = $exercice->select('ex', $default, 'onchange = "submit(this)"');
        $old .= "Autre exercice " . $is->input();
        $old .= HtmlInput::hidden('f_id', $_GET['f_id']);
        $old .= HtmlInput::hidden('ac', $_GET['ac']);
        $old .= HtmlInput::hidden('sb', $_GET['sb']);
        $old .= HtmlInput::hidden('sc', $_GET['sc']);
        $old .= dossier::hidden();
        $old .= '</form>';
    }
    if ($fiche->HtmlTable($array, 0, 0) == -1) {
        echo h2(_("Aucune opération pour l'exercice courant"), 'class="error"');
    }
    echo $old;
}
echo '</div>';