$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['Recherche clinique'] = array('listing' => 'Listing');
+ $templates['Recherche clinique'] = array(
+ //'listing' => 'Listing',
+ 'research' => 'Recherche clinique',
+ 'researchStudies' => 'Études cliniques',
+ );
$templates['Parcours patient'] = array('parcours' => 'Parcours', 'soins' => 'Soins support');
$templates['Traitements'] = array('traitement' => 'Traitement (Texte avec accordéon)');
$templates['Actualités'] = array('news' => 'Actualités');
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Element_ResearchCategories extends CubeIT_Form_Element_SelectList {
+
+ public function init() {
+ $this->setBaseForm('CCGM_Form_CMS_ResearchCategories');
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Element_ResearchSpecialities extends CubeIT_Form_Element_MultiCheckboxList {
+
+ public function init() {
+ $this->setBaseForm('CCGM_Form_CMS_ResearchSpecialities');
+ }
+
+}
--- /dev/null
+<?php\r
+\r
+class CCGM_Form_CMS_Research extends CCGM_Form_CMS_Text {\r
+ public function init() {\r
+ parent::init();\r
+\r
+ $studies = new CCGM_Form_CMS_Sub_Research_Studies();\r
+ $studies->setLegend('Études Cliniques');\r
+ $this->addSubForm($studies, 'studies');\r
+ }\r
+}\r
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_ResearchCategories extends CubeIT_Form_List_Model {
+
+ public function init() {
+ parent::init();
+
+ $id = new Zend_Form_Element_Hidden('id');
+ $id->setLabel('#');
+ $this->addElement($id);
+
+ $name = new Zend_Form_Element_Text('name');
+ $name->setLabel(__('Nom'));
+ $this->addElement($name);
+
+ $icon = new CubeIT_Form_Element_File_Image('icon');
+ $icon->setLabel(__('Icône (SVG)'));
+ $icon->setMaxItems(1);
+ $this->addElement($icon);
+
+ $order = new Zend_Form_Element_Text('sort_order');
+ $order->setLabel('Sort Order');
+ $this->addElement($order);
+
+ $this->setListTitle(__('Catégories de recherche'))
+ ->setNewTitle(__('Créer une catégorie de recherche'))
+ ->setEditTitle(sprintf(__("Edition de la catégorie « %s »"), '$name'))
+ ->setTitleColumn('name')
+ ->setAdditionnalColumns(array('sort_order'))
+ ->setModel('CCGM_Model_ResearchCategory');
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_ResearchSpecialities extends CubeIT_Form_List_Model {
+
+ public function init() {
+ parent::init();
+
+ $id = new Zend_Form_Element_Hidden('id');
+ $id->setLabel('#');
+ $this->addElement($id);
+
+ $name = new Zend_Form_Element_Text('name');
+ $name->setLabel(__('Nom'));
+ $this->addElement($name);
+
+ $icon = new CubeIT_Form_Element_File_Image('icon');
+ $icon->setLabel(__('Icône (SVG)'));
+ $icon->setMaxItems(1);
+ $this->addElement($icon);
+
+ $this->setListTitle(__('Spécialités'))
+ ->setNewTitle(__('Créer une spécialité'))
+ ->setEditTitle(sprintf(__("Edition de la spécialité « %s »"), '$name'))
+ ->setTitleColumn('name')
+ ->setModel('CCGM_Model_ResearchSpeciality');
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Research_Studies extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $study = new CCGM_Form_CMS_Sub_Research_Study();
+ $this->setBaseSubForm($study);
+ $this->setBaseLegend('Edition de l\'étude « $title »');
+ $this->setNewLegend('Nouvelle étude');
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Research_Study extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $title = new Zend_Form_Element_Text('title');
+ $title->setLabel('Titre');
+ $this->addElement($title);
+
+ $code = new CubeIT_Form_Element_Markitup('description');
+ $code->setLabel('Description');
+ $this->addElement($code);
+
+ $localisation = new CCGM_Form_CMS_Element_ResearchCategories('category');
+ $localisation->setLabel('Localisation');
+ $this->addElement($localisation);
+
+ $pathology = new Zend_Form_Element_Textarea('pathology');
+ $pathology->setLabel('Pathologie');
+ $this->addElement($pathology);
+
+ $investigator = new Zend_Form_Element_Text('investigator');
+ $investigator->setLabel('Investigateur');
+ $this->addElement($investigator);
+
+ $specialities = new CCGM_Form_CMS_Element_ResearchSpecialities('specialities');
+ $specialities->setLabel('Spécialités');
+ $this->addElement($specialities);
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Model_ResearchCategory extends CubeIT_Model_Data_Table {
+
+ protected static $_table = 'research_categories';
+ protected $name;
+ protected $icon;
+ protected $sort_order;
+
+ public static function getSchema($schema) {
+ $table = parent::getSchema($schema);
+ $table->addColumn('name', 'string', array('length' => 128));
+ $table->addColumn('icon', 'string', array('length' => 128));
+ $table->addColumn('sort_order', 'smallint', array('unsigned' => true));
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Model_ResearchSpeciality extends CubeIT_Model_Data_Table {
+
+ protected static $_table = 'research_specialities';
+ protected $name;
+ protected $icon;
+
+ public static function getSchema($schema) {
+ $table = parent::getSchema($schema);
+ $table->addColumn('name', 'string', array('length' => 128));
+ $table->addColumn('icon', 'string', array('length' => 128));
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Model_ResearchStudy extends CubeIT_Model_Data_Table {
+
+ protected static $_table = 'research_studies';
+ protected $title;
+ protected $description;
+ protected $category;
+ protected $pathology;
+ protected $investigator;
+ protected $specialities;
+
+ public static function getSchema($schema) {
+ $table = parent::getSchema($schema);
+ $table->addColumn('title', 'text');
+ $table->addColumn('description', 'text');
+ $table->addColumn('category', 'integer');
+ $table->addColumn('pathology', 'text');
+ $table->addColumn('investigator', 'text');
+ $table->addColumn('specialities', 'text');
+ }
+
+}
$res = '<aside id="rightbar">';
$res.=$this->view->imageProcess($s['image'], '', 262, null, array(), 'R');
- $res.='<section>';
- $res.=$this->view->markupDotclear($s['text']);
- $res.='</section>';
+
+ if (trim($s['text']) != '') {
+ $res .= '<section>';
+ $res .= $this->view->markupDotclear($s['text']);
+ $res .= '</section>';
+ }
+
if (trim($s['text2']) != '') {
$res.='<section>' . $this->view->markupDotclear($s['text2']) . '</section>';
}
+
$res.='</aside>';
return $res;
}
--- /dev/null
+<?php\r
+$this->contentWidth = 662;\r
+?>\r
+\r
+<section id="content">\r
+ <div id="c">\r
+ <?php\r
+ echo $this->markupDotclear($this->text);\r
+ ?>\r
+ </div>\r
+ <?php echo $this->rightbar() ?>\r
+</section>
\ No newline at end of file