$templates['Infos pratiques'] = array('plan' => 'Plan du centre',
'acces' => 'Plan d\'accès',
'rendezvous' => 'Demande de rendez-vous');
+ $templates['Intranet'] = array('intranetident' => 'Identification',
+ 'intranet' => 'Comptes rendus, actualités');
$templates['Redirections'] = array(
'externalredirection' => 'Redirection externe',
'nextredirection' => 'Redirection vers la première sous-rubrique',
timezone = 'Europe/Paris'
session.lifetime = 31536000 ;1 year
+session.domain=.ccgm.fr
session.adapter = cache
webhost = www.ccgm.fr
locales.fr =
[production : base]
+dev = true
variant = 0
[medecins : base]
$this->_datas->addShow("#messageerreur");
$this->_datas->addScrollTo("#c", 0.35);
} else {
-
$mail = new CubeIT_Mail();
$mail->setFrom('rdv@ccgm.fr');
$mail->addTo($data['destinataire']);
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Intranet extends CCGM_Form_CMS_Text {
+
+ public function init() {
+ parent::init();
+
+ $this->removeSubForm('sidebar');
+ $this->getElement('text')->setAttrib('rows', 6);
+
+ $items = new CCGM_Form_CMS_Sub_Intranet_Items();
+ $items->setLegend('Actualités / Compte-rendus');
+ $this->addSubForm($items, 'items');
+ }
+
+}
+
+?>
<?php\r
\r
class CCGM_Form_CMS_Listing extends CCGM_Form_CMS_Text {\r
-\r
public function init() {\r
parent::init();\r
\r
$this->removeSubForm('sidebar');\r
- \r
$this->getElement('text')->setAttrib('rows', 6);\r
\r
$essais = new CCGM_Form_CMS_Sub_Listing_Listes();\r
$essais->setLegend('Essais');\r
$this->addSubForm($essais, 'listes');\r
}\r
-\r
-}\r
+}
\ No newline at end of file
<?php\r
\r
-class CCGM_Form_CMS_Reunion extends CCGM_Form_CMS_Default{\r
- public function init(){\r
+class CCGM_Form_CMS_Reunion extends CCGM_Form_CMS_Text {\r
+\r
+ public function init() {\r
parent::init();\r
+ $this->removeSubForm('sidebar');\r
+\r
+ $reunions = new CCGM_Form_CMS_Sub_Reunions_Reunions();\r
+ $reunions->setLegend('Réunions');\r
+ $this->addSubForm($reunions, 'reunions');\r
}\r
-}
\ No newline at end of file
+\r
+}\r
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Intranet_Item extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $titre = new Zend_Form_Element_Text('titre');
+ $titre->setLabel('Titre');
+ $this->addElement($titre);
+
+ $date = new CubeIT_Form_Element_Date('date');
+ $date->setLabel('Date');
+ $date->setPrecision(Zend_Date::DAY);
+ $this->addElement($date);
+
+ $text = new Zend_Form_Element_Textarea('text');
+ $text->setLabel('Texte');
+ $this->addElement($text);
+
+ $lien = new CubeIT_Form_Element_Link();
+ $lien->setLabel('Lien');
+ $lien->pageEnabled(false);
+ $lien->fileEnabled();
+ $this->addSubForm($lien, 'lien');
+ }
+
+}
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Intranet_Items extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $base = new CCGM_Form_CMS_Sub_Intranet_Item();
+ $this->setBaseSubForm($base)
+ ->setBaseLegend('Edition de l\'élément « $titre »')
+ ->setNewLegend('Nouvel élément');
+ }
+
+}
+
+?>
$this->addElement($localisation);\r
\r
$phase = new Zend_Form_Element_Select('phase');\r
- $phase->setMultiOptions(array('I'=>'I','II'=>'II','III'=>'III','IV'=>'IV'));\r
+ $phase->setMultiOptions(array('' => '', 'I' => 'I', 'II' => 'II', 'III' => 'III', 'IV' => 'IV'));\r
$phase->setLabel('Phase');\r
$this->addElement($phase);\r
\r
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Reunions_Reunion extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $staff = new Zend_Form_Element_Text('staff');
+ $staff->setLabel('Staffs concernés');
+ $this->addElement($staff);
+
+ $frequence = new Zend_Form_Element_Text('frequence');
+ $frequence->setLabel('Fréquence');
+ $this->addElement($frequence);
+
+ $lieu = new Zend_Form_Element_Text('lieu');
+ $lieu->setLabel('Lieu');
+ $this->addElement($lieu);
+
+ $medecins = new Zend_Form_Element_Textarea('medecins');
+ $medecins->setLabel('Médecins participants');
+ $medecins->setAttrib('rows', 4);
+ $this->addElement($medecins);
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class CCGM_Form_CMS_Sub_Reunions_Reunions extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $base = new CCGM_Form_CMS_Sub_Reunions_Reunion();
+ $this->setBaseSubForm($base)
+ ->setBaseLegend('Editer la réunion $staff / $frequence')
+ ->setNewLegend('Nouvelle réunion');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class CCGM_View_Helper_Reunions extends Zend_View_Helper_Abstract {
+
+ public function reunions($reunions) {
+ $classes = array(array('class' => 'staff'), array('class' => 'frequence'), array('class' => 'lieu'), array('class' => 'medecins'));
+ $head = array(array('Staffs', 'Fréquence', 'Lieu', 'Médecins participants'));
+ $datas = array();
+ foreach ($reunions as $r) {
+ $datas[] = array($r['staff'], $r['frequence'], $r['lieu'], nl2br(trim($r['medecins'])));
+ }
+ return $this->view->table($head, $datas, array(), array(), $classes);
+ }
+
+}
+
+?>
--- /dev/null
+<?php\r
+\r
--- /dev/null
+<?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
-<?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
+<?php $this->headScript()->addScriptAndStyle('reunions') ?>\r
+<section id="content">\r
+ <div id="c">\r
+ <?php\r
+ $t = $this->markupDotclear($this->text);\r
+ $t = str_replace('%reunions%', $this->reunions($this->reunions), $t);\r
+ echo $t;\r
+ ?>\r
+ </div>\r
+ <?php echo $this->rightbar() ?>\r
+</section>
\ No newline at end of file
--- /dev/null
+#content h2{
+ font-size: 20px !important;
+}
+
+table{
+ margin:30px 0 20px;
+ border-collapse:collapse;
+ table-layout: fixed;
+
+ td,th{
+ text-align: center;
+ border:1px solid #c7c7c7;
+ vertical-align: middle;
+ width:193px;
+ }
+
+ td{
+ padding:10px;
+ background-color:#f0eff0;
+ &.staff{
+ font-weight: 500;
+ text-transform: uppercase;
+ }
+ }
+
+ tr.odd td{
+ background-color:#fff;
+ }
+
+ th{
+ padding:20px;
+ color:#e71a92;
+ font-size:24px;
+ line-height: 29px;
+ text-transform: uppercase;
+ font-weight: 300;
+ }
+}
\ No newline at end of file