Issue #0001788: [Dirigeants Opérationnels] utilisation de jo.bodacc_fonctions

This commit is contained in:
Aram HARUTYUNYAN 2014-03-20 06:22:32 +00:00
parent ac9001bc06
commit e042c987b8

View File

@ -15,8 +15,8 @@
<div class="fieldgrp"><label><?=$this->translate("Fonction") ?></label>
<div class="field"><select name="codFct" style="width:380px;">
<option value="0000">-</option>
<?php foreach ($this->fonction as $key=>$val) { ?>
<option value="<?=$key ?>"><?=$val?></option>
<?php foreach ($this->fonction as $val) { ?>
<option value="<?=$val->codeFct ?>"><?=$val->libelle?></option>
<?php }?>
</select>
</div></div>
@ -30,9 +30,9 @@
<div class="fieldgrp"><label><?=$this->translate("Fonction") ?></label>
<div class="field"><select name="codFct" style="width:380px;>
<option value="0000">-</option>
<?php foreach ($this->fonction as $key=>$val) {
$selected=(intval($key)==intval($this->infos->Code))?"selected":""; ?>
<option value="<?=$key ?>" <?=$selected?>><?=$val?></option>
<?php foreach ($this->fonction as $val) {
$selected=(intval($val->codeFct)==intval($this->infos->Code))?"selected":""; ?>
<option value="<?=$key ?>" <?=$selected?>><?=$val->libelle?></option>
<?php }?>
</select>
</div></div>
@ -72,7 +72,7 @@ $('input[name=recherche]').on("focus", function(){
$('input[name=recherche]').autocomplete({
minLength: 3,
delay: 500,
delay: 750,
source: function(request, response) {
var recherche = $('input[name=recherche]').val();
$.getJSON('<?=$this->url(array('controller'=>'saisie','action'=>'diropsearch'),null,true)?>',