27require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
29require_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
40$langs->load(
"opensurvey");
43if (!$user->hasRight(
'opensurvey',
'read')) {
50$hookmanager->initHooks(array(
'opensurveyindex'));
58$sql =
'SELECT COUNT(*) as nb';
59$sql .=
' FROM '.MAIN_DB_PREFIX.
'opensurvey_sondage';
60$sql .=
' WHERE entity IN ('.getEntity(
'survey').
')';
61$resql = $db->query($sql);
63 $obj = $db->fetch_object($resql);
64 $nbsondages = $obj->nb;
70$title = $langs->trans(
"OpenSurveyArea");
76print
'<div class="fichecenter"><div class="fichethirdleft">';
78print
'<div class="div-table-responsive-no-min">';
79print
'<table class="noborder centpercent">';
80print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
81print
'<tr class="oddeven">';
82print
'<td>'.$langs->trans(
"NbOfSurveys").
'</td><td class="right"><a href="list.php">'.$nbsondages.
'</a></td>';
92$parameters = array(
'user' => $user);
93$reshook = $hookmanager->executeHooks(
'dashboardOpenSurvey', $parameters, $object);
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.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.