.
*
* Vue planche (table) pour les vols avions
*
* @package vues
*/
$this->load->view('bs_header');
$this->load->view('bs_menu');
$this->load->view('bs_banner');
$this->lang->load('vols_avion');
echo '
';
echo checkalert($this->session);
echo heading($this->lang->line("gvv_vols_avion_title_list"), 3);
$categories = array_merge(array('-1' => $this->lang->line("gvv_toutes")), $this->config->item('categories_vol_avion'));
?>
= year_selector($controller, $year, $year_selector) ?>
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 table table-striped";
} else {
$classes = "datatable_style datedtable_ro table table-striped";
}
$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 '
';
?>