126 lines
3.4 KiB
PHTML
126 lines
3.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 Greffes</h1>
|
|
|
|
<h2>Rechercher une commande</h2>
|
|
|
|
<div class="paragraph">
|
|
<form>
|
|
<label>N° de commande ou siren</label><input type="text" name="num" value="<?=$this->num?>" />
|
|
<input type="submit" name="submit" value="Ok" />
|
|
<br/>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="paragraph">
|
|
<form>
|
|
<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>
|
|
<input type="submit" name="submit" value="Ok" />
|
|
</form>
|
|
</div>
|
|
|
|
<div class="paragraph">
|
|
<form>
|
|
<label>Etat</label>
|
|
<select name="etat">
|
|
<?php foreach($this->etatSelect as $item):?>
|
|
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
<label>Mode</label>
|
|
<select name="mode">
|
|
<?php foreach($this->modeSelect as $item):?>
|
|
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
<label>Mois</label>
|
|
<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><?=$item['typeCommande']?><?=$item['idCommande']?></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><a href="<?=$this->url(array(
|
|
'controller' => 'dashboard',
|
|
'action' => 'rs',
|
|
'siren' => $item['siren'],
|
|
), null, true)?>" class="rs">Obtenir la raison sociale</a>
|
|
</b>
|
|
</td>
|
|
<td width="34%">
|
|
<?php if ($item['typeCommande']=='G'):?>
|
|
<u>Commande Greffe normal</u><br/>
|
|
<?php elseif ($item['typeCommande']=='C'):?>
|
|
<u>Commande Greffe par courrier S&D</u><br/>
|
|
<a href="<?=$this->url(array(
|
|
'controller'=>'dashboard',
|
|
'action' => 'courrier',
|
|
'commande' => 'C'.$item['idCommande'],
|
|
), null, true)?>" target="_blank">
|
|
Générer le courrier</a><br/>
|
|
<?php endif;?>
|
|
Login : <?=$item['login']?><br/>
|
|
Email : <?=$item['emailCommande']?><br/>
|
|
</td>
|
|
<td width="34%">
|
|
Date de commande : <?=$item['dateCommande']?></br>
|
|
Date de reception : <?=$item['dateReception']?><br/>
|
|
Changer l'etat :
|
|
<select name="<?=$item['idCommande']?>" class="changeEtat">
|
|
<?php foreach($item['cmdEtatSelect'] as $etat) {?>
|
|
<option value="<?=$etat['value']?>"<?=$etat['select']?>><?=$etat['affichage']?></option>
|
|
<?php }?>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php else:?>
|
|
Aucune commandes.
|
|
<?php endif;?>
|
|
</div>
|
|
|
|
</div>
|