Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/promotion/user.phtml |
<div class="table-box">
<table class="table">
<tr><td><h5>Remises associ�es aux clients</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-2 no-space-top"><label>Anniversaire de l'inscription</label></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="1" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-2 no-space-top"><label>Si c'est la premiere commande</label></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="2" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique au client</label></div>
<div class="col-md-10 no-space-top">
<select name="iduser" class="form-control">
<option value="0">S�lectionner un Client</option>
<?php
$listAllUser = $this->listAllUser ;
foreach($listAllUser as $row) {
?>
<option value="<?php echo $this->escape($row['IDUSER']); ?>">
<?php echo $row['NOM']." ".$row['PRENOM'] ; ?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="col-md-12 no-space-side">
<div class="col-md-2 no-space-top"></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="3" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un client et une marque</label></div>
<div class="col-md-10 no-space-top">
<div class="col-md-6 no-space-top no-space-side">
<select name="iduser" class="form-control">
<option value="0">S�lectionner un Client</option>
<?php
$listAllUser = $this->listAllUser ;
foreach($listAllUser as $row) {
?>
<option value="<?php echo $this->escape($row['IDUSER']); ?>">
<?php echo $row['NOM']." ".$row['PRENOM'] ; ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-md-6 no-space-top no-space-side">
<select name="idbrend" class="form-control">
<option value="0">S�lectionner une Marque</option>
<?php
$listAllBrend = $this->listbrend ;
foreach($listAllBrend as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['BREND']; ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="col-md-12 no-space-side">
<div class="col-md-2 no-space-top"></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="4" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un code interne et une marque</label></div>
<div class="col-md-10 no-space-top">
<div class="col-md-6 no-space-top no-space-side">
<select name="idcintern" class="form-control">
<option value="0">S�lectionner un Code Interne</option>
<?php
$listAllCIntern = $this->listAllCIntern ;
foreach($listAllCIntern as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['CODE']." - ".$row['LABEL'] ; ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-md-6 no-space-top no-space-side">
<select name="idbrend" class="form-control">
<option value="0">S�lectionner une Marque</option>
<?php
$listAllBrend = $this->listbrend ;
foreach($listAllBrend as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['BREND']; ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="col-md-12 no-space-side">
<div class="col-md-2 no-space-top"></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="5" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
</table>
</div>
<div class="table-box">
<table class="table">
<tr><td colspan="3"><h5>Remises effectives</h5></td></tr>
<?php
if ($this->dateInsc) {
$remise = $this->dateInsc;
?>
<tr >
<td >Si la date anniversaire est atteinte
</td>
<td><span >Remise de <b>
<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])." %"; } ?></b>
</span> </td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php }
if ($this->firstCmd) {
$remise = $this->firstCmd;
?>
<tr >
<td >Si c'est la premiere commande
</td>
<td>
<span >Remise de <b>
<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])." %"; } ?></b>
</span> </td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } ?>
<?php
if ($this->listUser) {
$listUser = $this->listUser;
foreach($listUser as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
<?php echo $row['NOM'].' '.$row['PRENOM'];?>
</a> remise sur les commandes
</td>
<td >
<div>Remise de <b>
<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])." %"; } ?></b>
</div>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listUserBrend) {
$listUserBrend = $this->listUserBrend;
foreach($listUserBrend as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
<?php echo $row['NOM'].' '.$row['PRENOM'];?>
</a> pour les produits de la marque
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
<?php echo $row['BREND']; ?>
</a>
</td>
<td >
<div >Remise de <b>
<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])." %"; } ?></b>
</div>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listCinternBrend) {
$listCinternBrend = $this->listCinternBrend;
foreach($listCinternBrend as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne">
<?php echo $row['CODEINTERN'].' - '.$row['LABELINTERN'];?>
</a> pour les produits de la marque
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
<?php echo $row['BREND']; ?>
</a>
</td>
<td >
<div >Remise de <b>
<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])." %"; } ?></b>
</div>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
</table>
</div>