132 lines
3.6 KiB
PHTML
132 lines
3.6 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="20%">
|
|
<a href="<?=$item->sirenLien?>"><?=$this->SirenTexte($item->siren)?></a><br/>
|
|
<b><a href="<?=$this->url(array(
|
|
'controller' => 'dashboard',
|
|
'action' => 'rs',
|
|
'siren' => $item->siren,
|
|
), null, true)?>" class="rs">Raison sociale</a>
|
|
</b>
|
|
</td>
|
|
<td width="40%">
|
|
<?php if ($item->typeCommande=='G'):?>
|
|
<u>Commande Greffe standard</u><br/>
|
|
<?php elseif ($item->typeCommande=='C'):?>
|
|
<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/>
|
|
<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;?>
|
|
|
|
Document : <?=$item->document?> <br/>
|
|
<br/>
|
|
Ref : <?=$item->refDocument?><br/>
|
|
Lib : <?=$item->libDocument?><br/>
|
|
<br/>
|
|
Login : <?=$item->login?><br/>
|
|
Email : <?=$item->emailCommande?><br/>
|
|
|
|
</td>
|
|
<td width="40%">
|
|
Date de commande : <?=$item->dateCommande?><br/>
|
|
<b>Date de reception : <?=$item->dateReception?></b><br/>
|
|
<br/>
|
|
<form action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'commandesetatchange', 'type'=>'greffe'))?>">
|
|
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>
|
|
</form>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<?php else:?>
|
|
Aucune commandes.
|
|
<?php endif;?>
|
|
</div>
|
|
|
|
</div>
|