From 2393e7c73291ef7480cc4aa6c2b2b61a31db4a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 19:03:33 +0100 Subject: [PATCH] Moved creation poll wizard out of public folder --- htdocs/core/modules/modOpenSurvey.class.php | 2 +- htdocs/opensurvey/{public/images => img}/date.png | Bin .../opensurvey/{public/images => img}/sondage2.png | Bin .../opensurvey/{public => wizard}/choix_autre.php | 6 +++--- htdocs/opensurvey/{public => wizard}/choix_date.php | 12 ++++++------ .../opensurvey/{public => wizard}/create_survey.php | 8 ++++---- htdocs/opensurvey/{public => wizard}/index.php | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) rename htdocs/opensurvey/{public/images => img}/date.png (100%) rename htdocs/opensurvey/{public/images => img}/sondage2.png (100%) rename htdocs/opensurvey/{public => wizard}/choix_autre.php (96%) rename htdocs/opensurvey/{public => wizard}/choix_date.php (98%) rename htdocs/opensurvey/{public => wizard}/create_survey.php (96%) rename htdocs/opensurvey/{public => wizard}/index.php (90%) diff --git a/htdocs/core/modules/modOpenSurvey.class.php b/htdocs/core/modules/modOpenSurvey.class.php index 98830509bd7..6743d415ff1 100644 --- a/htdocs/core/modules/modOpenSurvey.class.php +++ b/htdocs/core/modules/modOpenSurvey.class.php @@ -157,7 +157,7 @@ class modOpenSurvey extends DolibarrModules 'titre'=>'NewSurvey', 'mainmenu'=>'opensurvey', 'leftmenu'=>'opensurvey_new', - 'url'=>'/opensurvey/public/index.php', + 'url'=>'/opensurvey/wizard/index.php', 'langs'=>'opensurvey', 'position'=>210, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. diff --git a/htdocs/opensurvey/public/images/date.png b/htdocs/opensurvey/img/date.png similarity index 100% rename from htdocs/opensurvey/public/images/date.png rename to htdocs/opensurvey/img/date.png diff --git a/htdocs/opensurvey/public/images/sondage2.png b/htdocs/opensurvey/img/sondage2.png similarity index 100% rename from htdocs/opensurvey/public/images/sondage2.png rename to htdocs/opensurvey/img/sondage2.png diff --git a/htdocs/opensurvey/public/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php similarity index 96% rename from htdocs/opensurvey/public/choix_autre.php rename to htdocs/opensurvey/wizard/choix_autre.php index 41467471340..aec26c5ca48 100644 --- a/htdocs/opensurvey/public/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -17,7 +17,7 @@ */ /** - * \file htdocs/opensurvey/public/choix_autre.php + * \file htdocs/opensurvey/wizard/choix_autre.php * \ingroup opensurvey * \brief Page to create a new survey (choice selection) */ @@ -139,12 +139,12 @@ print ''."\n"; //ajout de cases supplementaires print ''."\n"; -print ''."\n"; +print ''."\n"; print '
'. $langs->trans("5MoreChoices") .''. $langs->trans("5MoreChoices") .'
'."\n"; print'
'."\n"; print ''."\n"; -print ''."\n"; +print ''."\n"; print '
'."\n"; //fin du formulaire et bandeau de pied diff --git a/htdocs/opensurvey/public/choix_date.php b/htdocs/opensurvey/wizard/choix_date.php similarity index 98% rename from htdocs/opensurvey/public/choix_date.php rename to htdocs/opensurvey/wizard/choix_date.php index 7a67c313739..606b1ecf873 100644 --- a/htdocs/opensurvey/public/choix_date.php +++ b/htdocs/opensurvey/wizard/choix_date.php @@ -17,7 +17,7 @@ */ /** - * \file htdocs/opensurvey/public/choix_date.php + * \file htdocs/opensurvey/wizard/choix_date.php * \ingroup opensurvey * \brief Page to create a new survey (date selection) */ @@ -320,7 +320,7 @@ else //Debut du formulaire et bandeaux de tete -print '
'."\n"; +print ''."\n"; print_fiche_titre($langs->trans("CreatePoll").' (2 / 2)'); @@ -332,11 +332,11 @@ print ''."\n"; //debut du tableau qui affiche le calendrier print '
'."\n"; print ''."\n"; -print ''; +print ''; print ''; -print ''; +print ''."\n"; print '
'.$motmois.' '.$_SESSION["annee"].'
'; print ''; -print '
'; +print ''; print '
'."\n"; print ''."\n"; @@ -503,7 +503,7 @@ if (issetAndNoEmpty('totalchoixjour', $_SESSION) || $erreur) } if ($_SESSION["nbrecaseshoraires"] < 10) { - print ''."\n"; + print ''."\n"; } print ''."\n"; diff --git a/htdocs/opensurvey/public/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php similarity index 96% rename from htdocs/opensurvey/public/create_survey.php rename to htdocs/opensurvey/wizard/create_survey.php index 43d77593313..cad66b34d4a 100644 --- a/htdocs/opensurvey/public/create_survey.php +++ b/htdocs/opensurvey/wizard/create_survey.php @@ -17,7 +17,7 @@ */ /** - * \file htdocs/opensurvey/public/create_survey.php + * \file htdocs/opensurvey/wizard/create_survey.php * \ingroup opensurvey * \brief Page to create a new survey */ @@ -133,7 +133,7 @@ llxHeader('', $langs->trans("OpenSurvey"), '', "", 0, 0, $arrayofjs, $arrayofcss print_fiche_titre($langs->trans("CreatePoll").' (1 / 2)'); //debut du formulaire -print ''."\n"; +print ''."\n"; //Affichage des différents champs textes a remplir print '
'."\n"; @@ -217,9 +217,9 @@ else //affichage des boutons pour choisir sondage date ou autre print '
'."\n"; print ' '."\n"; - print ''."\n"; + print ''."\n"; print ' '."\n"; - print ''."\n"; + print ''."\n"; print '
'. $langs->trans("CreateSurveyDate") .'
'. $langs->trans("CreateSurveyStandard") .'
'."\n"; } print '


'."\n"; diff --git a/htdocs/opensurvey/public/index.php b/htdocs/opensurvey/wizard/index.php similarity index 90% rename from htdocs/opensurvey/public/index.php rename to htdocs/opensurvey/wizard/index.php index f070a2f6f12..6bb6403ff72 100644 --- a/htdocs/opensurvey/public/index.php +++ b/htdocs/opensurvey/wizard/index.php @@ -46,8 +46,8 @@ print '
print '

'.$langs->trans("OrganizeYourMeetingEasily").'


-
-
+
+
';