]> _ Git - ccgm.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Dec 2013 11:46:26 +0000 (11:46 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Dec 2013 11:46:26 +0000 (11:46 +0000)
framework/application/Bootstrap.php
framework/application/forms/CMS/Listing.php [new file with mode: 0644]
framework/application/forms/CMS/Reunion.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Listing/Essai.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Listing/Essais.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Listing/Liste.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Listing/Listes.php [new file with mode: 0644]
framework/application/layouts/scripts/layout.phtml [new file with mode: 0644]
framework/application/views/scripts/templates/listing.phtml [new file with mode: 0644]
framework/application/views/scripts/templates/reunion.phtml [new file with mode: 0644]

index 253d7b3eeb33c1b46d1ff4d061779486c5551c8e..36f8f6beadd77362d2a811685f3414bc26229cc9 100644 (file)
@@ -44,7 +44,8 @@ class Bootstrap extends CubeIT_Bootstrap {
                $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');
+               $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)');
                $templates['Infos pratiques'] = array('plan' => 'Plan du centre',
diff --git a/framework/application/forms/CMS/Listing.php b/framework/application/forms/CMS/Listing.php
new file mode 100644 (file)
index 0000000..df6ddc1
--- /dev/null
@@ -0,0 +1,13 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Listing extends CCGM_Form_CMS_Default {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $essais = new CCGM_Form_CMS_Sub_Listing_Listes();\r
+               $essais->setLegend('Essais');\r
+               $this->addSubForm($essais, 'listes');\r
+       }\r
+\r
+}\r
diff --git a/framework/application/forms/CMS/Reunion.php b/framework/application/forms/CMS/Reunion.php
new file mode 100644 (file)
index 0000000..ea37aea
--- /dev/null
@@ -0,0 +1,7 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Reunion extends CCGM_Form_CMS_Default{\r
+       public function init(){\r
+               parent::init();\r
+       }\r
+}
\ No newline at end of file
diff --git a/framework/application/forms/CMS/Sub/Listing/Essai.php b/framework/application/forms/CMS/Sub/Listing/Essai.php
new file mode 100644 (file)
index 0000000..04c5fa6
--- /dev/null
@@ -0,0 +1,31 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Listing_Essai extends CubeIT_Form_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $titre = new Zend_Form_Element_Textarea('titre');\r
+               $titre->setAttrib('rows', 3);\r
+               $titre->setAttrib('rows', 3);\r
+               $titre->setLabel('Titre');\r
+               $this->addElement($titre);\r
+\r
+               $code = new Zend_Form_Element_Text('code');\r
+               $code->setLabel('Code');\r
+               $this->addElement($code);\r
+\r
+               $localisation = new Zend_Form_Element_Text('localisation');\r
+               $localisation->setLabel('Localisation');\r
+               $this->addElement($localisation);\r
+\r
+               $phase = new Zend_Form_Element_Text('phase');\r
+               $phase->setLabel('Phase');\r
+               $this->addElement($phase);\r
+\r
+               $promoteur = new Zend_Form_Element_Text('promoteur');\r
+               $promoteur->setLabel('Promoteur');\r
+               $this->addElement($promoteur);\r
+       }\r
+\r
+}\r
diff --git a/framework/application/forms/CMS/Sub/Listing/Essais.php b/framework/application/forms/CMS/Sub/Listing/Essais.php
new file mode 100644 (file)
index 0000000..d3e0e70
--- /dev/null
@@ -0,0 +1,14 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Listing_Essais extends CubeIT_Form_Multi_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $essai = new CCGM_Form_CMS_Sub_Listing_Essai();\r
+               $this->setBaseSubForm($essai);\r
+               $this->setBaseLegend('Edition de l\'essai $code');\r
+               $this->setNewLegend('Nouvel essai');\r
+       }\r
+\r
+}\r
diff --git a/framework/application/forms/CMS/Sub/Listing/Liste.php b/framework/application/forms/CMS/Sub/Listing/Liste.php
new file mode 100644 (file)
index 0000000..2c08b78
--- /dev/null
@@ -0,0 +1,17 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Listing_Liste extends CubeIT_Form_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $titre = new Zend_Form_Element_Text('titre');\r
+               $titre->setLabel('Titre');\r
+               $this->addElement($titre);\r
+\r
+               $essais = new CCGM_Form_CMS_Sub_Listing_Essais();\r
+               $essais->setLegend('Essais');\r
+               $this->addSubForm($essais, 'essais');\r
+       }\r
+\r
+}\r
diff --git a/framework/application/forms/CMS/Sub/Listing/Listes.php b/framework/application/forms/CMS/Sub/Listing/Listes.php
new file mode 100644 (file)
index 0000000..4b10f8b
--- /dev/null
@@ -0,0 +1,14 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Listing_Listes extends CubeIT_Form_Multi_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $liste = new CCGM_Form_CMS_Sub_Listing_Liste();\r
+               $this->setBaseSubForm($liste);\r
+               $this->setNewLegend('Nouveau groupe d\'essais');\r
+               $this->setBaseLegend('Edition du group $titre');\r
+       }\r
+\r
+}\r
diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml
new file mode 100644 (file)
index 0000000..5e9a677
--- /dev/null
@@ -0,0 +1,18 @@
+<?php\r
+\r
+if ($this->acl()->isAllowed('edition')) {\r
+       $this->headScript()->addCommonsAdmin();\r
+}\r
+$this->headScript()->addTooltip();\r
+$this->headMeta()->setViewport(1024);\r
+$this->headScript()->addWebFont(array('google' => array('families' => array('Ubuntu:500italic,300,300italic,500,400italic'))));\r
+$this->headScript()->addIEConditionnals();\r
+$this->headScript()->appendFile('/js/common.js');\r
+$this->headLink()->appendStylesheet('/less/common.less', 'all');\r
+\r
+\r
+profile(__FILE__, __LINE__, 'Before rendering body');\r
+$res = $this->htmlPage($this->render('common/body.phtml'));\r
+profile(__FILE__, __LINE__, 'Body rendered');\r
+echo $res;\r
+endProfile();\r
diff --git a/framework/application/views/scripts/templates/listing.phtml b/framework/application/views/scripts/templates/listing.phtml
new file mode 100644 (file)
index 0000000..fb9e0c3
--- /dev/null
@@ -0,0 +1,8 @@
+<?php\r
+\r
+/* \r
+ * To change this license header, choose License Headers in Project Properties.\r
+ * To change this template file, choose Tools | Templates\r
+ * and open the template in the editor.\r
+ */\r
+\r
diff --git a/framework/application/views/scripts/templates/reunion.phtml b/framework/application/views/scripts/templates/reunion.phtml
new file mode 100644 (file)
index 0000000..fb9e0c3
--- /dev/null
@@ -0,0 +1,8 @@
+<?php\r
+\r
+/* \r
+ * To change this license header, choose License Headers in Project Properties.\r
+ * To change this template file, choose Tools | Templates\r
+ * and open the template in the editor.\r
+ */\r
+\r