47if (!$res && !empty($_SERVER[
"CONTEXT_DOCUMENT_ROOT"])) {
48 $res = @include $_SERVER[
"CONTEXT_DOCUMENT_ROOT"].
"/main.inc.php";
51$tmp = empty($_SERVER[
'SCRIPT_FILENAME']) ?
'' : $_SERVER[
'SCRIPT_FILENAME']; $tmp2 = realpath(__FILE__); $i = strlen($tmp) - 1; $j = strlen($tmp2) - 1;
52while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) {
55if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1)).
"/main.inc.php")) {
56 $res = @include substr($tmp, 0, ($i + 1)).
"/main.inc.php";
58if (!$res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i + 1))).
"/main.inc.php")) {
59 $res = @include dirname(substr($tmp, 0, ($i + 1))).
"/main.inc.php";
62if (!$res && file_exists(
"../main.inc.php")) {
63 $res = @include
"../main.inc.php";
65if (!$res && file_exists(
"../../main.inc.php")) {
66 $res = @include
"../../main.inc.php";
68if (!$res && file_exists(
"../../../main.inc.php")) {
69 $res = @include
"../../../main.inc.php";
72 die(
"Include of main fails");
75dol_include_once(
'/eventorganization/class/conferenceorboothattendee.class.php');
76dol_include_once(
'/eventorganization/lib/eventorganization_conferenceorboothattendee.lib.php');
79$langs->loadLangs(array(
'eventorganization',
'companies'));
84$action =
GETPOST(
'action',
'aZ09');
85$cancel =
GETPOST(
'cancel',
'aZ09');
86$backtopage =
GETPOST(
'backtopage',
'alpha');
91$diroutputmassaction = $conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
92$hookmanager->initHooks(array(
'conferenceorboothattendeenote',
'globalcard'));
94$extrafields->fetch_name_optionals_label($object->table_element);
102include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
103if ($id > 0 || !empty($ref)) {
104 $upload_dir = $conf->eventorganization->multidir_output[$object->entity].
"/".$object->id;
108$permissionnote = $user->rights->eventorganization->conferenceorboothattendee->write;
109$permissiontoadd = $user->rights->eventorganization->conferenceorboothattendee->write;
117$reshook = $hookmanager->executeHooks(
'doActions', array(), $object, $action);
121if (empty($reshook)) {
122 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
129$form =
new Form($db);
133llxHeader(
'', $langs->trans(
'ConferenceOrBoothAttendee'), $help_url);
135if ($id > 0 || !empty($ref)) {
136 $object->fetch_thirdparty();
140 print
dol_get_fiche_head($head,
'note', $langs->trans(
"ConferenceOrBoothAttendee"), -1, $object->picto);
144 $linkback =
'<a href="'.dol_buildpath(
'/eventorganization/conferenceorboothattendee_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
146 $morehtmlref =
'<div class="refidno">';
184 $morehtmlref .=
'</div>';
187 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
190 print
'<div class="fichecenter">';
191 print
'<div class="underbanner clearboth"></div>';
194 $cssclass =
"titlefield";
195 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class for ConferenceOrBoothAttendee.
conferenceorboothAttendeePrepareHead($object)
Prepare array of tabs for ConferenceOrBoothAttendees.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.