Subversion Repositories eFlore/Applications.coel-consultation

Compare Revisions

Ignore whitespace Rev 117 → Rev 118

/trunk/controleurs/FicheStructure.php
187,6 → 187,7
$personnel['_courriel_'] = $this->formaterCourriels($personnel['_courriel_']);
$personnel['_contact_'] = $this->formaterOuiNon($personnel['csap_mark_contact']);
$personnel['_specialite_'] = $this->construireTxtListeOntologie($personnel['cp_ce_truk_specialite']);
$personnel['_url_'] = $this->obtenirUrlFichePersonne($personnel['csap_id_personne']);
}
}
}
/trunk/modeles/StructureDao.php
23,8 → 23,8
* @param integer l'id de la structure.
* @return array un tableau contenant les informations sur la structure.
*/
public function getStructure($id) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id/*";
public function getStructure($id_structure) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id_structure/*";
$json = file_get_contents($url);
$donnees = json_decode($json, true);
return $donnees['structures'];
49,8 → 49,8
* @param integer l'id de la structure.
* @return array un tableau contenant les informations sur le personnel de la structure.
*/
public function getPersonnel($id) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id";
public function getPersonnel($id_structure) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id_structure";
$json = file_get_contents($url);
$donnees = json_decode($json, true);
$personnes = $donnees['structuresAPersonne'];
/trunk/squelettes/fiche_structure.tpl.html
72,6 → 72,7
<thead>
<tr>
<th>Fonction</th>
<th>Nom Complet</th>
<th>Prénom</th>
<th>Nom</th>
<th>Tél. Fixe / Fax</th>
86,6 → 87,7
<?php foreach ($personnel as $personne) : ?>
<tr>
<td><?=$personne['_fonction_']?></td>
<td><a href="<?=$personne['_url_']?>" title="Accèder à la fiche de la personne"><?=$personne['cp_fmt_nom_complet']?></a></td>
<td><?=$personne['cp_prenom']?></td>
<td><?=$personne['cp_nom']?></td>
<td><?=$personne['_tel_fax_']?></td>
173,7 → 175,7
<?php if (count($collections) > 0) : ?>
<ul>
<?php foreach ($collections as $collection) : ?>
<li><a href="<?=$collection['_url_']?>"><?=$collection['cc_nom']?></a></li>
<li><a href="<?=$collection['_url_']?>" title="Accèder à la fiche de la collection"><?=$collection['cc_nom']?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>