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";
32 $langs->load(
"opensurvey");
35 if (empty($user->rights->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').
')';
55 $obj = $db->fetch_object(
$resql);
56 $nbsondages = $obj->nb;
62 $title = $langs->trans(
"OpenSurveyArea");
68 print
'<div class="fichecenter"><div class="fichethirdleft">';
70 print
'<div class="div-table-responsive-no-min">';
71 print
'<table class="noborder centpercent">';
72 print
'<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
73 print
'<tr class="oddeven">';
74 print
'<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(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("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->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.