Пример #1
0
}
echo $export_csv;
echo $export_pdf;
echo $export_print;
$fiche = new Fiche($cn);
for ($e = 0; $e < count($afiche); $e++) {
    $array = Fiche::get_fiche_def($cn, $afiche[$e]['fd_id'], 'name_asc');
    foreach ($array as $card) {
        $row = new Fiche($cn, $card['f_id']);
        $letter = new Lettering_Card($cn);
        $letter->set_parameter('quick_code', $row->strAttribut(ATTR_DEF_QUICKCODE));
        $letter->set_parameter('start', $_GET['start']);
        $letter->set_parameter('end', $_GET['end']);
        // all
        if ($_GET['histo'] == 0) {
            $letter->get_all();
        }
        // lettered
        if ($_GET['histo'] == 1) {
            $letter->get_letter();
        }
        // unlettered
        if ($_GET['histo'] == 2) {
            $letter->get_unletter();
        }
        if ($_GET['histo'] == 6) {
            $letter->get_letter_diff();
        }
        /* skip if nothing to display */
        if (count($letter->content) == 0) {
            continue;