2013-04-09 23:05:50 +02:00
|
|
|
<?php
|
2016-01-13 15:44:26 +01:00
|
|
|
/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
|
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2016 Regis Houssin <regis.houssin@inodbox.com>
|
2020-01-09 11:01:15 +01:00
|
|
|
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
2013-04-09 23:05:50 +02:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2013-04-09 23:05:50 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2021-02-26 15:27:57 +01:00
|
|
|
if (!defined('NOTOKENRENEWAL')) {
|
|
|
|
|
define('NOTOKENRENEWAL', '1');
|
|
|
|
|
}
|
2018-04-21 12:00:55 +02:00
|
|
|
|
2015-05-27 21:54:06 +02:00
|
|
|
require '../../main.inc.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
2022-04-01 19:17:25 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/opensurvey/lib/opensurvey.lib.php';
|
2013-04-09 23:05:50 +02:00
|
|
|
|
2014-01-05 19:13:12 +01:00
|
|
|
// Security check
|
2021-02-26 15:27:57 +01:00
|
|
|
if (!$user->rights->opensurvey->write) {
|
|
|
|
|
accessforbidden();
|
|
|
|
|
}
|
2013-04-13 14:09:50 +02:00
|
|
|
|
2014-01-05 19:13:12 +01:00
|
|
|
$langs->load("opensurvey");
|
2013-04-09 23:05:50 +02:00
|
|
|
|
2020-04-20 18:38:25 +02:00
|
|
|
|
2013-04-09 23:05:50 +02:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
|
|
|
|
|
2020-04-10 10:59:32 +02:00
|
|
|
$arrayofjs = array();
|
|
|
|
|
$arrayofcss = array('/opensurvey/css/style.css');
|
2015-05-27 21:54:06 +02:00
|
|
|
llxHeader('', $langs->trans("Survey"), '', "", 0, 0, $arrayofjs, $arrayofcss);
|
2014-01-05 18:55:56 +01:00
|
|
|
|
2020-04-20 18:38:25 +02:00
|
|
|
print load_fiche_titre($langs->trans("CreatePoll"), '', 'poll');
|
2013-04-09 23:05:50 +02:00
|
|
|
|
2014-11-25 20:13:43 +01:00
|
|
|
print '<form name="formulaire" action="create_survey.php" method="POST">';
|
2020-01-09 11:01:15 +01:00
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
2014-11-25 20:13:43 +01:00
|
|
|
print '<div class="center">';
|
|
|
|
|
print '<p>'.$langs->trans("OrganizeYourMeetingEasily").'</p>';
|
|
|
|
|
print '<div class="corps">';
|
|
|
|
|
print '<br>';
|
2018-05-27 15:04:12 +02:00
|
|
|
print '<div class="index_date">';
|
|
|
|
|
print '<div><img class="opacity imgopensurveywizard" src="../img/date.png" onclick="document.formulaire.date.click()"></div>';
|
|
|
|
|
print '<button id="date" name="choix_sondage" value="date" type="submit" class="button orange bigrounded"><img src="../img/calendar-32.png" alt="'.dol_escape_htmltag($langs->trans("CreateSurveyDate")).'" style="padding-right: 4px">'.dol_escape_htmltag($langs->trans("CreateSurveyDate")).'</button>';
|
|
|
|
|
print '</div>';
|
|
|
|
|
print '<div class="index_sondage">';
|
|
|
|
|
print '<div><img class="opacity imgopensurveywizard" src="../img/sondage2.png" onclick="document.formulaire.autre.click()"></div>';
|
|
|
|
|
print '<button id="autre" name="choix_sondage" value="autre" type="submit" class="button blue bigrounded"><img src="../img/chart-32.png" alt="'.dol_escape_htmltag($langs->trans("CreateSurveyStandard")).'" style="padding-right: 4px">'.dol_escape_htmltag($langs->trans("CreateSurveyStandard")).'</button>';
|
|
|
|
|
print '</div>';
|
|
|
|
|
print '<div style="clear:both;"></div>';
|
2014-11-25 20:13:43 +01:00
|
|
|
print '</div>';
|
|
|
|
|
print '</div></form>';
|
2013-04-09 23:05:50 +02:00
|
|
|
|
2018-08-14 09:55:58 +02:00
|
|
|
// End of page
|
2014-01-05 09:08:42 +01:00
|
|
|
llxFooter();
|
2013-04-09 23:05:50 +02:00
|
|
|
$db->close();
|