Regroupement des styles

This commit is contained in:
Michael RICOIS 2012-05-03 19:06:09 +00:00
parent b403056e93
commit 599380552d
12 changed files with 224 additions and 326 deletions

View File

@ -58,33 +58,4 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
Zend_Registry::set('db', $db);
}
protected function _initAutoload()
{
require_once APPLICATION_PATH . '/../library/Zend/Loader/Autoloader.php';
$appPath = realpath(dirname(__FILE__));
$rootPath = dirname($appPath);
$autoload = Zend_Loader_Autoloader::getInstance();
$application = new Zend_Loader_Autoloader_Resource(array(
'basePath' => $appPath . '/modules/frontend/models/',
'namespace' => '',
'resourceTypes' => array('tables'=>array('path'=>'Tables/','namespace'=>'Table'),
'objects'=>array('path'=>'Objects/', 'namespace'=>'Object'),
'forms'=>array('path'=>'Forms/', 'namespace'=>'Form')
)));
$libs = new Zend_Loader_Autoloader_Resource(array(
'basePath' => $rootPath . '/library',
'namespace' => 'library',
'resourceTypes' => array('libs'=>array('path'=>'libs/','namespace'=>'Libs'),
)));
$loader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));
return $loader;
}
}
}

View File

@ -9,7 +9,6 @@ class EconomiqueController extends Zend_Controller_Action
public function indexAction()
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -9,7 +9,6 @@ class EntrepriseController extends Zend_Controller_Action
public function indexAction()
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -10,7 +10,6 @@ class FinancierController extends Zend_Controller_Action
public function indexAction()
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields();

View File

@ -10,7 +10,6 @@ class GeographiqueController extends Zend_Controller_Action
public function indexAction()
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
$field = new Fields();

View File

@ -10,7 +10,6 @@ class JuridiqueController extends Zend_Controller_Action
public function indexAction()
{
require_once('Scores/Field.php');
$this->view->headLink()->appendStylesheet('/themes/default/styles/'.$this->getRequest()->getControllerName().'.css', 'all');
$field = new Fields();
$this->view->fields = $field;
}

View File

@ -1,60 +0,0 @@
#economique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#economique select {
width:80px;
}
#economique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#economique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#economique .interval input[type=text]
{
width:100px;
}
#economique select.intervalSelect
{
width:102px;
}
#economique select
{
width:265px;
}
.error {
display:block;
border:1px solid red;
height:40px;
background-color:#F8C5C5;
margin-bottom:5px;
}
.error div {
margin-top:12px;
margin-left:5px;
color:red;
text-shadow: 1px 1px white;
}

View File

@ -1,56 +0,0 @@
#entreprise
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#entreprise select {
width:70%;
}
#entreprise li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#entreprise li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#entreprise li input {
width:125px;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#entreprise .interval input[type=text]
{
width:100px;
}
#entreprise select.intervalSelect
{
width:102px;
}
#entreprise select
{
width:265px;
border:1px solid silver;
}
.resetFamille
{
cursor:pointer;
text-decoration: underline;
}

View File

@ -1,65 +0,0 @@
#financiere
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#financiere select {
width:80px;
}
#financiere li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#financiere li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#financiere select
{
width:100%;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#financiere .interval input[type=text]
{
width:100px;
}
#financiere select.intervalSelect
{
width:102px;
}
#financiere select
{
width:265px;
}
.error {
display:block;
border:1px solid red;
height:40px;
background-color:#F8C5C5;
margin-bottom:5px;
}
.error div {
margin-top:12px;
margin-left:5px;
color:red;
text-shadow: 1px 1px white;
}

View File

@ -1,50 +0,0 @@
#geographique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#geographique select {
width:70%;
}
#geographique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#geographique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#geographique .interval input[type=text]
{
width:100px;
}
.error {
display:block;
border:1px solid red;
height:40px;
background-color:#F8C5C5;
margin-bottom:5px;
}
.error div {
margin-top:12px;
margin-left:5px;
color:red;
text-shadow: 1px 1px white;
}

View File

@ -1,60 +0,0 @@
#juridique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#juridique select {
width:80px;
}
#juridique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#juridique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#juridique .interval input[type=text]
{
width:100px;
}
#juridique select.intervalSelect
{
width:102px;
}
#juridique select
{
width:265px;
}
.error {
display:block;
border:1px solid red;
height:40px;
background-color:#F8C5C5;
margin-bottom:5px;
}
.error div {
margin-top:12px;
margin-left:5px;
color:red;
text-shadow: 1px 1px white;
}

View File

@ -376,4 +376,227 @@ table.ciblage td {
{
color:white;
text-decoration: none;
}
#economique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#economique select {
width:80px;
}
#economique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#economique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#link
{
text-align:right;
margin-top:20px;
font-size:13px;
}
#economique .interval input[type=text]
{
width:100px;
}
#economique select.intervalSelect
{
width:102px;
}
#economique select
{
width:265px;
}
.error {
display:block;
border:1px solid red;
height:40px;
background-color:#F8C5C5;
margin-bottom:5px;
}
.error div {
margin-top:12px;
margin-left:5px;
color:red;
text-shadow: 1px 1px white;
}
#entreprise
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#entreprise select {
width:70%;
}
#entreprise li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#entreprise li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#entreprise li input {
width:125px;
}
#entreprise .interval input[type=text]
{
width:100px;
}
#entreprise select.intervalSelect
{
width:102px;
}
#entreprise select
{
width:265px;
border:1px solid silver;
}
.resetFamille
{
cursor:pointer;
text-decoration: underline;
}
#financiere
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#financiere select {
width:80px;
}
#financiere li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#financiere li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#financiere select
{
width:100%;
}
#financiere .interval input[type=text]
{
width:100px;
}
#financiere select.intervalSelect
{
width:102px;
}
#financiere select
{
width:265px;
}
#geographique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#geographique select {
width:70%;
}
#geographique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#geographique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#geographique .interval input[type=text]
{
width:100px;
}
#juridique
{
font-size:13px;
text-shadow: 1px 1px 1px white;
}
#juridique select {
width:80px;
}
#juridique li {
height:20px;
padding:5px;
border:1px solid silver;
margin-top:2px;
background-image:url('/themes/default/images/stripe.png');
background-repeat: repeat-x;
}
#juridique li:hover {
background-image:url('/themes/default/images/stripe-hover.png');
background-repeat: repeat-x;
}
#juridique .interval input[type=text]
{
width:100px;
}
#juridique select.intervalSelect
{
width:102px;
}
#juridique select
{
width:265px;
}