diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:25:51 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-05 00:25:51 +0200 |
commit | ac54f5224d4470de9d8ae088e1338dea52668c9d (patch) | |
tree | 7f77b2a8176343e6632fbd99ff431c21974ef482 /beta_accents/app/include/ludo/html_elements.inc.php | |
parent | 9738017972a6d4fea655926525b3c67dd85740cf (diff) | |
download | 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.gz 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.bz2 2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.zip |
Renommage beta_accents -> final pour diffs
Diffstat (limited to 'beta_accents/app/include/ludo/html_elements.inc.php')
-rw-r--r-- | beta_accents/app/include/ludo/html_elements.inc.php | 185 |
1 files changed, 0 insertions, 185 deletions
diff --git a/beta_accents/app/include/ludo/html_elements.inc.php b/beta_accents/app/include/ludo/html_elements.inc.php deleted file mode 100644 index 35eaa68..0000000 --- a/beta_accents/app/include/ludo/html_elements.inc.php +++ /dev/null @@ -1,185 +0,0 @@ -<?php -/* - * Fonctions de génération de code HTML... - */ - function generate_html_doctype_and_head($title) -{ -echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n" -?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="fr"> - <head> - <?php echo "<title>AWOR - $title</title>\n"; ?> - <meta name="keywords" content="AWOR, Application Web, Organisation, Réunion, Reunion" /> - <meta name="description" content="Application Web d'Organisation de Réunion (AWOR). Facilite la vie des organisateurs !" /> - <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 - //print_r($_COOKIE['aworcustom_css']); - if ( /*isset($_COOKIE['aworcustom_css'])*/ false ) - { - $cssfilemain = $_COOKIE['aworcustom_css']; - } - else - { - include 'config.inc.php'; - $cssfilemain=$CONFIG['CSS']['CHOOSER_LIST']['standard']; - } - echo ' <link href="css/' . $cssfilemain . '.css" rel="stylesheet" type="text/css" />' . "\n"; - echo ' <link href="css/' . $cssfilemain . '_nohelp.css" rel="stylesheet" type="text/css" title="nohelp" />' . "\n"; - - if ( isset($CONFIG['CSS']['CHOOSER_LIST']) ) - { - foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $cssname => $cssfile ) - { - if ( $cssfile != $cssfilemain ) - { - echo ' <link href="css/' . $cssfile . '.css" rel="alternate stylesheet" type="text/css" title="'.$cssname.'"/>' . "\n"; - echo ' <link href="css/' . $cssfile . '_nohelp.css" rel="alternate stylesheet" type="text/css" title="'.$cssname.'_nohelp"/>' . "\n"; - } - } - } -?> - <link href="css/print.css" rel="alternate stylesheet" type="text/css" title="print"/> - </head> -<?php -} - -function generate_html_divs_menu() -{ -include 'config.inc.php'; -?> -<div id="titre"><h2>AWOR</h2></div> -<div id="main_menu"> - <ul id="menu"> - <li><a href="index.php">Réunions</a></li> - <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> - <li><a href="apropos.php">A Propos</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éconnexion</a></li> - </ul> -</div> -<?php -} - -function generate_html_div_help($help_file='') -{ - //echo "DEBUG : function generate_html_div_help()\n"; - if ($help_file=='' ) { $help_file='help/' . basename($_SERVER['PHP_SELF']) . '.hlp'; } - //$help_file='modele_page.php.hlp'; - //echo "DEBUG : $help_file\n"; - if ( is_readable($help_file) ) - //if ( @fopen($help_file, 'r')!==false ) - { - echo '<div id="no_help">' . "\n<h2><a href=\"#css_standard\" onclick=\"setActiveStyleSheet('standard');\">?</a></h2>\n" . "</div>\n"; - echo '<div id="help">' . "\n"; - readfile($help_file); - echo "</div>\n"; - } -} - -function generate_html_div_errmsg($errmsg) -{ - echo '<div class="errmsg">' . "\n" . '<span class="errmsg">' . $errmsg . "</span>\n"; - require_once('config.inc.php'); - if ( isset( $CONFIG['adminMail'] ) && ( ! isset($_REQUEST['debug'] ) ) ) - { - echo '<span class="contactAdm">Si le problème persiste, vous pouvez contacter l\'administrateur par email à l\'adresse suivante : '; - echo '<a href="mailto:' . $CONFIG['adminMail'] . '">' . $CONFIG['adminMail'] . "</a></span>\n"; - } - echo "</div>\n"; -} - -function generate_html_div_css_chooser() -{ - @include 'include/ludo/config.inc.php'; - @include 'config.inc.php'; - - if ( ! is_array($CONFIG['CSS']['CHOOSER_LIST']) ) { return false; } - - if ( isset($_COOKIE['aworcustom_css'] ) ) { $css_selected=$_COOKIE['aworcustom_css']; }else{$css_selected='';}; - echo '<div class="css_chooser">' . "\n"; - //print_r($_COOKIE); - echo ' <select id="switcherCSS" onchange="switchCSS();">' . "\n"; - foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $file => $name ) - { - echo ' <option value="' . $file . '"'; - if ( $file == $css_selected ) { echo ' selected="selected"'; } - echo '>' . htmlentities($name, ENT_QUOTES) . '</option>' /*. "$DEBUG:file=$file, css_selected=$css_selected"*/ . "\n"; - } - echo ' </select>'. "\n"; - echo '</div>'. "\n"; -} - -function generate_html_div_footer() -{ -?> -<div id="footer"> - <ul> - <li class="left"> -<?php generate_html_div_css_chooser(); ?> - </li> - <li class="center"> - <a href="http://validator.w3.org/check/referer"> - <img src="./images/vxhtml.gif" alt="Validate" height="31" width="88" /> - </a> - <a href="http://jigsaw.w3.org/css-validator/check/referer"> - <img src="./images/vcss.gif" alt="Validate" height="31" width="88" /> - </a> - <a href="http://www.w3.org/WAI/WCAG1A-Conformance"> - <img src="./images/wai.gif" alt="W3C-WAI level A conformance icon" height="31" width="88" /> - </a> - </li> - <li class="right"> - <span class="discret">Application réalisée par Jérémie Dénoyer,<br /> 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"; -} -function generate_html_div_back() -{ - echo '<div class="retour"><a href="index.php">Retour</a></div>'."\n"; -} - -function generate_html_dispo_inconnu($idP, $idC) -{ - echo '<img class="spacing" src="./images/question.gif" alt="Inconnu" height="15" width="15" />' . "\n"; -} - -function generate_html_dispo_oui($idP, $idC) -{ - echo '<img class="spacing" src="./images/ok.gif" alt="Disponible" height="16" width="16" />' . "\n"; -} - -function generate_html_dispo_non($idP, $idC) -{ - 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&idC=$idC&estDispo=oui','dispo_idC${idC}',false);\">"; - 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&idC=$idC&estDispo=non','dispo_idC${idC}',false);\">"; - 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) -{ - echo '<a href="details_reunion.php?idR=' . $idR . '"><img src="images/details.png" alt="Détails" width="20" height="20" /></a>'; -} |