. * * Vue planche (table) pour les vols avions * * @package vues */ $this->load->view('header'); $this->load->view('banner'); $this->load->view('sidebar'); $this->load->view('menu'); $this->lang->load('vols_avion'); echo '
'; echo checkalert($this->session); echo heading($this->lang->line("gvv_vols_avion_title_list"), 3); echo year_selector($controller, $year, $year_selector); // -------------------------------------------------------------------------------------------------- // Filtre echo form_hidden('filter_active', $filter_active); $tab = 3; echo form_fieldset($this->lang->line("gvv_str_filter"), array('class' => 'coolfieldset filtre', 'title' => $this->lang->line("gvv_str_filter_tooltip"))); echo "
"; echo form_open(controller_url($controller) . "/filterValidation/" . $action, array('name' => 'saisie') ); echo "
\n"; echo $this->lang->line("gvv_date") . ": " . input_field('filter_date', $filter_date, array('type' => 'text', 'size' => '15', 'title' => 'JJ/MM/AAAA', 'class' => 'datepicker')) . nbs() . $this->lang->line("gvv_until") . ": ". input_field('date_end', $date_end, array('type' => 'text', 'size' => '15', 'title' => 'JJ/MM/AAAA', 'class' => 'datepicker')) . nbs(3) . $this->lang->line("gvv_pilot") . ": ". dropdown_field('filter_pilote', $filter_pilote, $pilote_selector, "") . nbs(3) . $this->lang->line("gvv_machine") . ": ". dropdown_field('filter_machine', $filter_machine, $machine_selector, "") . nbs(3) . $this->lang->line("gvv_site") . ": ". dropdown_field('filter_aero', $filter_aero, $aero_selector, ""); echo "
"; echo $this->lang->line("gvv_age") . ": " . enumerate_radio_fields($this->lang->line("gvv_age_select"), 'filter_25', $filter_25) . nbs($tab * 3) . $this->lang->line("gvv_dual") . " " . form_checkbox(array ('name' => 'filter_dc', 'value' => 1, 'checked' => (0 != $filter_dc))) . nbs($tab * 3) . $this->lang->line("gvv_airplanes") . ": " . enumerate_radio_fields($this->lang->line("gvv_owner_select"), 'filter_prive', $filter_prive); echo "
"; $categories = array_merge(array('-1' => $this->lang->line("gvv_toutes")), $this->config->item('categories_vol_avion')); echo $this->lang->line("gvv_categories") . ": " . enumerate_radio_fields($categories, 'filter_vi', $filter_vi); echo "
"; echo form_input(array('type' => 'submit', 'name' => 'button', 'value' => $this->lang->line("gvv_str_select"))); echo nbs(); echo form_input(array('type' => 'submit', 'name' => 'button', 'value' => $this->lang->line("gvv_str_display"))); echo "
\n"; echo form_close(); echo "
"; echo form_fieldset_close(); // ----------------------------------------------------------------------------------------- // Totaux echo form_fieldset($this->lang->line("gvv_vols_avion_fieldset_totals"), array('class' => 'coolfieldset filtre', 'title' => $this->lang->line("gvv_vols_avion_fieldset_totals_tooltip"))); echo "
"; echo "\n"; // \n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; if ($by_pilote) { echo "\n"; echo "\n"; echo "\n"; } else { echo "\n"; echo ""; echo "\n"; } echo "
\n"; echo "
" . $this->lang->line("gvv_vols_avion_label_flight_number"). " = " . " $count " . nbs(4) ."" . $this->lang->line("gvv_vols_avion_label_total_hours") . " = " . "" . $total . "
" . $this->lang->line("gvv_vols_avion_label_total_junior") . " = " . " " . $m25ans . "" . nbs(4) ."" . $this->lang->line("gvv_vols_avion_label_flights_junior") . " = " . " " . $count_m25ans . "
" . $this->lang->line("gvv_vols_avion_label_whincher_towing_hours") . " = " . " " . $remorquage . "" . nbs(4) ."" . $this->lang->line("gvv_vols_avion_label_whincher_towing_flights") . " = " . " " . $count_remorquage . "
" . $this->lang->line("gvv_vols_avion_label_total_dual") . " = " . " " . $dc . "
" . $this->lang->line("gvv_vols_avion_label_total_captain") . " = " . " " . $cdb . "
" . $this->lang->line("gvv_vols_avion_label_total_instruction") . " = " . " " . $inst . "
" . $this->lang->line("gvv_vols_avion_label_total_dual") . " = " . " " . $dc . "" . nbs(4) ."" . $this->lang->line("gvv_vols_avion_label_whincher_dual_flights") . " = " . " " . $count_dc . "
\n"; echo "
"; echo form_fieldset_close(); // ----------------------------------------------------------------------------------------- // Consomations if (count($conso) > 1 && (!$by_pilote)) { echo form_fieldset($this->lang->line("gvv_vols_avion_fieldset_conso"), array('class' => 'coolfieldset filtre', 'title' => $this->lang->line("gvv_vols_avion_tooltip_conso"))); echo "
"; display_form_table($conso); echo "
"; echo form_fieldset_close(); } // ----------------------------------------------------------------------------------------- // Liste des vols if ($this->dx_auth->is_role('planchiste') || $auto_planchiste) { $classes = "datatable_style datedtable"; } else { $classes = "datatable_style datedtable_ro"; } $attrs = array( 'controller' => $controller, 'actions' => array ('edit', 'delete'), 'mode' => ($has_modification_rights || $auto_planchiste) ? "rw" : "ro", 'class' => $classes); if ($auto_planchiste) { $attrs['autoplanchiste'] = $default_user; $attrs['autoplanchiste_id'] = 'vapilid'; } echo $this->gvvmetadata->table("vue_vols_avion", $attrs, ""); echo br(); echo p($this->lang->line("gvv_vols_avion_tip_unit")); $bar = array( array('label' => "Excel", 'url' =>"$controller/csv/$year"), array('label' => "Pdf", 'url' =>"$controller/pdf/$year"), ); echo br() . button_bar4($bar); echo '
'; ?>