27require
'../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/eventorganization.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
45$langs->loadLangs(array(
"admin",
"eventorganization",
"categories"));
48$action =
GETPOST(
'action',
'aZ09');
50$backtopage =
GETPOST(
'backtopage',
'alpha');
52$value =
GETPOST(
'value',
'alpha');
53$label =
GETPOST(
'label',
'alpha');
54$modulepart =
GETPOST(
'modulepart',
'aZ09');
56$scandir =
GETPOST(
'scan_dir',
'alpha');
59$arrayofparameters = array(
60 'EVENTORGANIZATION_SECUREKEY' => array(
'type' =>
'securekey',
'enabled' => 1,
'css' =>
''),
66$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
69if (empty($user->admin)) {
86include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
96$page_name =
"EventOrganizationSetup";
98llxHeader(
'', $langs->trans($page_name),
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-eventorganization');
101$linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1').
'">'.$langs->trans(
"BackToModuleList").
'</a>';
107print
dol_get_fiche_head($head,
'public', $langs->trans($page_name), -1,
'eventorganization');
113if ($action ==
'edit') {
114 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
115 print
'<input type="hidden" name="token" value="'.newToken().
'">';
116 print
'<input type="hidden" name="action" value="update">';
118 print
'<table class="noborder centpercent">';
119 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td><td></td></tr>';
121 foreach ($arrayofparameters as $constname => $val) {
123 if ($val[
'enabled'] == 1) {
125 print
'<tr class="oddeven"><td><!-- '.$constname.
' -->';
126 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
127 $tooltiphelp .= (($langs->trans($constname .
'Tooltip2') && $langs->trans($constname .
'Tooltip2') != $constname .
'Tooltip2') ?
'<br><br>'.
"\n".$langs->trans($constname .
'Tooltip2') :
'');
128 print
'<span id="helplink'.$constname.
'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1,
'info',
'', 0, 3,
'tootips'.$constname).
'</span>';
174 print
'<input type="text" class="flat" id="'.$constname.
'" name="'.$constname.
'" value="'.(
GETPOST($constname,
'alpha') ?
GETPOST($constname,
'alpha') :
getDolGlobalString($constname)).
'" size="40">';
175 if (!empty(
$conf->use_javascript_ajax)) {
176 print
' '.img_picto($langs->trans(
'Generate'),
'refresh',
'id="generate_token'.$constname.
'" class="linkobject"');
180 include_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
196 print $form->buttonsSaveCancel(
'Save',
'');
201 print
'<table class="noborder centpercent">';
202 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td><td></td></tr>';
204 foreach ($arrayofparameters as $constname => $val) {
206 print
'<tr class="oddeven">';
207 print
'<td><!-- '.$constname.
' -->';
208 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
209 $tooltiphelp .= (($langs->trans($constname .
'Tooltip2') && $langs->trans($constname .
'Tooltip2') != $constname .
'Tooltip2') ?
'<br><br>'.
"\n".$langs->trans($constname .
'Tooltip2') :
'');
210 print $form->textwithpicto($langs->trans($constname), $tooltiphelp);
220 print
'<div class="tabsAction">';
221 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit&token='.
newToken().
'">'.$langs->trans(
"Modify").
'</a>';
233 print
img_picto(
'',
'globe').
' <span class="opacitymedium">'.$langs->trans(
'BlankSubscriptionForm').
'</span><br>';
234if (isModEnabled(
'multicompany')) {
235 $entity_qr =
'?entity='.$conf->entity;
242 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
245 print
'<div class="urllink">';
246 print $langs->trans(
"TheLinkIsAvailableOnTheProjectEventCard");
global $dolibarr_main_url_root
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.
eventorganizationAdminPrepareHead()
Prepare admin pages header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
ajax_autoselect($htmlname, $addlink='', $textonlink='Link')
Make content of an input box selected when we click into input field.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
dolJSToSetRandomPassword($htmlname, $htmlnameofbutton='generate_token', $generic=1)
Output javascript to autoset a generated password using default module into a HTML element.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.