22 if (!defined(
'NOTOKENRENEWAL')) {
23 define(
'NOTOKENRENEWAL',
'1');
27 require
'../../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/opensurvey/lib/opensurvey.lib.php';
33 if (!$user->rights->opensurvey->write) {
37 $langs->load(
"opensurvey");
45 $arrayofcss = array(
'/opensurvey/css/style.css');
46 llxHeader(
'', $langs->trans(
"Survey"),
'',
"", 0, 0, $arrayofjs, $arrayofcss);
50 print
'<form name="formulaire" action="create_survey.php" method="POST">';
51 print
'<input type="hidden" name="token" value="'.newToken().
'">';
52 print
'<div class="center">';
53 print
'<p>'.$langs->trans(
"OrganizeYourMeetingEasily").
'</p>';
54 print
'<div class="corps">';
56 print
'<div class="index_date">';
57 print
'<div><img class="opacity imgopensurveywizard" src="../img/date.png" onclick="document.formulaire.date.click()"></div>';
58 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>';
60 print
'<div class="index_sondage">';
61 print
'<div><img class="opacity imgopensurveywizard" src="../img/sondage2.png" onclick="document.formulaire.autre.click()"></div>';
62 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>';
64 print
'<div class="clearboth"></div>';
66 print
'</div></form>';
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
if(!defined('NOTOKENRENEWAL')) if(!defined('NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) if(!defined('NOIPCHECK')) if(!defined('NOBROWSERNOTIF')) llxHeader()
Header empty.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.