Mise a jours de giant majeur de giant !

This commit is contained in:
Damien LASSERRE 2011-09-07 15:32:37 +00:00
parent 35900f7e7e
commit 44fd498398
7 changed files with 1593 additions and 0 deletions

View File

@ -0,0 +1,66 @@
<?php
class FormulairesController extends Zend_Controller_Action
{
protected $entChamps = array('siren', 'raisonSociale', 'numeroVoie', 'Voie', 'cpVille', 'naf');
protected $dirChamps = array('nom', 'prenom', 'dateDeNaissance', 'cpVille');
protected $actChamps = array('siren', 'raisonSociale', 'cpVille', 'Pays', 'actionMin', 'actionMax');
protected $hisChamps = array('annee', 'numeroParution', 'page', 'numeroAnnonce');
public function init()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/main.css', 'all');
}
public function indexAction()
{
$this->_forward('ent');
}
public function hisAction()
{
$his = new Zend_Form();
// Parametres du formulaire...
$this->view->form = $his;
$this->render('form');
}
public function actAction()
{
if(!$this->getRequest()->isPost()) {
$act = new Zend_Form();
$act->setMethod('post');
foreach ($this->actChamps as $champ) {
$chp = $act->createElement('text', $champ, array('label' => $champ))
->setRequired(true);
$act->addElement($chp);
}
$act->addElement('submit', 'Envoyer', array('label' => 'Envoyer'));
$this->view->form = $act;
} else {
echo '<pre>';
print_r($this->getRequest()->getParams());
$this->view->form = 'is allready send !';
}
$this->render('form');
}
public function dirAction()
{
$dir = new Zend_Form();
// Parametres du formulaire...
$this->view->form = $dir;
$this->render('form');
}
public function entAction()
{
$ent = new Zend_Form();
// Parametres du formulaire...
$this->view->form = $ent;
$this->render('form');
}
}

View File

@ -0,0 +1 @@
<i>Powered by S&D</i>

View File

@ -0,0 +1,3 @@
<div id="banner">
<h2>Application de test</h2>
</div>

View File

@ -0,0 +1,27 @@
<?php echo $this->doctype();?>
<html>
<head>
<?php echo $this->headMeta();?>
<?php echo $this->headTitle();?>
<?php echo $this->headStyle();?>
<?php echo $this->headLink();?>
<?php echo $this->headScript();?>
</head>
<body>
<div id="global">
<div id="header">
<?php echo $this->render('header.phtml');?>
</div>
<div id="content">
<div id="menu">
<?php echo $this->render('menu.phtml');?>
</div>
<div id="center">
<?php echo $this->layout()->content;?>
</div>
</div>
<div id="footer">
<?php echo $this->render('footer.phtml');?>
</div>
</div>
</html>

View File

@ -0,0 +1,5 @@
<ul>
<?php for($i = 1; $i < 13 ; $i++):?>
<li>Lien <?php echo $i;?></li>
<?php endfor;?>
</ul>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
/*
Document : main
Created on : 7 sept. 2011, 14:34:33
Author : divx
Description:
Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
#banner {
background-color: silver;
height:150px;
}
#menu {
float:left;
width: 250px;
margin-left: -40px;
margin-top:-17px;
}
#menu ul {
list-style: none;
}
#menu li {
padding:10px;
background-color:silver;
border:1px solid white;
}
#menu li:hover {
background-color: #E6E6E6;
cursor:pointer;
}
#center {
width: 100%;
background-color: #E6E6E6;
margin-top:17px;
margin-left:220px;
height:493px;
padding:5px;
}
#footer {
text-align: center;
margin-top:17px;
background-color: silver;
height: 50px;
}