top: 4px; max-width: 82px; } li.tmenu, li.tmenusel { min-width: 30px; } div.tmenucenter { text-overflow: clip; } .topmenuimage { background-size: 20px auto; margin-top: 2px !important; } div.mainmenu { min-width: 20px; } #tooltip { position: absolute; width: <?php print dol_size(300, 'width'); ?> px; } } <?php if (is_object($db)) { $db->close(); }
} .validtitre { background: #D5BAA8; font-weight: bold; } /* ============================================================================== */ /* Tooltips */ /* ============================================================================== */ #tooltip { position: absolute; width: <?php print dol_size(450, 'width'); ?> px; border-top: solid 1px #BBBBBB; border-<?php print $left; ?> : solid 1px #BBBBBB; border-<?php print $right; ?> : solid 1px #444444; border-bottom: solid 1px #444444; padding: 2px; z-index: 3000; background-color: #EFCFAA;
$total += $Adherents[$key][$idx]; } } } print '<tr><td width="30%" class="notopnoleft" valign="top">'; /* * Statistics */ print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td colspan="2">' . $langs->trans("Statistics") . '</td></tr>'; print '<tr><td align="center">'; $dataval = array(); $datalabels = array(); $i = 0; foreach ($AdherentType as $key => $adhtype) { $datalabels[] = array($i, $staticmember->getTagUrl(0, dol_size(16))); foreach ($staticmember->fk_extrafields->fields->Status->values as $idx => $row) { $dataval[$key][] = array($i, $Adherents[$key][$idx]); } $i++; } $dataseries = array(); foreach ($staticmember->fk_extrafields->fields->Status->values as $idx => $row) { $dataseries[] = array('label' => $langs->trans($row->label), 'data' => round($somme[$idx])); } $data = array('series' => $dataseries); dol_print_graph('stats', 330, 180, $data, 1, 'pie', 1); print '</td></tr>'; print '<tr class="liste_total"><td>' . $langs->trans("Total") . '</td><td align="right">'; print $total; print '</td></tr>';
} else { dol_print_error($db); } // Summary of members by type print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>' . $langs->trans("MembersTypes") . '</td>'; print '<td align=right>' . $langs->trans("MembersStatusToValid") . '</td>'; print '<td align=right>' . $langs->trans("MenuMembersNotUpToDate") . '</td>'; print '<td align=right>' . $langs->trans("MenuMembersUpToDate") . '</td>'; print '<td align=right>' . $langs->trans("MembersStatusResiliated") . '</td>'; print "</tr>\n"; foreach ($AdherentType as $key => $adhtype) { $var = !$var; print "<tr " . $bc[$var] . ">"; print '<td>' . $adhtype->getNomUrl(1, dol_size(32)) . '</td>'; print '<td align="right">' . (isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0 ? $MemberToValidate[$key] : '') . ' ' . $staticmember->LibStatut(-1, $adhtype->cotisation, 0, 3) . '</td>'; print '<td align="right">' . (isset($MembersValidated[$key]) && $MembersValidated[$key] - (isset($MemberUpToDate[$key]) ? $MemberUpToDate[$key] : 0) > 0 ? $MembersValidated[$key] - (isset($MemberUpToDate[$key]) ? $MemberUpToDate[$key] : 0) : '') . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, 0, 3) . '</td>'; print '<td align="right">' . (isset($MemberUpToDate[$key]) && $MemberUpToDate[$key] > 0 ? $MemberUpToDate[$key] : '') . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, $now, 3) . '</td>'; print '<td align="right">' . (isset($MembersResiliated[$key]) && $MembersResiliated[$key] > 0 ? $MembersResiliated[$key] : '') . ' ' . $staticmember->LibStatut(0, $adhtype->cotisation, 0, 3) . '</td>'; print "</tr>\n"; } print '<tr class="liste_total">'; print '<td class="liste_total">' . $langs->trans("Total") . '</td>'; print '<td class="liste_total" align="right">' . $SommeA . ' ' . $staticmember->LibStatut(-1, $adhtype->cotisation, 0, 3) . '</td>'; print '<td class="liste_total" align="right">' . $SommeB . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, 0, 3) . '</td>'; print '<td class="liste_total" align="right">' . $SommeC . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, $now, 3) . '</td>'; print '<td class="liste_total" align="right">' . $SommeD . ' ' . $staticmember->LibStatut(0, $adhtype->cotisation, 0, 3) . '</td>'; print '</tr>'; print "</table>\n"; print "<br>\n";
/** * Show an HTML header + a BODY + The top menu bar * * @param string $head Lines in the HEAD * @param string $title Title of web page * @param string $target Target to use in menu links (Example: '' or '_top') * @param int $disablejs Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax) * @param int $disablehead Do not output head section * @param array $arrayofjs Array of js files to add in header * @param array $arrayofcss Array of css files to add in header * @param string $morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails) * @return void */ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '') { global $user, $conf, $langs, $db; global $dolibarr_main_authentication, $dolibarr_main_demo; global $hookmanager, $menumanager; // Instantiate hooks of thirdparty module $hookmanager->initHooks(array('toprightmenu')); $toprightmenu = ''; // For backward compatibility with old modules if (empty($conf->headerdone)) { top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); } print '<body id="mainbody">'; if ($conf->use_javascript_ajax) { if (empty($conf->dol_use_jmobile) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<script type="text/javascript"> jQuery(document).ready(function () { jQuery("body").layout(layoutSettings); }); var layoutSettings = { name: "mainlayout", defaults: { useStateCookie: true, size: "auto", resizable: false, //paneClass: "none", //resizerClass: "resizer", //togglerClass: "toggler", //buttonClass: "button", //contentSelector: ".content", //contentIgnoreSelector: "span", togglerTip_open: "Close This Pane", togglerTip_closed: "Open This Pane", resizerTip: "Resize This Pane", fxSpeed: "fast" }, west: { paneClass: "leftContent", //spacing_closed: 14, //togglerLength_closed: 14, //togglerAlign_closed: "auto", //togglerLength_open: 0, // effect defaults - overridden on some panes //slideTrigger_open: "mouseover", initClosed: ' . (empty($conf->dol_optimize_smallscreen) ? 'false' : 'true') . ', fxName: "drop", fxSpeed: "fast", fxSettings: { easing: "" } }, north: { paneClass: "none", resizerClass: "none", togglerClass: "none", spacing_open: 0, togglerLength_open: 0, togglerLength_closed: -1, slidable: false, fxName: "none", fxSpeed: "fast" }, center: { paneSelector: "#mainContent" } } </script>'; } // Wrapper to show tooltips print "\n" . '<script type="text/javascript"> jQuery(document).ready(function () { jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50}); }); </script>'; } /* * Top menu */ print "\n" . '<!-- Start top horizontal -->' . "\n"; if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<div class="ui-layout-north"> <!-- Begin top layout -->' . "\n"; } if (empty($conf->dol_hide_topmenu)) { print '<div class="side-nav-vert"><div id="id-top">'; // Show menu entries print '<div id="tmenu_tooltip' . (empty($conf->global->MAIN_MENU_INVERT) ? '' : 'invert') . '" class="tmenu">' . "\n"; $menumanager->atarget = $target; $menumanager->showmenu('top'); // This contains a \n print "</div>\n"; $form = new Form($db); // Define link to login card $appli = 'Dolibarr'; if (!empty($conf->global->MAIN_APPLICATION_TITLE)) { $appli = $conf->global->MAIN_APPLICATION_TITLE; if (preg_match('/\\d\\.\\d/', $appli)) { if (!preg_match('/' . preg_quote(DOL_VERSION) . '/', $appli)) { $appli .= " (" . DOL_VERSION . ")"; } // If new title contains a version that is different than core } else { $appli .= " " . DOL_VERSION; } } else { $appli .= " " . DOL_VERSION; } if (!empty($conf->global->MAIN_FEATURES_LEVEL)) { $appli .= "<br>" . $langs->trans("LevelOfFeature") . ': ' . $conf->global->MAIN_FEATURES_LEVEL; } $logouttext = ''; $logouthtmltext = $appli . '<br>'; if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') { $logouthtmltext .= $langs->trans("Logout") . '<br>'; $logouttext .= '<a href="' . DOL_URL_ROOT . '/user/logout.php">'; $logouttext .= img_picto($langs->trans('Logout') . ":" . $langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); $logouttext .= '</a>'; } else { $logouthtmltext .= $langs->trans("NoLogoutProcessWithAuthMode", $_SESSION["dol_authmode"]); $logouttext .= img_picto($langs->trans('Logout') . ":" . $langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); } print '<div class="login_block">' . "\n"; // Add login user link $toprightmenu .= '<div class="login_block_user">'; // User photo $toprightmenu .= '<div class="inline-block nowrap"><div class="inline-block login_block_elem" style="padding: 0px;">'; $toprightmenu .= $user->getPhotoUrl(16, 16, 'loginphoto'); $toprightmenu .= '</div></div>'; // Login name with tooltip $toprightmenu .= '<div class="inline-block nowrap"><div class="inline-block login_block_elem" style="padding: 0px;">'; $toprightmenu .= $user->getNomurl(0, '', true, 0, 11); $toprightmenu .= '</div></div>'; $toprightmenu .= '</div>'; $toprightmenu .= '<div class="login_block_other">'; // Execute hook printTopRightMenu (hooks should output string like '<div class="login"><a href="">mylink</a></div>') $parameters = array(); $result = $hookmanager->executeHooks('printTopRightMenu', $parameters); // Note that $action and $object may have been modified by some hooks if (is_numeric($result)) { if (empty($result)) { $toprightmenu .= $hookmanager->resPrint; } else { $toprightmenu = $hookmanager->resPrint; } // replace } else { $toprightmenu .= $result; } // For backward compatibility // Link to print main content area if (empty($conf->global->MAIN_PRINT_DISABLELINK) && empty($conf->browser->phone)) { $qs = $_SERVER["QUERY_STRING"]; $qs .= ($qs && $morequerystring ? '&' : '') . $morequerystring; $text = '<a href="' . $_SERVER["PHP_SELF"] . '?' . $qs . ($qs ? '&' : '') . 'optioncss=print" target="_blank">'; $text .= img_picto(":" . $langs->trans("PrintContentArea"), 'printer.png', 'class="printer"'); $text .= '</a>'; $toprightmenu .= $form->textwithtooltip('', $langs->trans("PrintContentArea"), 2, 1, $text, 'login_block_elem', 2); } // Logout link $toprightmenu .= $form->textwithtooltip('', $logouthtmltext, 2, 1, $logouttext, 'login_block_elem', 2); $toprightmenu .= '</div>'; print $toprightmenu; print "</div>\n"; print '</div></div>'; unset($form); } if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print "</div><!-- End top layout -->\n"; } print '<div style="clear: both;"></div>'; print "<!-- End top horizontal menu -->\n\n"; if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<div id="id-container">'; } }
/** * Show HTML footer * Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML. * If global var $delayedhtmlcontent was filled, we output it just before closing the body. * * @param string $comment A text to add as HTML comment into HTML generated page * @param string $zone 'private' (for private pages) or 'public' (for public pages) * @return void */ function llxFooter($comment = '', $zone = 'private') { global $conf, $langs; global $delayedhtmlcontent; // Global html output events ($mesgs, $errors, $warnings) dol_htmloutput_events(); // Core error message if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) { // Ajax version if ($conf->use_javascript_ajax) { $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle'); print ajax_dialog($title, $langs->trans('CoreErrorMessage')); } else { $msg = img_warning() . ' ' . $langs->trans('CoreErrorMessage'); print '<div class="error">' . $msg . '</div>'; } define("MAIN_CORE_ERROR", 0); } print "\n\n"; print '</div> <!-- End div class="fiche" -->' . "\n"; if (!empty($conf->dol_use_jmobile)) { print '</div>'; } // end data-role="page" if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div></div> <!-- end main layout -->' . "\n"; } if (empty($conf->dol_hide_leftmenu)) { print '</div> <!-- End div id-right -->'; } // End div id-right print "\n"; if ($comment) { print '<!-- ' . $comment . ' -->' . "\n"; } printCommonFooter($zone); //var_dump($langs); // Uncommment to see the property _tab_loaded to see which language file were loaded if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '</div> <!-- End div id-container -->' . "\n"; } // End div container if (!empty($delayedhtmlcontent)) { print $delayedhtmlcontent; } // Wrapper to show tooltips print "\n<!-- JS CODE TO ENABLE tipTip on all object with class classfortooltip -->\n"; print '<script type="text/javascript"> jQuery(document).ready(function () { jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50}); }); </script>' . "\n"; print "</body>\n"; print "</html>\n"; }
background: pink; } .validtitre { background: #D5BAA8; font-weight: bold; } /* ============================================================================== */ /* Tooltips */ /* ============================================================================== */ #tooltip { position: absolute; width: <?php print dol_size(450,'width'); ?>px; border-top: solid 1px #BBBBBB; border-<?php print $left; ?>: solid 1px #BBBBBB; border-<?php print $right; ?>: solid 1px #444444; border-bottom: solid 1px #444444; padding: 2px; z-index: 3000; background-color: #FFFFF0; opacity: 1; -moz-border-radius:6px; } /* ============================================================================== */ /* Calendar */
/** * Show an HTML header + a BODY + The top menu bar * * @param string $head Lines in the HEAD * @param string $title Title of web page * @param string $target Target to use in menu links (Example: '' or '_top') * @param int $disablejs Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax) * @param int $disablehead Do not output head section * @param array $arrayofjs Array of js files to add in header * @param array $arrayofcss Array of css files to add in header * @param string $morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails) * @return void */ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '') { global $user, $conf, $langs, $db; global $dolibarr_main_authentication, $dolibarr_main_demo; global $hookmanager, $menumanager; // Instantiate hooks of thirdparty module $hookmanager->initHooks(array('toprightmenu')); $toprightmenu = ''; // For backward compatibility with old modules if (empty($conf->headerdone)) { top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); } print '<body id="mainbody">'; if ($conf->use_javascript_ajax) { if (empty($conf->dol_use_jmobile) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<script type="text/javascript"> jQuery(document).ready(function () { jQuery("body").layout(layoutSettings); }); var layoutSettings = { name: "mainlayout", defaults: { useStateCookie: true, size: "auto", resizable: false, //paneClass: "none", //resizerClass: "resizer", //togglerClass: "toggler", //buttonClass: "button", //contentSelector: ".content", //contentIgnoreSelector: "span", togglerTip_open: "Close This Pane", togglerTip_closed: "Open This Pane", resizerTip: "Resize This Pane", fxSpeed: "fast" }, west: { paneClass: "leftContent", //spacing_closed: 14, //togglerLength_closed: 14, //togglerAlign_closed: "auto", //togglerLength_open: 0, // effect defaults - overridden on some panes //slideTrigger_open: "mouseover", initClosed: ' . (empty($conf->dol_optimize_smallscreen) ? 'false' : 'true') . ', fxName: "drop", fxSpeed: "fast", fxSettings: { easing: "" } }, north: { paneClass: "none", resizerClass: "none", togglerClass: "none", spacing_open: 0, togglerLength_open: 0, togglerLength_closed: -1, slidable: false, fxName: "none", fxSpeed: "fast" }, center: { paneSelector: "#mainContent" } } </script>'; } // Wrapper to show tooltips print "\n" . '<script type="text/javascript"> jQuery(document).ready(function () { jQuery(function() { jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50}); }); }); </script>'; } /* * Top menu */ print "\n" . '<!-- Start top horizontal -->' . "\n"; if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<div class="ui-layout-north"> <!-- Begin top layout -->' . "\n"; } if (empty($conf->dol_hide_topmenu)) { // Show menu entries print '<div id="tmenu_tooltip' . (empty($conf->global->MAIN_MENU_INVERT) ? '' : 'invert') . '" class="tmenu">' . "\n"; $menumanager->atarget = $target; $menumanager->showmenu('top'); // This contains a \n print "</div>\n"; $form = new Form($db); // Define link to login card $loginhtmltext = ''; $logintext = ''; if ($user->societe_id) { $thirdpartystatic = new Societe($db); $thirdpartystatic->fetch($user->societe_id); $companylink = ' (' . $thirdpartystatic->getNomUrl('', '') . ')'; $company = ' (' . $langs->trans("Company") . ': ' . $thirdpartystatic->name . ')'; } $logintext = '<div class="login"><a href="' . DOL_URL_ROOT . '/user/card.php?id=' . $user->id . '"'; $logintext .= $target ? ' target="' . $target . '"' : ''; $logintext .= '>' . $user->login . '</a>'; if ($user->societe_id) { $logintext .= $companylink; } $logintext .= '</div>'; $loginhtmltext .= '<u>' . $langs->trans("User") . '</u>'; $loginhtmltext .= '<br><b>' . $langs->trans("Name") . '</b>: ' . $user->getFullName($langs); $loginhtmltext .= '<br><b>' . $langs->trans("Login") . '</b>: ' . $user->login; $loginhtmltext .= '<br><b>' . $langs->trans("EMail") . '</b>: ' . $user->email; $loginhtmltext .= '<br><b>' . $langs->trans("Administrator") . '</b>: ' . yn($user->admin); $type = $user->societe_id ? $langs->trans("External") . $company : $langs->trans("Internal"); $loginhtmltext .= '<br><b>' . $langs->trans("Type") . '</b>: ' . $type; $loginhtmltext .= '<br><b>' . $langs->trans("IPAddress") . '</b>: ' . $_SERVER["REMOTE_ADDR"]; $loginhtmltext .= '<br>'; $loginhtmltext .= '<br><u>' . $langs->trans("Connection") . '</u>'; if (!empty($conf->global->MAIN_MODULE_MULTICOMPANY)) { $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedOnMultiCompany") . '</b>: ' . $conf->entity . ' (user entity ' . $user->entity . ')'; } $loginhtmltext .= '<br><b>' . $langs->trans("AuthenticationMode") . '</b>: ' . $_SESSION["dol_authmode"] . (empty($dolibarr_main_demo) ? '' : ' (demo)'); $loginhtmltext .= '<br><b>' . $langs->trans("ConnectedSince") . '</b>: ' . dol_print_date($user->datelastlogin, "dayhour"); $loginhtmltext .= '<br><b>' . $langs->trans("PreviousConnexion") . '</b>: ' . dol_print_date($user->datepreviouslogin, "dayhour"); $loginhtmltext .= '<br><b>' . $langs->trans("CurrentTheme") . '</b>: ' . $conf->theme; $loginhtmltext .= '<br><b>' . $langs->trans("CurrentMenuManager") . '</b>: ' . $menumanager->name; $s = picto_from_langcode($langs->getDefaultLang()); $loginhtmltext .= '<br><b>' . $langs->trans("CurrentUserLanguage") . '</b>: ' . ($s ? $s . ' ' : '') . $langs->getDefaultLang(); $loginhtmltext .= '<br><b>' . $langs->trans("Browser") . '</b>: ' . $conf->browser->name . ($conf->browser->version ? ' ' . $conf->browser->version : '') . ' (' . $_SERVER['HTTP_USER_AGENT'] . ')'; if (!empty($conf->browser->phone)) { $loginhtmltext .= '<br><b>' . $langs->trans("Phone") . '</b>: ' . $conf->browser->phone; } if (!empty($_SESSION["disablemodules"])) { $loginhtmltext .= '<br><b>' . $langs->trans("DisabledModules") . '</b>: <br>' . join(', ', explode(',', $_SESSION["disablemodules"])); } $appli = 'Dolibarr'; if (!empty($conf->global->MAIN_APPLICATION_TITLE)) { $appli = $conf->global->MAIN_APPLICATION_TITLE; if (preg_match('/\\d\\.\\d/', $appli)) { if (!preg_match('/' . preg_quote(DOL_VERSION) . '/', $appli)) { $appli .= " (" . DOL_VERSION . ")"; } // If new title contains a version that is different than core } else { $appli .= " " . DOL_VERSION; } } else { $appli .= " " . DOL_VERSION; } if (!empty($conf->global->MAIN_FEATURES_LEVEL)) { $appli .= "<br>" . $langs->trans("LevelOfFeature") . ': ' . $conf->global->MAIN_FEATURES_LEVEL; } $logouttext = ''; $logouthtmltext = $appli . '<br>'; if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') { $logouthtmltext .= $langs->trans("Logout") . '<br>'; $logouttext .= '<a href="' . DOL_URL_ROOT . '/user/logout.php">'; $logouttext .= img_picto($langs->trans('Logout') . ":" . $langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); $logouttext .= '</a>'; } else { $logouthtmltext .= $langs->trans("NoLogoutProcessWithAuthMode", $_SESSION["dol_authmode"]); $logouttext .= img_picto($langs->trans('Logout') . ":" . $langs->trans('Logout'), 'logout.png', 'class="login"', 0, 0, 1); } print '<div class="login_block">' . "\n"; $toprightmenu .= '<div class="login_block_user">'; // Add login user link $toprightmenu .= $form->textwithtooltip('', $loginhtmltext, 2, 1, $logintext, 'login_block_elem2', 2); // This include div class="login" $toprightmenu .= '</div>'; $toprightmenu .= '<div class="login_block_other">'; // Execute hook printTopRightMenu (hooks should output string like '<div class="login"><a href="">mylink</a></div>') $parameters = array(); $result = $hookmanager->executeHooks('printTopRightMenu', $parameters); // Note that $action and $object may have been modified by some hooks if (is_numeric($result)) { if (empty($result)) { $toprightmenu .= $hookmanager->resPrint; } else { $toprightmenu = $hookmanager->resPrint; } // replace } else { $toprightmenu .= $result; } // For backward compatibility // Logout link $toprightmenu .= $form->textwithtooltip('', $logouthtmltext, 2, 1, $logouttext, 'login_block_elem', 2); // Link to print main content area if (empty($conf->global->MAIN_PRINT_DISABLELINK) && empty($conf->browser->phone)) { $qs = $_SERVER["QUERY_STRING"]; $qs .= ($qs && $morequerystring ? '&' : '') . $morequerystring; $text = '<a href="' . $_SERVER["PHP_SELF"] . '?' . $qs . ($qs ? '&' : '') . 'optioncss=print" target="_blank">'; $text .= img_picto(":" . $langs->trans("PrintContentArea"), 'printer.png', 'class="printer"'); $text .= '</a>'; $toprightmenu .= $form->textwithtooltip('', $langs->trans("PrintContentArea"), 2, 1, $text, 'login_block_elem', 2); } $toprightmenu .= '</div>'; print $toprightmenu; print "</div>\n"; unset($form); } if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print "</div><!-- End top layout -->\n"; } print '<div style="clear: both;"></div>'; print "<!-- End top horizontal menu -->\n\n"; if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print '<div id="id-container">'; } }
if ($nboffilesinsubdir > 0) { $htmltooltip .= '<b>' . $langs->trans("ECMNbOfFilesInSubDir") . '</b>: ' . $nboffilesinsubdir; } else { $htmltooltip .= '<b>' . $langs->trans("ECMNbOfSubDir") . '</b>: ' . ($nbofsubdir >= 0 ? $nbofsubdir : $langs->trans("NeedRefresh")) . '<br>'; } print $form->textwithpicto('', $htmltooltip, 1, "info"); print "</td>"; print "</tr></table>\n"; print '</div>'; //print '<div> </div>'; print "</li>\n"; } } // Enable jquery handlers on new generated HTML objects print '<script type="text/javascript">'; print 'jQuery(".classfortooltip").tipTip({ maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});'; // TODO Remove this. Is replaced with function as 3rd parameter of fileTree print 'jQuery(".fmdirlia").click(function(e) { id=jQuery(this).attr(\'id\').substr(12); jQuery("#formuserfile_section_dir").val(jQuery(this).attr(\'rel\')); jQuery("#formuserfile_section_id").val(id); });'; print '</script>'; echo "</ul>\n"; } } else { print "PermissionDenied"; } } // This ajax service is called only when a directory $selecteddir is opened but not when closed. //print '<script language="javascript">';
// Summary of members by type print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("MembersTypes").'</td>'; print '<td align=right>'.$langs->trans("MembersStatusToValid").'</td>'; print '<td align=right>'.$langs->trans("MenuMembersNotUpToDate").'</td>'; print '<td align=right>'.$langs->trans("MenuMembersUpToDate").'</td>'; print '<td align=right>'.$langs->trans("MembersStatusResiliated").'</td>'; print "</tr>\n"; foreach ($AdherentType as $key => $adhtype) { $var=!$var; print "<tr $bc[$var]>"; print '<td><a href="type.php?rowid='.$adhtype->id.'">'.img_object($langs->trans("ShowType"),"group").' '.$adhtype->getNomUrl(0,dol_size(16)).'</a></td>'; print '<td align="right">'.(isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0?$MemberToValidate[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>'; print '<td align="right">'.(isset($MembersValidated[$key]) && ($MembersValidated[$key]-$MemberUpToDate[$key] > 0) ? $MembersValidated[$key]-$MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>'; print '<td align="right">'.(isset($MemberUpToDate[$key]) && $MemberUpToDate[$key] > 0 ? $MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,gmmktime(),3).'</td>'; print '<td align="right">'.(isset($MembersResiliated[$key]) && $MembersResiliated[$key]> 0 ?$MembersResiliated[$key]:'').' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).'</td>'; print "</tr>\n"; } print '<tr class="liste_total">'; print '<td class="liste_total">'.$langs->trans("Total").'</td>'; print '<td class="liste_total" align="right">'.$SommeA.' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>'; print '<td class="liste_total" align="right">'.$SommeB.' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>'; print '<td class="liste_total" align="right">'.$SommeC.' '.$staticmember->LibStatut(1,$adhtype->cotisation,gmmktime(),3).'</td>'; print '<td class="liste_total" align="right">'.$SommeD.' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).'</td>'; print '</tr>'; print "</table>\n";