protected function _initAcl() {
$acl = parent::_initAcl();
+ $acl->addRole('medecin');
+ $acl->addRole('personnel');
+
+ $acl->addResource('medecin');
+ $acl->addResource('personnel');
+
+ $acl->addResource('administration/users/medecin');
+ $acl->addResource('administration/users/personnel');
+
+ $acl->allow('medecin', 'medecin');
+ $acl->allow('personnel', 'personnel');
+
+ $acl->allow('admin', 'administration/users/medecin');
+ $acl->allow('admin', 'administration/users/personnel');
+
return $acl;
}
$templates = array();
$templates['Génériques'] = array('text' => 'Page de texte', 'liens' => 'Liens', 'faq' => 'Questions / Réponses', 'temoignages' => 'Témoignages');
$templates['Accueil'] = array('home' => 'Page d\'accueil');
- $templates['Le centre'] = array('equipes' => 'L\'équipe','reunion'=>'Réunion de concertation');
+ $templates['Le centre'] = array('equipes' => 'L\'équipe', 'reunion' => 'Réunion de concertation');
$templates['Recherche clinique'] = array('listing' => 'Listing');
$templates['Parcours patient'] = array('parcours' => 'Parcours', 'soins' => 'Soins support');
$templates['Traitements'] = array('traitement' => 'Traitement (Texte avec accordéon)');
\r
protected function _liste($liste) {\r
$res = '<section>';\r
- $res.='<h3>' . $liste->titre . '</h3>';\r
- $res.=$this->_table($liste->essais);\r
+ $res.='<h3>' . $liste['titre'] . '</h3>';\r
+ $res.=$this->_table($liste['essais']);\r
$res.='</section>';\r
return $res;\r
}\r
\r
protected function _table($essais) {\r
- \r
+ $classes = array(array('class' => 'titre'), array('class' => 'code'), array('class' => 'localisation'), array('class' => 'phase'), array('class' => 'promoteur'));\r
+ $head = array(array('Titre de l\'essai', 'Code de l\'essai', 'Localisation', 'Phase', 'Promoteur'));\r
+ $datas = array();\r
+ foreach ($essais as $e) {\r
+ $row = array($e['titre'], $e['code'], $e['localisation'], $e['phase'], $e['promoteur']);\r
+ $datas[] = $row;\r
+ }\r
+\r
+ return $this->view->table($head, $datas, array(), array(), $classes);\r
}\r
\r
}\r
--- /dev/null
+#content .essais{
+ section{
+ margin:45px 0;
+
+ h3{
+ font-size:24px;
+ color:#e71a92;
+ text-transform: uppercase;
+ text-indent: 18px;
+ font-weight: 300;
+ }
+
+ table{
+ border-collapse: collapse;
+ table-layout: fixed;
+ font-size:16px;
+
+ td,th{
+ padding:20px;
+ border:1px solid #c7c7c7;
+ box-sizing: border-box;
+ }
+ th{
+ white-space: nowrap;
+ text-align: left;
+ font-weight: 500;
+ }
+ td{
+ background-color:#f0eff0;
+ vertical-align:middle;
+ &.titre{
+ width:380px;
+ vertical-align: top;
+ }
+ &.code{
+ width:160px;
+ }
+ &.localisation{
+ width:172px;
+ }
+ &.phase{
+ width:82px;
+ text-align: center;
+ }
+ &.promoteur{
+ width:186px;
+ }
+ }
+
+ .odd td{
+ background-color:#fff;
+ }
+ }
+ }
+}
\ No newline at end of file