2012-10-17 07:52:44 +00:00
|
|
|
<div id="center">
|
2013-01-15 17:14:31 +00:00
|
|
|
|
2012-10-17 07:52:44 +00:00
|
|
|
<h1>Ajout d'un service</h1>
|
2013-01-15 17:14:31 +00:00
|
|
|
|
|
|
|
<?php if ($this->message) {?>
|
|
|
|
|
|
|
|
<?=$this->message?>
|
|
|
|
|
|
|
|
<?php } else {?>
|
|
|
|
|
2012-10-17 07:52:44 +00:00
|
|
|
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'service'),null,true)?>">
|
2013-01-15 17:14:31 +00:00
|
|
|
<div class="paragraph">
|
|
|
|
|
2012-10-17 07:52:44 +00:00
|
|
|
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
|
|
|
|
Code <input type="text" name="code" value="<?=$this->code?>" />,
|
|
|
|
Libellé <input type="text" name="label" value="<?=$this->label?>" />
|
2013-01-15 17:14:31 +00:00
|
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Droits d'accès</div>
|
|
|
|
<div class="infoData">
|
|
|
|
<?php foreach($this->wscategory as $category) {?>
|
|
|
|
<fieldset>
|
|
|
|
<legend><?=$category->desc?></legend>
|
|
|
|
<?php
|
|
|
|
foreach($category->droits->item as $droit) {
|
|
|
|
$droit = strtolower($droit);
|
|
|
|
if (in_array($droit, $this->droitsClients)) {
|
|
|
|
$check = '';
|
|
|
|
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
|
|
|
$check = ' checked';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input type="checkbox" name="droits[]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
|
|
|
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</fieldset>
|
|
|
|
<?php }?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Ajouter" class="button"/></p></div>
|
2012-10-17 07:52:44 +00:00
|
|
|
</div>
|
2013-01-15 17:14:31 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php }?>
|
|
|
|
|
2012-10-17 07:52:44 +00:00
|
|
|
</div>
|