| 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.php,v 1.3 2005-10-03 09:38:42 alexandre_tb Exp $
|
22 |
// CVS : $Id: annuaire.php,v 1.4 2006-04-04 12:23:05 florian Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* programme principal du module annuaire
|
24 |
* programme principal du module annuaire
|
| 25 |
*
|
25 |
*
|
| 26 |
* programme principal du module annuaire
|
26 |
* programme principal du module annuaire
|
| 27 |
*
|
27 |
*
|
| Line 30... |
Line 30... |
| 30 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 31 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
31 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
| 32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
| 33 |
*@author Aucun
|
33 |
*@author Aucun
|
| 34 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@copyright Tela-Botanica 2000-2004
|
| 35 |
*@version $Revision: 1.3 $
|
35 |
*@version $Revision: 1.4 $
|
| 36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
| 37 |
*/
|
37 |
*/
|
| Line 38... |
Line 38... |
| 38 |
|
38 |
|
| 39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 46... |
Line 46... |
| 46 |
if (!isset($GLOBALS['lang'])) {
|
46 |
if (!isset($GLOBALS['lang'])) {
|
| 47 |
$GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
|
47 |
$GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
|
| 48 |
}
|
48 |
}
|
| 49 |
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
|
49 |
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
|
| Line -... |
Line 50... |
| - |
|
50 |
|
| - |
|
51 |
if (isset($_REQUEST['voir_fiche'])) {
|
| - |
|
52 |
//---------------le menu de l'appli-----------
|
| - |
|
53 |
function afficherContenuNavigation () {
|
| - |
|
54 |
$res =inscription_onglets();
|
| - |
|
55 |
return $res ;
|
| - |
|
56 |
}
|
| - |
|
57 |
}
|
| 50 |
|
58 |
|
| 51 |
/**
|
59 |
/**
|
| 52 |
* Renvoie le code HTML de l'application
|
60 |
* Renvoie le code HTML de l'application
|
| 53 |
*
|
61 |
*
|
| 54 |
* @return string HTML
|
62 |
* @return string HTML
|
| 55 |
*/
|
63 |
*/
|
| - |
|
64 |
function afficherContenuCorps () {
|
| - |
|
65 |
if ( isset($_GET['voir_fiche']) or isset($_GET['voir_abonnement']) or isset($_GET['voir_actus']) or isset($_GET['voir_ressources']) or isset($_GET['voir_competences']) ) {
|
| 56 |
function afficherContenuCorps () {
|
66 |
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
|
| 57 |
$res = '<h1 class="annuaire_titre1">'.ANN_TITRE.'</h1>'."\n" ;
|
67 |
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
|
| - |
|
68 |
if ( isset($_GET['voir_fiche']) ) {
|
| - |
|
69 |
$res=info($_GET['voir_fiche'], 'fiche');
|
| - |
|
70 |
} elseif (isset($_GET['voir_abonnement'])) {
|
| 58 |
if (!$GLOBALS['AUTH']->getAuth()) {
|
71 |
|
| - |
|
72 |
} elseif (isset($_GET['voir_actus'])) {
|
| - |
|
73 |
|
| - |
|
74 |
} elseif (isset($_GET['voir_ressources'])) {
|
| - |
|
75 |
|
| - |
|
76 |
} elseif (isset($_GET['voir_competences'])) {
|
| - |
|
77 |
|
| - |
|
78 |
}
|
| - |
|
79 |
|
| 59 |
$res .= ANN_LOGUEZ_VOUS ;
|
80 |
|
| 60 |
} else {
|
- |
|
| 61 |
// Le code javascript des cases à cocher
|
- |
|
| 62 |
$java =
|
- |
|
| 63 |
'function setCheckboxes(the_form) {
|
81 |
} else {
|
| 64 |
var do_check = document.forms[the_form].elements[\'selecttotal\'].checked;
|
82 |
$res = '<h1 class="annuaire_titre1">'.INS_ANNUAIRE_MEMBRES.'</h1>'."\n" ;
|
| 65 |
var elts = document.forms[the_form].elements[\'select[]\'];
|
83 |
if (!$GLOBALS['AUTH']->getAuth()&&INS_NECESSITE_LOGIN) {
|
| 66 |
var elts_cnt = (typeof(elts.length) != \'undefined\')
|
- |
|
| 67 |
? elts.length
|
- |
|
| 68 |
: 0;
|
- |
|
| 69 |
if (elts_cnt) {
|
- |
|
| 70 |
for (var i = 0; i < elts_cnt; i++) {
|
- |
|
| 71 |
elts[i].checked = do_check;
|
- |
|
| 72 |
} // Fin for
|
84 |
$res .= '<p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
|
| 73 |
} else {
|
- |
|
| 74 |
elts.checked = do_check;
|
- |
|
| 75 |
}// Fin if... else
|
- |
|
| 76 |
return true;
|
85 |
} else {
|
| 77 |
} // Fin de la fonction setCheckboxes()';
|
- |
|
| 78 |
GEN_stockerCodeScript($java) ;
|
- |
|
| 79 |
|
86 |
// S'il y a un mail a envoyé, on l'envoie
|
| 80 |
$res .= '<h2 class="annuaire_titre2">'.ANN_CLIQUEZ_LETTRE.'</h2>'."\n";
|
87 |
if (isset($_POST['select']) && is_array ($_POST['select'])) $res .= envoie_mail_depuis_annuaire() ;
|
| 81 |
|
88 |
|
| 82 |
// S'il y a un mail a envoyé, on l'envoie
|
- |
|
| 83 |
if (isset($_POST['select']) && is_array ($_POST['select'])) $res .= envoie_mail_depuis_annuaire() ;
|
89 |
//affichage du formulaire de recherche
|
| - |
|
90 |
$res .= Annuaire_recherche() ;
|
| 84 |
$res .= parcourirAnnu() ;
|
91 |
}
|
| 85 |
}
|
92 |
}
|
| 86 |
return $res;
|
93 |
return $res;
|
| Line 87... |
Line 94... |
| 87 |
}
|
94 |
}
|
| 88 |
|
95 |
|
| - |
|
96 |
/**------------------------------------------------------------------------------
|
| - |
|
97 |
* $Log: not supported by cvs2svn $
|
| - |
|
98 |
* Revision 1.3 2005/10/03 09:38:42 alexandre_tb
|
| 89 |
/**------------------------------------------------------------------------------
|
99 |
* Lorsque non loggué, on renvoie un message et non un formulaire
|
| 90 |
* $Log: not supported by cvs2svn $
|
100 |
*
|
| 91 |
* Revision 1.2 2005/09/29 16:07:51 alexandre_tb
|
101 |
* Revision 1.2 2005/09/29 16:07:51 alexandre_tb
|
| 92 |
* En cours de production.
|
102 |
* En cours de production.
|
| 93 |
*
|
103 |
*
|