summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/app/include/ludo/html_elements.inc.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:13:09 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:13:09 +0200
commit3fc908d3a1d0f6c9b1fca690561098541a73266e (patch)
treec1f2dd9663a2cba43abd6b59b2612ad214a92c79 /appli_3_alpha_old/app/include/ludo/html_elements.inc.php
parent1269889704386de951d7f91eb169eb1e1bb36cc0 (diff)
download2007-AWOR-3fc908d3a1d0f6c9b1fca690561098541a73266e.tar.gz
2007-AWOR-3fc908d3a1d0f6c9b1fca690561098541a73266e.tar.bz2
2007-AWOR-3fc908d3a1d0f6c9b1fca690561098541a73266e.zip
Version alpha_old5 2007-02-22+15:00:00 - 2007-03-11+16:30:15
Diffstat (limited to 'appli_3_alpha_old/app/include/ludo/html_elements.inc.php')
-rw-r--r--appli_3_alpha_old/app/include/ludo/html_elements.inc.php59
1 files changed, 46 insertions, 13 deletions
diff --git a/appli_3_alpha_old/app/include/ludo/html_elements.inc.php b/appli_3_alpha_old/app/include/ludo/html_elements.inc.php
index 4275653..f05f7e2 100644
--- a/appli_3_alpha_old/app/include/ludo/html_elements.inc.php
+++ b/appli_3_alpha_old/app/include/ludo/html_elements.inc.php
@@ -15,17 +15,29 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n"
<meta name="author" content="Jérémie Dénoyer, Ludovic Pouzenc, Andriana Semouchtchak, Julien Sérè" />
<script type="text/javascript" src="script.js"></script>
<?php
+ $cssfilemain='';
if ( isset($_COOKIE['awor']['custom_css'] ) )
{
- $cssfile = $_COOKIE['awor']['custom_css'];
+ $cssfilemain = $_COOKIE['awor']['custom_css'];
}
else
{
include 'config.inc.php';
- $cssfile=$CONFIG['CSS']['CHOOSER_LIST']['standard'];
+ $cssfilemain=$CONFIG['CSS']['CHOOSER_LIST']['standard'];
+ }
+ echo ' <link href="css/' . $cssfilemain . '.css" rel="stylesheet" type="text/css" />' . "\n";
+
+ if ( isset($CONFIG['CSS']['CHOOSER_LIST']) )
+ {
+ foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $cssfile )
+ {
+ if ( $cssfile != $cssfilemain )
+ {
+ echo ' <link href="css/' . $cssfile . '.css" rel="alternate stylesheet" type="text/css" />' . "\n";
+ }
+ echo ' <link href="css/' . $cssfile . '_nohelp.css" rel="alternate stylesheet" type="text/css" title="nohelp"/>' . "\n";
+ }
}
- echo ' <link href="css/' . $cssfile . '.css" rel="stylesheet" type="text/css" />' . "\n";
- echo ' <link href="css/' . $cssfile . '_nohelp.css" rel="alternate stylesheet" type="text/css" title="nohelp"/>' . "\n";
?>
<link href="css/print.css" rel="alternate stylesheet" type="text/css" title="print"/>
</head>
@@ -34,6 +46,7 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n"
function generate_html_divs_menu()
{
+include 'config.inc.php';
?>
<div id="titre"><h2>AWOR</h2></div>
<div id="main_menu">
@@ -42,6 +55,9 @@ function generate_html_divs_menu()
<li><a href="listes.php">Listes</a></li>
<li><a href="profil.php">Mon profil</a></li>
<li><a href="ical.php">iCal</a></li>
+<?php if ( isset($_SESSION['session_loginP']) && (is_integer(array_search($_SESSION['session_loginP'],$CONFIG['SUPERUSERS'],true))) )
+ { echo ' <li><a href="admin.php">Administration</a></li>' . "\n"; }
+?>
<li id="deconnection"><a href="deco.php">D&eacute;connexion</a></li>
</ul>
</div>
@@ -78,13 +94,14 @@ function generate_html_div_errmsg($errmsg)
function generate_html_div_css_chooser()
{
- // TODO : fonction JS qui fait ce qu'il faut !! (a mettre dans le head ??)
- require_once('config.inc.php');
+ @include 'include/ludo/config.inc.php';
+ @include 'config.inc.php';
+
if ( ! is_array($CONFIG['CSS']['CHOOSER_LIST']) ) { return false; }
- if ( isset($_COOKIE['awor']['custom_css'] ) ) { $css_selected=$_COOKIE['awor']['custom_css']; };
+ if ( isset($_COOKIE['awor']['custom_css'] ) ) { $css_selected=$_COOKIE['awor']['custom_css']; }else{$css_selected='';};
echo '<div class="css_chooser">' . "\n";
- echo ' <select>' . "\n";
+ echo ' <select id="switcherCSS" onchange="switchCSS();">' . "\n";
foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $file => $name )
{
echo ' <option value="' . $file;
@@ -95,6 +112,22 @@ function generate_html_div_css_chooser()
echo '</div>'. "\n";
}
+function generate_html_div_footer()
+{
+?>
+<div id="footer">
+ <ul>
+ <li class="left">
+<?php generate_html_div_css_chooser(); ?>
+ </li>
+ <li class="rigth">
+ <span class="discret">Application réalisée par Jérémie Dénoyer, Ludovic Pouzenc, Julien Séré et Andriana Semouchtchak</span>
+ </li>
+ </ul>
+</div>
+<?php
+}
+
function generate_html_div_deconnect()
{
echo '<div class="deco"><a href="deco.php">Deconnexion</a></div>'."\n";
@@ -106,30 +139,30 @@ function generate_html_div_back()
function generate_html_dispo_inconnu($idP, $idC)
{
- echo '<img src="./images/question.gif" alt="Inconnu" height="15" width="15" />' . "\n";
+ echo '<img class="spacing" src="./images/question.gif" alt="Inconnu" height="15" width="15" />' . "\n";
}
function generate_html_dispo_oui($idP, $idC)
{
- echo '<img src="./images/ok.gif" alt="Disponible" height="16" width="16" />' . "\n";
+ echo '<img class="spacing" src="./images/ok.gif" alt="Disponible" height="16" width="16" />' . "\n";
}
function generate_html_dispo_non($idP, $idC)
{
- echo '<img src="./images/del.gif" alt="Non disponible" height="15" width="15" />' . "\n";
+ echo '<img class="spacing" src="./images/del.gif" alt="Non disponible" height="15" width="15" />' . "\n";
}
function generate_html_dispo_dire_oui($idR, $idC)
{
//~ echo '<img src="./images/button_ok.png" alt="Dire que je suis disponible" height="25" width="25" />' . "\n";
echo "<a href=\"#dispo_idC${idC}\" onclick=\"loadid('include/ludo/majDispo.php?idR=$idR&amp;idC=$idC&amp;estDispo=oui','dispo_idC${idC}',false);\">";
- echo '<img src="./images/button_ok.png" alt="Dire que je suis disponible" height="25" width="25" /></a>' . "\n";
+ echo '<img class="spacing" src="./images/button_ok.png" alt="Dire que je suis disponible" height="25" width="25" /></a>' . "\n";
}
function generate_html_dispo_dire_non($idR, $idC)
{
echo "<a href=\"#dispo_idC${idC}\" onclick=\"loadid('include/ludo/majDispo.php?idR=$idR&amp;idC=$idC&amp;estDispo=non','dispo_idC${idC}',false);\">";
- echo '<img src="./images/button_del.png" alt="Dire que je suis pas disponible" height="25" width="25" /></a>' . "\n";
+ echo '<img class="spacing" src="./images/button_del.png" alt="Dire que je suis pas disponible" height="25" width="25" /></a>' . "\n";
}
function generate_html_reunion_detail_button($idR)