Michael RICOIS ba1bbb232a Mise en page
2012-02-15 08:47:16 +00:00

109 lines
3.0 KiB
PHTML

<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?>">
<td><b>K<?=$item->id?></b></td>
<td width="26%">
<a href="<?=$this->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $item->siren
), null, true)?>"><?=$this->SirenTexte($item->siren)?></a><br/>
<b><?=$item->raisonSociale?></b>
</td>
<td width="34%">
<?php if ($item->type=='M'){?>
<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/>
<?php } elseif ($item->type=='C') {?>
<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/>
<?=$item->societe?><br/>
<?=$item->nom?><br/>
<?=$item->adresse?><br/>
<?=$item->cp . '&nbsp;' . $item->ville?><br/>
<?php }?>
Email : <?=$item->email?><br/>
Etat : ...
</td>
<td width="34%">
Date de commande : <?=$item->dateCommande?></br>
Date de reception : <?=$item->dateReception?><br/>
<form action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'commandesetatchange', 'type'=>'kbis'))?>">
Changer l'etat : <select name="<?=$item->id?>" class="changeEtat">
<?php foreach($item->cmdEtatSelect as $etat) {?>
<option value="<?=$etat['value']?>"<?=$etat['select']?>><?=$etat['affichage']?></option>
<?php }?>
</select>
</form>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php else:?>
Aucunes commandes.
<?php endif;?>
</div>
</div>