27require
'../main.inc.php';
38require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/eventorganization.lib.php';
40require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
43$langs->loadLangs(array(
"admin",
"eventorganization",
"categories"));
46$action =
GETPOST(
'action',
'aZ09');
47$cancel =
GETPOST(
'cancel',
'alpha');
48$backtopage =
GETPOST(
'backtopage',
'alpha');
50$value =
GETPOST(
'value',
'alpha');
51$label =
GETPOST(
'label',
'alpha');
52$modulepart =
GETPOST(
'modulepart',
'aZ09');
54$scandir =
GETPOST(
'scan_dir',
'alpha');
57$arrayofparameters = array(
58 'EVENTORGANIZATION_SECUREKEY' => array(
'type' =>
'securekey',
'enabled' => 1,
'css' =>
''),
64$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
67if (empty($user->admin)) {
84include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
93$page_name =
"EventOrganizationSetup";
95llxHeader(
'', $langs->trans($page_name),
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-eventorganization');
98$linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1').
'">'.
img_picto($langs->trans(
"BackToModuleList"),
'back',
'class="pictofixedwidth"').
'<span class="hideonsmartphone">'.$langs->trans(
"BackToModuleList").
'</span></a>';
104print
dol_get_fiche_head($head,
'public', $langs->trans($page_name), -1,
'eventorganization');
110if ($action ==
'edit') {
111 print
'<form method="POST" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
112 print
'<input type="hidden" name="token" value="'.newToken().
'">';
113 print
'<input type="hidden" name="action" value="update">';
115 print
'<table class="noborder centpercent">';
116 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td><td></td></tr>';
118 foreach ($arrayofparameters as $constname => $val) {
120 if ($val[
'enabled'] == 1) {
122 print
'<tr class="oddeven"><td><!-- '.$constname.
' -->';
123 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
124 $tooltiphelp .= (($langs->trans($constname .
'Tooltip2') && $langs->trans($constname .
'Tooltip2') != $constname .
'Tooltip2') ?
'<br><br>'.
"\n".$langs->trans($constname .
'Tooltip2') :
'');
125 print
'<span id="helplink'.$constname.
'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1,
'info',
'', 0, 3,
'tootips'.$constname).
'</span>';
171 print
'<input type="text" class="flat width500" id="'.$constname.
'" name="'.$constname.
'" value="'.(
GETPOST($constname,
'alpha') ?
GETPOST($constname,
'alpha') :
getDolGlobalString($constname)).
'" spellcheck="false">';
172 if (!empty(
$conf->use_javascript_ajax)) {
173 print
' '.img_picto($langs->trans(
'Generate'),
'refresh',
'id="generate_token'.$constname.
'" class="linkobject"');
177 include_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
193 print $form->buttonsSaveCancel(
'Save',
'');
198 print
'<table class="noborder centpercent">';
199 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td><td></td></tr>';
201 foreach ($arrayofparameters as $constname => $val) {
203 print
'<tr class="oddeven">';
204 print
'<td><!-- '.$constname.
' -->';
205 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
206 $tooltiphelp .= (($langs->trans($constname .
'Tooltip2') && $langs->trans($constname .
'Tooltip2') != $constname .
'Tooltip2') ?
'<br><br>'.
"\n".$langs->trans($constname .
'Tooltip2') :
'');
207 print $form->textwithpicto($langs->trans($constname), $tooltiphelp);
217 print
'<div class="tabsAction">';
218 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit&token='.newToken().
'">'.$langs->trans(
"Modify").
'</a>';
230 print
img_picto(
'',
'globe').
' <span class="opacitymedium">'.$langs->trans(
'BlankSubscriptionForm').
'</span><br>';
232 $entity_qr =
'?entity='.$conf->entity;
239 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
242 print
'<div class="urllink">';
243 print $langs->trans(
"TheLinkIsAvailableOnTheProjectEventCard");
247 print ajax_autoselect(
'publicurlmember');
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.
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.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
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.