. * * Formulaire de saisie d'une planche de 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 '
"; 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 ""; // 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 " |