27require
'../main.inc.php';
35require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
36require_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
39$langs->load(
"opensurvey");
42if (!$user->hasRight(
'opensurvey',
'read')) {
47$hookmanager->initHooks(array(
'opensurveyindex'));
55$sql =
'SELECT COUNT(*) as nb';
56$sql .=
' FROM '.MAIN_DB_PREFIX.
'opensurvey_sondage';
57$sql .=
' WHERE entity IN ('.getEntity(
'survey').
')';
58$resql =
$db->query($sql);
60 $obj =
$db->fetch_object($resql);
61 $nbsondages = $obj->nb;
67$title = $langs->trans(
"OpenSurveyArea");
73print
'<div class="fichecenter"><div class="fichethirdleft">';
75print
'<div class="div-table-responsive-no-min">';
76print
'<table class="noborder centpercent">';
77print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
78print
'<tr class="oddeven">';
79print
'<td>'.$langs->trans(
"NbOfSurveys").
'</td><td class="right"><a href="list.php">'.$nbsondages.
'</a></td>';
89$parameters = array(
'user' => $user);
90$reshook = $hookmanager->executeHooks(
'dashboardOpenSurvey', $parameters, $object);
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
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.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
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.