Go to the documentation of this file.
26 require
'../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
28 require_once DOL_DOCUMENT_ROOT.
"/core/lib/files.lib.php";
31 $langs->load(
"opensurvey");
34 if (empty($user->rights->opensurvey->read)) {
41 $hookmanager->initHooks(array(
'opensurveyindex'));
49 $sql =
'SELECT COUNT(*) as nb';
50 $sql .=
' FROM '.MAIN_DB_PREFIX.
'opensurvey_sondage';
51 $sql .=
' WHERE entity IN ('.getEntity(
'survey').
')';
54 $obj = $db->fetch_object(
$resql);
55 $nbsondages = $obj->nb;
61 $title = $langs->trans(
"OpenSurveyArea");
67 print
'<div class="fichecenter"><div class="fichethirdleft">';
69 print
'<div class="div-table-responsive-no-min">';
70 print
'<table class="noborder centpercent">';
71 print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
72 print
'<tr class="oddeven">';
73 print
'<td>'.$langs->trans(
"NbOfSurveys").
'</td><td class="right"><a href="list.php">'.$nbsondages.
'</a></td>';
83 $parameters = array(
'user' => $user);
84 $reshook = $hookmanager->executeHooks(
'dashboardOpenSurvey', $parameters, $object);
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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.
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...