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';
33if (!$user->hasRight(
'opensurvey',
'write')) {
37$langs->load(
"opensurvey");
45$arrayofcss = array(
'/opensurvey/css/style.css');
46llxHeader(
'', $langs->trans(
"Survey"),
'',
"", 0, 0, $arrayofjs, $arrayofcss);
50print
'<form name="formulaire" action="create_survey.php" method="POST">';
51print
'<input type="hidden" name="token" value="'.newToken().
'">';
52print
'<div class="center">';
53print
'<p>'.$langs->trans(
"OrganizeYourMeetingEasily").
'</p>';
54print
'<div class="corps">';
56print
'<div class="index_date">';
57print
'<div><img class="opacity imgopensurveywizard" src="../img/date.png" onclick="document.formulaire.date.click()"></div>';
58print
'<button id="date" name="choix_sondage" value="date" type="submit" class="button orange bigrounded">';
59print
'<img src="../img/calendar-32.png" alt="'.dol_escape_htmltag($langs->trans(
"CreateSurveyDate")).
'" style="padding-right: 4px" class="inline-block valignmiddle">';
60print
'<div class="inline-block valignmiddle">'.dol_escape_htmltag($langs->trans(
"CreateSurveyDate")).
'</div></button>';
62print
'<div class="index_sondage">';
63print
'<div><img class="opacity imgopensurveywizard" src="../img/sondage2.png" onclick="document.formulaire.autre.click()"></div>';
64print
'<button id="autre" name="choix_sondage" value="autre" type="submit" class="button blue bigrounded">';
65print
'<img src="../img/chart-32.png" alt="'.dol_escape_htmltag($langs->trans(
"CreateSurveyStandard")).
'" style="padding-right: 4px" class="inline-block valignmiddle">';
66print
'<div class="inline-block valignmiddle">'.dol_escape_htmltag($langs->trans(
"CreateSurveyStandard")).
'</div></button>';
68print
'<div class="clearboth"></div>';
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.