Mise a jours de giant majeur de giant !
This commit is contained in:
parent
35900f7e7e
commit
44fd498398
66
sphinxPHP/application/controllers/FormulairesController.php
Executable file
66
sphinxPHP/application/controllers/FormulairesController.php
Executable 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');
|
||||
}
|
||||
|
||||
}
|
||||
|
1
sphinxPHP/application/views/default/scripts/footer.phtml
Executable file
1
sphinxPHP/application/views/default/scripts/footer.phtml
Executable file
@ -0,0 +1 @@
|
||||
<i>Powered by S&D</i>
|
3
sphinxPHP/application/views/default/scripts/header.phtml
Executable file
3
sphinxPHP/application/views/default/scripts/header.phtml
Executable file
@ -0,0 +1,3 @@
|
||||
<div id="banner">
|
||||
<h2>Application de test</h2>
|
||||
</div>
|
27
sphinxPHP/application/views/default/scripts/main.phtml
Executable file
27
sphinxPHP/application/views/default/scripts/main.phtml
Executable 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>
|
5
sphinxPHP/application/views/default/scripts/menu.phtml
Executable file
5
sphinxPHP/application/views/default/scripts/menu.phtml
Executable file
@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
<?php for($i = 1; $i < 13 ; $i++):?>
|
||||
<li>Lien <?php echo $i;?></li>
|
||||
<?php endfor;?>
|
||||
</ul>
|
1436
sphinxPHP/library/Sphinx/rechercheFonc.php
Normal file
1436
sphinxPHP/library/Sphinx/rechercheFonc.php
Normal file
File diff suppressed because it is too large
Load Diff
55
sphinxPHP/public/themes/default/styles/main.css
Executable file
55
sphinxPHP/public/themes/default/styles/main.css
Executable 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user