.
*
* Formulaire de saisie d'un vol planeur
*
* @package vues
*/
$this->load->view('bs_header');
$this->load->view('bs_menu');
$this->load->view('bs_banner');
$this->lang->load('vols_planeur');
echo '
';
if (isset($message)) {
echo p($message) . br();
}
echo checkalert($this->session, isset($popup) ? $popup : "");
echo validation_errors();
echo heading($this->lang->line("gvv_vols_planeur_fieldset_flight"), 3);
echo form_open(controller_url($controller) . "/formValidation/" . $action, array('name' => 'saisie'));
// On affiche tous les champs dans un tableau. C'est plus simple de remplir d'abbord le tableau
// et de l'afficher ensuite, surtout pour modifier l'affichage
echo form_hidden('vpid', $vpid);
echo form_hidden('saisie_par', $saisie_par, '');
$attrs = ['onfocusout' => "calculp()", "type" => "time"];
$altitude = ($remorque_100eme) ? $this->lang->line("gvv_vols_planeur_label_centieme") : $this->lang->line("gvv_vols_planeur_label_alt");
$percent_selector = array('0' => 0, '50' => 50, '100' => 100);
?>
= $this->lang->line("gvv_volsp_field_vpdate") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpdate', $vpdate) ?>
= $this->lang->line("gvv_volsp_field_vpmacid") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpmacid', $vpmacid) ?>
= $this->lang->line("gvv_volsp_field_vppilid") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vppilid', $vppilid) ?>
= $this->lang->line("gvv_volsp_field_vpdc") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpdc', $vpdc) ?>
= $this->lang->line("gvv_volsp_field_instructeur") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpinst', $vpinst) ?>
= $this->lang->line("gvv_volsp_field_pas") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vppassager', $vppassager) ?>
= $this->lang->line("gvv_volsp_field_vpcdeb") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpcdeb', $vpcdeb, "rw", $attrs) ?>
= $this->lang->line("gvv_volsp_field_vpcfin") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpcfin', $vpcfin, "rw", $attrs) ?>
= $this->lang->line("gvv_volsp_field_vpduree") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpduree', $vpduree) ?>
= $this->lang->line("gvv_volsp_field_vpobs") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpobs', $vpobs) ?>
= $this->lang->line("gvv_volsp_field_vpautonome") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpautonome', $vpautonome) ?>
= $altitude . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpaltrem', $vpaltrem) ?>
= $this->lang->line("gvv_vols_planeur_label_ticket") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpticcolle', $vpticcolle) ?>
= $this->lang->line("gvv_volsp_field_remorqueur") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'remorqueur', $remorqueur) ?>
= $this->lang->line("gvv_volsp_field_pilote_remorqueur") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'pilote_remorqueur', $pilote_remorqueur) ?>
= $this->lang->line("gvv_vols_planeur_label_whincher") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vptreuillard', $vptreuillard) ?>
= $this->lang->line("gvv_volsp_field_tempmoteur") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'tempmoteur', $tempmoteur) ?>
= $this->lang->line("gvv_volsp_field_avitaillement") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'reappro', $reappro) ?>
= $this->lang->line("gvv_volsp_field_essence") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'essence', $essence) ?>
= $this->lang->line("gvv_volsp_field_vpcategorie") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpcategorie', $vpcategorie, "rw", ['onChange' => "vpcategorie_changed()"]) ?>
= $this->lang->line("gvv_volsp_field_vpnumvi") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpnumvi', $vpnumvi) ?>
= $this->lang->line("gvv_vols_planeur_label_payer") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'payeur', $payeur) ?>
= $this->lang->line("gvv_vols_planeur_label_percent") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'pourcentage', $pourcentage) ?>
= $this->lang->line("gvv_volsp_field_vplieudeco") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vplieudeco', $vplieudeco) ?>
= $this->lang->line("gvv_volsp_field_vplieuatt") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vplieuatt', $vplieuatt) ?>
= $this->lang->line("gvv_volsp_field_vpnbkm") . ": " ?>
= $this->gvvmetadata->input_field("volsp", 'vpnbkm', $vpnbkm) ?>
lang->line("gvv_vols_planeur_fieldset_formation"), array(
'class' => 'coolfieldset filtre',
'title' => $this->lang->line("gvv_vols_planeur_tooltip_formation")
));
echo '
';
$str = "";
foreach ($certificats as $certificat) {
$id = $certificat['id'];
$value = isset($certificat_values[$id]) ? $certificat_values[$id] : null;
$str .= $certificat['label'] . nbs() .
checkbox_array('certificat_values', $id, $certificat_values) . nbs(3);
}
echo $str;
echo '
';
echo form_fieldset_close();
// Fieldset certificats FAI
echo br();
echo form_fieldset($this->lang->line("gvv_vols_planeur_fieldset_FAI"), array(
'class' => 'coolfieldset filtre',
'title' => $this->lang->line("gvv_vols_planeur_tooltip_FAI")
));
echo '
';
$str = "";
foreach ($certificats_fai as $certificat_fai) {
$id = $certificat_fai['id'];
$value = isset($certificat_fai_values[$id]) ? $certificat_fai_values[$id] : null;
$str .= $certificat_fai['label'] . nbs() .
checkbox_array('certificat_fai_values', $id, $certificat_fai_values) . nbs(3);
}
echo $str; // ul($list);
echo '
';
echo form_fieldset_close();
echo br();
echo validation_button($action);
echo form_close();
echo br();
$list = array(
$this->lang->line("gvv_vols_planeur_tooltip_1"),
$this->lang->line("gvv_vols_planeur_tooltip_2")
);
echo ul($list);
echo '
';
?>