27require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
29require_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
32$langs->load(
"opensurvey");
35if (!$user->hasRight(
'opensurvey',
'read')) {
42$hookmanager->initHooks(array(
'opensurveyindex'));
50$sql =
'SELECT COUNT(*) as nb';
51$sql .=
' FROM '.MAIN_DB_PREFIX.
'opensurvey_sondage';
52$sql .=
' WHERE entity IN ('.getEntity(
'survey').
')';
53$resql = $db->query($sql);
55 $obj = $db->fetch_object($resql);
56 $nbsondages = $obj->nb;
62$title = $langs->trans(
"OpenSurveyArea");
68print
'<div class="fichecenter"><div class="fichethirdleft">';
70print
'<div class="div-table-responsive-no-min">';
71print
'<table class="noborder centpercent">';
72print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
73print
'<tr class="oddeven">';
74print
'<td>'.$langs->trans(
"NbOfSurveys").
'</td><td class="right"><a href="list.php">'.$nbsondages.
'</a></td>';
84$parameters = array(
'user' => $user);
85$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()
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.