721 |
if (database :: isError($res)) |
if (database :: isError($res)) |
722 |
die($res->getMessage()."erreur ".$sql); |
die($res->getMessage()."erreur ".$sql); |
723 |
|
|
724 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
if ( $res->numRows() > 0 ){ |
725 |
|
|
726 |
|
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
727 |
|
|
728 |
$quartier = $row['quartier']; |
$quartier = $row['quartier']; |
729 |
$arrondissement = $row['arrondissement']; |
$arrondissement = $row['arrondissement']; |
730 |
|
} |
731 |
} |
} |
732 |
} |
} |
733 |
} |
} |
806 |
$this->getQuartierArrondissement($val['parcelle'], $quartier, $arrondissement, $db); |
$this->getQuartierArrondissement($val['parcelle'], $quartier, $arrondissement, $db); |
807 |
$section = $this->getSection($val['parcelle']); |
$section = $this->getSection($val['parcelle']); |
808 |
/*Instructeur*/ |
/*Instructeur*/ |
809 |
if ( empty($this->valF['instructeur']) || $this->valF['instructeur'] == '' && $val['nature'] != '' ){ |
if ( ( empty($this->valF['instructeur']) || $this->valF['instructeur'] == '' ) && $val['nature'] != '' |
810 |
|
&& $quartier != NULL && $arrondissement != NULL ){ |
811 |
|
|
812 |
$instructeur = $this->getInstructeur($quartier, $arrondissement, $section, $val['nature'], $db); |
$instructeur = $this->getInstructeur($quartier, $arrondissement, $section, $val['nature'], $db); |
813 |
|
|
820 |
$this->addToMessage("<br/> "._("Aucun instructeur compatible avec ce dossier trouve, contactez votre administrateur afin d'en assigner un a ce dossier.")." <br/>"); |
$this->addToMessage("<br/> "._("Aucun instructeur compatible avec ce dossier trouve, contactez votre administrateur afin d'en assigner un a ce dossier.")." <br/>"); |
821 |
} |
} |
822 |
} |
} |
823 |
|
|
824 |
|
else |
825 |
|
$this->addToMessage("<br/> "._("Aucun instructeur compatible avec ce dossier trouve, contactez votre administrateur afin d'en assigner un a ce dossier.")." <br/>"); |
826 |
} |
} |
827 |
|
|
828 |
else { |
else { |