]> _ Git - ccgm.git/commitdiff
Deployment, bug fixes and other adjustments requested by the client. WIP #2340 @1.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 Feb 2019 13:27:23 +0000 (13:27 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 Feb 2019 13:27:23 +0000 (13:27 +0000)
16 files changed:
framework/application/configs/application.ini
framework/application/controllers/ResearchCategoriesController.php [deleted file]
framework/application/controllers/ResearchcategoriesController.php [new file with mode: 0644]
framework/application/forms/CMS/ResearchStudies.php
framework/application/models/ResearchStudy.php
framework/application/views/scripts/research-categories/index.phtml
index.php
js/research.js
less/actualites.less
less/carrousel.less
less/common.less
less/intranetident.less
less/news.less
less/parcours.less
less/rendezvous.less
less/sidebar.less

index 534c751f93a30fb084707ef582f5f221df242f3f..4e6be9b2dd00eafcb52b6eef6bf1f1c23971d4a3 100644 (file)
@@ -67,4 +67,18 @@ dev = true
 httpauth.username = ccgm
 httpauth.password = 20ccgm13
 
-seo.robots = false
\ No newline at end of file
+seo.robots = false
+
+[dev-local : base]
+
+dev = true
+webhost = ccgm.test
+session.domain = .ccgm.test
+
+minify.js = true
+minify.css = true
+
+database.params.host = localhost
+database.params.username = root
+database.params.password =
+database.params.dbname = ccgm
diff --git a/framework/application/controllers/ResearchCategoriesController.php b/framework/application/controllers/ResearchCategoriesController.php
deleted file mode 100644 (file)
index 3f10fb8..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-class ResearchCategoriesController extends CubeIT_Controller_PageController {
-
-    public function indexAction() {
-
-        $this->view->headScript()->addScriptAndStyle('research');
-
-        $parent = $this->view->currentPage->getParent();
-        $parent_data = $this->getBootstrap()->getCMSDatasOfNavigationPage($parent);
-        $this->view->datas = $parent_data;
-
-        $db = Zend_Db_Table::getDefaultAdapter();
-        $select = $db->select()->from(['s' => 'research_studies'])
-                ->joinInner(['c' => 'research_categories'], 'c.id = s.category', ['c.name AS category_name'])
-                ->order('s.id DESC')
-                ->where('s.category = ?', $this->getRequest()->getParam('research_category_id'));
-        $query = $select->query();
-
-        //echo 'QUERY: '. (string) $select;
-
-//        if (!$q->rowCount()) {
-//            $this->_404();
-//            return;
-//        }
-
-//        $r = CubeIT_Util_Cms::unserialize($q->fetch());
-        $this->view->parent_title = $parent_data['shortTitle'];
-        $this->view->sidebar = $parent_data['sidebar'];
-        $this->view->studies = $query->fetchAll();
-
-        // Get specialities data
-        $specialities = [];
-        $query_specialities = $db->select()->from('research_specialities')->query();
-        while ($speciality = $query_specialities->fetch()) {
-            $specialities[$speciality->id] = CubeIT_Util_Object::toArray($speciality);
-        }
-
-        $this->view->specialities = $specialities;
-    }
-
-}
diff --git a/framework/application/controllers/ResearchcategoriesController.php b/framework/application/controllers/ResearchcategoriesController.php
new file mode 100644 (file)
index 0000000..44f59eb
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+
+class ResearchcategoriesController extends CubeIT_Controller_PageController {
+
+    public function indexAction() {
+
+        $this->view->headScript()->addScriptAndStyle('research');
+
+        $parent = $this->view->currentPage->getParent();
+        $parent_data = $this->getBootstrap()->getCMSDatasOfNavigationPage($parent);
+        $this->view->datas = $parent_data;
+
+        $db = Zend_Db_Table::getDefaultAdapter();
+        $select = $db->select()->from(['s' => 'research_studies'])
+                ->joinInner(['c' => 'research_categories'], 'c.id = s.category', ['c.name AS category_name'])
+                ->order('s.id DESC')
+                ->where('s.category = ?', $this->getRequest()->getParam('research_category_id'));
+        $query = $select->query();
+
+        //echo 'QUERY: '. (string) $select;
+
+//        if (!$q->rowCount()) {
+//            $this->_404();
+//            return;
+//        }
+
+//        $r = CubeIT_Util_Cms::unserialize($q->fetch());
+        $this->view->parent_title = $parent_data['shortTitle'];
+        $this->view->sidebar = $parent_data['sidebar'];
+        $this->view->studies = $query->fetchAll();
+
+        // Get specialities data
+        $specialities = [];
+        $query_specialities = $db->select()->from('research_specialities')->query();
+        while ($speciality = $query_specialities->fetch()) {
+            $specialities[$speciality->id] = CubeIT_Util_Object::toArray($speciality);
+        }
+
+        $this->view->specialities = $specialities;
+    }
+
+}
index 622a53c33c9ad68725dd07009483cb3a9dc13686..78e8989539ed53e5ec59f8240c798efabbda5e1c 100644 (file)
@@ -24,6 +24,10 @@ class CCGM_Form_CMS_ResearchStudies extends CubeIT_Form_List_Model {
         $pathology->setLabel('Pathologie');
         $this->addElement($pathology);
 
+        $promoter = new Zend_Form_Element_Text('promoter');
+        $promoter->setLabel('Promoteur');
+        $this->addElement($promoter);
+
         $investigator = new Zend_Form_Element_Text('investigator');
         $investigator->setLabel('Investigateur');
         $this->addElement($investigator);
index 4f01b0a09d554c12c2a37038e61e62123dff7cbc..f4d02d6b13b20a6150167f19eb9cd477e1c99c73 100644 (file)
@@ -7,6 +7,7 @@ class CCGM_Model_ResearchStudy extends CubeIT_Model_Data_Table {
     protected $description;
     protected $category;
     protected $pathology;
+    protected $promoter;
     protected $investigator;
     protected $specialities;
 
@@ -16,6 +17,7 @@ class CCGM_Model_ResearchStudy extends CubeIT_Model_Data_Table {
         $table->addColumn('description', 'text');
         $table->addColumn('category', 'integer');
         $table->addColumn('pathology', 'text');
+        $table->addColumn('promoter', 'text');
         $table->addColumn('investigator', 'text');
         $table->addColumn('specialities', 'text');
     }
index 28728ed1ef4dc2dc6dff92789675d2a586fad2b1..19c0a9c31b99e34347f9b43a650f203af5fb6f9b 100644 (file)
@@ -17,19 +17,26 @@ $this->showsidebar = false;
             <div class="research-study">
                 <div class="study-main">
                     <div class="study-title"><?= $study->title ?></div>
-                    <div class="study-description"><?= nl2br($study->description) ?></div>
+                    <div class="study-description"><?= $this->markupDotclear($study->description) ?></div>
 
-                    <a href="mailto:camille.laurent@oncoclem.org?subject=<?= urlencode("Essai clinique : {$study->title}") ?>" class="study-contact">Nous contacter</a>
+                    <a href="mailto:camille.laurent@oncoclem.org?subject=<?= rawurlencode("Essai clinique : {$study->title}") ?>" class="study-contact">Nous contacter</a>
                 </div>
                 <div class="study-details">
-                    <p><strong>Pathologie :</strong> <?= $study->pathology ?></p>
-                    <p><strong>Investigateur :</strong> <?= $study->investigator ?></p>
+                    <p><strong>Pathologie(s) :</strong> <?= $study->pathology ?></p>
+                    <p><strong>Promoteur :</strong> <?= $study->promoter ?></p>
+                    <p><strong>Investigateur principal :</strong> <?= $study->investigator ?></p>
+
+                    <?php
+                        $specialities = CubeIT_Util_Cms::unserialize($study->specialities);
+                        if (!empty($specialities)):
+                    ?>
                     <p>
                         <strong style="vertical-align: bottom">Spécialité(s) :</strong>
-                        <?php foreach(CubeIT_Util_Cms::unserialize($study->specialities) as $specialityID): ?>
+                        <?php foreach($specialities as $specialityID): ?>
                         <img src="<?= CubeIT_View_Helper_ImageCms::getPath($this->specialities[$specialityID]['icon']) ?>" data-tooltip="<?= $this->specialities[$specialityID]['name'] ?>" style="margin-right:0.5em; height: 30px">
                         <?php endforeach; ?>
                     </p>
+                    <?php endif; ?>
                 </div>
             </div>
 
index 7277588a5d9d334c01f2c4135375d8a628e578df..44a1dab504d1ce1754da84aa27ff87d3aa67315e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,6 +8,8 @@ if ($_SERVER['HTTP_HOST'] == 'www.ccgm.fr') {
        define('APPLICATION_ENV', 'production');
 } else if ($_SERVER['HTTP_HOST'] == 'medecins.ccgm.fr') {
        define('APPLICATION_ENV', 'medecins');
+} else if ($_SERVER['HTTP_HOST'] == 'ccgm.test') {
+    define('APPLICATION_ENV', 'dev-local');
 }
 
 include dirname(__FILE__) . '/CubeIT/common.php';
index 6a55159a3e962be10af43cdaceb9dc29f3c64ac8..6b38887f150b14372773101fc5df0d01820d4104 100644 (file)
@@ -3,7 +3,7 @@ TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_research();';
 function load_research() {
 
   var maxHeight = 100, // 20px line height so 100 is 5 lines
-      more = 'En savoir plus',
+      more = 'Lire la suite',
       less = 'Réduire';
 
   $('.study-description').each(function() {
index fbbe51f952938b830c9ba96b2a501acf78a59676..4529c84e791d79d48e84dc2a23aca5d0e964681c 100644 (file)
@@ -10,7 +10,7 @@
                width:981px;
                position:relative;
                padding: 19px 0 16px;
-               background-image:url("/images/news.svg");
+               background-image:url("../images/news.svg");
                background-position: 0 50%;
                background-repeat: no-repeat;
                height:30px;
@@ -73,7 +73,7 @@
                                top:0px;
                                right:185px;
                                position:absolute;
-                               background-image: url("/images/arrow-news-left.svg");
+                               background-image: url("../images/arrow-news-left.svg");
                                background-repeat: no-repeat;
                                background-size: 30px 30px;
                        }
@@ -81,7 +81,7 @@
                        .btn-next {
                                margin:0 0 0 5px;
                                right:150px;
-                               background-image: url("/images/arrow-news-right.svg");
+                               background-image: url("../images/arrow-news-right.svg");
                                background-repeat: no-repeat;
                        }
 
index 2eb2c8c603fd9ae7aab3f037663920ff66a39352..95cfecf59790a17bc9eed0258eab14af2bf1ec3d 100644 (file)
@@ -40,7 +40,7 @@
        margin: 0 0 0 9px;
 }
 .slideshow .pagination li a {
-       background-image:url("/images/elements.png");
+       background-image:url("../images/elements.png");
        background-position:-15px 0;
        width: 15px;
        height: 16px;
@@ -81,4 +81,4 @@
 .slideshow .caption em{
        font-style:italic;
        font-size:21px;
-}
\ No newline at end of file
+}
index 6b2e9e9b45e13b8b1ee58826e88d8f288258e0b8..89ec04b09b61111d89ec8f0ac07b6ea1fef9151d 100644 (file)
@@ -92,7 +92,7 @@ q:after {
 }
 
 .logo {
-       background-image: url("/images/logo.svg");
+       background-image: url("../images/logo.svg");
        width: 392px;
        height: 91px;
        overflow: hidden;
@@ -143,31 +143,31 @@ q:after {
 }
 
 #nav li a[data-name="centre"] {
-       background-image: url("/images/centre.svg?css");
+       background-image: url("../images/centre.svg?css");
        background-position: 50% 0;
        background-repeat: no-repeat;
 }
 
 #nav li a[data-name="parcours"] {
-       background-image: url("/images/parcours.svg?css");
+       background-image: url("../images/parcours.svg?css");
        background-position: 50% 0;
        background-repeat: no-repeat;
 }
 
 #nav li a[data-name="pathologies"] {
-       background-image: url("/images/pathologies.svg?css");
+       background-image: url("../images/pathologies.svg?css");
        background-position: 50% 0;
        background-repeat: no-repeat;
 }
 
 #nav li a[data-name="recherche"] {
-       background-image: url("/images/recherche.svg");
+       background-image: url("../images/recherche.svg");
        background-position: 50% 0;
        background-repeat: no-repeat;
 }
 
 #nav li a[data-name="pratique"] {
-       background-image: url("/images/pratique.svg");
+       background-image: url("../images/pratique.svg");
        background-position: 50% 0;
        background-repeat: no-repeat;
 }
@@ -196,7 +196,7 @@ q:after {
 }
 
 .add-nav li:last-child a {
-       background-image: url("/images/arrow-header.svg");
+       background-image: url("../images/arrow-header.svg");
        background-repeat: no-repeat;
        background-position: 100% 2px;
        padding: 0 19px 0 0;
@@ -257,7 +257,7 @@ q:after {
 .nav li a {
        padding: 0 0 1px 24px;
        display: block;
-       background-image: url("/images/arrow-grey-right.svg");
+       background-image: url("../images/arrow-grey-right.svg");
        background-position: 0 1px;
 }
 
@@ -268,13 +268,13 @@ q:after {
 }
 
 .info-area .box {
-       background-image: url("/images/telephone.svg");
+       background-image: url("../images/telephone.svg");
        padding: 2px 0 30px 38px;
        overflow: hidden;
 }
 
 .info-area .box.information {
-       background-image: url("/images/exclamation.svg");
+       background-image: url("../images/exclamation.svg");
        margin-left: 53px;
 }
 
@@ -384,7 +384,7 @@ q:after {
 }
 
 #content ul li {
-       background-image: url("/images/arrow-li.svg");
+       background-image: url("../images/arrow-li.svg");
        background-position: 0 2px;
        padding: 0 0 3px 30px;
 }
@@ -413,7 +413,7 @@ q:after {
 }
 
 #content blockquote > ul > li {
-       background-image: url("/images/bullet.svg");
+       background-image: url("../images/bullet.svg");
        background-position: 2px 8px;
        padding: 0 0 3px 9px;
        font-style: italic;
@@ -428,7 +428,7 @@ q:after {
 }
 
 #footer .timing .note {
-       background-image: url("/images/horaires.svg");
+       background-image: url("../images/horaires.svg");
        margin: 0 0 28px 53px;
        padding: 0 0 0 37px;
        line-height: 26px;
@@ -499,11 +499,11 @@ q:after {
                text-transform: none;
                padding: 14px 20px;
                margin: 3px 0 0 0;
-               background-image: url("/images/arrow-accordion-bottom.svg");
+               background-image: url("../images/arrow-accordion-bottom.svg");
                background-position: 100% 50%;
 
                &.open {
-                       background-image: url("/images/arrow-accordion-top.svg");
+                       background-image: url("../images/arrow-accordion-top.svg");
                }
        }
 }
index a55e915ef0e0e5b7e525146d3fe65aad9ff12146..d1dda660cf4779d971928c916bc58b15c950c158 100644 (file)
@@ -15,7 +15,7 @@
                                position: relative;
                                left:-30px;
                                padding:0 0 0 30px;
-                               background-image: url("/images/arrow-li.svg");
+                               background-image: url("../images/arrow-li.svg");
                                background-position: 0 5px;
                        }
 
@@ -69,7 +69,7 @@
                                        width:38px;
                                        border-radius: 3px;
                                        background-color:#0ea6db;
-                                       background-image: url("/images/arrow-nav-1.svg");
+                                       background-image: url("../images/arrow-nav-1.svg");
                                        background-position: 50% 50%;
                                        padding:0;
                                }
@@ -84,4 +84,4 @@
                        }
                }
        }
-}
\ No newline at end of file
+}
index 992142e21533b72c394eac3b3dc5b0405ae94fbb..ac81477977c771e9f1f209c6d8f3299cde8b470d 100644 (file)
@@ -82,7 +82,7 @@
                                        height: 15px;\r
                                        position: relative;\r
                                        top: 3px;\r
-                                       background-image: url("/images/arrow-li.svg");\r
+                                       background-image: url("../images/arrow-li.svg");\r
                                        background-size: 100% 100%;\r
                                        transform: rotate(90deg);\r
                                }\r
@@ -96,4 +96,4 @@
                        }\r
                }\r
        }\r
-}
\ No newline at end of file
+}\r
index 8d1ce3e63393e00f68fd715a19fa69cf0d8f0840..1aa7c57caae4be7f4e2945c9a625c5d2704ed642 100644 (file)
@@ -3,17 +3,17 @@
 
 #etapes{
        &[data-nb="6"]{
-               background-image: url("/images/etapes6.png");
+               background-image: url("../images/etapes6.png");
                width:721px;
                height:477px;
        }
        &[data-nb="7"]{
-               background-image: url("/images/etapes7.png");
+               background-image: url("../images/etapes7.png");
                width:709px;
                height:477px;
        }
        &.etoile{
-               background-image: url("/images/etoile.png");
+               background-image: url("../images/etoile.png");
                width:420px;
                height:420px;
                margin: 240px 0px 200px 100px;
@@ -87,4 +87,4 @@
                        font-size: 14px;
                }
        }
-}
\ No newline at end of file
+}
index fef79dd2b47102372c85cdb1c89a3acc4e5297fc..cfa0b6578a920ac35816783c93fa45e8e1fdb468 100644 (file)
@@ -35,7 +35,7 @@
                        position:absolute;
                        right:5px;
                        top:5px;
-                       background-image:url("/images/closeconf.png");
+                       background-image:url("../images/closeconf.png");
                        width:13px;
                        height:13px;
                        display: block;
                float: none;
                text-decoration: none;
        }
-}
\ No newline at end of file
+}
index 67218b9fe6efd63c15045648dac5228ecd617763..b53b1a7b06ed04ad3d22fca2acfb6a913671382c 100644 (file)
@@ -28,7 +28,7 @@
                                padding: 8px 5px 8 39px;
 
                                &:hover, &.active {
-                                       background-image: url("/images/arrow-nav-2.svg");
+                                       background-image: url("../images/arrow-nav-2.svg");
                                        background-position: 22px 14px;
                                        background-color: #c5e9f6;
                                }
@@ -46,7 +46,7 @@
 
        > ul {
                > li:hover, > li.active {
-                       background-image: url("/images/arrow-nav-1.svg");
+                       background-image: url("../images/arrow-nav-1.svg");
                        background-position: 9px 7px;
                        background-color: #57c1e6;
                }