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");
39 $hookmanager->initHooks(array(
'opensurveyindex'));
47 $sql =
'SELECT COUNT(*) as nb';
48 $sql .=
' FROM '.MAIN_DB_PREFIX.
'opensurvey_sondage';
49 $sql .=
' WHERE entity IN ('.getEntity(
'survey').
')';
53 $obj = $db->fetch_object(
$resql);
54 $nbsondages = $obj->nb;
58 $title = $langs->trans(
"OpenSurveyArea");
64 print '<div class="fichecenter"><div class="fichethirdleft">';
66 print '<div class="div-table-responsive-no-min">';
67 print '<table class="noborder centpercent">';
68 print '<tr class="liste_titre"><td colspan="2">'.$langs->trans(
"OpenSurveyArea").
'</td></tr>';
69 print '<tr class="oddeven">';
70 print '<td>'.$langs->trans(
"NbOfSurveys").
'</td><td class="right"><a href="list.php">'.$nbsondages.
'</a></td>';
80 $parameters = array(
'user' => $user);
81 $reshook = $hookmanager->executeHooks(
'dashboardOpenSurvey', $parameters, $object);
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
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 Calling this function terminate execution ...
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...