2011-05-15 01:32:47 +02:00
|
|
|
<?php
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//Université de Strasbourg - Direction Informatique
|
|
|
|
//Auteur : Guilhem BORGHESI
|
|
|
|
//Création : Février 2008
|
|
|
|
//
|
|
|
|
//borghesi@unistra.fr
|
|
|
|
//
|
|
|
|
//Ce logiciel est régi par la licence CeCILL-B soumise au droit français et
|
|
|
|
//respectant les principes de diffusion des logiciels libres. Vous pouvez
|
|
|
|
//utiliser, modifier et/ou redistribuer ce programme sous les conditions
|
|
|
|
//de la licence CeCILL-B telle que diffusée par le CEA, le CNRS et l'INRIA
|
|
|
|
//sur le site "http://www.cecill.info".
|
|
|
|
//
|
|
|
|
//Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
|
|
|
|
//pris connaissance de la licence CeCILL-B, et que vous en avez accepté les
|
|
|
|
//termes. Vous pouvez trouver une copie de la licence dans le fichier LICENCE.
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//Université de Strasbourg - Direction Informatique
|
|
|
|
//Author : Guilhem BORGHESI
|
|
|
|
//Creation : Feb 2008
|
|
|
|
//
|
|
|
|
//borghesi@unistra.fr
|
|
|
|
//
|
|
|
|
//This software is governed by the CeCILL-B license under French law and
|
|
|
|
//abiding by the rules of distribution of free software. You can use,
|
|
|
|
//modify and/ or redistribute the software under the terms of the CeCILL-B
|
|
|
|
//license as circulated by CEA, CNRS and INRIA at the following URL
|
|
|
|
//"http://www.cecill.info".
|
|
|
|
//
|
|
|
|
//The fact that you are presently reading this means that you have had
|
|
|
|
//knowledge of the CeCILL-B license and that you accept its terms. You can
|
|
|
|
//find a copy of this license in the file LICENSE.
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
// pour get_server_name()
|
|
|
|
include_once('fonctions.php');
|
|
|
|
|
|
|
|
//le logo
|
2011-05-15 03:56:54 +02:00
|
|
|
function logo ()
|
|
|
|
{
|
|
|
|
if(defined('LOGOBANDEAU')) {
|
2011-05-20 02:52:22 +02:00
|
|
|
echo '<div class="logo"><img src="'.get_server_name().LOGOBANDEAU.'" height="74" alt="logo"></div>'."\n";
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
#le bandeau principal
|
2011-05-15 03:56:54 +02:00
|
|
|
function bandeau_tete()
|
|
|
|
{
|
2011-05-29 05:13:58 +02:00
|
|
|
echo '<div class="bandeau"><p class="framamauve">Frama</p><p class="framorange">date</p></div>'."\n";
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
// bandeaux de titre
|
2011-05-15 03:56:54 +02:00
|
|
|
function bandeau_titre($titre)
|
|
|
|
{
|
|
|
|
echo '<div class="bandeautitre">'. $titre .'</div>'."\n";
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
|
|
|
|
function liste_lang()
|
|
|
|
{
|
2011-05-15 01:32:47 +02:00
|
|
|
global $ALLOWED_LANGUAGES;
|
2011-05-15 03:56:54 +02:00
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
$str = '';
|
2011-05-15 03:56:54 +02:00
|
|
|
foreach ($ALLOWED_LANGUAGES as $k => $v ) {
|
2011-05-15 01:32:47 +02:00
|
|
|
$str .= '<a href="' . $_SERVER['PHP_SELF'] . '?lang=' . $k . '">' . $v . '</a>' . "\n" ;
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
return $str;
|
|
|
|
}
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
#Les sous-bandeaux contenant les boutons de navigation
|
2011-05-15 03:56:54 +02:00
|
|
|
function sous_bandeau()
|
|
|
|
{
|
2011-05-29 05:13:58 +02:00
|
|
|
/*echo '<div class="sousbandeau">' .
|
2011-05-15 03:56:54 +02:00
|
|
|
'<a href="' . get_server_name() . 'index.php">'. _("Home") .'</a>' .
|
2011-05-20 02:52:22 +02:00
|
|
|
'<a href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
|
2011-05-15 03:56:54 +02:00
|
|
|
'<a href="' . get_server_name() . 'contacts.php">'. _("Contact") .'</a>' .
|
|
|
|
//'<a href="' . get_server_name() . 'sources/sources.php">'. _("Sources") .'</a>' . //not implemented
|
|
|
|
'<a href="' . get_server_name() . 'apropos.php">'. _("About") .'</a>' .
|
|
|
|
'<a href="' . get_server_name() . 'admin/index.php">'. _("Admin") .'</a>' .
|
|
|
|
'<span class="sousbandeau sousbandeaulangue">' .
|
|
|
|
liste_lang() . '</span>'.
|
2011-05-29 05:13:58 +02:00
|
|
|
'</div>' . "\n";*/
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
2011-05-15 01:32:47 +02:00
|
|
|
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
function sous_bandeau_admin()
|
|
|
|
{
|
2011-05-15 01:32:47 +02:00
|
|
|
echo '<div class="sousbandeau">' .
|
2011-05-15 03:56:54 +02:00
|
|
|
'<a href="' . get_server_name() . 'index.php">'. _("Home") .'</a>';
|
|
|
|
|
|
|
|
if(is_readable('logs_studs.txt')) {
|
2011-05-15 01:32:47 +02:00
|
|
|
echo '<a href="' . get_server_name() . 'logs_studs.txt">'. _("Logs") .'</a>';
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
echo '<a href="' . get_server_name() . '../scripts/nettoyage_sondage.php">'. _("Cleaning") .'</a>' .
|
2011-05-15 03:56:54 +02:00
|
|
|
'<span class="sousbandeau sousbandeaulangue">' .
|
|
|
|
liste_lang() . '</span>'.
|
|
|
|
'</div>'."\n";
|
|
|
|
}
|
2011-05-15 01:32:47 +02:00
|
|
|
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
function sous_bandeau_choix()
|
|
|
|
{
|
2011-05-29 05:13:58 +02:00
|
|
|
/*echo '<div class="sousbandeau">' .
|
2011-05-15 03:56:54 +02:00
|
|
|
'<a href="' . get_server_name() . 'index.php">'. _("Home") .'</a>' .
|
2011-05-29 05:13:58 +02:00
|
|
|
'</div>'."\n";*/
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#les bandeaux de pied
|
2011-05-15 03:56:54 +02:00
|
|
|
function sur_bandeau_pied()
|
|
|
|
{
|
|
|
|
echo '<div class="surbandeaupied"></div>'."\n";
|
2011-05-15 01:32:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
function bandeau_pied()
|
|
|
|
{
|
2011-05-29 05:13:58 +02:00
|
|
|
//echo '<div class="bandeaupied">'. _("Université de Strasbourg. Creation: Guilhem BORGHESI. 2008-2009") .'</div>'."\n";
|
|
|
|
echo '<div class="sousbandeau">' .
|
|
|
|
'<a href="' . get_server_name() . 'index.php">'. _("Home") .'</a>' .
|
|
|
|
'<a href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
|
|
|
|
'<a href="' . get_server_name() . 'contacts.php">'. _("Contact") .'</a>' .
|
|
|
|
//'<a href="' . get_server_name() . 'sources/sources.php">'. _("Sources") .'</a>' . //not implemented
|
|
|
|
'<a href="' . get_server_name() . 'apropos.php">'. _("About") .'</a>' .
|
|
|
|
'<a href="' . get_server_name() . 'admin/index.php">'. _("Admin") .'</a>' .
|
|
|
|
'<span class="sousbandeau sousbandeaulangue">' .
|
|
|
|
liste_lang() . '</span>'.
|
|
|
|
'</div>' . "\n";
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|
|
|
|
|
2011-05-15 01:32:47 +02:00
|
|
|
|
2011-05-15 03:56:54 +02:00
|
|
|
function bandeau_pied_mobile()
|
|
|
|
{
|
2011-05-29 05:13:58 +02:00
|
|
|
/*echo '<div class="surbandeaupiedmobile"></div>'."\n" .
|
|
|
|
'<div class="bandeaupiedmobile">'. _("Université de Strasbourg. Creation: Guilhem BORGHESI. 2008-2009") .'</div>'."\n";*/
|
|
|
|
echo '<div class="sousbandeau">' .
|
|
|
|
'<a href="' . get_server_name() . 'index.php">'. _("Home") .'</a>' .
|
|
|
|
'<a href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
|
|
|
|
'<a href="' . get_server_name() . 'contacts.php">'. _("Contact") .'</a>' .
|
|
|
|
//'<a href="' . get_server_name() . 'sources/sources.php">'. _("Sources") .'</a>' . //not implemented
|
|
|
|
'<a href="' . get_server_name() . 'apropos.php">'. _("About") .'</a>' .
|
|
|
|
'<a href="' . get_server_name() . 'admin/index.php">'. _("Admin") .'</a>' .
|
|
|
|
'<span class="sousbandeau sousbandeaulangue">' .
|
|
|
|
liste_lang() . '</span>'.
|
|
|
|
'</div>' . "\n";
|
2011-05-15 03:56:54 +02:00
|
|
|
}
|