Exemplo n.º 1
0
 function menu_footer($no_menu, $is_index)
 {
     global $path_to_root, $power_url, $power_by;
     include_once $path_to_root . "/includes/date_functions.inc";
     if ($no_menu == false) {
         echo "<div id='footer'>\n";
         if (isset($_SESSION['wa_current_user'])) {
             echo "<span class='power'><a target='_blank' href='{$power_url}'>{$power_by}</a></span\n";
             echo "<span class='date'>" . Today() . " | " . Now() . "</span>\n";
             echo "<span class='date'>" . show_users_online() . "</span>\n";
         }
         echo "</div>\n";
     }
     echo "</div>\n";
     echo "</div>\n";
 }
Exemplo n.º 2
0
 function menu_footer($no_menu, $is_index)
 {
     global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax;
     include_once $path_to_root . "/includes/date_functions.inc";
     echo "</td></tr></table>\n";
     // 'main_page'
     if ($no_menu == false) {
         if ($is_index) {
             echo "<table class='bottomBar'>\n";
         } else {
             echo "<table class='bottomBar2'>\n";
         }
         echo "<tr>";
         if (isset($_SESSION['wa_current_user'])) {
             $phelp = implode('; ', $Pagehelp);
             echo "<td class='bottomBarCell'>" . Today() . " | " . Now() . "</td>\n";
             $Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
             echo "<td id='hotkeyshelp'>" . $phelp . "</td>";
         }
         echo "</tr></table>\n";
     }
     echo "</td></tr> </table>\n";
     // 'callout_main'
     if ($no_menu == false) {
         echo "<table align='center' id='footer'>\n";
         echo "<tr>\n";
         echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffffff'>{$app_title} {$version} - " . _("Theme:") . " " . user_theme() . " - " . show_users_online() . "</font></a></td>\n";
         echo "</tr>\n";
         echo "<tr>\n";
         echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffff00'>{$power_by}</font></a></td>\n";
         echo "</tr>\n";
         if ($allow_demo_mode == true) {
             echo "<tr>\n";
             //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&amp;type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='center' /></a></div></td>\n";
             echo "</tr>\n";
         }
         echo "</table><br><br>\n";
     }
 }
 function menu_footer($no_menu, $is_index)
 {
     global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax;
     include_once $path_to_root . "/includes/date_functions.inc";
     echo "</div>";
     // column
     echo "</td></tr><tr><td colspan='2'>";
     if ($no_menu == false) {
         if ($is_index) {
             echo "<table class=bottomBar>\n";
         } else {
             echo "<table class=bottomBar2>\n";
         }
         echo "<tr>";
         if (isset($_SESSION['wa_current_user'])) {
             $phelp = implode('; ', $Pagehelp);
             echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
             $Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
             echo "<td id='hotkeyshelp'>" . $phelp . "</td>";
         }
         echo "</tr></table>\n";
     }
     echo "</td></tr></table></td>\n";
     echo "</table>\n";
     if ($no_menu == false) {
         echo "<table align='center' id='footer'>\n";
         echo "<tr>\n";
         echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}'><font color='#ffffff'>{$app_title} {$version} - " . _("Theme:") . " " . user_theme() . " - " . show_users_online() . "</font></a></td>\n";
         echo "</tr>\n";
         echo "<tr>\n";
         echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}'><font color='#ffff00'>{$power_by}</font></a></td>\n";
         echo "</tr>\n";
         if ($allow_demo_mode == true) {
             echo "<tr>\n";
             echo "</tr>\n";
         }
         echo "</table><br><br>\n";
     }
 }
Exemplo n.º 4
0
 function menu_footer($no_menu, $is_index)
 {
     global $path_to_root, $power_url, $power_by, $version, $db_connections;
     include_once $path_to_root . "/includes/date_functions.inc";
     if (!$no_menu) {
         echo "</div>\n";
     }
     // fa-content
     echo "</div>\n";
     // fa-body
     if (!$no_menu) {
         echo "<div class='fa-footer'>\n";
         if (isset($_SESSION['wa_current_user'])) {
             echo "<span class='power'><a target='_blank' href='{$power_url}'>{$power_by} {$version}</a></span>\n";
             echo "<span class='date'>" . Today() . "&nbsp;" . Now() . "</span>\n";
             echo "<span class='date'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . "</span>\n";
             echo "<span class='date'>" . $_SERVER['SERVER_NAME'] . "</span>\n";
             echo "<span class='date'>" . $_SESSION["wa_current_user"]->name . "</span>\n";
             echo "<span class='date'>" . _("Theme:") . " " . user_theme() . "</span>\n";
             echo "<span class='date'>" . show_users_online() . "</span>\n";
         }
         echo "</div>\n";
         // footer
     }
     echo "</div>\n";
     // fa-main
 }
Exemplo n.º 5
0
 function menu_header($title, $no_menu, $is_index)
 {
     global $path_to_root, $help_base_url, $db_connections;
     $local_path_to_root = $path_to_root;
     global $leftmenu_save, $app_title, $version;
     // Build screen header
     $leftmenu_save = "";
     $sel_app = $_SESSION['sel_app'];
     echo "<div id='maincontainer'> \n";
     echo "<div id='topsection'> \n";
     echo "  <div class='innertube'> \n";
     echo "    <h1>" . $app_title . " " . $version . "</h1>\n";
     echo "  </div>\n";
     echo "  <div id='topinfo'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . show_users_online() . "</div>\n";
     echo "  <div id='iconlink'>";
     // Logout on main window only
     if (!$no_menu) {
         echo "    <a class='shortcut' href='{$local_path_to_root}/access/logout.php?'><img src='{$local_path_to_root}/themes/grayblue/images/system-shutdown.png' title='" . _("Logout") . "' /></a>";
     }
     // Popup help
     if ($help_base_url != null) {
         echo "<a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'><img src='{$local_path_to_root}/themes/grayblue/images/help-browser.png' title='" . _("Help") . "' /></a>\n";
     }
     echo "  </div>\n";
     // iconlink
     echo "  </div>\n";
     if (!$no_menu) {
         $applications = $_SESSION['App']->applications;
         $leftmenu_save .= "<div id='leftcolumn'>\n";
         $leftmenu_save .= "  <div id='ddblueblockmenu'>\n";
         $leftmenu_save .= "    <div class='menutitle'>Applications</div>\n";
         $leftmenu_save .= "    <ul>\n";
         foreach ($applications as $app) {
             $acc = access_string($app->name);
             $leftmenu_save .= "      <li>\n";
             $leftmenu_save .= "        <a  class='" . ($sel_app == $app->id ? 'selected' : 'menu_tab') . "'href='{$local_path_to_root}/index.php?application=" . $app->id . SID . "'{$acc['1']}>" . $acc[0] . "</a>\n";
             if ($sel_app == $app->id) {
                 $curr_app_name = $acc[0];
                 $curr_app_link = $app->id;
             }
             $leftmenu_save .= "      </li>\n";
         }
         $leftmenu_save .= "    </ul>\n";
         $leftmenu_save .= "    <div class='menutitle'>" . $_SESSION["wa_current_user"]->name . "</div>\n";
         $leftmenu_save .= "    <ul>\n";
         $leftmenu_save .= "      <li><a class='shortcut' href='{$local_path_to_root}/admin/display_prefs.php?'>" . _("Preferences") . "</a></li>\n";
         $leftmenu_save .= "      <li><a class='shortcut' href='{$local_path_to_root}/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a></li>\n";
         $leftmenu_save .= "      <li><a class='shortcut' href='{$local_path_to_root}/access/logout.php?'>" . _("Logout") . "</a></li>\n";
         $leftmenu_save .= "    </ul>\n";
         $leftmenu_save .= "  </div>\n";
         $leftmenu_save .= "</div>\n";
     }
     echo "\n<div id='contentwrapper'>\n";
     if ($title && !$no_menu) {
         echo "  <div id='contentcolumn'>\n";
         echo "    <div class='innertube'>\n";
         echo user_hints() ? "<span id='hints' style='float:right;'></span>" : "";
         echo "      <p class='breadcrumb'>\n";
         echo "        <a class='shortcut' href='{$local_path_to_root}/index.php?application=" . $curr_app_link . SID . "'>" . $curr_app_name . "</a>\n";
         if ($no_menu) {
             echo "<br>";
         } elseif ($title && !$is_index) {
             echo "        <a href='#'>" . $title . "</a>\n";
         }
         $indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
         echo "        <span style='padding-left:200px;'><img id='ajaxmark' src='{$indicator}' align='center' style='visibility:hidden;'></span>";
         echo "      </p>\n";
     }
 }