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
+++ /dev/null
-<?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;
- }
-
-}
--- /dev/null
+<?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;
+ }
+
+}
$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);
protected $description;
protected $category;
protected $pathology;
+ protected $promoter;
protected $investigator;
protected $specialities;
$table->addColumn('description', 'text');
$table->addColumn('category', 'integer');
$table->addColumn('pathology', 'text');
+ $table->addColumn('promoter', 'text');
$table->addColumn('investigator', 'text');
$table->addColumn('specialities', 'text');
}
<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>
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';
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() {
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;
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;
}
.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;
}
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;
.slideshow .caption em{
font-style:italic;
font-size:21px;
-}
\ No newline at end of file
+}
}
.logo {
- background-image: url("/images/logo.svg");
+ background-image: url("../images/logo.svg");
width: 392px;
height: 91px;
overflow: hidden;
}
#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;
}
}
.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;
.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;
}
}
.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;
}
}
#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;
}
}
#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;
}
#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;
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");
}
}
}
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;
}
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;
}
}
}
}
-}
\ No newline at end of file
+}
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
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
#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;
font-size: 14px;
}
}
-}
\ No newline at end of file
+}
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
+}
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;
}
> 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;
}