'; echo ''; //if (! isset($_REQUEST['seek'])) exit; echo '
'; //-------------------------------------------------------------------------------- // record the data //-------------------------------------------------------------------------------- if ( isset($_POST['record'])) { $letter=new Lettering_Account($cn); $letter->save($_POST); } //-------------------------------------------------------------------------------- // Show the result //-------------------------------------------------------------------------------- if ( isset($_GET['start']) && isset($_GET['end'])) { if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null ) { echo alert(_('Date malformée, désolé')); return; } } echo '
'; $fiche=new Fiche($cn,$_REQUEST['f_id']); $quick_code=$fiche->get_quick_code(); $letter=new Lettering_Card($cn); $letter->set_parameter('quick_code',$quick_code); $letter->set_parameter('start',$start->value); $letter->set_parameter('end',$end->value); if ( $sel->selected == 0 ) echo $letter->show_list('all'); if ( $sel->selected == 1 ) echo $letter->show_list('letter'); if ( $sel->selected == 2 ) echo $letter->show_list('unletter'); echo '
'; echo ''; echo ''; ?>