can('client','read') && !$myUser->can('client_sheet','read',0,array('contains'=>true))) throw new Exception("Permission non accordée"); require_once(__DIR__.SLASH.'Client.class.php'); $filters = array(); Plugin::callHook('client_filter',array(&$filters)); //Colonnes possibles pour la table $columns = array(); Plugin::callHook('client_search_view',array(&$columns)); //Filtres && colonne tableau en fonction des champs dynamiques if($myFirm->has_plugin('fr.core.dynamicform') || ($myFirm->id==-1 && Plugin::is_active('fr.core.dynamicform')) ){ Plugin::need('dynamicform/DynamicForm'); $options = array(); if(!empty($_['firm']) && is_numeric($_['firm'])) $options['firm'] = $_['firm']; //Récuperation des champs custom $fields = Dynamicform::list('client-sheet-custom',$options); //Ajout des champs custom en filtres $filters = array_merge($filters,Dynamicform::get_filters($fields)); //Ajout des champs custom en colonnes dynamiques $columns = array_merge($columns,Dynamicform::get_dynamic_columns($fields)); } ?>