47 lines
1.2 KiB
PHTML
Raw Normal View History

<div id="center">
2013-01-15 17:14:31 +00:00
<h1>Ajout d'un service</h1>
2013-01-15 17:14:31 +00:00
<?php if ($this->message) {?>
<?=$this->message?>
<?php } else {?>
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'service'),null,true)?>">
2013-01-15 17:14:31 +00:00
<div class="paragraph">
<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&#039;acc&egrave;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>
</div>
2013-01-15 17:14:31 +00:00
</form>
<?php }?>
</div>