2011-06-27 16:08:18 +00:00
< style type = "text/css" >
table {width:100%; border-collapse:collapse; margin:5px 0;}
table tr.odd {background-color:#e6eeee;}
table tr.even {}
table tr {
border-top:2px solid;
vertical-align:top;
border-bottom:2px solid;
}
table th, table td {border:1px dashed; padding:5px;}
select {font-size:11px;}
< / style >
< div id = "center" >
< h1 > Gestion des commandes KBIS< / h1 >
< h2 > Rechercher une commande< / h2 >
< div class = "paragraph" >
< form >
N° de commande ou siren < input type = "text" name = "num" value = " <? = $this -> num ?> " />
< input type = "submit" name = "submit" value = "Ok" / >
< br / >
< / form >
< / div >
< div class = "paragraph" >
< form >
Etat
< select name = "etat" >
<?php foreach ( $this -> etatSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
< br / >
Mode
< select name = "mode" >
<?php foreach ( $this -> modeSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
< br / >
Mois
< select name = "date" >
<?php foreach ( $this -> dateSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
< input type = "submit" name = "submit" value = "Ok" / >
< / form >
< / div >
< h2 > Liste des commandes< / h2 >
< div class = "paragraph" >
<?php if ( count ( $this -> commandes ) > 0 ) : ?>
< table >
< tbody >
<?php $compteur = 0 ; ?>
<?php foreach ( $this -> commandes as $item ) : ?>
<?php
if ($compteur%2) $class = ' even';
else $class = ' odd';
$compteur++;
?>
< tr class = " <? = $class ?> " >
2011-12-07 10:46:20 +00:00
< td >< b > K<? = $item -> id ?> </ b ></ td >
2011-06-27 16:08:18 +00:00
< td width = "26%" >
< a href = " <? = $this -> url ( array (
'controller' => 'identite',
'action' => 'fiche',
2011-12-07 10:46:20 +00:00
'siret' => $item->siren
2011-12-07 12:34:01 +00:00
), null, true)?>"><? = $this -> SirenTexte ( $item -> siren ) ?> </ a >< br />
< b > <? = $item -> raisonSociale ?> </ b >
2011-06-27 16:08:18 +00:00
< / td >
< td width = "34%" >
2012-02-15 08:38:29 +00:00
<?php if ( $item -> type == 'M' ){ ?>
2012-02-15 08:47:16 +00:00
< u > Commande de kbis par Mail</ u > (< a href = " <? = $this -> url ( array ( 'controller' => 'dashboard' , 'action' => 'courrier' , 'commande' => 'K' . $item -> id )) ?> " target = "_blank" > Courrier</ a > )< br />
2012-02-15 08:38:29 +00:00
<?php } elseif ( $item -> type == 'C' ) { ?>
2011-12-14 16:59:10 +00:00
< u > Commande de kbis original par < a href = " <? = $this -> url ( array ( 'controller' => 'dashboard' , 'action' => 'courrier' , 'commande' => 'K' . $item -> id )) ?> " target = "_blank" > Courrier</ a ></ u >< br />
2011-12-07 10:46:20 +00:00
<? = $item -> societe ?> < br />
<? = $item -> nom ?> < br />
<? = $item -> adresse ?> < br />
<? = $item -> cp . ' ' . $item -> ville ?> < br />
2012-02-15 08:38:29 +00:00
<?php } ?>
2011-12-07 10:46:20 +00:00
Email : <? = $item -> email ?> < br />
2011-06-27 16:08:18 +00:00
Etat : ...
< / td >
< td width = "34%" >
2011-12-07 10:46:20 +00:00
Date de commande : <? = $item -> dateCommande ?> </ br >
Date de reception : <? = $item -> dateReception ?> < br />
2011-12-27 15:23:53 +00:00
< form action = " <? = $this -> url ( array ( 'controller' => 'dashboard' , 'action' => 'commandesetatchange' , 'type' => 'kbis' )) ?> " >
2011-12-07 12:34:01 +00:00
Changer l'etat : < select name = " <? = $item -> id ?> " class = "changeEtat" >
2011-12-07 13:49:35 +00:00
<?php foreach ( $item -> cmdEtatSelect as $etat ) { ?>
2011-12-07 12:34:01 +00:00
< option value = " <? = $etat [ 'value' ] ?> " <? = $etat [ 'select' ] ?> > <? = $etat [ 'affichage' ] ?> </ option >
2011-12-07 13:49:35 +00:00
<?php } ?>
2011-12-07 12:34:01 +00:00
< / select >
2011-12-13 15:42:00 +00:00
< / form >
2011-06-27 16:08:18 +00:00
< / td >
< / tr >
<?php endforeach ; ?>
< / tbody >
< / table >
<?php else : ?>
Aucunes commandes.
<?php endif ; ?>
< / div >
< / div >