예제 #1
0
 $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;
 }
 $detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME));
 echo '<h2>' . $detail_card;
 echo "poste " . ":" . HtmlInput::history_account($row->strAttribut(ATTR_DEF_ACCOUNT), $row->strAttribut(ATTR_DEF_ACCOUNT), 'display:inline') . HtmlInput::infobulle(27) . '</h2>';
 echo '<table class="result">';
 echo '<tr>';
 echo th(_('Date'));
 echo th(_('ref'));