22if (!defined(
'NOTOKENRENEWAL')) {
23 define(
'NOTOKENRENEWAL',
'1');
27require
'../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/opensurvey/lib/opensurvey.lib.php';
41if (!$user->hasRight(
'opensurvey',
'write')) {
45$langs->load(
"opensurvey");
53$arrayofcss = array(
'/opensurvey/css/style.css');
54llxHeader(
'', $langs->trans(
"Survey"),
'',
"", 0, 0, $arrayofjs, $arrayofcss);
58print
'<form name="formulaire" action="create_survey.php" method="POST">';
59print
'<input type="hidden" name="token" value="'.newToken().
'">';
60print
'<div class="center">';
61print
'<p>'.$langs->trans(
"OrganizeYourMeetingEasily").
'</p>';
62print
'<div class="corps">';
64print
'<div class="index_date">';
65print
'<div><img class="opacity imgopensurveywizard" src="../img/date.png" onclick="document.formulaire.date.click()"></div>';
66print
'<button id="date" name="choix_sondage" value="date" type="submit" class="button orange bigrounded">';
67print
'<img src="../img/calendar-32.png" alt="'.dol_escape_htmltag($langs->trans(
"CreateSurveyDate")).
'" style="padding-right: 4px" class="inline-block valignmiddle">';
68print
'<div class="inline-block valignmiddle">'.dol_escape_htmltag($langs->trans(
"CreateSurveyDate")).
'</div></button>';
70print
'<div class="index_sondage">';
71print
'<div><img class="opacity imgopensurveywizard" src="../img/sondage2.png" onclick="document.formulaire.autre.click()"></div>';
72print
'<button id="autre" name="choix_sondage" value="autre" type="submit" class="button blue bigrounded">';
73print
'<img src="../img/chart-32.png" alt="'.dol_escape_htmltag($langs->trans(
"CreateSurveyStandard")).
'" style="padding-right: 4px" class="inline-block valignmiddle">';
74print
'<div class="inline-block valignmiddle">'.dol_escape_htmltag($langs->trans(
"CreateSurveyStandard")).
'</div></button>';
76print
'<div class="clearboth"></div>';
84unset($_SESSION[
"nbrecases"]);
86 unset($_SESSION[
"choix".$i]);
87 unset($_SESSION[
"typecolonne".$i]);
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.