diff options
Diffstat (limited to 'appli_3_alpha_old/app/include/ludo')
4 files changed, 29 insertions, 15 deletions
diff --git a/appli_3_alpha_old/app/include/ludo/config.inc.php b/appli_3_alpha_old/app/include/ludo/config.inc.php index 34a4956..51d6d73 100644 --- a/appli_3_alpha_old/app/include/ludo/config.inc.php +++ b/appli_3_alpha_old/app/include/ludo/config.inc.php @@ -31,7 +31,8 @@ $CONFIG = array ( // 'nom à afficher' => 'nom_fichier_sans_extension' 'standard' => 'ice', - 'bleu' => 'style1' + 'Glace (ancien)' => 'ice_moche', + 'bleu' => 'style1' ) ), 'MAIL' => array diff --git a/appli_3_alpha_old/app/include/ludo/fonctions.inc.php b/appli_3_alpha_old/app/include/ludo/fonctions.inc.php index 0dc86a7..7411000 100644 --- a/appli_3_alpha_old/app/include/ludo/fonctions.inc.php +++ b/appli_3_alpha_old/app/include/ludo/fonctions.inc.php @@ -325,7 +325,7 @@ function generate_html_array_personnes_crenaux($idR) } } echo " </tbody>\n"; - echo " </table>\n</form>\n";
+ echo " </table>\n</form>\n"; } function traiter_formulaire_fixer_creneau() @@ -391,7 +391,7 @@ function traiter_formulaire_creer_reunion() function traiter_formulaire_modif_detail_reunion() { - if ( ! isset($_GET['idR']) || !isset($_POST['objetR']) || !isset($_POST['lieuR']) || !isset($_POST['ordreJourR']) || !isset($_POST['remarquesR']) ) + if ( ! isset($_REQUEST['idR']) || !isset($_POST['objetR']) || !isset($_POST['lieuR']) || !isset($_POST['ordreJourR']) || !isset($_POST['remarquesR']) ) { $errmsg = 'Impossible de modifier de détail de la réunion : Paramètres manquants'; // DEBUG : @@ -399,7 +399,7 @@ function traiter_formulaire_modif_detail_reunion() return $errmsg; } - $idR=addslashes($_GET['idR']); + $idR=addslashes($_REQUEST['idR']); $objetR=addslashes($_POST['objetR']); $lieuR=addslashes($_POST['lieuR']); $ordreJourR=addslashes($_POST['ordreJourR']); @@ -504,7 +504,6 @@ function generate_html_reunion_detail2($idR) break; } if ( $montrerDispoR === 'non' ) { echo ', disponibilités masquées'; } - echo "\n </td>\n"; ?> </td> </tr> 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 f05f7e2..41fd812 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 @@ -26,16 +26,17 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n" $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 $cssfile ) + foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $cssname => $cssfile ) { if ( $cssfile != $cssfilemain ) { - echo ' <link href="css/' . $cssfile . '.css" rel="alternate stylesheet" type="text/css" />' . "\n"; + 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"; } - echo ' <link href="css/' . $cssfile . '_nohelp.css" rel="alternate stylesheet" type="text/css" title="nohelp"/>' . "\n"; } } ?> @@ -120,7 +121,18 @@ function generate_html_div_footer() <li class="left"> <?php generate_html_div_css_chooser(); ?> </li> - <li class="rigth"> + <li class="center"> + <a href="http://validator.w3.org/check/referer" target="_blank"> + <img src="./images/vxhtml.gif" alt="Validate" border="0" height="31" width="88" /> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"> + <img src="./images/vcss.gif" alt="Validate" border="0" height="31" width="88" /> + </a> + <a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance" target="_blank"> + <img src="./images/wai.gif" alt="W3C-WAI level A conformance icon" border="0" height="31" width="88" /> + </a> + </li> + <li class="right"> <span class="discret">Application réalisée par Jérémie Dénoyer, Ludovic Pouzenc, Julien Séré et Andriana Semouchtchak</span> </li> </ul> diff --git a/appli_3_alpha_old/app/include/ludo/majDispo.php b/appli_3_alpha_old/app/include/ludo/majDispo.php index 106cc91..ab7c200 100644 --- a/appli_3_alpha_old/app/include/ludo/majDispo.php +++ b/appli_3_alpha_old/app/include/ludo/majDispo.php @@ -1,5 +1,4 @@ <?php -require('../connect.inc.php'); require('session_verify.inc.php'); require('fonctions.inc.php'); @@ -21,19 +20,22 @@ else $estDispo=addslashes($_GET['estDispo']); $idP=$_SESSION['session_idP']; + + // TODO Traitement + +/* echo "DEBUG : query==UPDATE Choisir SET estDispo = '$estDispo' WHERE idC='$idC' AND idP='$idP'"; $query="UPDATE Choisir SET estDispo = '$estDispo' WHERE idC='$idC' AND idP='$idP'"; $result = @mysql_query($query); - if ( ! $result || ( mysql_affected_rows() !== 1 ) ) + if ( ! $result || ( mysql_num_rows($result) !== 1 ) ) { $query="INSERT INTO Choisir(idC,idP,estDispo) VALUES ('$idC', '$idP', '$estDispo')"; - //echo "DEBUG :$query"; - $result = mysql_query($query); - if ( ! $result || ( mysql_affected_rows() !== 1 ) ) + $result = @mysql_query($query); + if ( ! $result || ( mysql_num_rows($result) !== 1 ) ) { echo "Erreur BD\n"; return; } - } + } */ generate_html_dispo_case($idR, $idP, $idC, true, $estDispo, false); } ?>
\ No newline at end of file |