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" >
2011-07-11 09:46:40 +00:00
< h1 > Gestion des commandes Greffes< / h1 >
2011-06-27 16:08:18 +00:00
< h2 > Rechercher une commande< / h2 >
< div class = "paragraph" >
< form >
2011-07-12 07:41:15 +00:00
< label > N° de commande ou siren</ label >< input type = "text" name = "num" value = " <? = $this -> num ?> " />
2011-06-27 16:08:18 +00:00
< input type = "submit" name = "submit" value = "Ok" / >
< br / >
< / form >
< / div >
< div class = "paragraph" >
< form >
2011-07-12 07:41:15 +00:00
< label > Login</ label >< input type = "text" name = "login" value = " <? = $this -> login ?> " />
< label > Mois< / label >
< select name = "date" >
<?php foreach ( $this -> dateSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
2011-08-22 07:59:00 +00:00
< input type = "submit" name = "submit" value = "Ok" / >
2011-06-27 16:08:18 +00:00
< / form >
< / div >
< div class = "paragraph" >
< form >
2011-07-12 07:41:15 +00:00
< label > Etat< / label >
2011-06-27 16:08:18 +00:00
< select name = "etat" >
<?php foreach ( $this -> etatSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
2011-07-12 07:41:15 +00:00
< label > Mode< / label >
2011-06-27 16:08:18 +00:00
< select name = "mode" >
<?php foreach ( $this -> modeSelect as $item ) : ?>
< option value = " <? = $item [ 'value' ] ?> " <? = $item [ 'select' ] ?> > <? = $item [ 'affichage' ] ?> </ option >
<?php endforeach ; ?>
< / select >
2011-07-12 07:41:15 +00:00
< label > Mois< / label >
2011-06-27 16:08:18 +00:00
< 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 08:20:26 +00:00
< td >< b > <? = $item -> typeCommande ?><? = $item -> idCommande ?> </ b ></ td >
< td width = "20%" >
2011-12-07 09:44:35 +00:00
< a href = " <? = $item -> sirenLien ?> " > <? = $this -> SirenTexte ( $item -> siren ) ?> </ a >< br />
2011-06-27 16:08:18 +00:00
< b >< a href = " <? = $this -> url ( array (
'controller' => 'dashboard',
'action' => 'rs',
2011-12-07 08:20:26 +00:00
'siren' => $item->siren,
), null, true)?>" class="rs">Raison sociale< / a >
2011-06-27 16:08:18 +00:00
< / b >
< / td >
2011-12-07 08:20:26 +00:00
< td width = "40%" >
<?php if ( $item -> typeCommande == 'G' ) : ?>
2011-12-07 09:13:40 +00:00
< u > Commande Greffe standard< / u > < br / >
<?php elseif ( $item -> typeCommande == 'C' ) : ?>
2011-12-14 16:59:10 +00:00
< u > Commande Greffe par < a href = " <? = $this -> url ( array ( 'controller' => 'dashboard' , 'action' => 'courrier' , 'commande' => 'C' . $item -> idCommande )) ?> " target = "_blank" > courrier</ a > S& D</ u >< br />
2011-06-27 16:08:18 +00:00
< a href = " <? = $this -> url ( array (
'controller'=>'dashboard',
'action' => 'courrier',
2011-12-07 08:20:26 +00:00
'commande' => 'C'.$item->idCommande,
2011-06-27 16:08:18 +00:00
), null, true)?>" target="_blank">
Générer le courrier< / a > < br / >
<?php endif ; ?>
2011-12-07 09:13:40 +00:00
Document : <? = $item -> document ?> < br />
< br / >
Ref : <? = $item -> refDocument ?> < br />
Lib : <? = $item -> libDocument ?> < br />
< br / >
2011-12-07 08:20:26 +00:00
Login : <? = $item -> login ?> < br />
Email : <? = $item -> emailCommande ?> < br />
2011-12-07 09:13:40 +00:00
2011-06-27 16:08:18 +00:00
< / td >
2011-12-07 08:20:26 +00:00
< td width = "40%" >
2011-12-13 11:29:10 +00:00
Date de commande : <? = $item -> dateCommande ?> < br />
2011-12-07 09:13:40 +00:00
< b > Date de reception : <? = $item -> dateReception ?> </ b >< br />
< br / >
2011-12-13 15:42:00 +00:00
< form action = " <? = $this -> url ( array ( 'controller' => 'dashboard' , 'action' => 'commandesetatchange' , 'type' => $item -> type )) ?> " >
2011-07-12 07:41:15 +00:00
Changer l'etat :
2011-12-07 08:20:26 +00:00
< select name = " <? = $item -> idCommande ?> " class = "changeEtat" >
<?php foreach ( $item -> cmdEtatSelect as $etat ) { ?>
2011-07-12 07:41:15 +00:00
< option value = " <? = $etat [ 'value' ] ?> " <? = $etat [ 'select' ] ?> > <? = $etat [ 'affichage' ] ?> </ option >
<?php } ?>
< / 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 : ?>
2011-07-11 09:46:40 +00:00
Aucune commandes.
2011-06-27 16:08:18 +00:00
<?php endif ; ?>
< / div >
< / div >