Skip to content
Snippets Groups Projects
Commit d5622a15 authored by vinot's avatar vinot
Browse files

correction des vues admin

modification des help text pour les variables admins
parent f48fb01d
Branches
Tags
3 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1000Premier chapitre,!960Premier chapitre v1.1
...@@ -39,9 +39,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action { ...@@ -39,9 +39,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
public function preDispatch() { public function preDispatch() {
$no_front_actions = array(); $no_front_actions = array();
if (!$this->active && $action != 'inactive') {
$request->setActionName('inactive');
$request->setDispatched(false); //force le rechargement du controller avec la nouvelle action
}
// Desactiver le view renderer normal // Desactiver le view renderer normal
if (in_array($this->_request->getParam("action"),$no_front_actions)) { else if (in_array($this->_request->getParam("action"),$no_front_actions)) {
$viewRenderer = $this->getHelper('ViewRenderer'); $viewRenderer = $this->getHelper('ViewRenderer');
$viewRenderer->setNoRender(); $viewRenderer->setNoRender();
} }
...@@ -49,9 +52,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action { ...@@ -49,9 +52,12 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
public function indexAction() { public function indexAction() {
$this->view->titre .= ' :: Index des fonctions'; $this->view->titre .= ' :: Index des fonctions';
} }
function inactiveAction() {
$this->render('inactive');
}
function majRefAction() { function majRefAction() {
$data = false; $data = false;
$pc_ws = new Class_WebService_PremierChapitre(); $pc_ws = new Class_WebService_PremierChapitre();
...@@ -90,7 +96,6 @@ class Admin_PremierChapitreController extends Zend_Controller_Action { ...@@ -90,7 +96,6 @@ class Admin_PremierChapitreController extends Zend_Controller_Action {
$this->view->contenu = '<pre>'.$contenu.'</pre>'; $this->view->contenu = '<pre>'.$contenu.'</pre>';
$this->view->contenu .= "<br/><a href='/admin/premier-chapitre/'>Retour à l'index du service Premier-chapitre</a>"; $this->view->contenu .= "<br/><a href='/admin/premier-chapitre/'>Retour à l'index du service Premier-chapitre</a>";
$this->view->titre .= ' :: Mise à jour de la base'; $this->view->titre .= ' :: Mise à jour de la base';
$this->renderScript('premier-chapitre/index.phtml');
} }
function linkNoticesAction() { function linkNoticesAction() {
......
Service inactif
<div class="titre">
<div class="titreInner">
<h1><?php echo $this->escape($this->title);?></h1>
<div class="rss"></div>
</div>
</div>
<div class="contenu">
<div class="contenuInner">
<div class="news-3 news">
<pre>
<?php
echo $this->contenu;
?></pre>
</div>
</div>
</div>
<?php
$adapter = Zend_Registry::get('sql');
$adapter->query('CREATE TABLE IF NOT EXISTS `pc_database` ( '
.'`ean` varchar(17) NOT NULL, '
.'`url` varchar(250) NOT NULL, '
.'`titre` text NOT NULL, '
.'`auteur` text NOT NULL, '
.'`couverture` varchar(250) NOT NULL, '
.'`couverture_mini` varchar(250) NOT NULL, '
.'`clef_oeuvre` varchar(200) NOT NULL '
.') engine=MyISAM default charset=utf8;');
$adapter->query('ALTER TABLE `pc_database` ADD PRIMARY KEY (`ean`), ADD UNIQUE KEY `ean` (`ean`);');
?>
\ No newline at end of file
...@@ -211,9 +211,8 @@ class Class_AdminVarLoader extends Storm_Model_Loader { ...@@ -211,9 +211,8 @@ class Class_AdminVarLoader extends Storm_Model_Loader {
'NEWSLETTER_UNSUBSCRIBE_HTML' => Class_AdminVar_Meta::newDefault($this->_('Texte de désinscription version HTML<br/>Le lien de désinscription est appliqué sur tout ce texte<br/>Par défaut : Je ne veux plus recevoir cette lettre d\'information'), 'NEWSLETTER_UNSUBSCRIBE_HTML' => Class_AdminVar_Meta::newDefault($this->_('Texte de désinscription version HTML<br/>Le lien de désinscription est appliqué sur tout ce texte<br/>Par défaut : Je ne veux plus recevoir cette lettre d\'information'),
['value' => $this->_('Je ne veux plus recevoir cette lettre d\'information')]), ['value' => $this->_('Je ne veux plus recevoir cette lettre d\'information')]),
'PREMIERCHAPITRE_BIB_ID' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : identifiant de la bibliothèque')), 'PREMIERCHAPITRE_BIB_ID' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : identifiant de la bibliothèque')),
'PREMIERCHAPITRE_BMID' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : identifiant de la bibliothèque')), 'PREMIERCHAPITRE_BMID' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : identifiant de connexion')),
'PREMIERCHAPITRE_BMKEY' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : clé')), 'PREMIERCHAPITRE_BMKEY' => Class_Adminvar_Meta::newDefault($this->_('Premier Chapitre : mot de passe'))
]; ];
return $this->_knownVars; return $this->_knownVars;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
class Class_WebService_PremierChapitre {// extends Class_WebService_Abstract { - on redefini l'ensemble du modele a l'identique class Class_WebService_PremierChapitre {
protected $_message; protected $_message;
protected static $_http_client; protected static $_http_client;
protected static $_auth = false; protected static $_auth = false;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment