Accessibilité et ergonomie sur choix_date, adminstuds - remplacement bouton de langue par un select - Fix export CSV - découpage chaines de langue pour enlever le code html - Fix // et port dans get_server_name
This commit is contained in:
parent
07450ecb22
commit
67a9fa1e8b
|
@ -0,0 +1,14 @@
|
|||
# [Framasoft](http://framadate.org)
|
||||
* Simon Leblanc (development),
|
||||
* Pierre-Yves Gosset (development, graphism)
|
||||
* Pascal Chevrel (development)
|
||||
* Armony Altinier (accessibility)
|
||||
* JosephK (development)
|
||||
* Framasoft community
|
||||
*For a list of people who have contributed to the codebase, see [GitHub's list of contributors](https://github.com/framasoft/OpenSondage/graphs/contributors).*
|
||||
|
||||
## [STUdS](http://studs.u-strasbg.fr)
|
||||
* Guilhem Borghesi (borghesi@unistra.fr)
|
||||
* Raphaël Droz
|
||||
* Contributors from the University of Strasbourg: Guy, Christophe, Julien, Pierre, Romaric, Matthieu, Catherine, Christine, Olivier, Emmanuel and Florence
|
||||
|
12
CHANGELOG
12
CHANGELOG
|
@ -1,4 +1,16 @@
|
|||
Les dernières améliorations d'OpenSondage
|
||||
|
||||
Changelog version 0.8 (juillet 2014 Armony - JosephK)
|
||||
- Améliorations sur l'accessibilité
|
||||
- Améliorations sur l'ergonomie
|
||||
- Améliorations sur l'internationalisation (nombreuses phrases en français dans le code)
|
||||
- Découpage chaines de langue pour virer le code html
|
||||
- Remise en place de l'export CSV
|
||||
- Remise en place de get_server_name() pour permettre l'installation dans un sous dossier, en https ou sur un port différent
|
||||
- Ajout Authors.md + en-têtes refaits
|
||||
- Fix bug changement de langues en mode URL rewriting (requête GET passée en formulaire POST)
|
||||
- Fix bug 2 boutons valider lorsqu'on édite un vote
|
||||
- Fix focus javascript sur "Votre nom"
|
||||
|
||||
Changelog version 0.7 (mars 2013)
|
||||
- Fix : le sondage supprimé n'était pas forcément le sondage sélectionné (cfévrier)
|
||||
|
|
367
adminstuds.php
367
adminstuds.php
|
@ -1,42 +1,21 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
session_start();
|
||||
|
||||
//setlocale(LC_TIME, "fr_FR");
|
||||
|
@ -76,7 +55,7 @@ if (preg_match(";[\w\d]{24};i", $numsondageadmin)) {
|
|||
|
||||
//verification de l'existence du sondage, s'il n'existe pas on met une page d'erreur
|
||||
if (!$sondage || $sondage->RecordCount() != 1){
|
||||
print_header(false, _("Error!"));
|
||||
print_header(false, _("Error!"), '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
|
@ -85,9 +64,9 @@ if (!$sondage || $sondage->RecordCount() != 1){
|
|||
|
||||
|
||||
echo '<div class=corpscentre>'."\n";
|
||||
print "<H2>" . _("This poll doesn't exist !") . "</H2><br><br>"."\n";
|
||||
print "<h2>" . _("This poll doesn't exist !") . "</h2><br /><br />"."\n";
|
||||
print "" . _("Back to the homepage of ") . " <a href=\"".get_server_name()."\"> ".NOMAPPLICATION."</A>. "."\n";
|
||||
echo '<br><br><br><br>'."\n";
|
||||
echo '<br /><br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
# sur_bandeau_pied();
|
||||
bandeau_pied();
|
||||
|
@ -173,7 +152,7 @@ $dsujet=$sujets->FetchObject(false);
|
|||
$dsondage=$sondage->FetchObject(false);
|
||||
|
||||
if (isset($_POST["ajoutsujet"]) || isset($_POST["ajoutsujet_x"])) {
|
||||
print_header(true);
|
||||
print_header(true, '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
|
@ -185,78 +164,77 @@ if (isset($_POST["ajoutsujet"]) || isset($_POST["ajoutsujet_x"])) {
|
|||
|
||||
echo '<div class="corps">'."\n";
|
||||
|
||||
|
||||
echo '<form name="formulaire" action="'.getUrlSondage($numsondageadmin, true).'" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||
|
||||
echo '<div class="">'."\n";
|
||||
echo "<H2>" . _("Column's adding") . "</H2><br><br>"."\n";
|
||||
echo "<h2>" . _("Column's adding") . "</h2><br /><br />"."\n";
|
||||
|
||||
if ($dsondage->format=="A"||$dsondage->format=="A+"){
|
||||
echo _("Add a new column") .' :<br> <input type="text" name="nouvellecolonne" size="40">';
|
||||
echo '<br><br>';
|
||||
echo '<button class="button red retour" type="submit" value="retoursondage" name="retoursondage_x"><strong>Retourner au sondage</strong></button>'."\n";
|
||||
echo '<button type="submit" name="ajoutercolonne_x" value="Ajouter une colonne" class="button green poursuivre" alt="Valider"><strong>Valider</strong></button>'."\n";
|
||||
echo _("Add a new column") .' :<br /> <input type="text" name="nouvellecolonne" size="40" />';
|
||||
echo '<p>';
|
||||
echo '<button class="button red retour" type="submit" value="retoursondage" name="retoursondage_x"><strong>'. _('Back to the poll') .'</strong></button>'."\n";
|
||||
echo '<button type="submit" name="ajoutercolonne_x" class="button green poursuivre" ><strong>'. _('Add a column') .'</strong></button>'."\n";
|
||||
} else {
|
||||
//ajout d'une date avec creneau horaire
|
||||
echo _("You can add a new scheduling date to your poll.<br> If you just want to add a new hour to an existant date, put the same date and choose a new hour.") .'<br><br> '."\n";
|
||||
echo _("Add a date") .' :<br><br>'."\n";
|
||||
echo '<select name="nouveaujour"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '<p>'. _("You can add a new scheduling date to your poll.")._("If you just want to add a new hour to an existant date, put the same date and choose a new hour.") .'</p> '."\n";
|
||||
echo '<p>'. _("Add a date") .' :<p>'."\n";
|
||||
echo '<p class="newday"><label for="nouveaujour">'. _("Day") .'</label><br /><select name="nouveaujour" id="nouveaujour"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
for ($i=1;$i<32;$i++){
|
||||
echo '<OPTION VALUE="'.$i.'">'.$i.'</OPTION>'."\n";
|
||||
echo '<option value="'.$i.'">'.$i.'</option>'."\n";
|
||||
}
|
||||
echo '</SELECT>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
|
||||
echo '<select name="nouveaumois"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '<p class="newmonth"><label for="nouveaumois">'. _("Month") .'</label><br /><select name="nouveaumois" id="nouveaumois"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
for($i = 1; $i < 13; $i++) {
|
||||
echo '<OPTION VALUE="'.$i.'">'.strftime('%B', mktime(0, 0, 0, $i)).'</OPTION>'."\n";
|
||||
echo '<option value="'.$i.'">'.strftime('%B', mktime(0, 0, 0, $i)).'</option>'."\n";
|
||||
}
|
||||
echo '</SELECT>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
|
||||
|
||||
echo '<select name="nouvelleannee"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '<p class="newyear"><label for="nouvelleannee">'. _("Year") .'</label><br /><select name="nouvelleannee" id="nouvelleannee"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
for ($i = date("Y"); $i < (date("Y") + 5); $i++) {
|
||||
echo '<OPTION VALUE="'.$i.'">'.$i.'</OPTION>'."\n";
|
||||
echo '<option value="'.$i.'">'.$i.'</option>'."\n";
|
||||
}
|
||||
echo '</SELECT>'."\n";
|
||||
echo '<br><br>'. _("Add a start hour (optional)") .' : <br><br>'."\n";
|
||||
echo '<select name="nouvelleheuredebut"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
echo '<p class="clear-left">'. _("Add a start hour (optional)") .' : </p>'."\n";
|
||||
echo '<p class="newhour"><label for="nouvelleheuredebut">'. _("Hour") .'</label><br /><select id="nouvelleheuredebut" name="nouvelleheuredebut"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
for ($i = 0; $i < 24; $i++) {
|
||||
echo '<OPTION VALUE="'.$i.'">'.$i.' H</OPTION>'."\n";
|
||||
echo '<option value="'.$i.'">'.$i.' H</option>'."\n";
|
||||
}
|
||||
echo '</SELECT>'."\n";
|
||||
echo '<select name="nouvelleminutedebut"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '<OPTION VALUE="00">00</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="15">15</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="30">30</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="45">45</OPTION>'."\n";
|
||||
echo '</SELECT>'."\n";
|
||||
echo '<br><br>'. _("Add a end hour (optional)") .' : <br><br>'."\n";
|
||||
echo '<select name="nouvelleheurefin"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
echo '<p class="newmin"><label for="nouvelleminutedebut">'. _("Min") .'</label><br /><select id="nouvelleminutedebut" name="nouvelleminutedebut"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
echo '<option value="00">00</option>'."\n";
|
||||
echo '<option value="15">15</option>'."\n";
|
||||
echo '<option value="30">30</option>'."\n";
|
||||
echo '<option value="45">45</option>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
echo '<p class="clear-left">'. _("Add a end hour (optional)") .' : </p>'."\n";
|
||||
echo '<p class="newhour"><label for="nouvelleheurefin">'. _("Hour") .'</label><br /><select id="nouvelleheurefin" name="nouvelleheurefin"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
for ($i = 0; $i < 24; $i++) {
|
||||
echo '<OPTION VALUE="'.$i.'">'.$i.' H</OPTION>'."\n";
|
||||
echo '<option value="'.$i.'">'.$i.' H</option>'."\n";
|
||||
}
|
||||
echo '</SELECT>'."\n";
|
||||
echo '<select name="nouvelleminutefin"> '."\n";
|
||||
echo '<OPTION VALUE="vide"></OPTION>'."\n";
|
||||
echo '<OPTION VALUE="00">00</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="15">15</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="30">30</OPTION>'."\n";
|
||||
echo '<OPTION VALUE="45">45</OPTION>'."\n";
|
||||
echo '</SELECT>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
echo '<p class="newmin"><label for="nouvelleminutefin">'. _("Min") .'</label><br /><select id="nouvelleminutefin" name="nouvelleminutefin"> '."\n";
|
||||
echo '<option value="vide"></option>'."\n";
|
||||
echo '<option value="00">00</option>'."\n";
|
||||
echo '<option value="15">15</option>'."\n";
|
||||
echo '<option value="30">30</option>'."\n";
|
||||
echo '<option value="45">45</option>'."\n";
|
||||
echo '</select></p>'."\n";
|
||||
|
||||
echo '<br><br>';
|
||||
echo '<button class="button red retour" type="submit" value="retoursondage" name="retoursondage_x"><strong>Retourner au sondage</strong></button>'."\n";
|
||||
echo '<button type="submit" name="ajoutercolonne_x" value="Ajouter une colonne" class="button green poursuivre" alt="Valider"><strong>Valider</strong></button>'."\n";
|
||||
echo '<p class="clear-left">';
|
||||
echo '<button class="button red retour" type="submit" value="retoursondage" name="retoursondage_x"><strong>'. _('Back to the poll'). '</strong></button>'."\n";
|
||||
echo '<button type="submit" name="ajoutercolonne_x" class="button green poursuivre"><strong>'. _('Add a column'). '</strong></button></p>'."\n";
|
||||
}
|
||||
|
||||
echo '</form>'."\n";
|
||||
echo '<br><br><br><br>'."\n";
|
||||
echo '<br /><br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
echo '</div>'."\n";
|
||||
|
@ -271,7 +249,7 @@ if (isset($_POST["ajoutsujet"]) || isset($_POST["ajoutsujet_x"])) {
|
|||
}
|
||||
|
||||
if (isset($_POST["suppressionsondage_x"])) {
|
||||
print_header(true);
|
||||
print_header(true, '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
|
@ -281,11 +259,11 @@ if (isset($_POST["suppressionsondage_x"])) {
|
|||
echo '<div class="corps">'."\n";
|
||||
echo '<form name="formulaire" action="'.getUrlSondage($numsondageadmin, true).'" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||
echo '<div class="">'."\n";
|
||||
echo "<H2>" . _("Confirm removal of your poll") . "</H2><br><br>"."\n";
|
||||
echo "<h2>" . _("Confirm removal of your poll") . "</h2><br /><br />"."\n";
|
||||
echo '<button class="button red retour" type="submit" value="'._("Keep this poll!").'" name="annullesuppression"><strong>'._("Keep this poll!").'</strong></button>'."\n";
|
||||
echo '<button type="submit" name="confirmesuppression" value="'._("Remove this poll!").'" class="button green poursuivre" alt="'._("Remove this poll!").'"><strong>'._("Remove this poll!").'</strong></button>'."\n";
|
||||
echo '</form>'."\n";
|
||||
echo '<br><br><br><br>'."\n";
|
||||
echo '<br /><br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
echo '</div>'."\n";
|
||||
|
@ -315,7 +293,7 @@ if (isset($_POST["confirmesuppression"]) || isset($_POST["confirmesuppression_x"
|
|||
_("Thanks for your confidence.") . "\n" . NOMAPPLICATION );
|
||||
|
||||
//affichage de l'ecran de confirmation de suppression de sondage
|
||||
print_header();
|
||||
print_header(false, '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
|
@ -323,9 +301,9 @@ if (isset($_POST["confirmesuppression"]) || isset($_POST["confirmesuppression_x"
|
|||
bandeau_titre(_("Make your polls"));
|
||||
|
||||
echo '<div class="corps corpscentre">'."\n";
|
||||
print "<H2>" . _("Your poll has been removed!") . "</H2><br><br>";
|
||||
print "<h2>" . _("Your poll has been removed!") . "</h2><br /><br />";
|
||||
print _("Back to the homepage of ") . ' <a href="'.get_server_name().'"> '.NOMAPPLICATION.'</a>.'."\n";
|
||||
echo '<br><br><br>'."\n";
|
||||
echo '<br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
sur_bandeau_pied();
|
||||
bandeau_pied();
|
||||
|
@ -367,7 +345,7 @@ if(isset($_POST['ajoutcomment']) || isset($_POST['ajoutcomment_x'])) {
|
|||
|
||||
//s'il existe on affiche la page normale
|
||||
// DEBUT DE L'AFFICHAGE DE LA PAGE HTML
|
||||
print_header(true);
|
||||
print_header(true, '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
|
@ -376,26 +354,27 @@ bandeau_titre(_("Make your polls"));
|
|||
sous_bandeau();
|
||||
|
||||
echo '<div class="corps">'."\n";
|
||||
|
||||
echo '<div class="imprimer"><p><a role="button" href="javascript:print()" class="button white medium">' . _('Print') . '</a></p>';
|
||||
echo '<p><a role="button" class="button white medium" href="'.get_server_name().'exportcsv.php?numsondage=' . $numsondage . '">' . _('Export to CSV') . '</a></p></div>';
|
||||
|
||||
echo '<div class="presentationdate"> '."\n";
|
||||
|
||||
//affichage du titre du sondage
|
||||
$titre=str_replace("\\","",$dsondage->titre);
|
||||
echo '<H2>'.$titre.'</H2>'."\n";
|
||||
echo '<h2>'.$titre.'</h2>'."\n";
|
||||
|
||||
//affichage du nom de l'auteur du sondage
|
||||
echo _("Initiator of the poll") .' : '.stripslashes($dsondage->nom_admin).'<br>'."\n";
|
||||
|
||||
//affichage des commentaires du sondage
|
||||
if ($dsondage->commentaires){
|
||||
echo '<br>'. _("Comments") .' :<br>'."\n";
|
||||
$commentaires=$dsondage->commentaires;
|
||||
$commentaires=str_replace("\\","",$commentaires);
|
||||
echo stripslashes(nl2br($commentaires));
|
||||
echo '<br>'."\n";
|
||||
echo '<div class="initiator"><p><span class="mlabel">'. _("Initiator of the poll") .' :</span><span class="nom"> '.stripslashes($dsondage->nom_admin).'</span></p></div>'."\n";
|
||||
echo '<div class="adress"><p><span class="mlabel">'._("Public link of the pool") .' : </span><code>'.getUrlSondage($dsondage->id_sondage).'</code></p></div>'."\n";
|
||||
echo '<div class="adress"><p><span class="mlabel">'._("Admin link of the pool") .' : </span><code>'.getUrlSondage($dsondage->id_sondage, true).'</code></p></div>'."\n";
|
||||
//affichage de la description du sondage
|
||||
if ($dsondage->commentaires) {
|
||||
echo '<div class="admin_comment"><span class="mlabel">'._("Description: ") .'</span><br />'."\n";
|
||||
$commentaires = $dsondage->commentaires;
|
||||
$commentaires=nl2br(str_replace("\\","",$commentaires));
|
||||
echo '<span class="mcontent">'. $commentaires .'</span>';
|
||||
echo '</div>'."\n";
|
||||
}
|
||||
echo '<br>'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
|
||||
|
@ -726,16 +705,16 @@ if ($sondage !== false) {
|
|||
$sql = $connect->Prepare($sql);
|
||||
$user_studs = $connect->Execute($sql, array($numsondage));
|
||||
} else {
|
||||
print_header(false, _("Error!"));
|
||||
print_header(false, _("Error!"), '', $lang);
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
logo();
|
||||
bandeau_tete();
|
||||
bandeau_titre(_("Error!"));
|
||||
echo '<div class=corpscentre>'."\n";
|
||||
print "<H2>" . _("This poll doesn't exist !") . "</H2><br><br>"."\n";
|
||||
print "" . _("Back to the homepage of ") . " <a href=\"".get_server_name()."\"> ".NOMAPPLICATION."</A>. "."\n";
|
||||
echo '<br><br><br><br>'."\n";
|
||||
print "<h2>" . _("This poll doesn't exist !") . "</h2><br /><br />"."\n";
|
||||
print "" . _("Back to the homepage of ") . " <a href=\"".get_server_name()."\"> ".NOMAPPLICATION."</a>. "."\n";
|
||||
echo '<br /><br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
|
||||
|
@ -750,14 +729,17 @@ $dsujet=$sujets->FetchObject(false);
|
|||
$dsondage=$sondage->FetchObject(false);
|
||||
|
||||
$toutsujet=explode(",",$dsujet->sujet);
|
||||
$toutsujet=str_replace("@","<br>",$toutsujet);
|
||||
$toutsujet=str_replace("@","<br />",$toutsujet);
|
||||
$toutsujet=str_replace("°","'",$toutsujet);
|
||||
$nbcolonnes=substr_count($dsujet->sujet,',')+1;
|
||||
|
||||
echo '<form name="formulaire" action="'.getUrlSondage($numsondageadmin, true).'" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||
echo '<div class="cadre"> '."\n";
|
||||
echo _('As poll administrator, you can change all the lines of this poll with <img src="'.get_server_name().'images/info.png" alt="infos">.<br> You can, as well, remove a column or a line with <img src="'.get_server_name().'images/cancel.png" alt="Cancel">. <br>You can also add a new column with <img src="'.get_server_name().'images/add-16.png" alt="Add column">.<br> Finally, you can change the informations of this poll like the title, the comments or your email address.') ."\n";
|
||||
echo '<br><br>'."\n";
|
||||
echo '<div class="cadre"><div class="information"><p> '."\n";
|
||||
echo _('As poll administrator, you can change all the lines of this poll with this button ').'<img src="'.get_server_name().'images/info.png" alt="' . _('Edit') . '" />.<br />';
|
||||
echo _('You can, as well, remove a column or a line with ') . '<img src="'.get_server_name().'images/cancel.png" alt="' . _('Remove the column') . '" />.<br />';
|
||||
echo _('You can also add a new column with '). '<img src="'.get_server_name().'images/add-16.png" alt="'. _('Add a colomn') . '" />.<br />';
|
||||
echo _('Finally, you can change the informations of this poll like the title, the comments or your email address.') ."\n";
|
||||
echo '</p></div>'."\n";
|
||||
|
||||
//debut de l'affichage de résultats
|
||||
echo '<table class="resultats">'."\n";
|
||||
|
@ -767,13 +749,13 @@ $toutsujet=explode(",",$dsujet->sujet);
|
|||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
|
||||
|
||||
//boucle pour l'affichage des boutons de suppression de colonne
|
||||
for ($i = 0; isset($toutsujet[$i]); $i++) {
|
||||
echo '<td class=somme><input type="image" name="effacecolonne'.$i.'" value="Effacer la colonne" src="'.get_server_name().'images/cancel.png" /></td>'."\n";
|
||||
echo '<td class=somme><input type="image" name="effacecolonne'.$i.'" alt="' . _('Remove the column') . '" src="'.get_server_name().'images/cancel.png" /></td>'."\n";
|
||||
}
|
||||
|
||||
echo '<td><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add a column') . '" /></td></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
|
||||
//si le sondage est un sondage de date
|
||||
|
@ -807,7 +789,7 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
}
|
||||
}
|
||||
|
||||
echo '<td class="annee"><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '<td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
|
@ -841,7 +823,7 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
}
|
||||
}
|
||||
|
||||
echo '<td class="mois"><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
|
@ -875,7 +857,7 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
}
|
||||
}
|
||||
|
||||
echo '<td class="jour"><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
|
||||
//affichage des horaires
|
||||
|
@ -893,7 +875,7 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
}
|
||||
}
|
||||
|
||||
echo '<td class="heure"><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
} else {
|
||||
|
@ -908,7 +890,7 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
echo '<td class="sujet">'.stripslashes($toutsujet[$i]).'</td>'."\n";
|
||||
}
|
||||
|
||||
echo '<td class="sujet"><input type="image" name="ajoutsujet" src="'.get_server_name().'images/add-16.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
|
@ -921,7 +903,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
$ensemblereponses = $data->reponses;
|
||||
|
||||
echo '<tr>'."\n";
|
||||
echo '<td><input type="image" name="effaceligne'.$compteur.'" value="Effacer" src="'.get_server_name().'images/cancel.png" alt="Icone efface" /></td>'."\n";
|
||||
echo '<td><input type="image" name="effaceligne'.$compteur.'" src="'.get_server_name().'images/cancel.png" alt="'. _('Remove') .'" /></td>'."\n";
|
||||
|
||||
//affichage du nom
|
||||
$nombase=str_replace("°","'",$data->nom);
|
||||
|
@ -948,9 +930,9 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
for ($j = 0; $j < $nbcolonnes; $j++) {
|
||||
$car = substr($ensemblereponses, $j, 1);
|
||||
if ($car == "1") {
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$j.'" value="" checked></td>'."\n";
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$j.'" value="" checked /></td>'."\n";
|
||||
} else {
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$j.'" value=""></td>'."\n";
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$j.'" value="" /></td>'."\n";
|
||||
}
|
||||
}
|
||||
} else { //sinon on affiche les lignes normales
|
||||
|
@ -972,14 +954,14 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
|
||||
//a la fin de chaque ligne se trouve les boutons modifier
|
||||
if (!$testligneamodifier=="true") {
|
||||
echo '<td class=somme><input type="image" name="modifierligne'.$compteur.'" value="Modifier" src="'.get_server_name().'images/info.png" alt="Icone infos"></td>'."\n";
|
||||
echo '<td class=somme><input type="image" name="modifierligne'.$compteur.'" src="'.get_server_name().'images/info.png" alt="'. _('Edit') .'" /></td>'."\n";
|
||||
}
|
||||
|
||||
//demande de confirmation pour modification de ligne
|
||||
for ($i = 0; $i < $nblignes; $i++) {
|
||||
if (isset($_POST["modifierligne$i"]) || isset($_POST['modifierligne'.$i.'_x'])) {
|
||||
if ($compteur == $i) {
|
||||
echo '<td><input type="image" name="validermodifier'.$compteur.'" value="Valider la modification" src="'.get_server_name().'images/accept.png" alt="Icone valider"></td>'."\n";
|
||||
echo '<td><input type="image" name="validermodifier'.$compteur.'" src="'.get_server_name().'images/accept.png" alt="'. _('Validate') .'" /></td>'."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -988,23 +970,28 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
if (!$testligneamodifier=="true") {
|
||||
//affichage de la case vide de texte pour un nouvel utilisateur
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '<td class=nom>'."\n";
|
||||
echo '<input type="text" name="nom" /><br />'."\n";
|
||||
echo '</td>'."\n";
|
||||
|
||||
//affichage de la case vide de texte pour un nouvel utilisateur
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '<td class=nom>'."\n";
|
||||
echo '<input type="text" name="nom"><br>'."\n";
|
||||
echo '</td>'."\n";
|
||||
//une ligne de checkbox pour le choix du nouvel utilisateur
|
||||
for ($i = 0; $i < $nbcolonnes; $i++) {
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$i.'" value="" /></td>'."\n";
|
||||
}
|
||||
|
||||
// Affichage du bouton de formulaire pour inscrire un nouvel utilisateur dans la base
|
||||
echo '<td><input type="image" name="boutonp" src="'.get_server_name().'images/add-24.png" alt="'. _('Validate my choices') .'" /></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
|
||||
//focus en javascript sur le champ texte pour le nom d'utilisateur
|
||||
echo '<script type="text/javascript">document.formulaire.nom.focus();</script>'."\n";
|
||||
|
||||
//une ligne de checkbox pour le choix du nouvel utilisateur
|
||||
for ($i = 0; $i < $nbcolonnes; $i++) {
|
||||
echo '<td class="vide"><input type="checkbox" name="choix'.$i.'" value=""></td>'."\n";
|
||||
}
|
||||
|
||||
// Affichage du bouton de formulaire pour inscrire un nouvel utilisateur dans la base
|
||||
echo '<td><input type="image" name="boutonp" value="Participer" src="'.get_server_name().'images/add-24.png" alt="' . _('Add') . '"></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
|
||||
//determination du meilleur choix
|
||||
for ($i = 0; $i < $nbcolonnes + 1; $i++) {
|
||||
if (isset($somme[$i]) === true) {
|
||||
|
@ -1049,7 +1036,7 @@ echo '<td class="somme"></td>'."\n";
|
|||
|
||||
for ($i = 0; $i < $nbcolonnes; $i++) {
|
||||
if (isset($somme[$i]) === true && isset($meilleurecolonne) === true && $somme[$i] == $meilleurecolonne){
|
||||
echo '<td class="somme"><img src="'.get_server_name().'images/medaille.png" alt="Meilleur resultat"></td>'."\n";
|
||||
echo '<td class="somme"><img src="'.get_server_name().'images/medaille.png" alt="' . _('Best choice') . '" /></td>'."\n";
|
||||
} else {
|
||||
echo '<td class="somme"></td>'."\n";
|
||||
}
|
||||
|
@ -1061,25 +1048,25 @@ echo '</tr>'."\n";
|
|||
// S'il a oublié de remplir un nom
|
||||
if ((isset($_POST["boutonp"]) || isset($_POST["boutonp_x"])) && $_POST["nom"] == "") {
|
||||
echo '<tr>'."\n";
|
||||
print "<td colspan=10><font color=#FF0000>" . _("Enter a name !") . "</font>\n";
|
||||
print '<td colspan=10><p class="error">' . _("Enter a name !") . "</p>\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
if (isset($erreur_prenom) && $erreur_prenom) {
|
||||
echo '<tr>'."\n";
|
||||
print "<td colspan=10><font color=#FF0000>" . _("The name you've chosen already exist in this poll!") . "</font></td>\n";
|
||||
print '<td colspan=10><p class="error">' . _("The name you've chosen already exist in this poll!") . "</p></td>\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
if (isset($erreur_injection) && $erreur_injection) {
|
||||
echo '<tr>'."\n";
|
||||
print "<td colspan=10><font color=#FF0000>" . _("Characters \" ' < et > are not permitted") . "</font></td>\n";
|
||||
print '<td colspan=10><p class="error">' . _("Characters \" ' < et > are not permitted") . "</p></td>\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
if (isset($erreur_ajout_date) && $erreur_ajout_date) {
|
||||
echo '<tr>'."\n";
|
||||
print "<td colspan=10><font color=#FF0000>" . _("The date is not correct !") . "</font></td>\n";
|
||||
print '<td colspan=10><p class="error">' . _("The date is not correct !") . "</p></td>\n";
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
|
||||
|
@ -1087,11 +1074,6 @@ if (isset($erreur_ajout_date) && $erreur_ajout_date) {
|
|||
echo '</table>'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
//focus en javascript sur le champ texte pour le nom d'utilisateur
|
||||
echo '<script type="text/javascript">'."\n";
|
||||
echo 'document.formulaire.nom.focus();'."\n";
|
||||
echo '</script>'."\n";
|
||||
|
||||
//recuperation des valeurs des sujets et adaptation pour affichage
|
||||
$toutsujet = explode(",", $dsujet->sujet);
|
||||
|
||||
|
@ -1141,97 +1123,104 @@ echo '<p class=affichageresultats>'."\n";
|
|||
|
||||
//affichage de la phrase annoncant le meilleur sujet
|
||||
if (isset($meilleurecolonne) && $compteursujet == "1") {
|
||||
print "<img src=\"".get_server_name()."images/medaille.png\" alt=\"Meilleur resultat\">" . _("The best choice at this time is") . " : <b>$meilleursujet </b>" . _("with") . " <b>$meilleurecolonne </b>" . $vote_str . ".<br>\n";
|
||||
print "<img src=\"".get_server_name()."images/medaille.png\" alt=\"\" />" . _("The best choice at this time is") . " : <b>$meilleursujet </b>" . _("with") . " <b>$meilleurecolonne </b>" . $vote_str . ".<br />\n";
|
||||
} elseif (isset($meilleurecolonne)) {
|
||||
print "<img src=\"".get_server_name()."images/medaille.png\" alt=\"Meilleur resultat\"> " . _("The bests choices at this time are") . " : <b>$meilleursujet </b>" . _("with") . " <b>$meilleurecolonne </b>" . $vote_str . ".<br>\n";
|
||||
print "<img src=\"".get_server_name()."images/medaille.png\" alt=\"\" /> " . _("The bests choices at this time are") . " : <b>$meilleursujet </b>" . _("with") . " <b>$meilleurecolonne </b>" . $vote_str . ".<br />\n";
|
||||
}
|
||||
|
||||
echo '<br><br>'."\n";
|
||||
echo '<br /><br />'."\n";
|
||||
echo '</p>'."\n";
|
||||
echo '</form>'."\n";
|
||||
echo '<form name="formulaire4" action="#bas" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||
|
||||
//Suppression du sondage
|
||||
echo '<p class="affichageresultats"><input type="submit" id="suppressionsondage" name="suppressionsondage" value="'. _("Remove the poll") .'" class="button red" /></p>'."\n";
|
||||
echo '<br />'."\n";
|
||||
|
||||
//Gestion du sondage
|
||||
echo '<div class=titregestionadmin>'. _("Poll's management") .' :</div>'."\n";
|
||||
echo '<p class=affichageresultats>'."\n";
|
||||
echo '<br>'."\n";
|
||||
echo '<div class="addcomment"><fieldset><legend>'. _("Poll's management") .' :</legend>'."\n";
|
||||
echo '<p>'."\n";
|
||||
echo '<br />'."\n";
|
||||
|
||||
//Changer le titre du sondage
|
||||
$adresseadmin=$dsondage->mail_admin;
|
||||
echo _("Change the title") .' :<br>' .
|
||||
'<input type="text" name="nouveautitre" size="40" value="'.$dsondage->titre.'">'.
|
||||
'<input type="image" name="boutonnouveautitre" value="Changer le titre" src="'.get_server_name().'images/accept.png" alt="Valider"><br><br>'."\n";
|
||||
echo '<label for="nouveautitre">'. _("Poll title: ") .'</label></p>' .
|
||||
'<p><input type="text" title="'. _("Change the title") .'" id="nouveautitre" name="nouveautitre" size="40" value="'.$dsondage->titre.'" /></p>'.
|
||||
'<p class="txt-right"><input type="submit" name="boutonnouveautitre" value="'. _('Save the new title') .'" class="button green medium" /></p>'."\n";
|
||||
|
||||
//si la valeur du nouveau titre est invalide : message d'erreur
|
||||
if ((isset($_POST["boutonnouveautitre"]) || isset($_POST["boutonnouveautitre_x"])) && !issetAndNoEmpty('nouveautitre')) {
|
||||
echo '<font color="#FF0000">'. _("Enter a new title!") .'</font><br><br>'."\n";
|
||||
echo '<p class="error">'. _("Enter a new title!") .'</p>'."\n";
|
||||
}
|
||||
|
||||
//Changer les commentaires du sondage
|
||||
echo _("Change the comments") .' :<br> <textarea name="nouveauxcommentaires" rows="7" cols="40">'.stripslashes($dsondage->commentaires).'</textarea><br><input type="image" name="boutonnouveauxcommentaires" value="Changer les commentaires" src="'.get_server_name().'images/accept.png" alt="Valider"><br><br>'."\n";
|
||||
|
||||
//Changer l'adresse de l'administrateur
|
||||
echo _("Change your email address") .' :<br> <input type="text" name="nouvelleadresse" size="40" value="'.$dsondage->mail_admin.'"> <input type="image" name="boutonnouvelleadresse" value="Changer votre adresse" src="'.get_server_name().'images/accept.png" alt="Valider"><br>'."\n";
|
||||
echo '<p><label for="nouvelleadresse">'. _("Your e-mail address: ") .'</label></p>'.
|
||||
'<p><input type="text" title="'. _("Change your email") .'" id="nouvelleadresse" name="nouvelleadresse" size="40" value="'.$dsondage->mail_admin.'" /></p>'.
|
||||
'<p class="txt-right"><input type="submit" name="boutonnouvelleadresse" value="'. _('Save your new email') .'" class="button green medium" /></p>'."\n";
|
||||
|
||||
//si l'adresse est invalide ou le champ vide : message d'erreur
|
||||
if ((isset($_POST["boutonnouvelleadresse"]) || isset($_POST["boutonnouvelleadresse_x"])) && !issetAndNoEmpty('nouvelleadresse')) {
|
||||
echo '<font color="#FF0000">'. _("Enter a new email address!") .'</font><br><br>'."\n";
|
||||
echo '<p class="error">'. _("Enter a new email address!") .'</p>'."\n";
|
||||
}
|
||||
|
||||
//Changer la description du sondage
|
||||
echo '<p><label for="nouveauxcommentaires">'. _("Description: ") .'</label></p>'.
|
||||
'<p><textarea title="'. _("Change the description") .'" id="nouveauxcommentaires" name="nouveauxcommentaires" rows="7" cols="40">'.stripslashes($dsondage->commentaires).'</textarea></p>'.
|
||||
'<p class="txt-right"><input type="submit" name="boutonnouveauxcommentaires" value="'. _("Save the description") .'" class="button green medium" /></p>'."\n";
|
||||
|
||||
echo '</fieldset></div>'."\n";
|
||||
|
||||
//affichage des commentaires des utilisateurs existants
|
||||
$sql = 'SELECT * FROM comments WHERE id_sondage='.$connect->Param('numsondage').' ORDER BY id_comment';
|
||||
$sql = $connect->Prepare($sql);
|
||||
$comment_user = $connect->Execute($sql, array($numsondage));
|
||||
if ($comment_user->RecordCount() != 0) {
|
||||
print "<br><b>" . _("Comments") . " :</b><br>\n";
|
||||
print "<br /><b>" . _("Comments of polled people") . " :</b><br />\n";
|
||||
|
||||
$i = 0;
|
||||
while ( $dcomment=$comment_user->FetchNextObject(false)) {
|
||||
print "<input type=\"image\" name=\"suppressioncomment$i\" src=\"".get_server_name()."images/cancel.png\" alt=\"supprimer commentaires\" /> ". stripslashes($dcomment->usercomment) ." : ".stripslashes($dcomment->comment) ." <br>";
|
||||
print "<div class=\"comment\"><input type=\"image\" name=\"suppressioncomment$i\" src=\"".get_server_name()."images/cancel.png\" alt=\"". _('Remove') ."\" />" . '<span class="usercomment">'.stripslashes($dcomment->usercomment). ' :</span> <span class="comment">' . stripslashes(nl2br($dcomment->comment)) . '</span></div>';
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
echo '<br />';
|
||||
}
|
||||
|
||||
if (isset($erreur_commentaire_vide) && $erreur_commentaire_vide=="yes") {
|
||||
print "<font color=#FF0000>" . _("Enter a name and a comment!") . "</font>";
|
||||
print '<p class="error">' . _("Enter a name and a comment!") . "</p>";
|
||||
}
|
||||
|
||||
//affichage de la case permettant de rajouter un commentaire par les utilisateurs
|
||||
print "<br>" . _("Add a comment in the poll") . " :<br>\n";
|
||||
echo _("Name") .' : <input type=text name="commentuser"><br>'."\n";
|
||||
echo '<textarea name="comment" rows="2" cols="40"></textarea>'."\n";
|
||||
echo '<input type="image" name="ajoutcomment" value="Ajouter un commentaire" src="'.get_server_name().'images/accept.png" alt="Valider"><br>'."\n";
|
||||
|
||||
//suppression du sondage
|
||||
echo '<br>'."\n";
|
||||
echo _("Remove your poll") .' : <input type="image" name="suppressionsondage" value="'. _("Remove the poll") .'" src="'.get_server_name().'images/cancel.png" alt="' . _('Cancel') . '" /><br><br>'."\n";
|
||||
|
||||
echo '</form>'."\n";
|
||||
print '<div class="addcomment">' .'<fieldset><legend>' ._("Add a comment in the poll:") . '</legend>' . "\n";
|
||||
echo '<p><label for="commentuser">'. _("Name") .'</label> : <input type=text name="commentuser" id="commentuser" /></p>'."\n";
|
||||
echo '<p><label for="comment">'. _("Your comment: ") .'</label><br /><textarea title="'. _("Write your comment") .'" name="comment" id="comment" rows="2" cols="40"></textarea></p>'."\n";
|
||||
echo '<p class="txt-center"><input type="submit" name="ajoutcomment" value="'. _("Send your comment") .'" class="button green"></p>'."\n";
|
||||
echo '</fieldset></div></form>'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
/* Lettre de convocation
|
||||
if ($dsondage->format == "D" || $dsondage->format == "D+") {
|
||||
echo '<form name="formulaire2" action="'.get_server_name().'exportpdf.php" method="POST" onkeypress="javascript:process_keypress(event)" class="formulaire2">'."\n";
|
||||
echo _("Generate the convocation letter (.PDF), choose the place to meet and validate") .'<br>';
|
||||
echo _("Generate the convocation letter (.PDF), choose the place to meet and validate") .'<br />';
|
||||
echo '<input type="text" name="lieureunion" size="100" value="" />';
|
||||
echo '<input type="hidden" name="sondage" value="$numsondageadmin" />';
|
||||
echo '<input type="hidden" name="meilleursujet" value="$meilleursujetexport" />';
|
||||
echo '<input type="image" name="exportpdf" value="Export en PDF" src="'.get_server_name().'images/accept.png" alt="Export PDF"><br><br>';
|
||||
echo '<input type="image" name="exportpdf" value="Export en PDF" src="'.get_server_name().'images/accept.png" alt="Export PDF"><br /><br />';
|
||||
echo '</form>'."\n";
|
||||
// '<font color="#FF0000">'. _("Enter a meeting place!") .'</font><br><br>'."\n";
|
||||
// '<font color="#FF0000">'. _("Enter a meeting place!") .'</font><br /><br />'."\n";
|
||||
}
|
||||
|
||||
// TODO
|
||||
if (isset($_POST["exportpdf_x"]) && !issetAndNoEmpty('lieureunion')) {
|
||||
echo '<font color="#FF0000">'. _("Enter a meeting place!") .'</font><br><br>'."\n";
|
||||
}
|
||||
echo '<font color="#FF0000">'. _("Enter a meeting place!") .'</font><br /><br />'."\n";
|
||||
} */
|
||||
|
||||
echo '<a id="bas"></a>'."\n";
|
||||
echo '<br><br>'."\n";
|
||||
echo '<br /><br />'."\n";
|
||||
|
||||
//fin de la partie GESTION et beandeau de pied
|
||||
//echo '</p>'."\n";
|
||||
echo '</div>';
|
||||
//echo '</div>';
|
||||
echo '<div class="separateur"> </div>';
|
||||
bandeau_pied_mobile();
|
||||
//echo '</form>'."\n";
|
||||
|
|
182
apropos.php
182
apropos.php
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
session_start();
|
||||
|
||||
include_once('variables.php');
|
||||
|
@ -93,18 +71,18 @@ restera-t-il longtemps en ligne ?</a></li>
|
|||
Framadate ?</h3>
|
||||
Framadate est un service en ligne permettant de planifier un
|
||||
rendez-vous rapidement et simplement. Aucune inscription préalable
|
||||
n'est nécessaire.<br>
|
||||
n'est nécessaire.<br />
|
||||
Framadate est un service du<a href="http://framasoft.org">
|
||||
réseau Framasoft</a>, mis en place par<a
|
||||
href="http://fr.wikipedia.org/wiki/Framasoft"> l'association
|
||||
Framasoft</a>.<br>
|
||||
Framasoft</a>.<br />
|
||||
<h3><a name="studs"></a>Quelles différences
|
||||
entre Framadate et STUdS ! ?</h3>
|
||||
Framadate est un service basé sur le logiciel libre <a
|
||||
href="https://github.com/leblanc-simon/OpenSondage">OpenSondage</a>.
|
||||
OpenSondage est lui-même basé sur le logiciel <a
|
||||
href="http://studs.u-strasbg.fr">STUdS !</a> développé
|
||||
par l'Université de Strasbourg. <br>
|
||||
par l'Université de Strasbourg. <br />
|
||||
Après avoir testé STUdS, nous avons décidé d'apporter de nombreuses
|
||||
modifications, notamment ergonomiques, au code source existant.
|
||||
L'ensemble de ces modifications ne pouvaient entrer dans le cadre
|
||||
|
@ -112,59 +90,59 @@ d'utilisation d'un logiciel déjà en production dans une université et
|
|||
aurait été (fort logiquement) rejetté de la branche principale de
|
||||
développement. C'est pourquoi nous avons préferer "<a
|
||||
href="http://fr.wikipedia.org/wiki/Fork_%28d%C3%A9veloppement_logiciel%29">forker</a>"
|
||||
STUdS pour créer OpenSondage.<br>
|
||||
STUdS pour créer OpenSondage.<br />
|
||||
<h3><a name="doodle"></a>Quelles différences
|
||||
entre Framadate et <a href="http://doodle.com">Doodle</a>
|
||||
?</h3>
|
||||
Aujourd'hui, le danger pour le logiciel libre
|
||||
ne provient plus de Microsoft ou d'Adobe et de leurs logiciels qu'on
|
||||
installe sans avoir le code source, mais des applications web "dans les
|
||||
nuages" proposés comme services par des entreprises.<br>
|
||||
<br>
|
||||
Cela pour au moins 4 raisons :<br>
|
||||
nuages" proposés comme services par des entreprises.<br />
|
||||
<br />
|
||||
Cela pour au moins 4 raisons :<br />
|
||||
1- <span style="font-weight: bold;">sécurité</span>
|
||||
: aucune garantie ne peut vous être apportée quand au fait les données
|
||||
soient correctement sauvegardées et protégées, ni que le<br>
|
||||
code source "officiel" soit réellement celui que vous utilisez en ligne.<br>
|
||||
soient correctement sauvegardées et protégées, ni que le<br />
|
||||
code source "officiel" soit réellement celui que vous utilisez en ligne.<br />
|
||||
2- <span style="font-weight: bold;">fiabilité/perennité</span>
|
||||
: le service peut tomber en panne, et rien ne garanti que la
|
||||
société Doodle sera toujours là demain et maintiendra le site<br>
|
||||
société Doodle sera toujours là demain et maintiendra le site<br />
|
||||
3- <span style="font-weight: bold;">propriété des données</span>
|
||||
: beaucoup d'entreprises s'autoproclament co-détentrices de vos
|
||||
contenus "clouds" (ex: Facebook impose une clause de partage des droits
|
||||
sur vos contenus, vos données, vos photos)<br>
|
||||
sur vos contenus, vos données, vos photos)<br />
|
||||
4-<span style="font-weight: bold;"> vie privée</span>
|
||||
: une entreprise - comme Doodle - doit gagner de l'argent (et il n'y a
|
||||
aucun mal à cela). Mais si elle est en difficulté financière, elle peut
|
||||
décider de changer ses conditions d'utilisation et vendre vos données à
|
||||
des tiers (alors que Framasoft, asso loi 1901 d'intérêt général, n'aura
|
||||
jamais d'intérêt à le faire).<br>
|
||||
<br>
|
||||
A cela s'ajoute le problème, plus éthique, de la publicité.<br>
|
||||
<br>
|
||||
jamais d'intérêt à le faire).<br />
|
||||
<br />
|
||||
A cela s'ajoute le problème, plus éthique, de la publicité.<br />
|
||||
<br />
|
||||
Les problèmes 1 et 2 concernent aussi Framadate.org : rien ne garanti
|
||||
la sécurité et la fiabilité du service (d'autant plus que les
|
||||
administrateurs systèmes de Framasoft sont bénévoles).<br>
|
||||
<br>
|
||||
Par contre :<br>
|
||||
administrateurs systèmes de Framasoft sont bénévoles).<br />
|
||||
<br />
|
||||
Par contre :<br />
|
||||
- les problemes 3 et 4 ne sont pas d'actualité avec Framadate, exploité
|
||||
par une association loi 1901<br>
|
||||
par une association loi 1901<br />
|
||||
- et surtout, Framadate fait partie d'un projet plus global
|
||||
(Framatools) qui vise justement à sensibiliser le grand public à la
|
||||
problématique du "cloud". Cela peut sembler paradoxal, mais bien que
|
||||
proposant le service Framadate.org, nous allons surtout encourager les
|
||||
organisations à installer leur propre instance du logiciel afin de
|
||||
maitriser totalement leurs données.<br>
|
||||
<br>
|
||||
maitriser totalement leurs données.<br />
|
||||
<br />
|
||||
Bref, oui Framadate est inspiré de Doodle.com, et oui Doodle est un
|
||||
excellent service. Mais Doodle reste une "boite noire" pour
|
||||
l'utilisateur final qui va sur doodle.com. Framadate.org essaie de
|
||||
répondre, modestement, à cette problématique en montrant que des
|
||||
alternatives libres existent et qu'on peut les installer "chez soi".<br>
|
||||
alternatives libres existent et qu'on peut les installer "chez soi".<br />
|
||||
<h3><a name="longevite"></a>Mon sondage
|
||||
restera-t-il longtemps en ligne ?</h3>
|
||||
Le service Framadate est proposée gratuitement par l'association
|
||||
Framasoft.<br>
|
||||
Framasoft.<br />
|
||||
Framasoft
|
||||
s'engage à maintenir le service "aussi longtemps que possible", mais ne
|
||||
peut fournir aucune garantie de date. Si cela ne vous convient pas,
|
||||
|
@ -172,7 +150,7 @@ nous vous
|
|||
encourageons sincèrement à installer vous-même Framadate et à maintenir
|
||||
vous-même votre propre service.
|
||||
<hr style="width: 100%; height: 2px;">
|
||||
<h1><a name="mentions"></a>Mentions légales<br>
|
||||
<h1><a name="mentions"></a>Mentions légales<br />
|
||||
</h1>
|
||||
<h2>Éditeur et Responsable de la publication</h2>
|
||||
<p>Editeur : Association Framasoft (cf "Hébergement")</p>
|
||||
|
@ -246,40 +224,40 @@ propre licence, installez votre propre logiciel de sondage et
|
|||
n'utilisez pas Framadate.org.</p>
|
||||
<hr style="width: 100%; height: 2px;">
|
||||
<h2><a name="credits"></a>Crédits</h2>
|
||||
<b>Application d'origine</b><br>
|
||||
<br>
|
||||
<b>Application d'origine</b><br />
|
||||
<br />
|
||||
L'application Framadate est une instance du logiciel <b><a
|
||||
href="http://studs.u-strasbg.fr">STUdS !</a></b>
|
||||
développé à l'Université de Strasbourg depuis 2008.<br>
|
||||
<br>
|
||||
développé à l'Université de Strasbourg depuis 2008.<br />
|
||||
<br />
|
||||
Pour les besoins de Framadate, STUdS a fait l'objet d'un fork par
|
||||
l'équipe Framasoft. Les sources sont disponibles sur le Github <a
|
||||
href="https://github.com/leblanc-simon/OpenSondage">OpenSondage</a>.<br>
|
||||
<br>
|
||||
<b>Technologies utilisées</b><br>
|
||||
<br>
|
||||
- <a href="http://www.php.net/">PHP</a><br>
|
||||
- <a href="http://www.postgresql.org/">MySQL</a><br>
|
||||
- <a href="http://www.apache.org/">Apache</a><br>
|
||||
- <a href="http://subversion.tigris.org/">Subversion</a><br>
|
||||
- <a href="http://www.kigkonsult.se/iCalcreator/">iCalcreator</a><br>
|
||||
- <a href="http://www.fpdf.org/">FPDF</a><br>
|
||||
href="https://github.com/leblanc-simon/OpenSondage">OpenSondage</a>.<br />
|
||||
<br />
|
||||
<b>Technologies utilisées</b><br />
|
||||
<br />
|
||||
- <a href="http://www.php.net/">PHP</a><br />
|
||||
- <a href="http://www.postgresql.org/">MySQL</a><br />
|
||||
- <a href="http://www.apache.org/">Apache</a><br />
|
||||
- <a href="http://subversion.tigris.org/">Subversion</a><br />
|
||||
- <a href="http://www.kigkonsult.se/iCalcreator/">iCalcreator</a><br />
|
||||
- <a href="http://www.fpdf.org/">FPDF</a><br />
|
||||
- Icônes : <a href="http://deleket.deviantart.com/">Deleket</a>,
|
||||
<a href="http://pixel-mixer.com">PixelMixer</a> et <a
|
||||
href="http://dryicons.com">DryIcons</a><br>
|
||||
<br>
|
||||
<b>Compatibilités des navigateurs</b><br>
|
||||
<br>
|
||||
- <a href="http://www.mozilla.com/firefox/">Firefox</a><br>
|
||||
- <a href="http://www.opera.com/">Opéra</a><br>
|
||||
- <a href="http://www.konqueror.org/">Konqueror</a><br>
|
||||
- <a href="http://www.jikos.cz/%7Emikulas/links/">Links</a><br>
|
||||
- <a href="http://www.apple.com/fr/safari/">Safari</a><br>
|
||||
- <a href="http://www.mozilla.com/firefox/">IE</a><br>
|
||||
<br>
|
||||
<b>Validations des pages</b><br>
|
||||
<br>
|
||||
- Toutes les pages disposent de la validation HTML 4.01 Strict du W3C. <br>
|
||||
href="http://dryicons.com">DryIcons</a><br />
|
||||
<br />
|
||||
<b>Compatibilités des navigateurs</b><br />
|
||||
<br />
|
||||
- <a href="http://www.mozilla.com/firefox/">Firefox</a><br />
|
||||
- <a href="http://www.opera.com/">Opéra</a><br />
|
||||
- <a href="http://www.konqueror.org/">Konqueror</a><br />
|
||||
- <a href="http://www.jikos.cz/%7Emikulas/links/">Links</a><br />
|
||||
- <a href="http://www.apple.com/fr/safari/">Safari</a><br />
|
||||
- <a href="http://www.mozilla.com/firefox/">IE</a><br />
|
||||
<br />
|
||||
<b>Validations des pages</b><br />
|
||||
<br />
|
||||
- Toutes les pages disposent de la validation HTML 4.01 Strict du W3C. <br />
|
||||
- La CSS dispose de la validation CSS 2.1 du W3C.
|
||||
<p><img src="http://www.w3.org/Icons/valid-html401-blue"
|
||||
alt="Valid HTML 4.01 Strict" height="31" width="88"><img
|
||||
|
@ -287,31 +265,31 @@ l'équipe Framasoft. Les sources sont disponibles sur le Github <a
|
|||
src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
|
||||
alt="CSS Valide !">
|
||||
</p>
|
||||
<b>Propositions améliorations de Framadate</b><br>
|
||||
<br>
|
||||
<b>Propositions améliorations de Framadate</b><br />
|
||||
<br />
|
||||
Si quelque chose venait à vous manquer, vous pouvez nous en faire part
|
||||
via le <a href="http://contact.framasoft.org">formulaire en ligne</a>.
|
||||
<br>
|
||||
<br />
|
||||
Les dernières améliorations de Framadate sont visibles dans le fichier <a
|
||||
href="CHANGELOG">CHANGELOG</a>.<br>
|
||||
<br>
|
||||
<b>Remerciements</b><br>
|
||||
<br>
|
||||
href="CHANGELOG">CHANGELOG</a>.<br />
|
||||
<br />
|
||||
<b>Remerciements</b><br />
|
||||
<br />
|
||||
<b><a href="http://studs.u-strasbg.fr">STUdS !</a></b> :
|
||||
Pour leurs contributions techniques ou ergonomiques : Guy, Christophe,
|
||||
Julien, Pierre, Romaric, Matthieu, Catherine, Christine, Olivier,
|
||||
Emmanuel et Florence <br>
|
||||
Emmanuel et Florence <br />
|
||||
<a style="font-weight: bold;"
|
||||
href="https://github.com/leblanc-simon/OpenSondage">Framadate</a>
|
||||
: Simon Leblanc (développement principal), Pierre-Yves Gosset
|
||||
(développement, graphisme), la communauté Framasoft.<br>
|
||||
<br>
|
||||
(développement, graphisme), la communauté Framasoft.<br />
|
||||
<br />
|
||||
<h2><b><a name="licence"></a>Licence</b></h2>
|
||||
Framadate est placé, comme <b><a
|
||||
href="http://studs.u-strasbg.fr">STUdS !</a>,</b>
|
||||
sous la licence logicielle libre <a
|
||||
href="http://www.cecill.info/licences.fr.html">CeCILL-B</a>.<br>
|
||||
<br>
|
||||
href="http://www.cecill.info/licences.fr.html">CeCILL-B</a>.<br />
|
||||
<br />
|
||||
mentions;
|
||||
|
||||
echo '</div>'."\n";
|
||||
|
|
72
bandeaux.php
72
bandeaux.php
|
@ -1,42 +1,21 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
include_once('fonctions.php');
|
||||
|
||||
function framanav()
|
||||
|
@ -101,11 +80,14 @@ function bandeau_titre($titre)
|
|||
|
||||
function liste_lang()
|
||||
{
|
||||
global $ALLOWED_LANGUAGES;
|
||||
|
||||
global $ALLOWED_LANGUAGES; global $lang;
|
||||
$str = '';
|
||||
foreach ($ALLOWED_LANGUAGES as $k => $v ) {
|
||||
$str .= '<li lang="'.substr($k,0,2).'"><a class="button small gray" href="' . $_SERVER['PHP_SELF'] . '?lang=' . $k . '">' . $v . '</a></li>' . "\n" ;
|
||||
if (substr($k,0,2)==$lang) {
|
||||
$str .= '<option lang="'.substr($k,0,2).'" selected value="' . $k . '">' . $v . '</option>' . "\n" ;
|
||||
} else {
|
||||
$str .= '<option lang="'.substr($k,0,2).'" value="' . $k . '">' . $v . '</option>' . "\n" ;
|
||||
}
|
||||
}
|
||||
|
||||
return $str;
|
||||
|
@ -173,8 +155,8 @@ function bandeau_pied()
|
|||
'<li><a class="button small gray" href="'.get_server_name().'apropos.php">'. _("About") .'</a></li>' .
|
||||
//'<a class="button small gray" href="/admin/index.php">'. _("Admin") .'</a></li>' .
|
||||
'</ul>' .
|
||||
'<ul class="sousbandeau sousbandeaulangue">' .
|
||||
liste_lang() . '</ul>'.
|
||||
'<ul class="sousbandeau sousbandeaulangue"><li><form method="post" action=""><select name="lang" title="'. _("Change the language") .'" class="small white" >' .
|
||||
liste_lang() . '</select><input type="submit" value="OK" class="small white" /></form></li></ul>'.
|
||||
'</div>' . "\n";
|
||||
gAnalytics();
|
||||
}
|
||||
|
@ -194,8 +176,8 @@ function bandeau_pied_mobile()
|
|||
'<li><a class="button small gray" href="'.get_server_name().'apropos.php">'. _("About") .'</a></li>' .
|
||||
//'<a class="button small gray" href="/admin/index.php">'. _("Admin") .'</a></li>' .
|
||||
'</ul>' .
|
||||
'<ul class="sousbandeau sousbandeaulangue">' .
|
||||
liste_lang() . '</ul>'.
|
||||
'<ul class="sousbandeau sousbandeaulangue"><li><form method="post" action=""><select name="lang" title="'. _("Change the language") .'" class="small white" >' .
|
||||
liste_lang() . '</select><input type="submit" value="OK" class="small white" /></form></li></ul>'.
|
||||
'</div>' . "\n";
|
||||
gAnalytics();
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
border-radius: 2em;
|
||||
}
|
||||
.medium {
|
||||
font-size: 12px;
|
||||
padding: .4em 1.5em .42em;
|
||||
font-size: 12px !important;
|
||||
padding: .4em 1.5em .42em !important;
|
||||
}
|
||||
.small {
|
||||
font-size: 11px;
|
||||
|
|
|
@ -1,42 +1,21 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
session_start();
|
||||
include_once('creation_sondage.php');
|
||||
|
||||
|
@ -138,9 +117,9 @@ if (issetAndNoEmpty('titre', $_SESSION) === false || issetAndNoEmpty('nom', $_SE
|
|||
|
||||
if( ($testremplissage != "ok" && (isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"]))) || ($testdate === false) || ($erreur_injection) ) {
|
||||
// S'il y a des erreurs
|
||||
print_header(false, _("Error!") .' - '. _("Poll subjects (2 on 2)"));
|
||||
print_header(false, _("Error!") .' - '. _("Poll subjects (2 on 2)"), $lang);
|
||||
} else {
|
||||
print_header(false, _("Poll subjects (2 on 2)"));
|
||||
print_header(false, _("Poll subjects (2 on 2)"), $lang);
|
||||
}
|
||||
|
||||
echo '<body>'."\n";
|
||||
|
@ -153,7 +132,7 @@ if (issetAndNoEmpty('titre', $_SESSION) === false || issetAndNoEmpty('nom', $_SE
|
|||
sous_bandeau_choix();
|
||||
|
||||
echo '<div class="corps">'."\n";
|
||||
echo '<p>'. _("Your poll aim is to make a choice between different subjects.<br>Enter the subjects to vote for:") .'</p>'."\n";
|
||||
echo '<p>'. _("Your poll aim is to make a choice between different subjects.") . '<br />' . _("Enter the subjects to vote for:") .'</p>'."\n";
|
||||
echo '<table>'."\n";
|
||||
|
||||
//affichage des cases texte de formulaire
|
||||
|
@ -212,11 +191,11 @@ if (!isset($_POST["fin_sondage_autre_x"])) {
|
|||
if ((isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"])) && !$erreur && !$erreur_injection) {
|
||||
//demande de la date de fin du sondage
|
||||
echo '<div class=presentationdatefin>'."\n";
|
||||
echo '<p>'. _("Your poll will be automatically removed after 6 months.<br> You can fix another removal date for it.") .'</p>'."\n";
|
||||
echo '<p>'. _("Your poll will be automatically removed after 6 months."). '<br />' . _("You can fix another removal date for it.") .'</p>'."\n";
|
||||
echo '<label for="champdatefin">'. _("Removal date (optional)") .'</label> : <input type="text" class="champdatefin" id="champdatefin" aria-describedby="dateformat" name="champdatefin" value="'.$date_selected.'" size="10" maxlength="10"> <span id="dateformat">'. _("(DD/MM/YYYY)") .'</span>'."\n";
|
||||
echo '</div>'."\n";
|
||||
echo '<div class=presentationdatefin>'."\n";
|
||||
echo '<p class="error">'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters.").'</p>'."\n";
|
||||
echo '<p class="error">'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll.").'<br /><br />'. _("Then, you will receive quickly an email contening the link to your poll for sending it to the voters.").'</p>'."\n";
|
||||
echo '</div>'."\n";
|
||||
//echo '<table>'."\n";
|
||||
//echo '<tr><td>'. _("Create the poll") .'</td><td><input type="image" name="confirmecreation" value="Valider la création"i src="images/add.png"></td></tr>'."\n";
|
||||
|
|
114
choix_date.php
114
choix_date.php
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
session_start();
|
||||
|
||||
include_once('creation_sondage.php');
|
||||
|
@ -62,9 +40,8 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
bandeau_tete();
|
||||
bandeau_titre(_("Error!"));
|
||||
echo '<div class=corpscentre corps>'."\n";
|
||||
print "<H2>" . _("You haven't filled the first section of the poll creation.") . " !</H2>"."\n";
|
||||
print "<h2>" . _("You haven't filled the first section of the poll creation.") . " !</h2>"."\n";
|
||||
print _("Back to the homepage of ") . ' ' . '<a href="'.get_server_name().'">' . NOMAPPLICATION . '</a>.' . "\n";
|
||||
echo '<br><br><br>'."\n";
|
||||
echo '</div>'."\n";
|
||||
//bandeau de pied
|
||||
//sur_bandeau_pied();
|
||||
|
@ -237,21 +214,25 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
echo ' <div class="corps">';
|
||||
|
||||
//affichage de l'aide pour les jours
|
||||
echo '<div class="bodydate">'."\n";
|
||||
echo _("Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it.") ."\n";
|
||||
echo '<div class="bodydate information">'."\n";
|
||||
echo '<p>'._("Select your dates amoung the free days (green). The selected days are in blue.").'<br />'. _("You can unselect a day previously selected by clicking again on it.") .'</p>'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
//debut du tableau qui affiche le calendrier
|
||||
echo '<div class=calendrier>'."\n";
|
||||
echo '<table align=center>'."\n";
|
||||
echo '<tr><td><input type="image" name="anneeavant" value="<<" src="'.get_server_name().'images/rewind.png"></td><td><input type="image" name="moisavant" value="<" src="'.get_server_name().'images/previous.png"></td><td align="center" class="choix_date_mois"> '.$motmois.' '.$_SESSION["annee"].' </td><td><input type="image" name="moisapres" value=">" src="'.get_server_name().'images/next.png"></td><td><input type="image" name="anneeapres" value=">>" src="'.get_server_name().'images/fforward.png"></td><td></td><td></td><td></td><td></td><td></td><td><input type="image" name="retourmois" value="Aujourd\'hui" src="'.get_server_name().'images/reload.png"></td></tr>'."\n";
|
||||
echo '</table>'."\n";
|
||||
echo '<table>'."\n";
|
||||
echo '<tr>'."\n";
|
||||
echo '<table align="center" summary="'. _('Calendar') .'">'."\n";
|
||||
echo '<tr><td colspan="7" align="center" class="choix_date_mois" scope="colgroup">';
|
||||
echo '<input type="image" style="float:left" name="anneeavant" value="<<" alt="' . _('Previous year') . '" src="'.get_server_name().'images/rewind.png" />'."\n";
|
||||
echo '<input type="image" style="float:left" name="moisavant" value="<" alt="' . _('Previous month') . '" src="'.get_server_name().'images/previous.png" />'."\n";
|
||||
echo $motmois.' '.$_SESSION["annee"]."\n";
|
||||
echo '<input type="image" style="float:right" name="anneeapres" value=">>" alt="' . _('Next year') . '" src="'.get_server_name().'images/fforward.png"/>'."\n";
|
||||
echo '<input type="image" style="float:right" name="moisapres" value=">" alt="' . _('Next month') . '" src="'.get_server_name().'images/next.png" />'."\n";
|
||||
echo '<input type="image" style="float:right" name="retourmois" value="Aujourd\'hui" alt="' . _('Today') . '" src="'.get_server_name().'images/reload.png"/>'."\n";
|
||||
echo '</td></tr><tr>'."\n";
|
||||
|
||||
//affichage des jours de la semaine en haut du tableau
|
||||
for($i = 0; $i < 7; $i++) {
|
||||
echo '<td class="joursemaine">'. strftime('%A',mktime(0,0,0,0, $i,10)) .'</td>';
|
||||
echo '<td class="joursemaine" scope="col">'. strftime('%A',mktime(0,0,0,0, $i,10)) .'</td>';
|
||||
}
|
||||
|
||||
echo '</tr>'."\n";
|
||||
|
@ -478,27 +459,26 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
}
|
||||
}
|
||||
|
||||
echo '<div class=bodydate>'."\n";
|
||||
echo '<div class="bodydate">'."\n";
|
||||
|
||||
//affichage de tous les jours choisis
|
||||
if (issetAndNoEmpty('totalchoixjour', $_SESSION) && (!issetAndNoEmpty('choixheures_x') || $erreur)) {
|
||||
//affichage des jours
|
||||
echo '<br>'."\n";
|
||||
echo '<H2>'. _("Selected days") .' :</H2>'."\n";
|
||||
echo '<br />'."\n";
|
||||
echo '<h2>'. _("Selected days") .' :</h2>'."\n";
|
||||
//affichage de l'aide pour les jours
|
||||
//echo _("For each selected day, you can choose, or not, meeting hours in the following format :<br>- empty,<br>- \"8h\", \"8H\" or \"8:00\" to give a meeting's start hour,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" ou \"8:00-11:00\" to give a meeting's start and end hour,<br>- \"8h15-11h15\", \"8H15-11H15\" ou \"8:15-11:15\" for the same thing but with minutes.") .'<br><br>'."\n";
|
||||
echo _("For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8\", \"evening\", etc.)") .'<br><br>'."\n";
|
||||
echo '<div class="information"><p>'._("For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)") .'</p></div>'."\n";
|
||||
echo '<table>'."\n";
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
|
||||
for ($i = 0; $i < $_SESSION["nbrecaseshoraires"]; $i++) {
|
||||
$j = $i+1;
|
||||
echo '<td classe=somme>'. _("Time") .' '.$j.'</center></td>'."\n";
|
||||
echo '<th class="somme" scope="col">'. _("Time") .' '.$j.'</th>'."\n";
|
||||
}
|
||||
|
||||
if ($_SESSION["nbrecaseshoraires"] < 10) {
|
||||
echo '<td classe=somme><input type="image" name="ajoutcases" src="'.get_server_name().'images/add-16.png"></td>'."\n";
|
||||
echo '<th class="somme"><input type="image" name="ajoutcases" src="'.get_server_name().'images/add-16.png"></th>'."\n";
|
||||
}
|
||||
|
||||
echo '</tr>'."\n";
|
||||
|
@ -507,9 +487,9 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
for ($i=0;$i<count($_SESSION["totalchoixjour"]);$i++) {
|
||||
echo '<tr>'."\n";
|
||||
if ($_SESSION["langue"]=="EN") {
|
||||
echo '<td>'.date("l, F jS Y", $_SESSION["totalchoixjour"][$i]).' : </td>'."\n";
|
||||
echo '<th scope="row">'.date("l, F jS Y", $_SESSION["totalchoixjour"][$i]).' : </th>'."\n";
|
||||
} else {
|
||||
echo '<td>'.strftime(_("%A, den %e. %B %Y"), $_SESSION["totalchoixjour"][$i]).' : </td>'."\n";
|
||||
echo '<th scope="row">'.strftime(_("%A, den %e. %B %Y"), $_SESSION["totalchoixjour"][$i]).' : </th>'."\n";
|
||||
}
|
||||
|
||||
$affichageerreurfindeligne=false;
|
||||
|
@ -535,7 +515,7 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
}
|
||||
|
||||
if ($affichageerreurfindeligne) {
|
||||
echo '<td><b><font color=#FF0000>'. _("Bad format!") .'</font></b></td>'."\n";
|
||||
echo '<td><p class="error">'. _("Bad format!") .'</p></td>'."\n";
|
||||
}
|
||||
|
||||
echo '</tr>'."\n";
|
||||
|
@ -547,18 +527,18 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
echo '<table>'."\n";
|
||||
echo '<tr>'."\n";
|
||||
echo '<td><input type=submit name="reset" value="'. _("Remove all days") .'"></td><td><input type=submit name="reporterhoraires" value="'. _("Copy hours of the first day") .'"></td><td><input type=submit name="resethoraires" value="'. _("Remove all hours") .'"></td></tr>'."\n";
|
||||
# echo'<tr><td><br></td></tr>'."\n";
|
||||
# echo'<tr><td><br /></td></tr>'."\n";
|
||||
# echo '<tr><td>'. _("Next") .'</td><td><input type=image name="choixheures" value="'. _("Next") .'" src="images/next-32.png"></td></tr>'."\n";
|
||||
echo '</table>'."\n";
|
||||
|
||||
//patch vraiment crado : on donne le nom "choixheures_x" au bouton pour éviter d'avoir à cleaner le code
|
||||
echo '<br><button name="choixheures_x" value="'. _("Next") .'" type="submit" class="button green poursuivre"><strong>'. _('Next') . '</strong> </button>';
|
||||
echo '<br /><button name="choixheures_x" value="'. _("Next") .'" type="submit" class="button green poursuivre"><strong>'. _('Next') . '</strong> </button>';
|
||||
echo '<div style="clear:both"></div>';
|
||||
|
||||
|
||||
//si un seul jour et aucunes horaires choisies, : message d'erreur
|
||||
if ((issetAndNoEmpty('choixheures') || issetAndNoEmpty('choixheures_x')) && (count($_SESSION["totalchoixjour"])=="1" && $_POST["horaires0"][0]=="" && $_POST["horaires0"][1]=="" && $_POST["horaires0"][2]=="" && $_POST["horaires0"][3]=="" && $_POST["horaires0"][4]=="")) {
|
||||
echo '<table><tr><td colspan=3><font color=#FF0000>'. _("Enter more choices for the voters") .'</font><br></td></tr></table>'."\n";
|
||||
echo '<table><tr><td colspan=3><p class="error">'. _("Enter more choices for the voters") .'</p></td></tr></table>'."\n";
|
||||
$erreur=true;
|
||||
}
|
||||
}
|
||||
|
@ -573,10 +553,10 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
$date_fin=strftime(_("%A, den %e. %B %Y"), $jour_arret);
|
||||
}
|
||||
|
||||
echo '<br><div class="presentationdatefin">'. _("Your poll will expire automatically 2 days after the last date of your poll.") .'<br></td></tr><tr><td><br>'. _("Removal date") .' : <b> '.$date_fin.'</b><br><br>'."\n";
|
||||
echo '<br /><div class="presentationdatefin"><p>'. _("Your poll will expire automatically 2 days after the last date of your poll.") .'</p><p>'. _("Removal date") .' : <b> '.$date_fin.'</b></p>'."\n";
|
||||
echo '</div>'."\n";
|
||||
echo '<div class="presentationdatefin">'."\n";
|
||||
echo '<font color="#DD0000">'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters.") .'</font>'."\n";
|
||||
echo '<p>'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."). '</p><p>' . _("Then, you will receive quickly an email contening the link to your poll for sending it to the voters.") .'</p>'."\n";
|
||||
echo'</div>'."\n";
|
||||
// echo'<p class=affichageexport>'."\n";
|
||||
// echo 'Pour finir la création du sondage, cliquez sur le bouton <img src="images/add-16.png" alt="ajout"> ci-dessous'."\n";
|
||||
|
@ -594,13 +574,13 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
|
|||
echo '<div style="clear:both"></div>';
|
||||
}
|
||||
|
||||
echo '</tr>'."\n";
|
||||
echo '</table>'."\n";
|
||||
echo '<a name=bas></a>'."\n";
|
||||
/* echo '</tr>'."\n";
|
||||
echo '</table>'."\n";*/
|
||||
echo '<a name="bas"></a>'."\n";
|
||||
//fin du formulaire et bandeau de pied
|
||||
echo '</form>'."\n";
|
||||
//bandeau de pied
|
||||
//echo '<br><br><br><br>'."\n";
|
||||
//echo '<br /><br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
echo '</div>'; // ajout pyg pour cohérence graphique
|
||||
|
|
69
contacts.php
69
contacts.php
|
@ -1,41 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
session_start();
|
||||
|
||||
|
@ -114,28 +93,28 @@ framanav();
|
|||
sous_bandeau();
|
||||
|
||||
echo '<div class=corps>'."\n";
|
||||
echo _("If you have questions, you can send a message here.") .'<br><br>'."\n";
|
||||
echo _("If you have questions, you can send a message here.") .'<br /><br />'."\n";
|
||||
|
||||
echo _("Your name") .' :<br>'."\n";
|
||||
echo _("Your name") .' :<br />'."\n";
|
||||
echo '<input type="text" size="40" maxlength="64" name="nom" value="'.$_SESSION["nom"].'">';
|
||||
|
||||
if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && $_SESSION["nom"]=="") {
|
||||
echo ' <font color="#FF0000">'. _("Enter a name") .'</font>';
|
||||
echo ' <p class="error">'. _("Enter a name") .'</p>';
|
||||
}
|
||||
|
||||
echo '<br><br>'."\n";
|
||||
echo _("Your email address ") .' :<br>'."\n";
|
||||
echo '<br /><br />'."\n";
|
||||
echo _("Your email address ") .' :<br />'."\n";
|
||||
echo '<input type="text" size="40" maxlength="64" name="adresse_mail" value="'.$_SESSION["adresse_mail"].'">'."\n";
|
||||
|
||||
if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && empty($_SESSION["adresse_mail"]) === false && validateEmail($_SESSION["adresse_mail"]) === false) {
|
||||
echo ' <font color="#FF0000">'. _("The address is not correct!") .'</font>';
|
||||
echo ' <p class="error">'. _("The address is not correct!") .'</p>';
|
||||
}
|
||||
|
||||
echo _("Question") .' :<br>'."\n";
|
||||
echo _("Question") .' :<br />'."\n";
|
||||
echo '<textarea name="question" rows="7" cols="40">'.$_SESSION["question"].'</textarea>';
|
||||
|
||||
if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && $_SESSION["question"]=="") {
|
||||
echo ' <font color="#FF0000"> Il faut poser une question !</font>';
|
||||
echo ' <p class="error"> Il faut poser une question !</p>';
|
||||
}
|
||||
|
||||
echo '<button type="submit" name="envoiquestion" value="'._("Send your question").'" class="button green poursuivre" alt="'._("Send your question").'"><strong>'._("Send your question").'</strong></button>';
|
||||
|
|
|
@ -1,41 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
if (session_id() == "") {
|
||||
session_start();
|
||||
|
|
|
@ -1,41 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
include_once('fonctions.php');
|
||||
|
||||
|
@ -43,7 +22,9 @@ if(!isset($_GET['numsondage']) || ! preg_match(";^[\w\d]{16}$;i", $_GET['numsond
|
|||
header('Location: studs.php');
|
||||
}
|
||||
|
||||
$user_studs=$connect->Execute("SELECT * FROM user_studs WHERE id_sondage=" . $_GET['numsondage'] . " ORDER BY id_users");
|
||||
$sql = 'SELECT * FROM user_studs WHERE id_sondage='.$connect->Param('numsondage').' ORDER BY id_users';
|
||||
$sql = $connect->Prepare($sql);
|
||||
$user_studs = $connect->Execute($sql, array($_GET['numsondage']));
|
||||
|
||||
$dsondage = get_sondage_from_id($_GET['numsondage']);
|
||||
$nbcolonnes=substr_count($dsondage->sujet,',')+1;
|
||||
|
@ -52,22 +33,26 @@ $toutsujet=explode(",",$dsondage->sujet);
|
|||
#$toutsujet=str_replace("°","'",$toutsujet);
|
||||
|
||||
//affichage des sujets du sondage
|
||||
$input.=";";
|
||||
for ($i=0;$toutsujet[$i];$i++) {
|
||||
$input =";";
|
||||
foreach ($toutsujet as $value) {
|
||||
if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
||||
$input.=''.date("j/n/Y",$toutsujet[$i]).';';
|
||||
if (strpos($dsondage->sujet,'@') !== false) {
|
||||
$days=explode("@",$value);
|
||||
$input.= date("j/n/Y",$days[0]).';';
|
||||
} else {
|
||||
$input.= date("j/n/Y",$values).';';
|
||||
}
|
||||
} else {
|
||||
$input.=''.$toutsujet[$i].';';
|
||||
$input.= $value.';';
|
||||
}
|
||||
}
|
||||
|
||||
$input.="\r\n";
|
||||
|
||||
if (strpos($dsondage->sujet,'@') !== false) {
|
||||
$input.=";";
|
||||
for ($i=0;$toutsujet[$i];$i++) {
|
||||
$heures=explode("@",$toutsujet[$i]);
|
||||
$input.=''.$heures[1].';';
|
||||
foreach ($toutsujet as $value) {
|
||||
$heures=explode("@",$value);
|
||||
$input.= $heures[1].';';
|
||||
}
|
||||
|
||||
$input.="\r\n";
|
||||
|
@ -100,4 +85,4 @@ header( 'Content-Length: '.$filesize );
|
|||
header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
|
||||
header( 'Cache-Control: max-age=10' );
|
||||
echo $input;
|
||||
die();
|
||||
die();
|
||||
|
|
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
// TODO: no easy way to retrieve the best(s) choice(s)
|
||||
header('Location: studs.php');
|
||||
|
@ -100,4 +78,4 @@ $v->setComponent ( $vevent ); // add event to calendar
|
|||
$v->setConfig( "language", "fr" );
|
||||
$v->setConfig( "directory", "export" );
|
||||
$v->setConfig( "filename", $_SESSION["numsondage"].".ics" ); // set file name
|
||||
$v->returnCalendar();
|
||||
$v->returnCalendar();
|
||||
|
|
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
session_start();
|
||||
|
||||
require_once('php2pdf/phpToPDF.php');
|
||||
|
|
|
@ -1,42 +1,21 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
if(ini_get('date.timezone') == '') {
|
||||
date_default_timezone_set("Europe/Paris");
|
||||
}
|
||||
|
@ -56,10 +35,11 @@ function connexion_base()
|
|||
function get_server_name()
|
||||
{
|
||||
$scheme = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
|
||||
return $scheme . '://' . $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']).'/';
|
||||
$port = in_array($_SERVER['SERVER_PORT'], array(80, 443)) ? '/' : ':' . $_SERVER['SERVER_PORT'] . '/';
|
||||
$server_name = $_SERVER['SERVER_NAME'] . $port . dirname($_SERVER['SCRIPT_NAME']).'/';
|
||||
return $scheme . '://' . str_replace("///","/",$server_name);
|
||||
}
|
||||
|
||||
|
||||
function get_sondage_from_id($id)
|
||||
{
|
||||
global $connect;
|
||||
|
@ -103,7 +83,7 @@ function is_user()
|
|||
}
|
||||
|
||||
|
||||
function print_header($js = false, $nom_sondage = '')
|
||||
function print_header($js = false, $nom_sondage = '', $lang = 'fr')
|
||||
{
|
||||
echo '<!DOCTYPE html>
|
||||
<html lang="'.$lang.'">
|
||||
|
|
6
i18n.php
6
i18n.php
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
if (isset($_GET['lang']) && is_string($_GET['lang']) && in_array($_GET['lang'], array_keys($ALLOWED_LANGUAGES)) ) {
|
||||
$mlocale = $_GET['lang'] ;
|
||||
setcookie('lang' , $_GET['lang'], time()+60*5);
|
||||
if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang'], array_keys($ALLOWED_LANGUAGES)) ) {
|
||||
$mlocale = $_POST['lang'] ;
|
||||
setcookie('lang' , $_POST['lang'], time()+60*5);
|
||||
} elseif ( isset($_COOKIE['lang']) && is_string($_COOKIE['lang']) && in_array($_COOKIE['lang'], array_keys($ALLOWED_LANGUAGES)) ) {
|
||||
$mlocale = $_COOKIE['lang'] ;
|
||||
} else {
|
||||
|
|
62
index.php
62
index.php
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
include_once('fonctions.php');
|
||||
if (is_readable('bandeaux_local.php')) {
|
||||
include_once('bandeaux_local.php');
|
||||
|
@ -65,8 +43,8 @@ bandeau_titre(_("Organiser des rendez-vous simplement, librement."));
|
|||
sous_bandeau();
|
||||
|
||||
echo '<div class=corps>'."\n";
|
||||
#echo '<p><b>'.NOMAPPLICATION.'<br>'. _("What is it about?") .'</b></p>';
|
||||
#echo '<p>'. _("Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays.") .'</p>'."\n".'<br>'."\n";
|
||||
#echo '<p><b>'.NOMAPPLICATION.'<br />'. _("What is it about?") .'</b></p>';
|
||||
#echo '<p>'. _("Making polls to schedule meetings or events, quickly and easily. <br /> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays.") .'</p>'."\n".'<br />'."\n";
|
||||
#echo '<div class="nouveau_sondage"><b>'. _("Make a poll") .'</b>';
|
||||
# '<span>' .
|
||||
# '<a href="/infos_sondage.php"><img alt="' . _('Make a poll') . '" src="images/next-32.png" /></a>' .
|
||||
|
@ -75,13 +53,13 @@ echo '<div class=corps>'."\n";
|
|||
|
||||
echo '<div class="index_date">';
|
||||
echo '<p><a href="'.get_server_name().'infos_sondage.php?choix_sondage=date" role="button"><img class="opacity" src="'.get_server_name().'images/date.png" alt="" />';
|
||||
echo '<span class="button orange bigrounded"><strong><img src="'.get_server_name().'images/calendar-32.png" alt="" />'
|
||||
echo '<br /><span class="button orange bigrounded"><strong><img src="'.get_server_name().'images/calendar-32.png" alt="" />'
|
||||
. _('Schedule an event') . '</strong></span></a></p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="index_sondage">';
|
||||
echo '<p><a href="'.get_server_name().'infos_sondage.php?choix_sondage=autre" role="button"><img alt="" class="opacity" src="'.get_server_name().'images/sondage2.png" />';
|
||||
echo '<span class="button blue bigrounded"><strong><img src="'.get_server_name().'images/chart-32.png" alt="" />'. _('Make a poll') . '</strong></span></a></p>';
|
||||
echo '<br /><span class="button blue bigrounded"><strong><img src="'.get_server_name().'images/chart-32.png" alt="" />'. _('Make a poll') . '</strong></span></a></p>';
|
||||
echo '</div>';
|
||||
|
||||
|
||||
|
|
|
@ -1,41 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
session_start();
|
||||
include_once('fonctions.php');
|
||||
|
@ -143,11 +122,11 @@ if (issetAndNoEmpty("poursuivre")){
|
|||
|
||||
} else {
|
||||
// Title Erreur !
|
||||
print_header(true, _("Error!").' - '._("Poll creation (1 on 2)"));
|
||||
print_header(true, _("Error!").' - '._("Poll creation (1 on 2)"), $lang);
|
||||
}
|
||||
} else {
|
||||
// Title OK (formulaire pas encore rempli)
|
||||
print_header(true, _("Poll creation (1 on 2)"));
|
||||
print_header(true, _("Poll creation (1 on 2)"), $lang);
|
||||
}
|
||||
|
||||
//affichage de la page
|
||||
|
@ -175,7 +154,7 @@ if(!check_table_sondage()) {
|
|||
echo '<form name="formulaire" id="formulaire" action="'.get_server_name().'infos_sondage.php" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||
|
||||
echo '<div class="corps" style="margin-bottom:5em;">'."\n";
|
||||
echo '<p>'. _("You are in the poll creation section. <br> Required fields cannot be left blank") .'</p>'."\n";
|
||||
echo '<p>'. _("You are in the poll creation section.").' <br /> '._("Required fields cannot be left blank.") .'</p>'."\n";
|
||||
|
||||
//Affichage des différents champs textes a remplir
|
||||
echo '<table role="presentation">'."\n";
|
||||
|
@ -197,7 +176,7 @@ if (!$_SESSION["titre"] && issetAndNoEmpty("poursuivre") ) {
|
|||
|
||||
echo '</tr>'."\n";
|
||||
|
||||
echo '<tr><td><label for="poll_comments">'. _("Comments: ") .'</label></td><td><textarea id="poll_comments" name="commentaires" rows="7" cols="40"';
|
||||
echo '<tr><td><label for="poll_comments">'. _("Description: ") .'</label></td><td><textarea id="poll_comments" name="commentaires" rows="7" cols="40"';
|
||||
if ($erreur_injection_commentaires) {
|
||||
// même principe
|
||||
echo 'aria-describeby="#poll_comment_error">'.stripslashes($_SESSION["commentaires"]).'</textarea></td>'."\n";
|
||||
|
@ -245,7 +224,7 @@ echo '<script type="text/javascript">'."\n";
|
|||
echo 'document.formulaire.titre.focus();'."\n";
|
||||
echo '</script>'."\n";
|
||||
|
||||
#echo '<br>'. _("The fields marked with * are required!") .'<br><br>'."\n";
|
||||
#echo '<br />'. _("The fields marked with * are required!") .'<br /><br />'."\n";
|
||||
|
||||
#affichage du cochage par défaut
|
||||
if (!$_SESSION["studsplus"] && !issetAndNoEmpty('creation_sondage_date') && !issetAndNoEmpty('creation_sondage_autre') && !issetAndNoEmpty('creation_sondage_date_x') && !issetAndNoEmpty('creation_sondage_autre_x')) {
|
||||
|
@ -276,12 +255,12 @@ echo '<div style="clear:both"></div>';
|
|||
|
||||
|
||||
|
||||
#echo '<br><table id="choix_sondage">'."\n";
|
||||
#echo '<br /><table id="choix_sondage">'."\n";
|
||||
#echo '<tr><td><input type="image" name="creation_sondage_date" value="Trouver une date" src="images/calendar-32.png" id="creation_sondage_date"><label for="creation_sondage_date" style="cursor:pointer">'. _("Schedule an event") .'</label></td></tr>'."\n";
|
||||
#echo '<tr><td><input type="image" name="creation_sondage_autre" value="'. _('Make a poll') . '" src="images/chart-32.png" id="creation_sondage_autre"><label for="creation_sondage_autre" style="cursor:pointer" onclick="document.formulaire.creation_sondage_autre.click()">'. _("Make a choice") .'</label></td></tr>'."\n";
|
||||
#echo '<tr><td><button name="creation_sondage_autre_x" value="creation_sondage_autre_x" type="submit" /><img src="images/chart-32.png" alt="Next page" /><strong>'. _('Make a poll') . '</strong> </button></td></tr>'."\n";
|
||||
#echo '</table>'."\n";
|
||||
#echo '<br><br><br>'."\n";
|
||||
#echo '<br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
echo '</form>'."\n";
|
||||
//bandeau de pied
|
||||
|
|
Binary file not shown.
|
@ -136,8 +136,11 @@ msgid "Back to the homepage of "
|
|||
msgstr "Kehren sie zur Startseite zurück "
|
||||
|
||||
#: choix_date.php:220
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Wählen sie ihr Termin unter den in grün angegebenen Tagen an. Die Felder erscheinen in blau wen sie ausgew heltsind.<br> Sie können ihre Wahl wiederufen in dem sie das Feld wiederauswählen."
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue."
|
||||
msgstr "Wählen sie ihr Termin unter den in grün angegebenen Tagen an. Die Felder erscheinen in blau wen sie ausgew heltsind."
|
||||
|
||||
msgid "You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Sie können ihre Wahl wiederufen in dem sie das Feld wiederauswählen."
|
||||
|
||||
#: choix_date.php:233
|
||||
msgid "monday"
|
||||
|
@ -172,8 +175,8 @@ msgid "Selected days"
|
|||
msgstr "Gewälhter Tag"
|
||||
|
||||
#: choix_date.php:487
|
||||
msgid "For each selected day, you can choose, or not, meeting hours in the following format :<br>- empty,<br>- \"8h\", \"8H\" or \"8:00\" to give a meeting's start hour,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" ou \"8:00-11:00\" to give a meeting's start and end hour,<br>- \"8h15-11h15\", \"8H15-11H15\" ou \"8:15-11:15\" for the same thing but with minutes."
|
||||
msgstr "Für jeden ausgewählten Tag, haben Sie die Möglichkeit die Uhrzeit der Versammlung zu bestimmen in einem der folgenden Formaten :<br>- lehr, wenn Sie keine bestimmte Uhrzeit möchten,<br>- \"8h\", \"8H\" oder \"8:00\" um den Beginn der Versammlung vorzuschlagen,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" oder \"8:00-11:00\" für eine Zeitspanne,<br>- \"8h15-11h15\", \"8H15-11H15\" oder \"8:15-11:15\" für ein Zeitspanne mit minuten."
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)"
|
||||
msgstr "Für jeden ausgewählten Tag, haben Sie die Möglichkeit die Uhrzeit der Versammlung zu bestimmen (e.g.: \"8h\", \"8:30\", \"8h-10h\", etc.)"
|
||||
|
||||
#: choix_date.php:494
|
||||
msgid "Time"
|
||||
|
@ -214,8 +217,11 @@ msgstr "Datum an dem die Umfrage gelöscht werden soll"
|
|||
|
||||
#: choix_date.php:552
|
||||
#: choix_autre.php:196
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Als Sie die Herschtelung der Umfrage bestätigt haben werden, werden Sie zur Webseite Ihrer Umfrage automatisch wieder geleitet sein<br><br> Gleichzeitig werden Sie ein E-Mail bekommen in dem ein Link zu ihrer Umfrage ist, um in der erforschten Zukunft zu folgen."
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."
|
||||
msgstr "Als Sie die Herschtelung der Umfrage bestätigt haben werden, werden Sie zur Webseite Ihrer Umfrage automatisch wieder geleitet sein"
|
||||
|
||||
msgid "Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Gleichzeitig werden Sie ein E-Mail bekommen in dem ein Link zu ihrer Umfrage ist, um in der erforschten Zukunft zu folgen."
|
||||
|
||||
#: choix_date.php:558
|
||||
msgid "Back to hours"
|
||||
|
@ -231,8 +237,12 @@ msgid "Poll creation (1 on 2)"
|
|||
msgstr "Erstellen einer Umfrage (1 / 2)"
|
||||
|
||||
#: infos_sondage.php:123
|
||||
msgid "You are in the poll creation section. <br> Required fields cannot be left blank"
|
||||
msgstr "Sie machten eine neue umfrage erstellen !<br> Fullen sie die folgenden Felder aus."
|
||||
msgid "You are in the poll creation section."
|
||||
msgstr "Sie machten eine neue umfrage erstellen !"
|
||||
|
||||
msgid "Required fields cannot be left blank."
|
||||
msgstr "Fullen sie die folgenden Felder aus."
|
||||
|
||||
|
||||
#: infos_sondage.php:128
|
||||
msgid "Poll title *: "
|
||||
|
@ -250,10 +260,10 @@ msgstr "Die Schriftzeichen < > und \" sind nicht genehmigt!"
|
|||
|
||||
#: infos_sondage.php:136
|
||||
msgid "Comments: "
|
||||
msgstr "Komentar (optional): "
|
||||
msgstr "Komentar : "
|
||||
|
||||
#: infos_sondage.php:141
|
||||
msgid "Your name*: "
|
||||
msgid "Your name *: "
|
||||
msgstr "Name *: "
|
||||
|
||||
#: infos_sondage.php:147
|
||||
|
@ -278,12 +288,12 @@ msgid "The fields marked with * are required!"
|
|||
msgstr "Die mit * markierten Felder sind obligatorisch!"
|
||||
|
||||
#: infos_sondage.php:179
|
||||
msgid " Voters can modify their vote themselves."
|
||||
msgstr " Sie erlauben eine Änderung der linien durch die Befragten"
|
||||
msgid "Voters can modify their vote themselves."
|
||||
msgstr "Sie erlauben eine Änderung der linien durch die Befragten"
|
||||
|
||||
#: infos_sondage.php:181
|
||||
msgid " To receive an email for each new vote."
|
||||
msgstr " Sie möchten eine e-mail bei jeder Beteiligung erhalten"
|
||||
msgid "To receive an email for each new vote."
|
||||
msgstr "Sie möchten eine e-mail bei jeder Beteiligung erhalten"
|
||||
|
||||
#: infos_sondage.php:185
|
||||
msgid "Schedule an event"
|
||||
|
@ -299,12 +309,12 @@ msgid "Make a poll"
|
|||
msgstr "Umfrage erstellen"
|
||||
|
||||
#: contacts.php:56
|
||||
msgid "[CONTACT] You have sent a question "
|
||||
msgstr "[KONTAKT] Senden von Fragen "
|
||||
msgid "[CONTACT] You have sent a question"
|
||||
msgstr "[KONTAKT] Senden von Fragen"
|
||||
|
||||
#: contacts.php:56
|
||||
msgid "You have a question from a user "
|
||||
msgstr "Sie haben eine benützer Frager "
|
||||
msgid "You have a question from a user"
|
||||
msgstr "Sie haben eine benützer Frager"
|
||||
|
||||
#: contacts.php:56
|
||||
msgid "User"
|
||||
|
@ -319,8 +329,8 @@ msgid "Message"
|
|||
msgstr "Email"
|
||||
|
||||
#: contacts.php:59
|
||||
msgid "[COPY] Someone has sent a question "
|
||||
msgstr "[KOPIE] Senden einer frage "
|
||||
msgid "[COPY] Someone has sent a question"
|
||||
msgstr "[KOPIE] Senden einer frage"
|
||||
|
||||
#: contacts.php:59
|
||||
msgid "Here is a copy of your question"
|
||||
|
@ -400,8 +410,8 @@ msgid "Comments"
|
|||
msgstr "Kommentar"
|
||||
|
||||
#: studs.php:261
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you<br> and validate with the plus button at the end of the line."
|
||||
msgstr "Um an dieser Umfrage Teilzunehmen tragen sie bitte ihren Namen, wählen sie die ihnen passenden Wehrte<br> und bestätigen sie ihre Wahl mit dem Knopf am ende der Ligne."
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
|
||||
msgstr "Um an dieser Umfrage teilzunehmen, tragen sie bitte ihren Namen ein, wählen sie alle passenden Werte und bestätigen sie ihre Wahl mit dem Knopf am Ende der Linie."
|
||||
|
||||
#: studs.php:445
|
||||
#: adminstuds.php:806
|
||||
|
@ -491,12 +501,20 @@ msgid "What is it about?"
|
|||
msgstr "Warum dies ?"
|
||||
|
||||
#: index.php:71
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "Ein Datum zu finden das allen Betroffenen passt. <br>Sie können ebenfalls benötigen um gemeinsam eine Wahl zu treffen für ein Termin ein Treffpunkt, ein Besprechungsthema oder die Marke ihrer nächsten Kaffeemaschine "
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily."
|
||||
msgstr "Ein Datum zu finden das allen Betroffenen passt."
|
||||
|
||||
msgid "You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "Sie können ebenfalls benötigen um gemeinsam eine Wahl zu treffen für ein Termin ein Treffpunkt, ein Besprechungsthema oder die Marke ihrer nächsten Kaffeemaschine "
|
||||
|
||||
|
||||
#: choix_autre.php:144
|
||||
msgid "Your poll aim is to make a choice between different subjects.<br>Enter the subjects to vote for:"
|
||||
msgstr "Sie erstellen eine Umfrage mit mehreren Wahlmglichkeiten <br>Geben sie die verschiedenen Wahlmglichkeiten an :"
|
||||
msgid "Your poll aim is to make a choice between different subjects."
|
||||
msgstr "Sie erstellen eine Umfrage mit mehreren Wahlmglichkeiten."
|
||||
|
||||
msgid "Enter the subjects to vote for:"
|
||||
msgstr "Geben sie die verschiedenen Wahlmglichkeiten an :"
|
||||
|
||||
|
||||
#: choix_autre.php:150
|
||||
msgid "Choice"
|
||||
|
@ -515,8 +533,12 @@ msgid "Characters \" < and > are not permitted"
|
|||
msgstr "Die Schriftzeichen < > und \" sind nicht genehmigt !"
|
||||
|
||||
#: choix_autre.php:191
|
||||
msgid "Your poll will be automatically removed after 6 months.<br> You can fix another removal date for it."
|
||||
msgstr "Ihre Umfrage wird automatisch nach 6 Monaten gelscht.<br> Sie können dennoch eine andere Frist wählen."
|
||||
msgid "Your poll will be automatically removed after 6 months."
|
||||
msgstr "Ihre Umfrage wird automatisch nach 6 Monaten gelscht."
|
||||
|
||||
msgid "You can fix another removal date for it."
|
||||
msgstr "Sie können dennoch eine andere Frist wählen."
|
||||
|
||||
|
||||
#: choix_autre.php:193
|
||||
msgid "Removal date (optional)"
|
||||
|
@ -535,8 +557,12 @@ msgid "Add a new column"
|
|||
msgstr "Wenn sie eine Spalte einfügen möchten"
|
||||
|
||||
#: adminstuds.php:121
|
||||
msgid "You can add a new scheduling date to your poll.<br> If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "Sie können in ihrer Umfrage ein Datum einfügen. Falls das Datum bereits schon besteht und sie eine Uhrzeit eingeben möchten tragen sie bitte das ganze Datum ein mit der gewünschten Uhrzeit so das dieser in der Umfrage erscheinen kann."
|
||||
msgid "You can add a new scheduling date to your poll."
|
||||
msgstr "Sie können in ihrer Umfrage ein Datum einfügen."
|
||||
|
||||
msgid "If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "Falls das Datum bereits schon besteht und sie eine Uhrzeit eingeben möchten tragen sie bitte das ganze Datum ein mit der gewünschten Uhrzeit so das dieser in der Umfrage erscheinen kann."
|
||||
|
||||
|
||||
#: adminstuds.php:122
|
||||
msgid "Add a date"
|
||||
|
@ -599,8 +625,26 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: adminstuds.php:582
|
||||
msgid "As poll administrator, you can change all the lines of this poll with <img src=\"images/info.png\" alt=\"infos\">.<br> You can, as well, remove a column or a line with <img src=\"images/cancel.png\" alt=\"Cancel\">. <br>You can also add a new column with <img src=\"images/add-16.png\" alt=\"Add column\">.<br> Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "Als administrator können sie alle linien ihrer Umfrage mit <img src=\"images/info.png\" alt=\"Icone infos\"> ändern.<br> Sie haben auch die möglichkeit eine Spalte oder eine Linie mit <img src=\"images/cancel.png\" alt=\"Annuler\"> zu löschen. <br>Falls sie vergessen haben eine Wahlmöglichkeit einzutragen können sie eine Spalte zufügen in dem sie <img src=\"images/add-16.png\" alt=\"rückgängig\"> <br> auswählen. en bout de ligne des noms de colonne. Sie können ebenfalls informationen wie den Titel die Kommentare oder ihre email adresse ändern. "
|
||||
msgid "As poll administrator, you can change all the lines of this poll with this button : "
|
||||
msgstr "Als administrator können sie alle linien ihrer Umfrage mit dieser Taste ändern :"
|
||||
|
||||
msgid "Edit"
|
||||
msgstr "ändern"
|
||||
|
||||
msgid "You can, as well, remove a column or a line."
|
||||
msgstr "Sie haben auch die möglichkeit eine Spalte oder eine Linie mit zu löschen."
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Stornieren"
|
||||
|
||||
msgid "You can also add a new column with "
|
||||
msgstr "Falls sie vergessen haben eine Wahlmöglichkeit einzutragen können sie eine Spalte zufügen in dem sie "
|
||||
|
||||
msgid "Add"
|
||||
msgstr "rückgängig"
|
||||
|
||||
msgid "Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "Sie können ebenfalls informationen wie den Titel die Kommentare oder ihre email adresse ändern. "
|
||||
|
||||
#: adminstuds.php:851
|
||||
msgid "The date is not correct !"
|
||||
|
|
Binary file not shown.
|
@ -135,8 +135,11 @@ msgid "december"
|
|||
msgstr "december"
|
||||
|
||||
#: choix_date.php:253
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it."
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue."
|
||||
msgstr "Select your dates amoung the free days (green). The selected days are in blue."
|
||||
|
||||
msgid "You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "You can unselect a day previously selected by clicking again on it."
|
||||
|
||||
#: choix_date.php:266
|
||||
msgid "monday"
|
||||
|
@ -170,9 +173,9 @@ msgstr "sunday"
|
|||
msgid "Selected days"
|
||||
msgstr "Selected days"
|
||||
|
||||
#: choix_date.php:521
|
||||
msgid "For each selected day, you can choose, or not, meeting hours in the following format :<br>- empty,<br>- "
|
||||
msgstr ""
|
||||
#: choix_date.php:489
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)"
|
||||
msgstr "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)"
|
||||
|
||||
#: choix_date.php:528
|
||||
msgid "Time"
|
||||
|
@ -213,8 +216,11 @@ msgstr "Removal date"
|
|||
|
||||
#: choix_date.php:586
|
||||
#: choix_autre.php:217
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."
|
||||
msgstr "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."
|
||||
|
||||
msgid "Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
|
||||
#: choix_date.php:592
|
||||
msgid "Back to hours"
|
||||
|
@ -226,8 +232,11 @@ msgid "Create the poll"
|
|||
msgstr "Create the poll"
|
||||
|
||||
#: infos_sondage.php:187
|
||||
msgid "You are in the poll creation section. <br> Required fields cannot be left blank"
|
||||
msgstr "You are in the poll creation section. <br> Required fields cannot be left blank"
|
||||
msgid "You are in the poll creation section."
|
||||
msgstr "You are in the poll creation section."
|
||||
|
||||
msgid "Required fields cannot be left blank."
|
||||
msgstr "Required fields cannot be left blank."
|
||||
|
||||
#: infos_sondage.php:192
|
||||
msgid "Poll title *: "
|
||||
|
@ -463,16 +472,22 @@ msgid "What is it about?"
|
|||
msgstr "What is it about?"
|
||||
|
||||
#: index.php:128
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily."
|
||||
msgstr "Making polls to schedule meetings or events, quickly and easily."
|
||||
|
||||
msgid "You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
|
||||
#: index.php:131
|
||||
msgid "Make a poll"
|
||||
msgstr "Make a poll"
|
||||
|
||||
#: choix_autre.php:165
|
||||
msgid "Your poll aim is to make a choice between different subjects.<br>Enter the subjects to vote for:"
|
||||
msgstr "Your poll aim is to make a choice between different subjects.<br>Enter the subjects to vote for:"
|
||||
msgid "Your poll aim is to make a choice between different subjects."
|
||||
msgstr "Your poll aim is to make a choice between different subjects."
|
||||
|
||||
msgid "Enter the subjects to vote for:"
|
||||
msgstr "Enter the subjects to vote for:"
|
||||
|
||||
#: choix_autre.php:171
|
||||
msgid "Choice"
|
||||
|
@ -491,8 +506,11 @@ msgid "Characters \" < and > are not permitted"
|
|||
msgstr "Characters \" < and > are not permitted"
|
||||
|
||||
#: choix_autre.php:212
|
||||
msgid "Your poll will be automatically removed after 6 months.<br> You can fix another removal date for it."
|
||||
msgstr "Your poll will be automatically removed after 6 months.<br> You can fix another removal date for it."
|
||||
msgid "Your poll will be automatically removed after 6 months."
|
||||
msgstr "Your poll will be automatically removed after 6 months."
|
||||
|
||||
msgid "You can fix another removal date for it."
|
||||
msgstr "You can fix another removal date for it."
|
||||
|
||||
#: choix_autre.php:214
|
||||
msgid "Removal date (optional)"
|
||||
|
@ -511,8 +529,11 @@ msgid "Add a new column"
|
|||
msgstr "Add a new column"
|
||||
|
||||
#: adminstuds.php:150
|
||||
msgid "You can add a new scheduling date to your poll.<br> If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "You can add a new scheduling date to your poll.<br> If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgid "You can add a new scheduling date to your poll."
|
||||
msgstr "You can add a new scheduling date to your poll."
|
||||
|
||||
msgid "If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
|
||||
#: adminstuds.php:151
|
||||
msgid "Add a date"
|
||||
|
@ -577,8 +598,26 @@ msgstr ""
|
|||
"You can modify this poll with this link"
|
||||
|
||||
#: adminstuds.php:662
|
||||
msgid "As poll administrator, you can change all the lines of this poll with <img src="
|
||||
msgstr ""
|
||||
msgid "As poll administrator, you can change all the lines of this poll with this button : "
|
||||
msgstr "As poll administrator, you can change all the lines of this poll with this button : "
|
||||
|
||||
msgid "Edit"
|
||||
msgstr "Edit"
|
||||
|
||||
msgid "You can, as well, remove a column or a line."
|
||||
msgstr "You can, as well, remove a column or a line."
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Cancel"
|
||||
|
||||
msgid "You can also add a new column with "
|
||||
msgstr "You can also add a new column with "
|
||||
|
||||
msgid "Add"
|
||||
msgstr "Add"
|
||||
|
||||
msgid "Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
|
||||
#: adminstuds.php:931
|
||||
msgid "The date is not correct !"
|
||||
|
@ -662,11 +701,6 @@ msgstr "Your poll has been removed!"
|
|||
msgid "Share URL"
|
||||
msgstr "Share URL"
|
||||
|
||||
#: choix_date.php:490
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8\", \"evening\", etc.)"
|
||||
msgstr "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8\", \"evening\", etc.)"
|
||||
|
||||
|
||||
#~ msgid ""
|
||||
#~ "For each selected day, you can choose, or not, meeting hours in the "
|
||||
#~ "following format :<br>- empty,<br>- \"8h\", \"8H\" or \"8:00\" to give a "
|
||||
|
|
Binary file not shown.
|
@ -134,8 +134,12 @@ msgid "Back to the homepage of "
|
|||
msgstr "Retroceder al inicio de"
|
||||
|
||||
#: choix_date.php:220
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Seleccionar sus fechas entre los días disponibles que aparecen en verde. Cuando son seleccionados los días aparecen en azul.<br> Usted puede egalemente borrar días en seleccionarlos de nuevo."
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue."
|
||||
msgstr "Seleccionar sus fechas entre los días disponibles que aparecen en verde. Cuando son seleccionados los días aparecen en azul."
|
||||
|
||||
msgid "You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Usted puede egalemente borrar días en seleccionarlos de nuevo."
|
||||
|
||||
|
||||
#: choix_date.php:233
|
||||
msgid "monday"
|
||||
|
@ -170,8 +174,8 @@ msgid "Selected days"
|
|||
msgstr "Días seleccionados"
|
||||
|
||||
#: choix_date.php:487
|
||||
msgid "For each selected day, you can choose, or not, meeting hours in the following format :<br>- empty,<br>- \"8h\", \"8H\" or \"8:00\" to give a meeting's start hour,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" ou \"8:00-11:00\" to give a meeting's start and end hour,<br>- \"8h15-11h15\", \"8H15-11H15\" ou \"8:15-11:15\" for the same thing but with minutes."
|
||||
msgstr "Para algún día que había seleccionado, Usted puede escoger, o no, de horas de reunión con este formato:<br>- vacío,<br>- \"8h\", \"8H\" o \"8:00\" para proponer una hora de principio de reunión,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" o \"8:00-11:00\" para un hueco,<br>- \"8h15-11h15\", \"8H15-11H15\" o \"8:15-11:15\" para un hueco con minutos."
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)"
|
||||
msgstr "Para algún día que había seleccionado, Usted puede escoger, o no, de horas de reunión (e.g.: \"8h\", \"8:30\", \"8h-10h\", etc.)"
|
||||
|
||||
#: choix_date.php:494
|
||||
msgid "Time"
|
||||
|
@ -212,8 +216,12 @@ msgstr "Fecha de borrado"
|
|||
|
||||
#: choix_date.php:552
|
||||
#: choix_autre.php:196
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Cuando Usted confirmarà la creacion de su encuesta, Usted serà automaticamente redigiriendo a la pagina de su encuesta. <br><br>Alora, Usted recibirà rapidamente uno correo electrinico conteniendo el enlace de su encuesta para darlo a los encuestados."
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."
|
||||
msgstr "Cuando Usted confirmarà la creacion de su encuesta, Usted serà automaticamente redigiriendo a la pagina de su encuesta."
|
||||
|
||||
msgid "Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Alora, Usted recibirà rapidamente uno correo electrinico conteniendo el enlace de su encuesta para darlo a los encuestados."
|
||||
|
||||
|
||||
#: choix_date.php:558
|
||||
msgid "Back to hours"
|
||||
|
@ -229,8 +237,12 @@ msgid "Poll creation (1 on 2)"
|
|||
msgstr "Creación de encuesta (1 de 2)"
|
||||
|
||||
#: infos_sondage.php:123
|
||||
msgid "You are in the poll creation section. <br> Required fields cannot be left blank"
|
||||
msgstr "Usted ha eligiendo de crear une nueva encuesta!<br> Gracias por completar los campos con una *."
|
||||
msgid "You are in the poll creation section."
|
||||
msgstr "Usted ha eligiendo de crear une nueva encuesta!"
|
||||
|
||||
msgid "Required fields cannot be left blank."
|
||||
msgstr "Gracias por completar los campos con una *."
|
||||
|
||||
|
||||
#: infos_sondage.php:128
|
||||
msgid "Poll title *: "
|
||||
|
@ -400,8 +412,8 @@ msgid "Comments"
|
|||
msgstr "Comentarios"
|
||||
|
||||
#: studs.php:261
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you<br> and validate with the plus button at the end of the line."
|
||||
msgstr "Para participar a esta encuesta, introduzca su nombre, elige todas las valores que son apriopriadas <br> y validar su seleccion con el botón verde a la fin de línea."
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
|
||||
msgstr "Para participar a esta encuesta, introduzca su nombre, elige todas las valores que son apriopriadas y validar su seleccion con el botón verde a la fin de línea."
|
||||
|
||||
#: studs.php:445
|
||||
#: adminstuds.php:806
|
||||
|
@ -600,8 +612,26 @@ msgstr ""
|
|||
"Usted puede cambiar su encuesta al enlace siguiente"
|
||||
|
||||
#: adminstuds.php:582
|
||||
msgid "As poll administrator, you can change all the lines of this poll with <img src=\"images/info.png\" alt=\"infos\">.<br> You can, as well, remove a column or a line with <img src=\"images/cancel.png\" alt=\"Cancel\">. <br>You can also add a new column with <img src=\"images/add-16.png\" alt=\"Add column\">.<br> Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "En calidad de administrador, Usted puede cambiar todas la líneas de este encuesta con <img src=\"images/info.png\" alt=\"Icone infos\">.<br> Usted puede también borrar una columna o una línea con <img src=\"images/cancel.png\" alt=\"Annuler\">. <br> Usted puede añadir une nueva columna con <img src=\"images/add-16.png\" alt=\"Annuler\"> <br>. Para acabar, Usted puede cambiar las informaciones relativas<br> a su encuesta como el titulo, los comentarios o ademas su dirección electrónica."
|
||||
msgid "As poll administrator, you can change all the lines of this poll with this button : "
|
||||
msgstr "En calidad de administrador, Usted puede cambiar todas la líneas de este encuesta con este botón :"
|
||||
|
||||
msgid "Edit"
|
||||
msgstr "Cambio"
|
||||
|
||||
msgid "You can, as well, remove a column or a line."
|
||||
msgstr "Usted puede también borrar una columna o una línea con "
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
msgid "You can also add a new column with "
|
||||
msgstr "Usted puede añadir une nueva columna con "
|
||||
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
msgid "Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "Para acabar, Usted puede cambiar las informaciones relativas a su encuesta como el titulo, los comentarios o ademas su dirección electrónica."
|
||||
|
||||
#: adminstuds.php:851
|
||||
msgid "The date is not correct !"
|
||||
|
|
Binary file not shown.
|
@ -17,6 +17,27 @@ msgstr ""
|
|||
"X-Poedit-Basepath: /var/www/studs\n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Imprimer"
|
||||
|
||||
msgid "Select the choice "
|
||||
msgstr "Cocher le choix "
|
||||
|
||||
msgid "Validate my choices"
|
||||
msgstr "Valider mes choix"
|
||||
|
||||
msgid "Back to the poll"
|
||||
msgstr "Retour au sondage"
|
||||
|
||||
msgid "Public link of the pool"
|
||||
msgstr "Lien publique du sondage"
|
||||
|
||||
msgid "Admin link of the pool"
|
||||
msgstr "Lien d'administration du sondage"
|
||||
|
||||
msgid "Change the language"
|
||||
msgstr "Changer la langue"
|
||||
|
||||
#: exportpdf.php:62
|
||||
msgid " Convocation"
|
||||
msgstr "Convocation"
|
||||
|
@ -73,8 +94,11 @@ msgid "Poll subjects (2 on 2)"
|
|||
msgstr "Choix des sujets (2 sur 2)"
|
||||
|
||||
#: choix_autre.php:144
|
||||
msgid "Your poll aim is to make a choice between different subjects.<br>Enter the subjects to vote for:"
|
||||
msgstr "Vous avez créé un sondage pour déterminer un choix entre plusieurs choses<br>Entrez les différents choix à proposer au vote :"
|
||||
msgid "Your poll aim is to make a choice between different subjects."
|
||||
msgstr "Vous avez créé un sondage pour déterminer un choix entre plusieurs choses."
|
||||
|
||||
msgid "Enter the subjects to vote for:"
|
||||
msgstr "Entrez les différents choix à proposer au vote :"
|
||||
|
||||
#: choix_autre.php:150
|
||||
msgid "Choice"
|
||||
|
@ -98,8 +122,11 @@ msgid "Characters \" < and > are not permitted"
|
|||
msgstr "Les caractères \" < et > ne sont pas autorisés !"
|
||||
|
||||
#: choix_autre.php:191
|
||||
msgid "Your poll will be automatically removed after 6 months.<br> You can fix another removal date for it."
|
||||
msgstr "Votre sondage sera automatiquement effacé dans 6 mois.<br> Néanmoins vous pouvez décider ci-dessous d'une date plus rapprochée pour la destruction de votre sondage."
|
||||
msgid "Your poll will be automatically removed after 6 months."
|
||||
msgstr "Votre sondage sera automatiquement effacé dans 6 mois."
|
||||
|
||||
msgid "You can fix another removal date for it."
|
||||
msgstr "Néanmoins vous pouvez décider ci-dessous d'une date plus rapprochée pour la destruction de votre sondage."
|
||||
|
||||
#: choix_autre.php:193
|
||||
msgid "Removal date (optional)"
|
||||
|
@ -111,8 +138,11 @@ msgstr "(JJ/MM/AAAA)"
|
|||
|
||||
#: choix_autre.php:196
|
||||
#: choix_date.php:554
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll. <br><br>Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "Une fois que vous aurez confirmé la création du sondage, vous serez redirigé automatiquement vers la page de votre sondage. <br><br>En même temps, vous recevrez un courrier électronique contenant le lien vers votre sondage pour le faire suivre aux futurs sondés."
|
||||
msgid "Once you have confirmed the creation of your poll, you will be automatically redirected on the page of your poll."
|
||||
msgstr "Une fois que vous aurez confirmé la création du sondage, vous serez redirigé automatiquement vers la page de votre sondage."
|
||||
|
||||
msgid "Then, you will receive quickly an email contening the link to your poll for sending it to the voters."
|
||||
msgstr "En même temps, vous recevrez un courrier électronique contenant le lien vers votre sondage pour le faire suivre aux futurs sondés."
|
||||
|
||||
#: choix_autre.php:201
|
||||
#: choix_date.php:561
|
||||
|
@ -128,8 +158,12 @@ msgid "STUdS is not properly installed, please check the 'INSTALL' to setup the
|
|||
msgstr "STUdS n'est pas correctement installé, merci de vous référer au fichier INSTALL pour initialiser la base de données avant de continuer."
|
||||
|
||||
#: infos_sondage.php:125
|
||||
msgid "You are in the poll creation section. <br> Required fields cannot be left blank"
|
||||
msgstr "Vous avez choisi de créer un nouveau sondage !<br> Merci de remplir les champs obligatoires, marqués d'une *."
|
||||
msgid "You are in the poll creation section."
|
||||
msgstr "Vous avez choisi de créer un nouveau sondage."
|
||||
|
||||
msgid "Required fields cannot be left blank."
|
||||
msgstr "Merci de remplir les champs obligatoires, marqués d'une *."
|
||||
|
||||
|
||||
#: infos_sondage.php:130
|
||||
msgid "Poll title *: "
|
||||
|
@ -146,8 +180,8 @@ msgid "Characters < > and \" are not permitted"
|
|||
msgstr "Les caractères < > et \" ne sont pas autorisés !"
|
||||
|
||||
#: infos_sondage.php:138
|
||||
msgid "Comments: "
|
||||
msgstr "Commentaires : "
|
||||
msgid "Description: "
|
||||
msgstr "Description : "
|
||||
|
||||
#: infos_sondage.php:143
|
||||
msgid "Your name*: "
|
||||
|
@ -200,20 +234,35 @@ msgid "Poll dates (2 on 2)"
|
|||
msgstr "Choix des dates (2 sur 2)"
|
||||
|
||||
#: choix_date.php:222
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue.<br> You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Sélectionnez vos dates parmi les jours disponibles qui sont en vert. Une fois selectionnés, les jours apparaissent en bleu.<br> Vous pouvez également enlever des jours déjà choisis en recliquant sur la case."
|
||||
msgid "Select your dates amoung the free days (green). The selected days are in blue."
|
||||
msgstr "Sélectionnez vos dates parmi les jours disponibles qui sont en vert. Une fois selectionnés, les jours apparaissent en bleu."
|
||||
|
||||
msgid "You can unselect a day previously selected by clicking again on it."
|
||||
msgstr "Vous pouvez également enlever des jours déjà choisis en recliquant sur la case."
|
||||
|
||||
#: choix_date.php:487
|
||||
msgid "Selected days"
|
||||
msgstr "Jour retenus"
|
||||
|
||||
#: choix_date.php:489
|
||||
msgid "For each selected day, you can choose, or not, meeting hours in the following format :<br>- empty,<br>- \"8h\", \"8H\" or \"8:00\" to give a meeting's start hour,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" ou \"8:00-11:00\" to give a meeting's start and end hour,<br>- \"8h15-11h15\", \"8H15-11H15\" ou \"8:15-11:15\" for the same thing but with minutes."
|
||||
msgstr "Pour chacun des jours que vous avez sélectionnés, vous avez la possibilité de choisir ou non, des heures de réunion avec ce format :<br>- vide, si vous ne désirez pas mettre d'horaires particuliers,<br>- \"8h\", \"8H\" ou \"8:00\" pour proposer une heure de début de réunion,<br>- \"8-11\", \"8h-11h\", \"8H-11H\" ou \"8:00-11:00\" pour un créneau,<br>- \"8h15-11h15\", \"8H15-11H15\" ou \"8:15-11:15\" pour un créneau avec minutes."
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)"
|
||||
msgstr "Pour chacun des jours sélectionnés, vous avez la possibilité de choisir ou non, des heures de réunion (par exemple : \"8h\", \"8:30\", \"8h-10h\", \"soir\", etc.)"
|
||||
|
||||
#: choix_date.php:490
|
||||
msgid "For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8\", \"evening\", etc.)"
|
||||
msgstr "Pour chacun des jours que vous avez sélectionnés, vous avez la possibilité de choisir ou non, des heures de réunion (par exemple : \"8h\", \"8:15\", \"8h-10h\", \"soir\")."
|
||||
#: choix_date.php:225
|
||||
msgid "Previous year"
|
||||
msgstr "Année précédente"
|
||||
|
||||
msgid "Next year"
|
||||
msgstr "Année précédente"
|
||||
|
||||
msgid "Previous month"
|
||||
msgstr "Mois précédent"
|
||||
|
||||
msgid "Next month"
|
||||
msgstr "Mois suivant"
|
||||
|
||||
msgid "Today"
|
||||
msgstr "Aujourd'hui"
|
||||
|
||||
|
||||
#: choix_date.php:496
|
||||
|
@ -374,8 +423,8 @@ msgid "Comments"
|
|||
msgstr "Commentaire de l'auteur"
|
||||
|
||||
#: studs.php:238
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you<br> and validate with the plus button at the end of the line."
|
||||
msgstr "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent <br> et valider votre choix avec le bouton en bout de ligne."
|
||||
msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
|
||||
msgstr "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent et valider votre choix avec le bouton en bout de ligne."
|
||||
|
||||
#: studs.php:456
|
||||
msgid "Participate"
|
||||
|
@ -434,6 +483,15 @@ msgstr "URL à communiquer"
|
|||
msgid "Add a comment in the poll:"
|
||||
msgstr "Ajoutez un commentaire à ce sondage :"
|
||||
|
||||
msgid "Your comment: "
|
||||
msgstr "Votre commentaire : "
|
||||
|
||||
msgid "Write your comment"
|
||||
msgstr "Écrire votre commentaire"
|
||||
|
||||
msgid "Send your comment"
|
||||
msgstr "Envoyer votre commentaire"
|
||||
|
||||
#: studs.php:566
|
||||
#: adminstuds.php:1027
|
||||
msgid "Name"
|
||||
|
@ -460,8 +518,11 @@ msgid "What is it about?"
|
|||
msgstr "À quoi ça sert ?"
|
||||
|
||||
#: index.php:70
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily. <br> You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "À faire des sondages pour que vous puissiez trouver une date de réunion qui convienne à toutes les personnes concernées. <br>Vous pouvez également utiliser cette application pour déterminer à plusieurs un choix quelconque comme un lieu de RV, un thème de réunion ou la marque de votre prochaine machine à café."
|
||||
msgid "Making polls to schedule meetings or events, quickly and easily."
|
||||
msgstr "À faire des sondages pour que vous puissiez trouver une date de réunion qui convienne à toutes les personnes concernées."
|
||||
|
||||
msgid "You can also run polls to determine what will be your next meeting place, the meeting topic or anything like the country you would like to visit during your next holidays."
|
||||
msgstr "Vous pouvez également utiliser cette application pour déterminer à plusieurs un choix quelconque comme un lieu de RV, un thème de réunion ou la marque de votre prochaine machine à café."
|
||||
|
||||
#: creation_sondage.php:88
|
||||
msgid "For sending to the polled users"
|
||||
|
@ -520,15 +581,15 @@ msgstr ""
|
|||
"Vous pouvez modifier ce sondage au lien suivant"
|
||||
|
||||
#: adminstuds.php:122
|
||||
msgid "[ADMINISTRATOR] New comments for your poll"
|
||||
msgstr "[ADMINISTRATEUR] Changement des commentaires du sondage avec "
|
||||
msgid "[ADMINISTRATOR] New description for your poll"
|
||||
msgstr "[ADMINISTRATEUR] Changement de la descrpition du sondage avec "
|
||||
|
||||
#: adminstuds.php:123
|
||||
msgid ""
|
||||
"You have changed the comments of your poll. \n"
|
||||
"You have changed the description of your poll. \n"
|
||||
"You can modify this poll with this link"
|
||||
msgstr ""
|
||||
"Vous avez fait la modification des commentaires de votre sondage. \n"
|
||||
"Vous avez modifié la description de votre sondage. \n"
|
||||
"Vous pouvez modifier ce sondage au lien suivant"
|
||||
|
||||
#: adminstuds.php:141
|
||||
|
@ -552,13 +613,31 @@ msgid "Add a new column"
|
|||
msgstr "Si vous souhaitez ajouter une colonne"
|
||||
|
||||
#: adminstuds.php:175
|
||||
msgid "You can add a new scheduling date to your poll.<br> If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "Vous pouvez ajouter une date à votre sondage. Si la date existe déjà et que vous ne voulez rajouter qu'un horaire,<br> mettez le jour en entier avec l'horaire ou le créneau supplémentaire et il sera intégré normalement au sondage existant."
|
||||
msgid "You can add a new scheduling date to your poll."
|
||||
msgstr "Vous pouvez ajouter une date à votre sondage."
|
||||
|
||||
msgid "If you just want to add a new hour to an existant date, put the same date and choose a new hour."
|
||||
msgstr "mettez le jour en entier avec l'horaire ou le créneau supplémentaire et il sera intégré normalement au sondage existant."
|
||||
|
||||
#: adminstuds.php:176
|
||||
msgid "Add a date"
|
||||
msgstr "Pour ajouter une date"
|
||||
|
||||
msgid "Day"
|
||||
msgstr "Jour"
|
||||
|
||||
msgid "Month"
|
||||
msgstr "Mois"
|
||||
|
||||
msgid "Year"
|
||||
msgstr "Année"
|
||||
|
||||
msgid "Hour"
|
||||
msgstr "Heure"
|
||||
|
||||
msgid "Min"
|
||||
msgstr "Min"
|
||||
|
||||
#: adminstuds.php:197
|
||||
msgid "Add a start hour (optional)"
|
||||
msgstr "Pour ajouter un horaire de début (facultatif)"
|
||||
|
@ -569,14 +648,14 @@ msgstr "Pour ajouter un horaire de fin (facultatif)"
|
|||
|
||||
#: adminstuds.php:253
|
||||
msgid "[ADMINISTRATOR] Removing of your poll"
|
||||
msgstr "[ADMINISTRATEUR] Suppression de sondage avec "
|
||||
msgstr "[ADMINISTRATEUR] Suppression de sondage"
|
||||
|
||||
#: adminstuds.php:254
|
||||
msgid ""
|
||||
"You have removed your poll. \n"
|
||||
"You can make new polls with this link"
|
||||
msgstr ""
|
||||
"Vous avez fait la suppression d'un sondage. \n"
|
||||
"Vous supprimé un sondage. \n"
|
||||
"Vous pouvez faire de nouveaux sondages au lien suivant"
|
||||
|
||||
#: adminstuds.php:273
|
||||
|
@ -598,18 +677,36 @@ msgstr ""
|
|||
"Vous pouvez informer vos utilisateurs de ce changement en leur envoyant l'adresse suivante"
|
||||
|
||||
#: adminstuds.php:630
|
||||
msgid "As poll administrator, you can change all the lines of this poll with <img src=\"images/info.png\" alt=\"infos\">.<br> You can, as well, remove a column or a line with <img src=\"images/cancel.png\" alt=\"Cancel\">. <br>You can also add a new column with <img src=\"images/add-16.png\" alt=\"Add column\">.<br> Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "En tant qu'administrateur, vous pouvez modifier toutes les lignes de ce sondage avec <img src=\"images/info.png\" alt=\"Icone infos\">.<br> Vous avez aussi la possibilité d'effacer une colonne ou une ligne avec <img src=\"images/cancel.png\" alt=\"Annuler\">. <br>Si vous avez oublié de mettre un choix, vous pouvez rajouter une colonne en cliquant sur <img src=\"images/add-16.png\" alt=\"Annuler\"> <br> en bout de ligne des noms de colonne. Vous pouvez enfin également modifier les informations <br>relatives à ce sondage comme le titre, les commentaires ou encore votre adresse électronique."
|
||||
msgid "As poll administrator, you can change all the lines of this poll with this button "
|
||||
msgstr "En tant qu'administrateur, vous pouvez modifier toutes les lignes de ce sondage avec ce bouton "
|
||||
|
||||
msgid "Edit"
|
||||
msgstr "Modifier"
|
||||
|
||||
msgid "You can, as well, remove a column or a line with "
|
||||
msgstr "Vous avez aussi la possibilité d'effacer une colonne ou une ligne avec "
|
||||
|
||||
msgid "Remove"
|
||||
msgstr "Effacer"
|
||||
|
||||
msgid "Remove the column"
|
||||
msgstr "Effacer la colonne"
|
||||
|
||||
msgid "Validate"
|
||||
msgstr "Valider"
|
||||
|
||||
msgid "You can also add a new column with "
|
||||
msgstr "Si vous avez oublié de mettre un choix, vous pouvez rajouter une colonne en cliquant sur "
|
||||
|
||||
#: adminstuds.php:669
|
||||
#: adminstuds.php:689
|
||||
#: adminstuds.php:708
|
||||
#: adminstuds.php:720
|
||||
#: adminstuds.php:738
|
||||
#: adminstuds.php:837
|
||||
msgid "Add"
|
||||
msgstr "Ajouter"
|
||||
|
||||
msgid "Add a column"
|
||||
msgstr "Ajouter une colonne"
|
||||
|
||||
msgid "Finally, you can change the informations of this poll like the title, the comments or your email address."
|
||||
msgstr "Vous pouvez enfin également modifier les informations relatives à ce sondage comme le titre, les commentaires ou encore votre adresse électronique."
|
||||
|
||||
#: adminstuds.php:894
|
||||
msgid "Characters \" ' < et > are not permitted"
|
||||
msgstr "Les caractères \" ' < et > ne sont pas autorisés !"
|
||||
|
@ -631,8 +728,14 @@ msgid "Poll's management"
|
|||
msgstr "Gestion de votre sondage"
|
||||
|
||||
#: adminstuds.php:969
|
||||
msgid "Poll title: "
|
||||
msgstr "Titre du sondage : "
|
||||
|
||||
msgid "Change the title"
|
||||
msgstr "Si vous souhaitez changer le titre du sondage"
|
||||
msgstr "Modifier le titre"
|
||||
|
||||
msgid "Save the new title"
|
||||
msgstr "Enregistrer le nouveau titre"
|
||||
|
||||
#: adminstuds.php:976
|
||||
msgid "Generate the convocation letter (.PDF), choose the place to meet and validate"
|
||||
|
@ -647,12 +750,21 @@ msgid "Enter a new title!"
|
|||
msgstr "Veuillez entrer un nouveau titre !"
|
||||
|
||||
#: adminstuds.php:996
|
||||
msgid "Change the comments"
|
||||
msgstr "Si vous souhaitez changer les commentaires du sondage"
|
||||
msgid "Change the description"
|
||||
msgstr "Changer la description"
|
||||
|
||||
msgid "Save the description"
|
||||
msgstr "Enregistrer la description"
|
||||
|
||||
#: adminstuds.php:1000
|
||||
msgid "Change your email address"
|
||||
msgstr "Si vous souhaitez changer votre adresse de courrier électronique"
|
||||
msgid "Your e-mail address: "
|
||||
msgstr "Votre adresse e-mail : "
|
||||
|
||||
msgid "Change your email"
|
||||
msgstr "Changer votre adresse"
|
||||
|
||||
msgid "Save your new email"
|
||||
msgstr "Enregistrer votre adresse email"
|
||||
|
||||
#: adminstuds.php:1004
|
||||
msgid "Enter a new email address!"
|
||||
|
@ -668,7 +780,7 @@ msgstr "Si vous souhaitez supprimer votre sondage"
|
|||
|
||||
#: adminstuds.php:1033
|
||||
msgid "Remove the poll"
|
||||
msgstr "Suppression du sondage"
|
||||
msgstr "Supprimer le sondage"
|
||||
|
||||
#: adminstuds.php:1033
|
||||
msgid "Cancel"
|
||||
|
|
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
include_once('bandeaux.php');
|
||||
|
||||
echo '<!DOCTYPE html>'."\n";
|
||||
|
@ -51,9 +29,9 @@ logo();
|
|||
bandeau_tete();
|
||||
|
||||
echo '<div class=corpscentre>'."\n";
|
||||
print "<H2>L'application ".NOMAPPLICATION." est pour l'instant en maintenance.<br> </H2>"."\n";
|
||||
print "<H2>L'application ".NOMAPPLICATION." est pour l'instant en maintenance.<br /> </H2>"."\n";
|
||||
print "Merci de votre compréhension."."\n";
|
||||
echo '<br><br><br>'."\n";
|
||||
echo '<br /><br /><br />'."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
// Affichage du bandeau de pied
|
||||
|
|
112
studs.php
112
studs.php
|
@ -1,42 +1,20 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
session_start();
|
||||
|
||||
if (file_exists('bandeaux_local.php')) {
|
||||
|
@ -184,9 +162,9 @@ if (!is_error(NO_POLL) && (isset($_POST["boutonp"]) || isset($_POST["boutonp_x"]
|
|||
}
|
||||
}
|
||||
if($err != 0) {
|
||||
print_header(true, _("Error!").' - '.$dsondage->titre);
|
||||
print_header(true, _("Error!").' - '.$dsondage->titre, $lang);
|
||||
} else {
|
||||
print_header(true, $dsondage->titre);
|
||||
print_header(true, $dsondage->titre, $lang);
|
||||
}
|
||||
echo '<body>'."\n";
|
||||
framanav();
|
||||
|
@ -234,7 +212,8 @@ if($err != 0) {
|
|||
}
|
||||
|
||||
echo '<div class="corps">'; //ajout pyg cohérence graphique
|
||||
echo '<div class="imprimer"><a role="button" href="javascript:print()" class="button white medium">Imprimer</a></div>';
|
||||
echo '<div class="imprimer"><p><a role="button" href="javascript:print()" class="button white medium">' . _('Print') . '</a></p>';
|
||||
echo '<p><a role="button" class="button white medium" href="'.get_server_name().'exportcsv.php?numsondage=' . $numsondage . '">' . _('Export to CSV') . '</a></p></div>';
|
||||
echo '<div class="presentationdate"> '."\n";
|
||||
|
||||
//affichage du titre du sondage
|
||||
|
@ -243,12 +222,12 @@ echo '<h2>'.stripslashes($titre).'</h2>'."\n";
|
|||
|
||||
//affichage du nom de l'auteur du sondage
|
||||
echo '<div class="initiator"><p><span class="mlabel">'. _("Initiator of the poll") .' :</span><span class="nom"> '.stripslashes($dsondage->nom_admin).'</span></p></div>'."\n";
|
||||
echo '<div class="adress"><p><span class="mlabel">'.'Adresse : </span><code>'.getUrlSondage($dsondage->id_sondage).'</code></p></div>'."\n";;
|
||||
echo '<div class="adress"><p><span class="mlabel">'._("Public link of the pool") .' : </span><code>'.getUrlSondage($dsondage->id_sondage).'</code></p></div>'."\n";
|
||||
|
||||
|
||||
//affichage des commentaires du sondage
|
||||
//affichage de la description du sondage
|
||||
if ($dsondage->commentaires) {
|
||||
echo '<div class="admin_comment"><span class="mlabel">'._("Comments") .' :</span><br>'."\n";
|
||||
echo '<div class="admin_comment"><span class="mlabel">'._("Description: ") .'</span><br />'."\n";
|
||||
$commentaires = $dsondage->commentaires;
|
||||
$commentaires=nl2br(str_replace("\\","",$commentaires));
|
||||
echo '<span class="mcontent">'. $commentaires .'</span>';
|
||||
|
@ -260,7 +239,7 @@ echo '<form name="formulaire" action="'.getUrlSondage($dsondage->id_sondage).'#b
|
|||
echo '<input type="hidden" name="sondage" value="' . $numsondage . '"/>';
|
||||
// Todo : add CSRF protection
|
||||
echo '<div class="cadre"><div class="information">'."\n";
|
||||
echo _("If you want to vote in this poll, you have to give your name, choose the values that fit best for you<br> and validate with the plus button at the end of the line.") ."\n";
|
||||
echo _("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.") ."\n";
|
||||
echo '</div>'."\n";
|
||||
|
||||
// Debut de l'affichage des resultats du sondage
|
||||
|
@ -398,14 +377,14 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
|
|||
//affichage des horaires
|
||||
if (strpos($dsondage->sujet, '@') !== false) {
|
||||
echo '<tr>'."\n";
|
||||
echo '<td></td>'."\n";
|
||||
echo '<th role="presentation"></th>'."\n";
|
||||
|
||||
for ($i=0; isset($toutsujet[$i]); $i++) {
|
||||
$heures=explode("@",$toutsujet[$i]);
|
||||
if (isset($heures[1]) === true) {
|
||||
echo '<td class="heure">'.stripslashes($heures[1]).'</td>'."\n";
|
||||
} else {
|
||||
echo '<td class="heure"></td>'."\n";
|
||||
echo '<td scope="col" class="heure"></td>'."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -453,7 +432,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
for ($k=0; $k < $nbcolonnes; $k++) {
|
||||
// on remplace les choix de l'utilisateur par une ligne de checkbox pour recuperer de nouvelles valeurs
|
||||
if ($compteur == $ligneamodifier) {
|
||||
echo '<td class="vide"><input type="checkbox" title="Sélectionnez le choix '.$k.'" name="choix'.$k.'" value="1" ';
|
||||
echo '<td class="vide"><input type="checkbox" title="' . _('Select the choice ') .$k.'" name="choix'.$k.'" value="1" ';
|
||||
if(substr($ensemblereponses,$k,1) == '1') {
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
|
@ -475,14 +454,14 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
|
||||
//a la fin de chaque ligne se trouve les boutons modifier
|
||||
if ($compteur != $ligneamodifier && ($dsondage->format=="A+"||$dsondage->format=="D+") && $mod_ok) {
|
||||
echo '<td class=casevide><input type="image" alt="Modifier" name="modifierligne'.$compteur.'" src="'.get_server_name().'images/info.png"></td>'."\n";
|
||||
echo '<td class=casevide><input type="image" alt="' . _('Edit') . '" name="modifierligne'.$compteur.'" src="'.get_server_name().'images/info.png"></td>'."\n";
|
||||
}
|
||||
|
||||
//demande de confirmation pour modification de ligne
|
||||
for ($i=0;$i<$nblignes;$i++) {
|
||||
if (isset($_POST["modifierligne$i"]) || isset($_POST['modifierligne'.$i.'_x'])) {
|
||||
if ($compteur == $i) {
|
||||
echo '<td class="casevide"><input type="image" alt="Valider la modification" name="validermodifier'.$compteur.'" src="'.get_server_name().'images/accept.png" ></td>'."\n";
|
||||
echo '<td class="casevide"><input type="image" alt="'. _('Validate my choices') .'" name="validermodifier'.$compteur.'" src="'.get_server_name().'images/accept.png" ></td>'."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -492,7 +471,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
|
|||
}
|
||||
|
||||
// affichage de la ligne pour un nouvel utilisateur
|
||||
if (! ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || !$user_mod) {
|
||||
if (( !(USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) || !$user_mod) && $ligneamodifier==-1) {
|
||||
echo '<tr class="ajout_reponse">'."\n";
|
||||
echo '<td class="nom">'."\n";
|
||||
if (isset($_SESSION['nom'])) {
|
||||
|
@ -500,13 +479,13 @@ if (! ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || !$user_mod) {
|
|||
} else {
|
||||
$nom = 'Votre nom';
|
||||
}
|
||||
echo '<input title="Votre nom" type="text" id="'.$nom.'" name="nom" maxlength="64" value="'.$nom.'" onfocus="if (this.value == \'Votre nom\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'Votre nom\';}" >'."\n";
|
||||
echo '<input title="'. _('Your name') .'" type="text" id="'.$nom.'" name="nom" maxlength="64" value="'.$nom.'" onfocus="if (this.value == \''. _('Your name') .'\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \''. _('Your name') .'\';}" >'."\n";
|
||||
|
||||
echo '</td>'."\n";
|
||||
|
||||
// affichage des cases de formulaire checkbox pour un nouveau choix
|
||||
for ($i=0;$i<$nbcolonnes;$i++) {
|
||||
echo '<td class="vide"><input type="checkbox" title="sélectionnez le choix'.$i.'" name="choix'.$i.'" value="1"';
|
||||
echo '<td class="vide"><input type="checkbox" title="' . _('Select the choice ').$i.'" name="choix'.$i.'" value="1"';
|
||||
if ( isset($_POST['choix'.$i]) && $_POST['choix'.$i] == '1' && is_error(NAME_EMPTY) ) {
|
||||
echo ' checked="checked"';
|
||||
}
|
||||
|
@ -515,8 +494,11 @@ if (! ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || !$user_mod) {
|
|||
}
|
||||
|
||||
// Affichage du bouton de formulaire pour inscrire un nouvel utilisateur dans la base
|
||||
echo '<td><input type="image" alt="Valider mes choix" name="boutonp" src="'.get_server_name().'images/add-24.png"></td>'."\n";
|
||||
echo '<td><input type="image" alt="'. _('Validate my choices') .'" name="boutonp" src="'.get_server_name().'images/add-24.png"></td>'."\n";
|
||||
echo '</tr>'."\n";
|
||||
|
||||
// Focus javascript sur la case de texte du formulaire
|
||||
echo '<script type="text/javascript">'."\n" . 'document.formulaire.nom.focus();'."\n" . '</script>'."\n";
|
||||
}
|
||||
|
||||
//determination de la meilleure date
|
||||
|
@ -539,7 +521,7 @@ echo '</tbody>'."\n".'<tfoot>'."\n";
|
|||
echo '<tr>'."\n";
|
||||
echo '<th scope="row" class="txt-right">';
|
||||
// si on a plus de 8 colonnes, on affiche un second bouton "valider mes choix"
|
||||
echo ($nbcolonnes>8) ?'<input type="submit" name="boutonp" value="Valider mes choix" class="btn btn-success btn-mini" style="margin-right:50px">' : "";
|
||||
echo ($nbcolonnes>8) ?'<input type="submit" name="boutonp" alt="'. _('Validate my choices') .'" class="btn btn-success btn-mini" style="margin-right:50px">' : "";
|
||||
echo _("Addition") .'</th>'."\n";
|
||||
|
||||
for ($i=0; $i < $nbcolonnes; $i++) {
|
||||
|
@ -620,9 +602,9 @@ echo '<p class="affichageresultats">'."\n";
|
|||
|
||||
// Affichage du meilleur choix
|
||||
if ($compteursujet == "1" && isset($meilleurecolonne)) {
|
||||
print '<img src="'.get_server_name().'images/medaille.png" alt="Meilleur choix"> ' . _('The best choice at this time is:') . "<b>".stripslashes($meilleursujet)."</b> " . _('with') . " <b>$meilleurecolonne </b>" . $vote_str . ".\n";
|
||||
print '<img src="'.get_server_name().'images/medaille.png" alt=""> ' . _('The best choice at this time is:') . "<b>".stripslashes($meilleursujet)."</b> " . _('with') . " <b>$meilleurecolonne </b>" . $vote_str . ".\n";
|
||||
} elseif (isset($meilleurecolonne)) {
|
||||
print '<img src="'.get_server_name().'images/medaille.png" alt="Meilleur choix"> ' . _('The bests choices at this time are:') . " <b>".stripslashes($meilleursujet)."</b> " . _('with') . " <b>$meilleurecolonne </b>" . $vote_str . ".\n";
|
||||
print '<img src="'.get_server_name().'images/medaille.png" alt=""> ' . _('The bests choices at this time are:') . " <b>".stripslashes($meilleursujet)."</b> " . _('with') . " <b>$meilleurecolonne </b>" . $vote_str . ".\n";
|
||||
}
|
||||
|
||||
echo '</p>';
|
||||
|
@ -633,7 +615,7 @@ $sql = $connect->Prepare($sql);
|
|||
$comment_user=$connect->Execute($sql, array($numsondage));
|
||||
|
||||
if ($comment_user->RecordCount() != 0) {
|
||||
print "<br><b>" . _("Comments of polled people") . " :</b><br>\n";
|
||||
print "<br /><b>" . _("Comments of polled people") . " :</b><br />\n";
|
||||
while($dcomment = $comment_user->FetchNextObject(false)) {
|
||||
print '<div class="comment"><span class="usercomment">'.stripslashes($dcomment->usercomment). ' :</span> <span class="comment">' . stripslashes(nl2br($dcomment->comment)) . '</span></div>';
|
||||
}
|
||||
|
@ -649,21 +631,21 @@ if (isset($_SESSION['nom']) === false) {
|
|||
}
|
||||
echo '<p><label for="commentator">'. _("Name") .'</label> : ';
|
||||
echo '<input type="text" name="commentuser" maxlength="64" id="commentator" value="'.$nom.'" /></p>'."\n";
|
||||
echo '<p><label for="comment">Votre commentaire</label> : <br />';
|
||||
echo '<textarea id="comment" title="Écrivez votre commentaire" name="comment" rows="2" cols="40"></textarea></p>'."\n";
|
||||
echo '<p><input type="submit" name="ajoutcomment" value="Ajouter un commentaire" class="bouton green"></p>'."\n";
|
||||
echo '<p><label for="comment">'. _("Your comment: ") .'</label><br />';
|
||||
echo '<textarea id="comment" title="'. _("Write your comment") .'" name="comment" rows="2" cols="40"></textarea></p>'."\n";
|
||||
echo '<p class="txt-center"><input type="submit" name="ajoutcomment" value="'. _("Send your comment") .'" class="button green"></p>'."\n";
|
||||
echo '</fieldset></div></form>'."\n";
|
||||
// Focus javascript sur la case de texte du formulaire
|
||||
echo '<script type="text/javascript">'."\n" . 'document.formulaire.commentuser.focus();'."\n" . '</script>'."\n";
|
||||
echo '</div>'."\n";
|
||||
echo '<ul class="exports">';
|
||||
/* Export CSV / ICS
|
||||
* echo '<ul class="exports">';
|
||||
echo '<li><img alt="' . _('Export to CSV') . '" src="'.get_server_name().'images/csv.png"/>'.'<a class="affichageexport" href="'.get_server_name().'exportcsv.php?numsondage=' . $numsondage . '">'._("Export: Spreadsheet") .' (.CSV)' . '</a></li>';
|
||||
|
||||
if ( ($dsondage->format == 'D' || $dsondage->format == 'D+') && $compteursujet=="1" && $meilleurecolonne && file_exists('iCalcreator/iCalcreator.class.php') && false /* TODO: later */) {
|
||||
if ( ($dsondage->format == 'D' || $dsondage->format == 'D+') && $compteursujet=="1" && $meilleurecolonne && file_exists('iCalcreator/iCalcreator.class.php') && false) {
|
||||
echo '<li><img alt="' . _('Export iCal') . '" src="'.get_server_name().'images/ical.png">' .'<a class="affichageexport" href="'.get_server_name().'exportics.php?numsondage=' . $numsondage . '">'._("Agenda") .' (.ICS)' . '</a></li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
*/
|
||||
echo '<a id="bas"></a>'."\n";
|
||||
|
||||
//echo '</div>'; // ajout pyg cohérence graphique
|
||||
|
|
130
style.css
130
style.css
|
@ -1,48 +1,19 @@
|
|||
/*
|
||||
==========================================================================
|
||||
|
||||
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.
|
||||
|
||||
==========================================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
Le fichier style.css est le fichier de style de studs. Il se trouve à la racine
|
||||
du répertoire studs. Il contient toutes les mises en forme des fichiers PHP
|
||||
de Studs.
|
||||
*/
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
@import url('./buttons.css');
|
||||
|
||||
|
@ -328,9 +299,9 @@ div.bodydate table{
|
|||
|
||||
/*cadre de commentaires*/
|
||||
div.presentationdate {
|
||||
width:70%;
|
||||
width:66%;
|
||||
font-family:arial;
|
||||
text-align:center;
|
||||
/* text-align:center;*/
|
||||
font-size:12px;
|
||||
border-width:1px;
|
||||
border-style:solid;
|
||||
|
@ -344,7 +315,10 @@ div.presentationdate {
|
|||
margin-right: 15%;
|
||||
background-color: #EEF;
|
||||
border-radius: 5px;
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
div.presentationdate h2 {text-align:center}
|
||||
|
||||
div.presentationdatefin {
|
||||
width:90%;
|
||||
padding:10px;
|
||||
|
@ -374,8 +348,10 @@ div.cadre {
|
|||
}
|
||||
|
||||
/*information au sujet de la participation au sondage*/
|
||||
div.cadre div.information {
|
||||
margin-bottom:20px;
|
||||
div.information {
|
||||
margin:0 auto 20px auto;
|
||||
max-width:650px;
|
||||
text-align:justify;
|
||||
}
|
||||
/*la table des résultats dans l'affichage de sondage*/
|
||||
div.cadre table.resultats {
|
||||
|
@ -615,6 +591,13 @@ div.addcomment {
|
|||
border-radius: 5px;
|
||||
}
|
||||
|
||||
div.addcomment p {
|
||||
width:380px;
|
||||
margin-left : auto;
|
||||
margin-right: auto;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
ul.exports {
|
||||
display:none; /* fonction non fonctionnelle */
|
||||
text-align:center;
|
||||
|
@ -680,6 +663,10 @@ li.error {
|
|||
|
||||
.imprimer {
|
||||
float:right;
|
||||
text-align:center;
|
||||
}
|
||||
.imprimer a {
|
||||
width: 90px
|
||||
}
|
||||
|
||||
.error {
|
||||
|
@ -691,5 +678,48 @@ li.error {
|
|||
}
|
||||
|
||||
.txt-right {
|
||||
text-align:right;
|
||||
text-align:right !important;
|
||||
}
|
||||
.txt-center {
|
||||
text-align:center !important;
|
||||
}
|
||||
|
||||
.sousbandeaulangue select {
|
||||
border: 1px solid white;
|
||||
height: 14px;
|
||||
border-radius: 0.5em 0 0 0.5em;
|
||||
}
|
||||
.sousbandeaulangue input {
|
||||
border: none;
|
||||
height: 15px;
|
||||
border-radius: 0 0.5em 0.5em 0;
|
||||
}
|
||||
|
||||
.clear-left {
|
||||
clear:left;
|
||||
}
|
||||
|
||||
.newday {
|
||||
width:60px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.newmonth {
|
||||
width:110px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.newyear {
|
||||
width:70px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.newhour {
|
||||
width:70px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.newmin {
|
||||
width:50px;
|
||||
float:left;
|
||||
}
|
||||
|
|
|
@ -1,42 +1,21 @@
|
|||
<?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.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
/* This software is governed by the CeCILL-B license. If a copy of this license
|
||||
* is not distributed with this file, you can obtain one at
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
|
||||
*
|
||||
* Authors of STUdS (initial project) : Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||
* Authors of OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*
|
||||
* =============================
|
||||
*
|
||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.txt
|
||||
*
|
||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||
* Auteurs d'OpenSondage : Framasoft (https://github.com/framasoft)
|
||||
*/
|
||||
|
||||
// Nom du serveur
|
||||
const STUDS_URL = 'www.mon_domaine.coop';
|
||||
|
||||
|
|
Loading…
Reference in New Issue