103 lines
2.4 KiB
PHTML
103 lines
2.4 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><br/>
|
|
<?php elseif ($item['type']=='C'):?>
|
|
<u>Commande de kbis original par Courrier</u><br/>
|
|
<?=$item['societe']?><br/>
|
|
<?=$item['nom']?><br/>
|
|
<?=$item['adresse']?><br/>
|
|
<?=$item['cp'] . ' ' . $item['ville']?><br/>
|
|
<?php endif;?>
|
|
Email : <?=$item['email']?><br/>
|
|
Etat : ...
|
|
</td>
|
|
<td width="34%">
|
|
Date de commande : <?=$item['dateCommande']?></br>
|
|
Date de reception : <?=$item['dateReception']?><br/>
|
|
Changer l'etat : ...
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php else:?>
|
|
Aucunes commandes.
|
|
<?php endif;?>
|
|
</div>
|
|
|
|
</div>
|