| Line 17... |
Line 17... |
| 17 |
// | |
|
17 |
// | |
|
| 18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
| 22 |
// CVS : $Id: annuaire.fonct.php,v 1.6 2007-04-06 08:35:46 neiluj Exp $
|
22 |
// CVS : $Id: annuaire.fonct.php,v 1.7 2007-04-11 08:30:12 neiluj Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Fonctions du module annuaire
|
24 |
* Fonctions du module annuaire
|
| 25 |
*
|
25 |
*
|
| 26 |
* Fonctions du module annuaire
|
26 |
* Fonctions du module annuaire
|
| 27 |
*
|
27 |
*
|
| Line 29... |
Line 29... |
| 29 |
//Auteur original :
|
29 |
//Auteur original :
|
| 30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
| 32 |
*@author Aucun
|
32 |
*@author Aucun
|
| 33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
| 34 |
*@version $Revision: 1.6 $
|
34 |
*@version $Revision: 1.7 $
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
*/
|
36 |
*/
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
| 39 |
// | ENTETE du PROGRAMME |
|
39 |
// | ENTETE du PROGRAMME |
|
| Line 40... |
Line 40... |
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 41... |
Line 41... |
| 41 |
|
41 |
|
| 42 |
include_once "HTML/QuickForm.php" ;
|
42 |
//include_once "HTML/QuickForm.php" ;
|
| 43 |
|
43 |
|
| Line 44... |
Line 44... |
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| 45 |
// | LISTE de FONCTIONS |
|
45 |
// | LISTE de FONCTIONS |
|
| 46 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
| 47 |
|
47 |
|
| 48 |
/** function Annuaire_recherche () Moteur de recherche dans l'annuaire des inscrits
|
48 |
/** function inscription_onglets() Affiche les onglets de présentation de la structure
|
| 49 |
*
|
49 |
*
|
| - |
|
50 |
*
|
| - |
|
51 |
*
|
| - |
|
52 |
* @return string HTML
|
| - |
|
53 |
*/
|
| - |
|
54 |
function inscription_onglets() {
|
| - |
|
55 |
$res='<ul id="onglets_inscription">'."\n";
|
| - |
|
56 |
//partie présentation
|
| - |
|
57 |
$GLOBALS['ins_url']->addQueryString('voir_fiche', $_GET['voir_fiche']);
|
| - |
|
58 |
$res .= '<li id="fiche"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_PRESENTATION.'</a>'."\n".'</li>'."\n";
|
| - |
|
59 |
$GLOBALS['ins_url']->removeQueryString('voir_fiche');
|
| - |
|
60 |
//partie abonnement
|
| - |
|
61 |
$GLOBALS['ins_url']->addQueryString('voir_abonnement', $_GET['voir_fiche']);
|
| - |
|
62 |
$res .= '<li id="abonnements"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_ABONNEMENTS.'</a></li>'."\n" ;
|
| - |
|
63 |
$GLOBALS['ins_url']->removeQueryString('voir_abonnement');
|
| - |
|
64 |
//partie actualites
|
| - |
|
65 |
$GLOBALS['ins_url']->addQueryString('voir_actus', $_GET['voir_fiche']);
|
| - |
|
66 |
$res .= '<li id="actus"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_ACTUALITES.'</a>'."\n".'</li>'."\n";
|
| - |
|
67 |
$GLOBALS['ins_url']->removeQueryString('voir_actus');
|
| - |
|
68 |
//partie ressources
|
| - |
|
69 |
$GLOBALS['ins_url']->addQueryString('voir_ressources', $_GET['voir_fiche']);
|
| - |
|
70 |
$res .= '<li id="ressources"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_RESSOURCES.'</a>'."\n".'</li>'."\n";
|
| - |
|
71 |
$GLOBALS['ins_url']->removeQueryString('voir_ressources');
|
| - |
|
72 |
//partie competences
|
| - |
|
73 |
$GLOBALS['ins_url']->addQueryString('voir_competences', $_GET['voir_fiche']);
|
| - |
|
74 |
$res .= '<li id="competences"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_COMPETENCES.'</a>'."\n".'</li>'."\n";
|
| Line -... |
Line 75... |
| - |
|
75 |
$GLOBALS['ins_url']->removeQueryString('voir_competences');
|
| - |
|
76 |
$res.= '</ul>'."\n";
|
| - |
|
77 |
return $res;
|
| - |
|
78 |
}
|
| - |
|
79 |
|
| - |
|
80 |
/** function Annuaire_recherche () Moteur de recherche dans l'annuaire des inscrits
|
| 50 |
*
|
81 |
*
|
| 51 |
*
|
82 |
*
|
| 52 |
* @return string HTML
|
83 |
*
|
| 53 |
*/
|
84 |
* @return string HTML
|
| 54 |
|
85 |
*/
|
| Line 64... |
Line 95... |
| 64 |
' : </td>'."\n".
|
95 |
' : </td>'."\n".
|
| 65 |
'<td style="padding:5px;text-align:left;">{element}</td>'."\n".
|
96 |
'<td style="padding:5px;text-align:left;">{element}</td>'."\n".
|
| 66 |
'</tr>'."\n" );
|
97 |
'</tr>'."\n" );
|
| 67 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan=2 style="padding:5px;">{label}{element}</td>'."\n".'</tr>'."\n", 'bouton_rechercher');
|
98 |
$squelette->setElementTemplate( '<tr>'."\n".'<td colspan=2 style="padding:5px;">{label}{element}</td>'."\n".'</tr>'."\n", 'bouton_rechercher');
|
| Line 68... |
Line 99... |
| 68 |
|
99 |
|
| 69 |
//$option_type=array ('0' => INS_PERSONNES_OU_STRUCTURES,
|
100 |
$option_type=array ('0' => INS_PERSONNES_OU_STRUCTURES,
|
| 70 |
// '1' => INS_PERSONNES,
|
101 |
'1' => INS_PERSONNES,
|
| 71 |
// '2' => INS_STRUCTURES);
|
102 |
'2' => INS_STRUCTURES);
|
| Line 72... |
Line 103... |
| 72 |
$form->addElement('hidden', 'nom_type', 0);
|
103 |
$form->addElement('select', 'nom_type', INS_JE_RECHERCHE, $option_type);
|
| 73 |
|
104 |
|
| 74 |
//requete pour recuperer la liste des pays
|
105 |
//requete pour recuperer la liste des pays
|
| 75 |
$requete = 'SELECT '.INS_CHAMPS_ID_PAYS.', '.INS_CHAMPS_LABEL_PAYS.' FROM '.INS_TABLE_PAYS.' WHERE '.INS_CHAMPS_I18N_PAYS.'="fr-FR"';
|
106 |
$requete = 'SELECT '.INS_CHAMPS_ID_PAYS.', '.INS_CHAMPS_LABEL_PAYS.' FROM '.INS_TABLE_PAYS.' WHERE '.INS_CHAMPS_I18N_PAYS.'="fr-FR"';
|
| Line 260... |
Line 291... |
| 260 |
}
|
291 |
}
|
| Line 261... |
Line 292... |
| 261 |
|
292 |
|
| 262 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
293 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 263 |
*
|
294 |
*
|
| - |
|
295 |
* $Log: not supported by cvs2svn $
|
| - |
|
296 |
* Revision 1.4 2006/04/10 14:01:36 florian
|
| - |
|
297 |
* uniformisation de l'appli bottin: plus qu'un fichier de fonctions
|
| - |
|
298 |
*
|
| - |
|
299 |
* Revision 1.3 2006/04/04 12:23:05 florian
|
| - |
|
300 |
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
|
| 264 |
* $Log: not supported by cvs2svn $
|
301 |
*
|
| 265 |
* Revision 1.2 2005/09/29 16:13:54 alexandre_tb
|
302 |
* Revision 1.2 2005/09/29 16:13:54 alexandre_tb
|
| 266 |
* En cours de production.
|
303 |
* En cours de production.
|
| 267 |
*
|
304 |
*
|
| 268 |
* Revision 1.1 2005/09/22 14:02:49 ddelon
|
305 |
* Revision 1.1 2005/09/22 14:02:49 ddelon
|
| Line 285... |
Line 322... |
| 285 |
*
|
322 |
*
|
| 286 |
*
|
323 |
*
|
| 287 |
*
|
324 |
*
|
| 288 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
325 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 289 |
*/
|
326 |
*/
|
| 290 |
?>
|
327 |
?>
|
| 291 |
|
328 |
|