function act_default() { if (acl_is_mod_allowed('events')) { set_redirect_header('events', 'browse'); } else { if (acl_is_mod_allowed('person')) { set_redirect_header('person', 'browse'); } else { if (acl_is_mod_allowed('docu')) { set_redirect_header('docu', 'browse'); } else { if (acl_is_mod_allowed('analysis')) { set_redirect_header('analysis', 'adv_search'); } else { if (acl_is_mod_allowed('events')) { set_redirect_header('admin', 'field_customization'); } else { shnMessageQueue::addInformation(_t('IF_YOU_REACH_THIS_PAGE_IT_MEANS_YOU_DO_NOT_HAVE_ACCESS_TO_ANY_OF_THE_MODULES_IN_OPENEVSYS__PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR_FOR_MORE_DETAILS_')); } } } } } }
<?php ?> <div id="browse"> <?php if (acl_is_mod_allowed('person')) { ?> <a href="<?php get_url('person', 'new_person', null, null); ?> " class="btn btn-primary"> <i class="icon-plus icon-white"></i> <?php echo _t('ADD_NEW_PERSON'); ?> </a> <br/><br/> <?php } if (isset($_GET['filter']) || count($columnValues)) { if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } shn_form_get_html_filter_table($columnNames, $columnValues, $htmlFields, $argumentEncoder); if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } ?> </div> <br /> <?php } else {
<?php } ?> <?php if (acl_is_mod_allowed('analysis')) { ?> <?php $active = ''; if ('analysis' == $module) { $active = 'active'; $breadcrumbs->pushCrumb(array('name' => _t('ANALYSIS'), 'mod' => 'analysis', 'act' => 'search'), 0); } ?> <li class="<?php echo $active ?>"> <a href="<?php get_url('analysis', 'adv_search') ?>" ><?php echo _t('ANALYSIS') ?></a></li> <?php }*/ ?> <?php if (acl_is_mod_allowed('admin')) { ?> <?php $active = ''; if ('admin' == $module) { $active = 'active'; $breadcrumbs->pushCrumb(array('name' => _t('ADMIN'), 'mod' => 'admin', 'act' => 'user_management'), 0); } ?> <li class="<?php echo $active; ?> "> <a href="<?php get_url('admin', 'user_management'); ?>
<?php if (isset($_GET['filter']) || count($columnValues)) { ?> <div id="browse"> <?php if (acl_is_mod_allowed('docu')) { ?> <a href="<?php get_url('docu', 'new_document', null, null); ?> " class="btn btn-primary"> <i class="icon-plus icon-white"></i> <?php echo _t('ADD_NEW_DOCUMENT'); ?> </a> <br/><br/> <?php } if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } shn_form_get_html_filter_table($columnNames, $columnValues, $htmlFields, $argumentEncoder); if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } ?> </div> <br /> <?php } else {
<?php if (isset($_GET['filter']) || count($columnValues)) { ?> <div id="browse" > <?php if (acl_is_mod_allowed('events')) { ?> <a href="<?php get_url('events', 'new_event', null, null); ?> " class="btn btn-primary" ><i class="icon-plus icon-white"></i> <?php echo _t('ADD_NEW_EVENT'); ?> </a> <br/> <br/> <?php } if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } shn_form_get_html_filter_table($columnNames, $columnValues, $htmlFields); if ($columnValues != null && count($columnValues)) { $result_pager->render_pages(); } ?> </div> <br /> <?php } else {
foreach ($menuItems as $key => $menu) { $id = $menu['id']; $element1 = $menu; $element2 = $menuItems[$key + 1]; //$level = $element1['level']; $url = $menu['url']; $title = $menu['title']; $prefix = ''; if ($menu['prefix']) { $prefix = $menu['prefix']; } $mod = $menu['module']; $act = $menu['action']; $aclmod = $menu['aclmod']; if ($aclmod) { if (!acl_is_mod_allowed($aclmod)) { continue; } } $check = $menu['check']; if ($check) { if (!$check()) { continue; } } $aliases = array(); if ($menu['aliases']) { $aliases = $menu['aliases']; } $checkActive = $menu['checkactive']; if (!$checkActive) {