. * * Formulaire de saisie d'une planche de vol planeur * * @package vues */ $this->load->view('header'); $this->load->view('banner'); $this->load->view('sidebar'); $this->load->view('menu'); $this->lang->load('vols_planeur'); echo '
'; /* * if (isset($message)) { * echo p($message) . br(); * } * echo checkalert($this->session, isset($popup) ? $popup : ""); * echo validation_errors(); */ /* * ***************************************************************************************** * ************************ Affichage de la planche ************************************ * ***************************************************************************************** */ echo heading($this->lang->line("gvv_vols_planeur_logs_input") . " " . $vpdate . nbs() . $this->lang->line("gvv_vols_planeur_logs_at") . " " . $vplieudeco, 3); $tabs = nbs(3); $table = array (); $row = 0; $altitude = ($remorque_100eme) ? $this->lang->line("gvv_vols_planeur_label_centieme") : $this->lang->line("gvv_vols_planeur_label_alt"); $vols = $planche ['flights']; $launch = $this->lang->line("gvv_launch_type"); $towing = $launch [3]; $winch = $launch [1]; $auto = $launch [2]; $ext = $launch [4]; $flight_type_selector = $this->config->item('categories_vol_planeur_short'); if (count($vols) > 0) { // --------- ligne d' entête -------------------- echo ""; echo ""; // pour chaque ligne ouvrir un formulaire: $row = 0; foreach ( $vols as $vol ) { ++ $row; $divdur = "dur$row"; echo ""; } echo '
"; echo $this->lang->line("gvv_volsp_field_vpmacid"); echo ""; echo $this->lang->line("gvv_volsp_field_vppilid"); echo ""; echo $this->lang->line("gvv_volsp_field_vpdc"); echo ""; echo $this->lang->line("gvv_volsp_field_instructeur"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_vplieudeco"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_vplieuatt"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_vpduree"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_launch"); echo ""; echo "$altitude"; echo ""; echo $this->lang->line("gvv_ticket"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_remorqueur"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_pilote_remorqueur"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_type"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_vpnumvi"); echo ""; echo $this->lang->line("gvv_vue_vols_planeur_short_field_vpobs"); echo ""; echo " "; // champs cachés + bouton de validation echo "
"; // machine echo form_open(controller_url($controller) . "/formValidation/1", array ( 'name' => 'saisie', 'id' => "saisie$row", 'onsubmit' => 'targetpop(this)' )); echo $this->gvvmetadata->input_field("volsp", 'vpmacid', $vol ['glider']); echo ""; // pilote planeur echo $this->gvvmetadata->input_field("volsp", 'vppilid', $vppilid); echo ""; // DC // $attrs = array('onChange' => "instonoff('$row')"); // echo $this->gvvmetadata->input_field("volsp", 'vpdc', false, "rw", $attrs); echo ""; echo ""; // instructeur echo "
"; echo $this->gvvmetadata->input_field("volsp", 'vpinst', ''); echo "
"; echo "
"; // heure déco // $attrs = array('size' => "3",'onChange' => "calculp2('$row')"); // echo $this->gvvmetadata->input_field("volsp", 'vpcdeb', $vol['takeoff'], "rw", $attrs); echo ""; echo ""; // heure attero // echo $this->gvvmetadata->input_field("volsp", 'vpcfin', $vol['glider_landing'], "rw", $attrs); echo ""; echo ""; // durée // $attrsd = array( 'size' => "53"); // echo $this->gvvmetadata->input_field("volsp", 'vpduree', $vol['glider_time'], 'r', $attrsd); // echo ""; $dec = $vol ['takeoff']; $att = $vol ['glider_landing']; $result = ""; if ($dec != "" && $att != "") { $debe = intval($dec); $debd = ($dec - $debe) * 100; $fine = intval($att); $find = ($att - $fine) * 100; $diff = (($fine * 60) + $find) - (($debe * 60) + $debd); if ($diff > 0) { $rese = floor($diff / 60); $resd = round($diff - ($rese * 60)); if ($resd < 10) { $resdaff = "0" . $resd; } else { $resdaff = $resd; } $result = "" . $rese . "h" . $resdaff; } } echo ""; echo ""; // remorquage if ($vol ['plane'] != "") $remval = "3"; else $remval = ""; echo dropdown_field('vpautonome', "$remval", $launch, ""); echo ""; // altitude // echo $this->gvvmetadata->input_field("volsp", 'vpaltrem', '500'); echo ""; echo ""; echo $this->gvvmetadata->input_field("volsp", 'vpticcolle', false); echo ""; // avion remorqueur echo $this->gvvmetadata->input_field("volsp", 'remorqueur', $vol ['plane']); echo ""; // pilote remorqueur echo $this->gvvmetadata->input_field("volsp", 'pilote_remorqueur', $pilote_remorqueur); echo ""; // vol normal echo dropdown_field('vpcategorie', $vpcategorie, $flight_type_selector, ""); echo ""; // N° VI // echo $this->gvvmetadata->input_field("volsp", 'vpnumvi', ''); echo ""; echo ""; // observations // echo $this->gvvmetadata->input_field("volsp", 'vpobs', ''); echo ""; echo ""; // champs cachés + bouton valisation echo form_hidden('vpid', 0); echo form_hidden('vpdate', $vpdate); echo form_hidden('saisie_par', $saisie_par); echo form_hidden('vplieudeco', $vplieudeco); echo form_hidden('vplieuatt', $vplieudeco); echo form_hidden('essence', 0); echo form_hidden('numlign', $row); // echo "
"; echo form_submit('button', $this->lang->line("gvv_button_logs_submitbutton")); echo "
"; echo form_close(); echo "
'; } else { echo $this->lang->line("gvv_vols_planeur_logs_no_flights") . " $vpdate " . $this->lang->line("gvv_vols_planeur_logs_at") . nbs() . $vplieudeco; } echo '
'; echo "\n"; ?>