Menu, use bootstrap library

This commit is contained in:
Michael RICOIS 2014-08-25 10:58:25 +00:00
parent c505d07e06
commit 6ca76d42b4
12 changed files with 583 additions and 558 deletions

View File

@ -0,0 +1,352 @@
<?php
/**
* Menu Extranet
* Niveau 1 : Categorie
* Niveau 2 : Page sous les catégories
* Niveau 3 :
*
*
* Gestion des permissions
* permissions => array, only use to make hidden menu for customer
* Les permissions devront être intégrés sur les pages
*
* Recherches
* Entreprise
* Dirigeant
* Annonce
* Actionnaire
* WorldCheck
* Historiques des recherches
* Centrale IparI => Starlinks
* Identité
* Fiche d'identité
* Fiche Procédure Collective => permission
* Liste des établissements
* Modifications INSEE
* Liens Inter-Entreprises
* Informations Groupe
* Dirigeants
* Liste
* Historique
* Élements Financiers
* Synthèse
* Bilans, Compte de résultat
* Ratios
* Flux de trésorerie
* Liasse Fiscale
* Bourse & Cotations
* Relations Bancaires
* Subventions
* Éléments Juridiques
* Annonces Légales
* Information Réglementée
* Compétences Territoriales
* Conventions Collectives
* Marques Déposées
* Banque de France => permission
*
* Evaluation
* IndiScore
* Rapport de Synthèse
* Rapport Complet
* Valorisation
* Enquête Commerciale => permission
* Pièces officielles
* Commande de Pièces
* Compte Annuels
* Actes & Statuts
* Divers
* Saisie
*
* Paramètres
* Général => Préférences, Dernières connexion
* Compte => Les accès autorisés, l'appartenance au service, personne gerant les accès
* A propos
* Version & Nouveautés => Version de l'application
* Assistance => Rappel des éléments de support
* Mentions légales
* Conditions d'utilisation
* Politique de confidentialité
* Utilisation des cookies
* Déconnexion
*/
return array(
array(
'label'=> "Recherches",
'uri' => '#',
'pages' => array(
array(
'label'=> "Entreprise",
'module' => 'default',
'controller' => 'recherche',
'action' => 'entreprise',
),
array(
'label'=> "Dirigeant",
'module' => 'default',
'controller' => 'recherche',
'action' => 'dirigeant',
),
array(
'label'=> "Actionnaire",
'module' => 'default',
'controller' => 'recherche',
'action' => 'actionnaire',
),
array(
'label'=> "Annonce",
'module' => 'default',
'controller' => 'recherche',
'action' => 'annonce',
),
array(
'label'=> "WoldCheck",
'module' => 'default',
'controller' => 'recherche',
'action' => 'worldcheck',
),
),
),
array(
'label'=> "Identité",
'uri' => '#',
'pages' => array(
array(
'label'=> "Fiche Identité",
'module' => 'default',
'controller' => 'identite',
'action' => 'fiche',
),
array(
'label'=> "Fiche Procédure Collective",
'module' => 'default',
'controller' => 'identite',
'action' => 'fichepc',
),
array(
'label'=> "Liste des Établissements",
'module' => 'default',
'controller' => 'identite',
'action' => 'etablissements',
),
array(
'label'=> "Modification Insee",
'module' => 'default',
'controller' => 'identite',
'action' => 'evenements',
),
array(
'label'=> "Liens Inter-Entreprise",
'module' => 'default',
'controller' => 'identite',
'action' => 'liens',
),
array(
'label'=> "Informations Groupe",
'module' => 'default',
'controller' => 'identite',
'action' => 'groupe',
),
),
),
array(
'label'=> "Dirigeants",
'uri' => '#',
'pages' => array(
array(
'label'=> "Liste",
'module' => 'default',
'controller' => 'dirigeant',
'action' => 'liste',
),
array(
'label'=> "Historique",
'module' => 'default',
'controller' => 'dirigeant',
'action' => 'histo',
),
),
),
array(
'label'=> "Éléments Financiers",
'uri' => '#',
'pages' => array(
array(
'label'=> "Synthèse",
'module' => 'default',
'controller' => 'finance',
'action' => 'synthese',
),
array(
'label'=> "Bilans, Compte de Résultat",
'module' => 'default',
'controller' => 'finance',
'action' => 'bilan',
),
array(
'label'=> "Ratios",
'module' => 'default',
'controller' => 'finance',
'action' => 'ratios',
),
array(
'label'=> "Flux de Trésorerie",
'module' => 'default',
'controller' => 'finance',
'action' => 'flux',
),
array(
'label'=> "Liasse Fiscale",
'module' => 'default',
'controller' => 'finance',
'action' => 'liasse',
),
array(
'label'=> "Bourse & Cotations",
'module' => 'default',
'controller' => 'finance',
'action' => 'bourse',
),
array(
'label'=> "Relations Bancaires",
'module' => 'default',
'controller' => 'finance',
'action' => 'banque',
),
array(
'label'=> "Subventions",
'module' => 'default',
'controller' => 'finance',
'action' => 'subventions',
),
),
),
array(
'label'=> "Éléments Juridiques",
'uri' => '#',
'pages' => array(
array(
'label'=> "Annonces Légales",
'module' => 'default',
'controller' => 'juridique',
'action' => 'annonces',
),
array(
'label'=> "Information Réglementée",
'module' => 'default',
'controller' => 'juridique',
'action' => 'infosreg',
),
array(
'label'=> "Compétences Territoriales",
'module' => 'default',
'controller' => 'juridique',
'action' => 'competences',
),
array(
'label'=> "Conventions Collectives",
'module' => 'default',
'controller' => 'juridique',
'action' => 'conventions',
),
array(
'label'=> "Marques Déposées",
'module' => 'default',
'controller' => 'juridique',
'action' => 'marques',
),
),
),
array(
'label'=> "Banque de France",
'uri' => '#',
'pages' => array(),
),
array(
'label'=> "Évaluation",
'uri' => '#',
'pages' => array(
array(
'label'=> "IndiScore",
'module' => 'default',
'controller' => 'evaluation',
'action' => 'indiscore',
),
array(
'label'=> "Rapport de Synthèse",
'module' => 'default',
'controller' => 'evaluation',
'action' => 'indiscore2',
),
array(
'label'=> "Rapport Complet",
'module' => 'default',
'controller' => 'evaluation',
'action' => 'indiscore3',
),
array(
'label'=> "Valorisation",
'module' => 'default',
'controller' => 'evaluation',
'action' => 'valorisation',
),
array(
'label'=> "Enquête Commerciale",
'module' => 'default',
'controller' => 'evaluation',
'action' => 'enquetec',
),
),
),
array(
'label'=> "Piéces Officielles",
'uri' => '#',
'pages' => array(
array(
'label'=> "Commande de Pièces",
'module' => 'default',
'controller' => 'pieces',
'action' => 'commande',
),
array(
'label'=> "Compte Annuels",
'module' => 'default',
'controller' => 'pieces',
'action' => 'bilans',
),
array(
'label'=> "Actes & Statuts",
'module' => 'default',
'controller' => 'pieces',
'action' => 'actes',
),
),
),
array(
'label'=> "Paramètres",
'uri' => '#',
'pages' => array(
array(
'label'=> "Général",
'controller' => 'params',
'action' => 'index',
),
array(
'label'=> "Compte",
'controller' => 'params',
'action' => 'account',
),
array(
'label'=> "A propos",
'controller' => 'params',
'action' => 'about',
),
array(
'label'=> "Deconnexion",
'controller' => 'user',
'action' => 'logout',
),
),
),
);

View File

@ -0,0 +1,10 @@
<?php
class ParamsController extends Zend_Controller_Action
{
public function indexAction(){}
public function accountAction(){}
public function aboutAction(){}
}

View File

@ -1,35 +1,60 @@
<?php if ($this->navigation()->menu()->hasPages()) { ?>
<div id="menu">
<div id="logo">
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
</div>
<?=$this->navigation()->menu();?>
<div class="icones">
<?php if ($this->print) {?>
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
<img alt="<?=$this->translate("Impression")?>" src="/themes/default/images/interfaces/printer.png">
</a>
<?php }?>
<div id="logo">
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
</div>
<?php if ($this->pdf) {?>
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
<img alt="<?=$this->translate("Impression en PDF")?>" src="/themes/default/images/interfaces/pdf.png">
</a>
<?php }?>
<ul class="navigation">
<?php $i = 0; $activeMenudId = 0;?>
<?php foreach ($this->navigation()->getContainer() as $page) {?>
<?php if ($this->xml) {?>
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
<img alt="<?=$this->translate("Export en XML")?>" src="/themes/default/images/interfaces/xml.png">
</a>
<?php }?>
<?php $class = ''; if ( $page->isActive(true) ) { $class = 'active'; $activeMenudId = $i; } $i++; ?>
<li<?php if ( !empty($class) ) { echo ' class="'.$class.'"'; } ?>>
<?php if ($this->aide) {?>
<a id="aideLigne" title="Aide en ligne" href="#">
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default/images/interfaces/aideligne.png">
</a>
<?php }?>
<a href="#" class="header"><?=$page->label?></a>
</div>
<?php if ( $page->hasPages() ) {?>
<ul>
<?php foreach ( $page->getPages() as $child ) {?>
<?php if ( $child->getHref() == '#') {?>
<li class="divider"></li>
<?php } else {?>
<li<?php if ( $child->isActive(true) ) { echo ' class="active"'; } ?>><a href="<?=$child->getHref()?>"><?=$child->label?></a></li>
<?php }?>
<?php }?>
</ul>
<?php } ?>
</li>
<?php }?>
</ul>
<div class="icones">
<?php if ($this->print) {?>
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
<img alt="<?=$this->translate("Impression")?>" src="/themes/default/images/interfaces/printer.png">
</a>
<?php }?>
<?php if ($this->pdf) {?>
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
<img alt="<?=$this->translate("Impression en PDF")?>" src="/themes/default/images/interfaces/pdf.png">
</a>
<?php }?>
<?php if ($this->xml) {?>
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
<img alt="<?=$this->translate("Export en XML")?>" src="/themes/default/images/interfaces/xml.png">
</a>
<?php }?>
<?php if ($this->aide) {?>
<a id="aideLigne" title="Aide en ligne" href="#">
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default/images/interfaces/aideligne.png">
</a>
<?php }?>
</div>
</div>
<script>
$('div#menu ul.navigation').accordion({
@ -37,7 +62,7 @@ $('div#menu ul.navigation').accordion({
autoHeight: false,
collapsible: true,
heightStyle: "content",
active: <?=$this->menuId?>
active: <?=$activeMenudId?>,
});
</script>
<?php }?>

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,13 @@
<pre>
Paramètres
Général => Préférences, Dernières connexion
Compte => Les accès autorisés, l'appartenance au service, personne gerant les accès
A propos
Version & Nouveautés => Version de l'application
Assistance => Rappel des éléments de support
Mentions légales
Conditions d'utilisation
Politique de confidentialité
Utilisation des cookies
Déconnexion
</pre>

View File

@ -0,0 +1 @@
<?php

View File

@ -23,7 +23,6 @@
<div class="row">
<?=$form->raisonSociale?>
</div>
<br/><br/>
<div class="row">
<?=$form->numero?>
<?=$form->voie?>
@ -34,7 +33,6 @@
<div class="row">
<?=$form->telFax?>
</div>
<br/><br/>
<div class="row">
<?=$form->naf?>
</div>

View File

@ -8,74 +8,60 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$layout = Zend_Layout::getMVCInstance();
$controller = $request->getControllerName();
$action = $request->getActionName();
$user = new Scores_Utilisateur();
if ( $user->isLog() && $layout->isEnabled() && $request->getControllerName()!='print' )
{
$controller = $request->getControllerName();
$action = $request->getActionName();
//Disable display of menu
$activateLayout = true;
if ( $request->isXmlHttpRequest() ) {
$activateLayout = false;
}
if ( $controller == 'user' && in_array($action, array('login', 'logout')) ) {
$activateLayout = false;
}
if ( $controller == 'print' ) {
$activateLayout = false;
}
//Override SIRET to complete with zero by left
$siret = $request->getParam('siret');
if ( intval($siret)>100 ) {
$request->setParam('siret', str_pad($siret, 9, '0', STR_PAD_LEFT));
}
//Layout enable - start displaying menu
if ( $layout->isEnabled() && $activateLayout ) {
//Génération du menu
$computeMenu = new Scores_Menu($request->getParams());
$menu = $computeMenu->getMenu();
$view = $layout->getView();
$view->navigation($menu);
$view = $layout->getView();
//Génération identifiant Menu
$view->menuId = $computeMenu->getIdMenu($controller, $action);
//Create menu from config
$config = include APPLICATION_PATH . '/configs/menu.config.php';
$container = new Zend_Navigation($config);
//Test if the user has the right to access the page
$hasPerm = true;
$permPage = $computeMenu->getPagePermission($controller, $action);
if ( !empty($permPage) ) {
$hasPerm = false;
if (is_array($permPage)){
$list = $permPage;
} else if (is_string($permPage)){
$list = (array)$permPage;
}
foreach($list as $permission){
if ($user->checkPerm($permission)){
$hasPerm = true;
break;
}
}
}
//Apply specific parameters, acl - visible
/*foreach ( $container->getPages() as $level1 ) {
foreach ( $level1->getPages() as $page ) {
$page->setParams(array(
'siret' => $siret,
'id' => $id,
));
}
if ( !$hasPerm ) {
}*/
$request->setModuleName('default')
->setControllerName('error')
->setActionName('perms');
//Assign menu to the view
$view->navigation($container);
} else {
//Gestion affichage Lien Print / PDF / XML
$page = new Scores_Export_Print($controller, $action);
//Gestion affichage Lien Print / PDF / XML
$page = new Scores_Export_Print($controller, $action);
if ( $page->exportable('print') ){
$view->print = $page->filename('print', $request->getParams());
}
if ( $page->exportable('pdf') ){
$view->pdf = $page->filename('pdf', $request->getParams());
}
if ( $page->exportable('xml') && in_array($user->getIdClient(), array(1,147) ) ){
$view->xml = $page->filename('xml', $request->getParams());
}
if ($page->exportable('print')){
$view->print = $page->filename('print', $request->getParams());
}
if ($page->exportable('pdf')){
$view->pdf = $page->filename('pdf', $request->getParams());
}
if ($page->exportable('xml') && in_array($user->getIdClient(), array(1,147)) ){
$view->xml = $page->filename('xml', $request->getParams());
}
}
}
//Icone d'aide
if ($layout->isEnabled() && $request->getControllerName()!='recherche')
{
//$view->aide = true;
}
}
}
}

View File

@ -3,15 +3,24 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
//Specify default theme
$theme = 'default'; //$theme = 'mobile';
$auth = Zend_Auth::getInstance();
$theme = 'default'; //$theme = 'mobile';
if ( $auth->hasIdentity() ) {
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : $theme;
}
$controller = $request->getControllerName();
$action = $request->getActionName();
//Login or Logout page - add a special design
$UserLogin = false;
if ( $controller == 'user' && ( $action == 'login' || $action == 'logout' ) ) {
$UserLogin = true;
$theme = 'default';
}
//Sauvegarde des paramètres du themes pour gérer les scripts et styles à utiliser
$paramsTheme = new stdClass();
$paramsTheme->name = $theme;
@ -31,6 +40,13 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
$userAgent = $bootstrap->getResource('useragent');
$device = $userAgent->getDevice();
//Detect IE
$isIE6 = false;
if ( $device->getFeature('browser_name')=='Internet Explorer'
&& $device->getFeature('browser_version')=='6.0' ) {
$isIE6 = true;
}
//Override path for view and layout
$view = $bootstrap->bootstrap('View')->getResource('View');
$view->setBasePath($viewPath);
@ -41,7 +57,10 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
//Load default style and javascript files for the selected theme
switch ( $theme )
{
default:
/**
* Default theme
*/
default:
case 'default':
$view->doctype('HTML5');
@ -67,28 +86,11 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
'href' => '/favicon.ico')
);
$UserLogin = false;
if ( $controller == 'user' && ( $action == 'login' || $action == 'logout' ) ) {
$UserLogin = true;
}
/**
* Detect IE
*/
$isIE6 = false;
if ( $device->getFeature('browser_name')=='Internet Explorer'
&& $device->getFeature('browser_version')=='6.0' ) {
$isIE6 = true;
}
/**
* ===> Standard Styles
*/
if ( $UserLogin ) {
$view->headLink()
->appendStylesheet('/libs/bootstrap-3.2.0/css/bootstrap.min.css', 'all')
->appendStylesheet('/themes/default/styles/user-login.css', 'all');
} else {
$view->headLink()->appendStylesheet('/libs/bootstrap-3.2.0/css/bootstrap.min.css', 'all');
if ( !$UserLogin ) {
$view->headLink()
->appendStylesheet('/libs/pace/themes/pace-theme-flash.css', 'all')
->appendStylesheet($paramsTheme->pathStyle.'/main.css', 'all');
@ -97,28 +99,26 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
if ($isIE6) {
//Old CSS for IE6
$view->headLink()
->appendStylesheet($paramsTheme->pathStyle.'/ie6.css', 'all')
->appendStylesheet('/libs/ui-1.9.2/themes/smoothness/jquery-ui.css', 'all');
->appendStylesheet($paramsTheme->pathStyle.'/ie6.css', 'all')
->appendStylesheet('/libs/ui-1.9.2/themes/smoothness/jquery-ui.css', 'all');
} else {
$view->headLink()
->appendStylesheet('/libs/ui-1.10.4/themes/smoothness/jquery-ui.min.css', 'all');
->appendStylesheet('/libs/ui-1.10.4/themes/smoothness/jquery-ui.min.css', 'all');
}
$view->headLink()->appendStylesheet('/libs/qtip/jquery.qtip.css', 'all');
/**
* ===> Standard Javascript
*/
if ( $UserLogin ) {
$view->headScript()
->appendFile('/libs/html5shiv.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/jquery/jquery-1.11.1.min.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.2.0/js/bootstrap.min.js', 'text/javascript');
} else {
$view->headScript()
->appendFile('/libs/pace/pace.min.js', 'text/javascript')
->appendFile('/libs/jquery/jquery-1.11.1.min.js', 'text/javascript');
}
*/
if ( !$UserLogin ) {
$view->headScript()
->appendFile('/libs/pace/pace.min.js', 'text/javascript');
}
$view->headScript()
->appendFile('/libs/html5shiv.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/jquery/jquery-1.11.1.min.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.2.0/js/bootstrap.min.js', 'text/javascript');
if ($isIE6) {
//Old JQuery version for IE6
@ -131,8 +131,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendFile('/libs/ui-1.10.4/jquery-ui.min.js', 'text/javascript')
->appendFile('/libs/ui-1.10.4/jquery-ui-i18n.min.js', 'text/javascript');
}
if ( ! $UserLogin ) {
if ( !$UserLogin ) {
$view->headScript()
->appendFile('/libs/qtip/jquery.qtip.js', 'text/javascript')
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');
@ -209,7 +208,69 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
}
break;
/**
* New bootstrap theme
*/
case 'bootstrap':
$view->doctype('HTML5');
$view->headMeta()
->appendName('viewport', 'width=device-width, initial-scale=1.0')
->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
->appendHttpEquiv('Content-Language', 'fr-FR');
//Favicon - Touch icon for iOS 2.0+ and Android 2.1+
$view->headLink()->headLink(array(
'rel' => 'apple-touch-icon-precomposed',
'href' => '/favicon-152.png'
));
//Favicon - targeted to any additional png size
$view->headLink()->headLink(array(
'rel' => 'icon',
'type' => 'image/png',
'href' => '/favicon-32.png'
));
$view->headLink()->headLink(array(
'rel' => 'shortcut icon',
'type' => 'image/x-icon',
'href' => '/favicon.ico')
);
/**
* ===> Standard Styles
*/
$view->headLink()->appendStylesheet('/libs/bootstrap-3.2.0/css/bootstrap.min.css', 'all');
$view->headLink()->appendStylesheet('/libs/ui-1.10.4/themes/smoothness/jquery-ui.min.css', 'all');
if ( !$UserLogin ) {
$view->headLink()
->appendStylesheet('/libs/qtip/jquery.qtip.css', 'all')
->appendStylesheet($paramsTheme->pathStyle.'/default.css', 'all');
}
/**
* ===> Standard Javascript
*/
$view->headScript()
->appendFile('/libs/html5shiv.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/jquery/jquery-1.11.1.min.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.2.0/js/bootstrap.min.js', 'text/javascript')
->appendFile('/libs/ui-1.10.4/jquery-ui.min.js', 'text/javascript')
->appendFile('/libs/ui-1.10.4/jquery-ui-i18n.min.js', 'text/javascript');
if ( !$UserLogin ) {
$view->headScript()
->appendFile('/libs/qtip/jquery.qtip.js', 'text/javascript');
}
break;
/**
* Mobile
*/
case 'mobile': //@todo
$view->doctype('HTML5');
@ -242,7 +303,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
//JavaScript
$view->headScript()
->appendFile('/libs/jquery/jquery-2.1.0.min.js', 'text/javascript')
->appendFile('/libs/jquery/jquery-1.11.1.min.js', 'text/javascript')
->appendFile('/libs/mobile/1.4.2/jquery.mobile-1.4.2.min.js', 'text/javascript')
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');

View File

@ -45,7 +45,8 @@ class Application_Form_RechercheEntreprise extends Zend_Form
//siret
$this->addElement('text', 'siret', array(
'filters' => array('StringTrim'),
'label' => 'SIREN',
'label' => 'Identifiant',
'description' => 'SIREN, SIRET, N° TVA, N° RC, R.N.A., ISIN',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
@ -57,7 +58,8 @@ class Application_Form_RechercheEntreprise extends Zend_Form
//raisonSocial
$this->addElement('text', 'raisonSociale', array(
'filters' => array('StringTrim'),
'label' => 'DÉNOMINATION SOCIALE / ENSEIGNE / SIGLE ',
'label' => 'NOM',
'description' => 'Dénomination Sociale, Enseigne, Sigle',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(

View File

@ -1,427 +1,3 @@
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/
audio,
canvas,
progress,
video {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9.
* Hide the `template` element in IE, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background: transparent;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9.
*/
img {
border: 0;
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 1em 40px;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Contain overflow in all browsers.
*/
pre {
overflow: auto;
}
/**
* Address odd `em`-unit font size rendering in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
/* Forms
========================================================================== */
/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
button,
input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
}
/**
* Address `overflow` set to `hidden` in IE 8/9/10.
*/
button {
overflow: visible;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8+, and Opera
* Correct `select` style inheritance in Firefox.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
input {
line-height: normal;
}
/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* Remove default vertical scrollbar in IE 8/9.
*/
textarea {
overflow: auto;
}
/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/* Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/* Main
----------------------------------*/
body {background-color:#bebebe;font-family: Verdana, Arial, sans-serif;font-size:11px;text-align:center; /* pour corriger le bug de centrage IE */ }
@ -487,10 +63,9 @@ img {vertical-align:middle;}
/* Menu
----------------------------------*/
div#menu {position: absolute;width:200px;}
div#menu .ui-widget {font-family:Arial, Sans-serif;font-size:12px;}
div#menu {position:absolute;width:200px;}
div#menu ul.navigation li {list-style-type:none;}
div#menu ul.navigation li a {display:block;padding:0 20px;text-decoration:none;font-weight:bold;color:#fff;height:25px;line-height:25px;background:#808080 url(/themes/default/images/menu/title.gif);}
div#menu ul.navigation li a {display:block;padding:0 20px;text-decoration:none;font-weight:bold;color:#fff;line-height:25px;background:#808080 url(/themes/default/images/menu/title.gif);}
div#menu ul.navigation li ul {padding:0;overflow:hidden;}
div#menu ul.navigation li ul li a {padding:0 5px;margin:0;background:#eee;border-bottom:1px solid #ddd;text-decoration:none;color:#066;font-weight:normal;}
div#menu ul.navigation li ul li a:hover {background:#066 url(/themes/default/images/menu/linkarrow.gif) no-repeat right center; color: #fff;}
@ -510,7 +85,7 @@ div#menu div.icones {text-align:center;margin-top:5px;}
/* Recherche
----------------------------------*/
#center-recherche{text-align:center; padding:0;}
#recherche{margin:78px auto 20px auto;}
#recherche{margin:40px auto 20px auto;}
#recherche h3{color:#ffffff; font-size:medium; font-weight:bold;}
#recherche-info{text-align:center;}
#recherche-page{text-align:center;}