+++ /dev/null
-/*--------------------------------------------------\
-| aqua | | default.css |
-|---------------------------------------------------|
-| For use with: |
-| FrontAccounting |
-| http://FrontAccounting.com/ |
-| by Joe Hunt Consulting |
-|---------------------------------------------------|
-| Developer: |
-| Joe Hunt |
-| |
-|---------------------------------------------------|
-| Note: |
-| Changes can be made to this CSS that will be |
-| reflected throughout FrontAccounting. |
-| |
-\--------------------------------------------------*/
-
-body {
- font-family: Verdana, Arial, Helvetica;
- background: #518fad;
- font-size: 10px;
- margin: 5px 0 0 5px;
- padding: 0;
-}
-
-tr, td, th {
- font-size: 11px;
- line-height: 19px;
-}
-
-table {
- text-align: left;
-}
-
-textarea {
- font-size: 12px;
-}
-
-input, select {
- font-size: 11px;
- padding: 1px;
-}
-
-select {
- max-width: 230px;
-}
-
-option.inactive {
- text-decoration: line-through;
- color: gray;
-}
-
-input.big {
- width: 100px;
-}
-
-input.small {
- width: 50px;
-}
-
-a {
- color: #0000bb;
- font-size: 11px;
- text-decoration: none;
-}
-
-a:link {
- color: #0000bb;
- text-decoration: none;
-}
-
-a:active {
- color: #000000;
- text-decoration: none;
-}
-
-a:hover, a:focus {
- color: #2d8628;
- text-decoration: underline;
-}
-
-.inactive {
- color: gray;
-}
-
-button {
- font-size: 11px;
- border: 1px #0066cc solid;
- padding: 1px 0px;
-}
-
-button img, span {
- padding: 0px 2px ;
- vertical-align: middle;
-}
-
-.callout_main {
- font-family: Verdana, Arial, Helvetica;
- border: none;
- width: 99%;
- margin: 0;
- padding: 0;
-}
-
-.main_page {
- background-color: #f9f9f9;
- border: none;
- width: 100%;
- margin: 0;
- padding: 0;
-}
-
-.quick_menu {
- background-color: #518fad;
- border: 0;
- margin: 0;
- padding: 0;
- /*text-align: right;*/
-}
-
-.quick_menu_selected{
- font-family: Verdana, Arial, Helvetica;
- font-size: 13px;
- border: none;
- white-space: nowrap;
- margin: 2px;
- padding: 2px;
- color: #00cc00;
- font-weight: bolder;
-}
-
-.logoutBar {
- padding-right: 1em;
- background: #a7d6ce;
- color: black;
- border-bottom: 1px solid #8cacbb;
- width: 100%;
-}
-
-.bottomBar {
- padding-right: 1em;
- background: #a7d6ce;
- color: black;
- border-bottom: 1px solid #8cacbb;
- width: 100%;
-}
-
-.bottomBarCell {
- font-size: 10px;
- line-height: 12px;
-}
-
-.bottomBar2 {
- padding-right: 1em;
- background: #a7d6ce;
- color: black;
- border-top: 1px solid #8cacbb;
- border-bottom: 1px solid #8cacbb;
- width: 100%;
-}
-
-.logoutBarRight {
- text-align: right;
-}
-
-div.logoutBar {
- padding-right: 1em;
- background: #a7d6ce;
- color: black;
- border-bottom: 1px solid #8cacbb;
- text-align: right;
-}
-div.logoutBar a {
- font-weight: normal;
- margin-left: 1em;
- color: #436976;
- background-color: transparent;
-}
-div.logoutBar img {
- vertical-align: top;
-}
-
-div.tabs {
- padding: 3px 0 0 0;
- background: none transparent scroll repeat 0% 0%;
- white-space: nowrap;
- border-collapse: collapse;
- border-bottom: 1px solid #8cacbb;
-
-}
-div.tabs a {
- border: 1px solid #8cacbb;
- padding: 3px 10px;
- font-weight: normal;
- background: white scroll repeat 0% 0%;
- color: #436976;
- margin-right: 0.0em;
- height: 1.0em;
-}
-div.tabs a.selected {
- border-top: 1px solid #8cacbb;
- border-right: 1px solid #8cacbb;
- border-bottom: 1px solid #a7d6ce;
- border-left: 1px solid #8cacbb;
- font-weight: normal;
- background: #a7d6ce;
- color: #436976;
-}
-div.tabs a:hover {
- background: #a7d6ce;
- color: #436976;
-}
-
-.menu_group {
- font-size: 13px;
- padding: 0px;
- color: #000000;
- background-color: #a7d6ce;
- padding-left: 3px;
- font-weight: bold;
-}
-
-.menu_group_items {
- background-color: #f9f9f9;
- font-weight: normal;
- padding: 9px;
- border: 1px solid #8cacbb;
-}
-
-#hotkeyshelp {
- text-align: right;
- font-weight: bolder;
-}
-
-#footer {
- position: relative;
- bottom: -3px;
-}
-
-.footer {
- font-family: Verdana, Arial, Helvetica;
- color: #cccccc;
- font-weight: normal;
- font-size: 9px;
- text-align: center;
- width: 100%;
-}
-
-.footer td a {
- color: #666666;
- font-size: 9px;
-}
-
-
-.tableheader {
- font-weight: bold;
- background-color: #d5cea7;
- color: black;
- text-align: center;
-}
-
-.tableheader2 {
- font-weight: bold;
- background-color: #d5cea7;
- color: black;
- text-align: left;
-}
-
-.tableseparator {
- border-left: 1px solid #444466;
-}
-
-.titletext {
- font-weight: bold;
- font-size: 13px;
- border-bottom: 1px solid #8cacbb;
- padding: 5px;
- width: 100%;
-}
-
-.headingtext {
- font-weight: bold;
- font-size: 13px;
- color: black;
-}
-
-.headingtext2 {
- font-size: 13px;
- color: black;
-}
-
-.headingtext3 {
- font-weight: bold;
- font-size: 10px;
- color: black;
-}
-
-.errortext {
- font-size: 13px;
- color: #ff0000;
- font-weight: bold;
-}
-
-.inputsubmit {
- font-size: 11px;
- border: 1px solid #0066cc;
- padding: 1px 4px;
-}
-
-.ajaxsubmit {
- font-size: 11px;
- border: 1px #0066cc solid;
- padding: 1px 4px;
-}
-
-.oddrow {
- background-color: #eeeeee;
-}
-
-.evenrow {
- background-color: #dddddd;
-}
-
-.overduebg {
- background-color: #dd7777;
-}
-
-.overduefg {
- color: #dd7777;
-}
-
-.currentfg {
- color: #ff6666;
-}
-
-.redfg, a.redfg {
- color: red;
- font-weight: bold;
-}
-
-.settledbg {
- background-color: #00bb00;
-}
-
-.settledfg {
- color: #00bb00;
-}
-
-.inquirybg {
- background-color: #fdfeef;
-}
-
-.currencybg {
- background-color: #ee8888;
-}
-
-.stockmankobg {
- background-color: pink;
-}
-
-.stockmankofg {
- color: red;
-}
-
-table.tablestyle {
- border-collapse: collapse;
- border: 1px solid #8cacbb;
-}
-table.tablestyle td {
- border-collapse: collapse;
- border: 1px solid #8cacbb;
-}
-table.tablestyle2 {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-table.tablestyle2 td {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-table.tablestyle_inner {
- border-collapse: collapse;
- border: 1px solid #f9f9f9;
-}
-table.tablestyle_inner td {
- border-collapse: collapse;
- border: 1px solid #f9f9f9;
-}
-.tablestyle_noborder {
- padding: 3px;
-}
-
-.label {
- background-color: #efefef;
- color: black;
-}
-
-#loginscreen {
- background: #f5f5f5;
-}
-
-.login {
- width: 350px;
- border-left: 12px solid #367cb5;
- border-collapse: collapse;
- background-color: #eeeeee;
-}
-.login td {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-
-.amount {
- font-family: Verdana, Arial, Helvetica;
- font-size: 11px;
- text-align: right;
-}
-
-input.amount {
- padding-right: 0px;
- border-right: none;
-}
-
-.editbutton {
- color:#0000FF;
- background-color:transparent;
- border-style:none;
- text-decoration:underline;
- cursor: pointer;
-}
-
-.navibutton[disabled], .navibutton[disabled] span {
- color:#808080;
- cursor: inherit;
-}
-
-button.navibutton {
- font-family: Verdana, Arial, Helvetica;
- font-size: 11px;
- font-weight: bold;
- color:#000;
- padding: 0 3px;
- background-color:transparent;
- border-style:none;
- cursor: pointer;
-}
-
-.navibutton span {
- text-decoration: underline;
-}
-
-.navibar {
- padding: 0 3px;
- color: #000;
- border: 1px solid #8cacbb;
- border-collapse: collapse;
- background-color: #d5cea7;
-}
-
-.navibar tr td {
- border: none;
-}
-
-.listsubmit {
- display: none;
-}
-
-ul.ajaxtabs{
- padding: 3px 0 0 0;
- margin: 3px 3px 0 3px;
- font: 12px Tahoma,Verdana;
- font-weight: bold;
-}
-
-ul.ajaxtabs li{
- list-style: none;
- margin: 0;
- display: inline;
-}
-
-ul.ajaxtabs li button{
- background-color: #dee7ec;
-/* background-repeat: repeat-x;
- background-position: top; */
- padding: 3px 8px;
- margin: 0px;
- border-top: 1px solid #8cacbb;
- border-right: 1px solid #8cacbb;
- border-bottom: none;
- border-left: none;
- font-weight: bold;
-}
-
-ul.ajaxtabs li button:hover{
- border-top: 1px solid #8cacbb;
- color:#FFFFFF;
-}
-div.spaceBox{
- background-color: #8cacbb;
- height:8px;
- border-bottom: 1px solid #8cacbb;
- border-left: 1px solid #8cacbb;
- border-right:1px solid #8cacbb;
- margin: 0 3px 0px 3px
-}
-
-div.contentBox{
- border: 1px solid #8cacbb;
- margin: 0 3px 3px 3px
-}
-
-ul.ajaxtabs li button.current, ul.ajaxtabs li button.current:hover{
- border-left: 1px solid #8cacbb;
- background-color: #8cacbb;
- color:#FFFFFF;
-}
-#hints {
- font-size: 13px;
- padding: 5px;
- border-bottom: 1px solid #8cacbb;
- margin: -4px -2px -2px;
- border: 1px solid #8cacbb;
- background-color: #FFFFE0;
- white-space: nowrap;
-}
-/*
- Calendar style
-*/
-#CCIframe {
- display: none;
- left: 0px;
- position: absolute;
- top: 0px;
- height: 250px;
- width: 270px;
- z-index: 99;
-}
-#CC {
- position:absolute;
- background-color:#FFF;
- margin:0; padding:0;
- display:none;
- z-index: 100;
-}
-#CC table {
- font-family: arial, verdana, helvetica, sans-serif;
- font-size: 8pt;
- border-left: 1px solid #336;
- border-right: 1px solid #336;
-}
-#CC th {
- font-weight: normal;
- text-align: center;
-}
-#CC th a {
- font-weight: normal;
- text-decoration: none;
- color: #FFF;
- padding: 1px;
-}
-#CC td {
- text-align: center;
-}
-#CC .header {
- background-color: #518fad;
-}
-#CC .weekday {
- background-color: #eee;
- color: #000;
-}
-#CC .weekend {
- background-color: #FFC;
- color: #000;
-}
-#CC .weekno {
- background-color: #d5cea7;
- color: #555;
-}
-#CC .current {
- border: 1px solid #339;
- background-color: #518fad;
- color: #FFF;
-}
-#CC .weekday, #CC .weekend, #CC .current {
- display: block;
- text-decoration: none;
- border: 1px solid #FFF;
- width: 2em;
-}
-#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
- color: #FFF;
- background-color: #518fad;
- border: 1px solid #999;
-}
-#CC .previous {
- text-align: left;
-}
-#CC .next {
- text-align: right;
-}
-#CC .previous, #CC .next {
- padding: 1px 3px 1px 3px;
- font-size: 1.4em;
-}
-#CC .previous a, #CC .next a {
- color: #FFF;
- text-decoration: none;
- font-weight: bold;
-}
-#CC .title {
- text-align: center;
- font-weight: bold;
- color: #FFF;
-}
-#CC .empty {
- background-color: #ddd;
- border: 1px solid #FFF;
-}
-
-div.err_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #cc3300;
- background-color: #ffcccc;
- color: #dd2200;
- text-align: center;
-}
-
-div.warn_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #ff9900;
- background-color: #ffff00;
- color: #ff5500;
- text-align: center;
-}
-
-div.note_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #33cc00;
- background-color: #ccffcc;
- color: #007700;
- text-align: center;
-}
-
-#title {
- margin-bottom: 10px;
- width: 100%;
-}
+++ /dev/null
-<?php
-header("Location: ../index.php");
+++ /dev/null
-<?php
-/**********************************************************************
- Copyright (C) FrontAccounting, LLC.
- Released under the terms of the GNU General Public License, GPL,
- as published by the Free Software Foundation, either version 3
- of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
-***********************************************************************/
- class renderer
- {
- function get_icon($category)
- {
- global $path_to_root, $SysPrefs;
-
- if ($SysPrefs->show_menu_category_icons)
- $img = $category == '' ? 'right.gif' : $category.'.png';
- else
- $img = 'right.gif';
- return "<img src='$path_to_root/themes/".user_theme()."/images/$img' style='vertical-align:middle;' border='0'> ";
- }
-
- function wa_header()
- {
- page(_($help_context = "Main Menu"), false, true);
- }
-
- function wa_footer()
- {
- end_page(false, true);
- }
-
- function menu_header($title, $no_menu, $is_index)
- {
- global $path_to_root, $SysPrefs, $db_connections;
- echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td colspan='2' rowspan='2'>\n";
-
- echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td>\n";
- echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td class='quick_menu'>\n"; // tabs
-
- $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
- if (!$no_menu)
- {
- $applications = $_SESSION['App']->applications;
- $local_path_to_root = $path_to_root;
- $sel_app = $_SESSION['sel_app'];
- echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
- echo "<div class='tabs'>";
- foreach($applications as $app)
- {
- if ($_SESSION["wa_current_user"]->check_application_access($app))
- {
- $acc = access_string($app->name);
- echo "<a class='".($sel_app == $app->id ? 'selected' : 'menu_tab')
- ."' href='$local_path_to_root/index.php?application=".$app->id
- ."'$acc[1]>" .$acc[0] . "</a>";
- }
- }
- echo "</div>";
- echo "</td></tr></table>";
- // top status bar
- $pimg = "<img src='$local_path_to_root/themes/".user_theme()."/images/preferences.gif' width='14' height='14' border='0' alt='"._('Preferences')."'> ";
- $limg = "<img src='$local_path_to_root/themes/".user_theme()."/images/lock.gif' width='14' height='14' border='0' alt='"._('Change Password')."'> ";
- $img = "<img src='$local_path_to_root/themes/".user_theme()."/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
- $himg = "<img src='$local_path_to_root/themes/".user_theme()."/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
-
- echo "<table class='logoutBar'>";
- echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
- echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
- echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a> \n";
- echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>$limg" . _("Change password") . "</a> \n";
-
- if ($SysPrefs->help_base_url != null)
- {
- echo "<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>$himg" . _("Help") . "</a> ";
- }
- echo "<a class='shortcut' href='$local_path_to_root/access/logout.php?'>$img" . _("Logout") . "</a> ";
- echo "</td></tr></table>";
- }
- echo "</td></tr></table>";
- if ($no_menu)
- {
- echo "<center><table class='tablestyle_noborder'>"
- ."<tr><td><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td></tr>"
- ."</table></center>";
- } elseif ($title && !$is_index)
- {
- echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
- ."<td align=right>"
- .(user_hints() ? "<span id='hints'></span>" : '')
- ."</td>"
- ."</tr></table></center>";
- }
- }
-
- function menu_footer($no_menu, $is_index)
- {
- global $version, $path_to_root, $Pagehelp, $Ajax, $SysPrefs;
-
- include_once($path_to_root . "/includes/date_functions.inc");
-
- echo "</td></tr></table>\n"; // 'main_page'
- if ($no_menu == false) // bottom status line
- {
- 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='".$SysPrefs->power_url."'><font color='#ffffff'>"
- .$SysPrefs->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='".$SysPrefs->power_url."'><font color='#ffff00'>"
- .$SysPrefs->power_by."</font></a></td>\n";
- echo "</tr>\n";
- if ($SysPrefs->allow_demo_mode)
- {
- echo "<tr>\n";
- //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&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 display_applications(&$waapp)
- {
- global $path_to_root;
-
- $selected_app = $waapp->get_selected_application();
- if (!$_SESSION["wa_current_user"]->check_application_access($selected_app))
- return;
-
- if (method_exists($selected_app, 'render_index'))
- {
- $selected_app->render_index();
- return;
- }
-
- echo "<table width='100%' cellpadding='0' cellspacing='0'>";
- foreach ($selected_app->modules as $module)
- {
- if (!$_SESSION["wa_current_user"]->check_module_access($module))
- continue;
- // image
- echo "<tr>";
- // values
- echo "<td valign='top' class='menu_group'>";
- echo "<table border=0 width='100%'>";
- echo "<tr><td class='menu_group'>";
- echo $module->name;
- echo "</td></tr><tr>";
- echo "<td class='menu_group_items'>";
-
- foreach ($module->lappfunctions as $appfunction)
- {
- $img = $this->get_icon($appfunction->category);
- if ($appfunction->label == "")
- echo " <br>";
- elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- {
- echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
- }
- elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
- {
- echo $img.'<span class="inactive">'
- .access_string($appfunction->label, true)
- ."</span><br>\n";
- }
- }
- echo "</td>";
- if (sizeof($module->rappfunctions) > 0)
- {
- echo "<td width='50%' class='menu_group_items'>";
- foreach ($module->rappfunctions as $appfunction)
- {
- $img = $this->get_icon($appfunction->category);
- if ($appfunction->label == "")
- echo " <br>";
- elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- {
- echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
- }
- elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
- {
- echo $img.'<span class="inactive">'
- .access_string($appfunction->label, true)
- ."</span><br>\n";
- }
- }
- echo "</td>";
- }
-
- echo "</tr></table></td></tr>";
- }
- echo "</table>";
- }
- }
--- /dev/null
+/*--------------------------------------------------\
+| elegant | | default.css |
+|---------------------------------------------------|
+| For use with: |
+| FrontAccounting |
+| http://FrontAccounting.com/ |
+| by Joe Hunt Consulting |
+|---------------------------------------------------|
+| Developer: |
+| Joe Hunt |
+| |
+|---------------------------------------------------|
+| Note: |
+| Changes can be made to this CSS that will be |
+| reflected throughout FrontAccounting. |
+| |
+\--------------------------------------------------*/
+
+body {
+ background-color: #eee;
+ background-image: url(images/body_bg.png);
+ background-repeat: repeat-x;
+ margin: 0;
+ padding: 0;
+ text-align: center;
+}
+
+body,td,th {
+ font-family:Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ color: #000;
+}
+
+/* Main */
+.fa-main {
+ width: 98%;
+ margin: 0 auto;
+ text-align: left;
+}
+
+tr, td, th {
+ line-height: 17px;
+ color: #000;
+}
+table {
+ text-align: left;
+}
+
+textarea {
+ font-size: 12px;
+}
+
+input, select
+{
+ font-size: 11px;
+ padding: 1px;
+}
+
+//select {
+// max-width: 200px;
+//}
+
+input.big {
+ width: 100px;
+}
+
+input.small {
+ width: 50px;
+}
+
+a, a:active {
+ color: #045c97;
+ text-decoration: none;
+}
+a:hover, a:focus {
+ color: #4f9adb;
+ text-decoration: underline;
+}
+a:visited {
+ color: #045c97;
+ text-decoration: none;
+}
+.clear {
+ clear: both;
+}
+.nodisp {
+ display: none;
+}
+.italic {
+ font-style: italic;
+}
+.flleft {
+ float: left;
+}
+.flright {
+ float: right;
+}
+
+/* Menu */
+.fa-menu {
+ clear: both;
+ margin: 0;
+ padding: 0;
+ height: 30px;
+}
+
+.fa-menu ul {
+ margin: 0;
+ padding: 0;
+ height: 30px;
+ list-style: none;
+ display: inline;
+ white-space: nowrap;
+}
+
+.fa-menu li {
+ margin: 0;
+ padding: 0 0 0 2px;
+ list-style: none;
+ display: block;
+ float: left;
+ background-image: url(images/menu_break.png);
+ background-repeat: no-repeat;
+}
+
+.fa-menu a:link,
+.fa-menu a:active,
+.fa-menu a:visited {
+ vertical-align: middle;
+ font-size: 12px;
+ font-weight: bold;
+ text-align: center;
+ color: #fff;
+ margin: 0;
+ padding: 0 12px;
+ display: block;
+ float: left;
+ height: 30px;
+ line-height: 30px;
+}
+
+.fa-menu a:hover { text-decoration: underline; }
+
+.fa-menu .active a {
+ background-image: url(images/link_bg.png);
+ background-repeat: repeat-x;
+}
+
+.fa-menu .active a:hover { text-decoration: none; }
+
+
+/* Body */
+.fa-body {
+ width: 100%;
+ background-color: #fff;
+ background-image: url(images/content_bg.png);
+ background-repeat: repeat-x;
+ float: left;
+ margin: 0;
+ padding: 5px 0 0 0;
+}
+
+#fa-submenu{
+padding: 0;
+margin-top: 2px;
+width: 100%;
+height: 24px;
+/*border-top: 1px solid #ececec;*/ /*Brown color theme*/
+/*background-color: #045c97;*/
+background-color: #7895ac;
+}
+
+#fa-submenu ul{
+margin:0;
+padding: 0;
+list-style: none;
+}
+
+#fa-submenu li{
+display: inline;
+margin: 0 2px 0 0;
+padding: 0;
+}
+
+#fa-submenu a{
+float: left;
+display: block;
+font-size: 12px;
+color: white;
+text-decoration: none;
+margin: 0 1px 0 0; /*Margin between each menu item*/
+border-right: 1px solid #ececec;
+padding: 5px 10px;
+/*background-color: #045c97;*/ /*blue color theme*/
+background-color: #7895ac;
+}
+
+#fa-submenu a:hover{
+background-color: black; /*Brown color theme*/
+color: white;
+}
+
+
+/* Content */
+.fa-content {
+ width: 99%;
+ margin: 0;
+ padding: 7px 10px 5px 0;
+ float: right;
+ vertical-align: top;
+}
+
+/* Footer */
+.fa-footer {
+ clear: both;
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ height: 10px;
+ margin: 0;
+ padding: 10px;
+ text-align: center;
+ font-size: 10px;
+ color: #036;
+}
+
+
+h1 {
+ font-size: 14px;
+ margin-right: 20px;
+ color: #466f01;
+}
+h2, .titletext {
+ font-weight: bold;
+ font-size: 13px;
+ color: #555;
+ padding: 5px;
+}
+.titletext {
+ border-bottom: 1px solid #8cacbb;
+}
+
+h3 {
+ font-size: 100%;
+ padding-top: 1ex;
+ padding-bottom: 1ex;
+}
+#header { margin: 0; }
+#header ul {clear: right; float: right; font-size: 11px; margin: 8px 10px 0 0; }
+#header li{ list-style: none; display: inline; margin: 0; }
+#header li a{ color: #045c97; text-decoration: none; padding: 0 0 0 16px; }
+#header h1 {
+ padding: 4px 0 4px 10px;
+ margin: 0;
+}
+#header h2 {
+ font-style: italic;
+}
+
+.fa-footer .power a { font-size: 10px; padding: 0 12px 0 12px; text-align: center; background: transparent url(images/news.gif) no-repeat center left; color: #045c97; }
+.fa-footer .date { font-size: 10px; padding: 0 12px 0 12px; text-align: center; color: #045c97; }
+
+hr {
+ background: #ccc;
+ border: 0;
+ color: #ccc;
+ height: 1px;
+}
+
+.menu_group {
+ font-size: 12px;
+ padding: 0;
+ color: #555;
+ background-color: #fff;
+ padding-left: 3px;
+ font-weight: bold;
+}
+
+.menu_group_items {
+ font-size: 12px;
+ background-color: #f9f9f9;
+ font-weight: normal;
+ line-height: 19px;
+ padding: 9px;
+ border: 1px solid #8cacbb;
+}
+
+.menu_group_items a {
+ text-decoration: none;
+}
+
+.tableheader {
+ font-weight: bold;
+ background-color: #7895ac;
+ color: #fff;
+ text-align: center;
+}
+
+.tableheader2 {
+ font-weight: bold;
+ background-color: #7895ac;
+ color: #fff;
+ text-align: left;
+}
+
+.tableseparator {
+ border-left: 1px solid #ccc;
+}
+
+.headingtext {
+ font-weight: bold;
+ font-size: 12px;
+ color: #555;
+}
+
+.headingtext2 {
+ font-size: 12px;
+ color: black;
+}
+
+.headingtext3 {
+ font-weight: bold;
+ font-size: 10px;
+ color: black;
+}
+
+.errortext {
+ font-size: 12px;
+ color: #f00;
+ font-weight: bold;
+}
+
+.inputsubmit {
+ font-size: 11px;
+ border: 1px #ccc solid;
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ padding: 1px 4px;
+}
+
+.ajaxsubmit {
+ font-size: 11px;
+ border: 1px #ccc solid;
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ padding: 1px 4px;
+}
+
+.oddrow {
+ background-color: #fafafa;
+}
+
+.evenrow {
+ background-color: #f3f3f3;
+}
+
+.overduebg {
+ background-color: pink;
+}
+
+.overduefg {
+ color: pink;
+}
+
+.currentfg {
+ color: #f66;
+}
+
+.redfg, a.redfg {
+ color: red;
+ font-weight: bold;
+}
+
+.settledbg {
+ background-color: #0b0;
+}
+
+.settledfg {
+ color: #0b0;
+}
+
+.inquirybg {
+ background-color: #fdfeef;
+}
+
+.currencybg {
+ background-color: #e88;
+}
+
+.stockmankobg {
+ background-color: pink;
+}
+
+.stockmankofg {
+ color: red;
+}
+
+table.tablestyle {
+ border-collapse: collapse;
+ border: 1px solid #e1e1e1;
+}
+table.tablestyle td {
+ border-collapse: collapse;
+ border: 1px solid #e1e1e1;
+}
+table.tablestyle2 {
+ border-collapse: collapse;
+ border: 1px solid #cccccc;
+}
+table.tablestyle2 td {
+ border-collapse: collapse;
+ border: 1px solid #cccccc;
+}
+table.tablestyle_inner {
+ border-collapse: collapse;
+ border: 1px solid #f9f9f9;
+}
+table.tablestyle_inner td {
+ border-collapse: collapse;
+ border: 1px solid #f9f9f9;
+}
+.tablestyle_noborder {
+ padding: 3px;
+}
+
+.label {
+ background-color: #ebf0f3;
+ color: black;
+}
+
+#loginscreen {
+ background: #f5f5f5;
+}
+
+.login {
+ width: 350px;
+ border-left: 12px solid #367cb5;
+ border-collapse: collapse;
+ background-color: #eeeeee;
+}
+.login td {
+ border-collapse: collapse;
+ border: 1px solid #cccccc;
+}
+
+.amount {
+ font-family: Verdana, Arial, Helvetica;
+ font-size: 11px;
+ text-align: right;
+}
+
+input.amount {
+ padding-right: 0px;
+ border-right: none;
+}
+
+.editbutton {
+ color:#00f;
+ background-color:transparent;
+ border-style:none;
+ text-decoration:none;
+ padding: 0;
+ margin: 0;
+ cursor: pointer;
+}
+
+.navibutton[disabled] {
+ color:#ccc;
+ text-decoration:none;
+ cursor: auto;
+}
+
+button.navibutton {
+ font-family:Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ color:#fff;
+ padding: 0 3px;
+ background-color: transparent;
+ border-style:none;
+ cursor: pointer;
+}
+
+.navibutton span {
+ text-decoration:underline;
+}
+
+.navibar {
+ padding: 0 3px;
+ color: #fff;
+ border: 1px solid #e1e1e1;
+ border-collapse: collapse;
+ background-color: #7895ac;
+}
+
+.listsubmit {
+ display: none;
+}
+
+.inactive {
+ color: gray;
+}
+
+button {
+ font-size: 11px;
+ border: 1px #0066cc solid;
+ padding: 1px 0px;
+}
+
+button img, span {
+ padding: 0px 2px ;
+ vertical-align: middle;
+}
+
+ul.ajaxtabs{
+ padding: 3px 0 0 0;
+ margin: 3px 3px 0 3px;
+ font: 12px Tahoma,Verdana;
+ font-weight: bold;
+}
+
+ul.ajaxtabs li{
+ list-style: none;
+ margin: 0;
+ display: inline;
+}
+
+ul.ajaxtabs li button{
+ background-color: #dee7ec;
+ padding: 3px 8px;
+ margin: 0px;
+ border-top: 1px solid #8cacbb;
+ border-right: 1px solid #8cacbb;
+ border-bottom: none;
+ border-left: none;
+ font-weight: bold;
+}
+
+ul.ajaxtabs li button:hover{
+ border-top: 1px solid #8cacbb;
+ color:#fff;
+}
+div.spaceBox{
+ background-color: #8cacbb;
+ height:8px;
+ border-bottom: 1px solid #8cacbb;
+ border-left: 1px solid #8cacbb;
+ border-right:1px solid #8cacbb;
+ margin: 0 3px 0px 3px
+}
+
+div.contentBox{
+ border: 1px solid #8cacbb;
+ margin: 0 3px 3px 3px
+}
+
+ul.ajaxtabs li button.current, ul.ajaxtabs li button.current:hover{
+ border-left: 1px solid #8cacbb;
+ background-color: #8cacbb;
+ color:#fff;
+}
+#hints {
+ font-size: 12px;
+ padding: 5px;
+ border-bottom: 1px solid #8cacbb;
+ margin: -4px -2px -2px;
+ border: 1px solid #8cacbb;
+ background-color: #ffffea;
+ white-space: nowrap;
+}
+
+img { border: 0; }
+
+/*
+ Calendar style
+*/
+#CCIframe {
+ display: none;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ height: 250px;
+ width: 270px;
+ z-index: 99;
+}
+#CC {
+ position:absolute;
+ background-color:#FFF;
+ margin:0; padding:0;
+ display:none;
+ z-index: 100;
+}
+#CC table {
+ font-family: arial, verdana, helvetica, sans-serif;
+ font-size: 8pt;
+ border-left: 1px solid #336;
+ border-right: 1px solid #336;
+}
+#CC th {
+ font-weight: normal;
+ text-align: center;
+}
+#CC th a {
+ font-weight: normal;
+ text-decoration: none;
+ color: #FFF;
+ padding: 1px;
+}
+#CC td {
+ text-align: center;
+}
+#CC .header {
+ background-color: #22303b;
+}
+#CC .weekday {
+ background-color: #eee;
+ color: #000;
+}
+#CC .weekend {
+ background-color: #FFC;
+ color: #000;
+}
+#CC .weekno {
+ background-color: #cde;
+ color: #555;
+}
+#CC .current {
+ border: 1px solid #339;
+ background-color: #22303b;
+ color: #FFF;
+}
+#CC .weekday, #CC .weekend, #CC .current {
+ display: block;
+ text-decoration: none;
+ border: 1px solid #FFF;
+ width: 2em;
+}
+#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
+ color: #FFF;
+ background-color: #22303b;
+ border: 1px solid #999;
+}
+#CC .previous {
+ text-align: left;
+}
+#CC .next {
+ text-align: right;
+}
+#CC .previous, #CC .next {
+ padding: 1px 3px 1px 3px;
+ font-size: 1.4em;
+}
+#CC .previous a, #CC .next a {
+ color: #FFF;
+ text-decoration: none;
+ font-weight: bold;
+}
+#CC .title {
+ text-align: center;
+ font-weight: bold;
+ color: #FFF;
+}
+#CC .empty {
+ background-color: #ddd;
+ border: 1px solid #FFF;
+}
+
+div.err_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #cc3300;
+ background-color: #ffcccc;
+ color: #dd2200;
+ text-align: center;
+}
+
+div.warn_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #ff9900;
+ background-color: #ffff00;
+ color: #ff5500;
+ text-align: center;
+}
+
+div.note_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #33cc00;
+ background-color: #ccffcc;
+ color: #007700;
+ text-align: center;
+}
+
+#title {
+ margin-bottom: 10px;
+ width: 100%;
+}
--- /dev/null
+<?php
+header("Location: ../index.php");
+?>
--- /dev/null
+<?php
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU General Public License, GPL,
+ as published by the Free Software Foundation, either version 3
+ of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
+
+ class renderer
+ {
+ function wa_header()
+ {
+ page(_($help_context = "Main Menu"), false, true);
+ }
+
+ function wa_footer()
+ {
+ end_page(false, true);
+ }
+ function shortcut($url, $label)
+ {
+ echo "<li>";
+ $pars = access_string($label);
+ echo "<a href='$url' class='menu_option' $pars[1]>$pars[0]</a>";
+ echo "</li>";
+ }
+
+ function menu_header($title, $no_menu, $is_index)
+ {
+ global $path_to_root, $SysPrefs, $version;
+
+ $sel_app = $_SESSION['sel_app'];
+ echo "<div class='fa-main'>\n";
+ if (!$no_menu)
+ {
+ $applications = $_SESSION['App']->applications;
+ $local_path_to_root = $path_to_root;
+ $img = "<img src='$path_to_root/themes/".user_theme()."/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
+ $pimg = "<img src='$local_path_to_root/themes/".user_theme()."/images/preferences.gif' width='14' height='14' border='0' alt='"._('Preferences')."'> ";
+ $limg = "<img src='$local_path_to_root/themes/".user_theme()."/images/lock.gif' width='14' height='14' border='0' alt='"._('Change Password')."'> ";
+ $himg = "<img src='$path_to_root/themes/".user_theme()."/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
+ echo "<div id='header'>\n";
+ echo "<ul>\n";
+ echo " <li><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a></li>\n";
+ echo " <li><a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>$limg" . _("Change password") . "</a></li>\n";
+ if ($SysPrefs->help_base_url != null)
+ echo " <li><a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='".
+ help_url()."'>$himg" . _("Help") . "</a></li>";
+ echo " <li><a class='shortcut' href='$path_to_root/access/logout.php?'>$img" . _("Logout") . "</a></li>";
+ echo "</ul>\n";
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
+ echo "<h1>$SysPrefs->power_by $version<span style='padding-left:300px;'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></span></h1>\n";
+ echo "</div>\n"; // header
+ echo "<div class='fa-menu'>";
+ echo "<ul>\n";
+ foreach($applications as $app)
+ {
+ if ($_SESSION["wa_current_user"]->check_application_access($app))
+ {
+ $acc = access_string($app->name);
+ echo "<li ".($sel_app == $app->id ? "class='active' " : "") . "><a class='"
+ .($sel_app == $app->id ? 'selected' : 'menu_tab')
+ ."' href='$path_to_root/index.php?application=" . $app->id
+ ."'$acc[1]><b>" . $acc[0] . "</b></a></li>\n";
+ }
+ }
+ echo "</ul>\n";
+ echo "</div>\n"; // menu
+ echo "<div class='clear'></div>\n";
+
+ }
+ echo "<div class='fa-body'>\n";
+ if (!$no_menu)
+ {
+ echo "<div id='fa-submenu'>\n";
+ echo "<ul>\n";
+ switch ($sel_app) // Shortcuts
+ {
+ case "orders":
+ $this->shortcut($local_path_to_root."/sales/sales_order_entry.php?NewOrder=Yes'",_("Sales Order"));
+ $this->shortcut($local_path_to_root."/sales/sales_order_entry.php?NewInvoice=0",_("Direct Invoice"));
+ $this->shortcut($local_path_to_root."/sales/customer_payments.php?", _("Payments"));
+ $this->shortcut($local_path_to_root."/sales/inquiry/sales_orders_view.php?", _("Sales Order Inquiry"));
+ $this->shortcut($local_path_to_root."/sales/inquiry/customer_inquiry.php?", _("Transactions"));
+ $this->shortcut($local_path_to_root."/sales/manage/customers.php?", _("Customers"));
+ $this->shortcut($local_path_to_root."/sales/manage/customer_branches.php?", _("Branch"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=0", _("Reports and Analysis"));
+ break;
+ case "AP":
+ $this->shortcut($local_path_to_root."/purchasing/po_entry_items.php?NewOrder=0", _("Purchase Order"));
+ $this->shortcut($local_path_to_root."/purchasing/inquiry/po_search.php?", _("Receive"));
+ $this->shortcut($local_path_to_root."/purchasing/supplier_invoice.php?New=1", _("Supplier Invoice"));
+ $this->shortcut($local_path_to_root."/purchasing/supplier_payment.php?", _("Payments"));
+ $this->shortcut($local_path_to_root."/purchasing/inquiry/supplier_inquiry.php?", _("Transactions"));
+ $this->shortcut($local_path_to_root."/purchasing/manage/suppliers.php?", _("Suppliers"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=1", _("Reports and Analysis"));
+ break;
+ case "stock":
+ $this->shortcut($local_path_to_root."/inventory/adjustments.php?NewAdjustment=1", _("Inventory Adjustments"));
+ $this->shortcut($local_path_to_root."/inventory/inquiry/stock_movements.php?", _("Inventory Movements"));
+ $this->shortcut($local_path_to_root."/inventory/manage/items.php?", _("Items"));
+ $this->shortcut($local_path_to_root."/inventory/prices.php?", _("Sales Pricing"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=2", _("Reports and Analysis"));
+ break;
+ case "manuf":
+ $this->shortcut($local_path_to_root."/manufacturing/work_order_entry.php?", _("Work Order Entry"));
+ $this->shortcut($local_path_to_root."/manufacturing/search_work_orders.php?outstanding_only=1", _("Ourstanding Work Orders"));
+ $this->shortcut($local_path_to_root."/manufacturing/search_work_orders.php?", _("Work Order Inquiry"));
+ $this->shortcut($local_path_to_root."/manufacturing/manage/bom_edit.php?", _("Bills Of Material"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=3", _("Reports and Analysis"));
+ break;
+ case "assets":
+ $this->shortcut($local_path_to_root."/purchasing/po_entry_items.php?NewInvoice=Yes&FixedAsset=1", _("Fixed Assets Purchase"));
+ $this->shortcut($local_path_to_root."/fixed_assets/inquiry/stock_inquiry.php?", _("Fixed Assets Inquiry"));
+ $this->shortcut($local_path_to_root."/inventory/manage/items.php?FixedAsset=1", _("Fixed Assets"));
+ $this->shortcut($local_path_to_root."/fixed_assets/process_depreciation.php?", _("Depreciations"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=7", _("Reports and Analysis"));
+ break;
+ case "proj":
+ $this->shortcut($local_path_to_root."/dimensions/dimension_entry.php?", _("Dimension Entry"));
+ $this->shortcut($local_path_to_root."/dimensions/inquiry/search_dimensions.php?", _("Dimension Inquiry"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=4", _("Reports and Analysis"));
+ break;
+ case "GL":
+ $this->shortcut($local_path_to_root."/gl/gl_bank.php?NewPayment=Yes",_("Payments"));
+ $this->shortcut($local_path_to_root."/gl/gl_bank.php?NewDeposit=Yes",_("Deposits"));
+ $this->shortcut($local_path_to_root."/gl/gl_journal.php?NewJournal=Yes",_("Journal Entry"));
+ $this->shortcut($local_path_to_root."/gl/inquiry/bank_inquiry.php?",_("Bank Account Inquiry"));
+ //$this->shortcut($local_path_to_root."/gl/inquiry/gl_account_inquiry.php?",_("GL Account Inquiry"));
+ $this->shortcut($local_path_to_root."/gl/inquiry/gl_trial_balance.php?",_("Trial Balance"));
+ $this->shortcut($local_path_to_root."/gl/manage/exchange_rates.php?",_("Exchange Rates"));
+ $this->shortcut($local_path_to_root."/gl/manage/gl_accounts.php?",_("GL Accounts"));
+ $this->shortcut($local_path_to_root."/reporting/reports_main.php?Class=6",_("Reports and Analysis"));
+ break;
+ case "system":
+ $this->shortcut($local_path_to_root."/admin/company_preferences.php?",_("Company Setup"));
+ $this->shortcut($local_path_to_root."/admin/gl_setup.php?",_("General GL"));
+ $this->shortcut($local_path_to_root."/taxes/tax_types.php?",_("Taxes"));
+ $this->shortcut($local_path_to_root."/taxes/tax_groups.php?",_("Tax Groups"));
+ $this->shortcut($local_path_to_root."/admin/forms_setup.php?",_("Forms Setup"));
+ $this->shortcut($local_path_to_root."/admin/backups.php?",_("Backup and Restore"));
+ break;
+ }
+ $this->shortcut($local_path_to_root."/admin/dashboard.php?sel_app=$sel_app", _("Dashboard"));
+ echo "</ul>\n";
+ echo "</div>\n"; // fa-submenu
+ echo "<div class='clear'></div>\n";
+ echo "<div class='fa-content'>\n";
+ }
+ if ($no_menu)
+ echo "<br>";
+ elseif ($title && !$no_menu && !$is_index)
+ {
+ echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
+ ."<td align=right>"
+ .(user_hints() ? "<span id='hints'></span>" : '')
+ ."</td>"
+ ."</tr></table></center>";
+ }
+ }
+
+ function menu_footer($no_menu, $is_index)
+ {
+ global $path_to_root, $SysPrefs, $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='$SysPrefs->power_url'>$SysPrefs->power_by $version</a></span>\n";
+ echo "<span class='date'>".Today() . " " . 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
+ }
+
+ function display_applications(&$waapp)
+ {
+ global $path_to_root;
+ $i = 0;
+ $sel_app = $waapp->get_selected_application();
+ if (!$_SESSION["wa_current_user"]->check_application_access($sel_app))
+ return;
+ if ($sel_app->id == "system")
+ $imgs2 = array("page_edit.png", "page_edit.png", "page_edit.png", "page_edit.png", "folder.gif");
+ else
+ $imgs2 = array("folder.gif", "report.png", "page_edit.png", "money.png", "folder.gif");
+ foreach ($sel_app->modules as $module)
+ {
+ if (!$_SESSION["wa_current_user"]->check_module_access($module))
+ continue;
+ // image
+ echo "<table width='95%' align='center'><tr>";
+ echo "<td valign='top' class='menu_group'>";
+ echo "<table border=0 width='100%'>";
+ echo "<tr><td class='menu_group'>";
+ echo $module->name;
+ echo "</td></tr><tr>";
+ echo "<td width='50%' class='menu_group_items'>";
+ $img = "<img src='$path_to_root/themes/elegant/images/".$imgs2[$i]."' width='14' height='14' border='0'> ";
+ if ($_SESSION["language"]->dir == "rtl")
+ $class = "right";
+ else
+ $class = "left";
+ foreach ($module->lappfunctions as $appfunction)
+ {
+ if ($appfunction->label == "")
+ echo "<div class='empty'> <br></div>\n";
+ elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
+ echo "<div>".$img.menu_link($appfunction->link, $appfunction->label."</div>");
+ elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
+ echo "<div>".$img."<span class='inactive'>".access_string($appfunction->label, true)."</span></div>\n";
+ }
+ echo "</td>\n";
+ if (sizeof($module->rappfunctions) > 0)
+ {
+ echo "<td width='50%' class='menu_group_items'>";
+ foreach ($module->rappfunctions as $appfunction)
+ {
+ if ($appfunction->label == "")
+ echo "<div class='empty'> <br></div>\n";
+ elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
+ echo "<div>".$img.menu_link($appfunction->link, $appfunction->label."</div>");
+ elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
+ echo "<div>".$img."<span class='inactive'>".access_string($appfunction->label, true)."</span></div>\n";
+ }
+ echo "</td>\n";
+ }
+ echo "</tr></table></td></tr></table>\n";
+ $i++;
+ }
+ }
+ }
+
\ No newline at end of file
+++ /dev/null
-/*--------------------------------------------------\
-| cool | | default.css |
-|---------------------------------------------------|
-| For use with: |
-| FrontAccounting |
-| http://FrontAccounting.com/ |
-| by Joe Hunt Consulting |
-|---------------------------------------------------|
-| Developer: |
-| Joe Hunt |
-| |
-|---------------------------------------------------|
-| Note: |
-| Changes can be made to this CSS that will be |
-| reflected throughout FrontAccounting. |
-| |
-\--------------------------------------------------*/
-
-body {
- font-family: Verdana, Arial, Helvetica;
- background: #60687b;
- font-size: 10px;
- margin: 5px 0 0 5px;
- padding: 0;
-}
-
-tr, td, th {
- font-size: 11px;
- line-height: 19px;
-}
-
-table {
- text-align: left;
-}
-
-textarea {
- font-size: 12px;
-}
-
-input, select {
- font-size: 11px;
- padding: 1px;
-}
-
-select {
- max-width: 230px;
-}
-
-option.inactive {
- text-decoration: line-through;
- color: gray;
-}
-
-input.big {
- width: 100px;
-}
-
-input.small {
- width: 50px;
-}
-
-a {
- color: #0000bb;
- font-size: 11px;
- text-decoration: none;
-}
-
-a:link {
- color: #0000bb;
- text-decoration: none;
-}
-
-a:active {
- color: #000000;
- text-decoration: none;
-}
-
-a:hover, a:focus {
- color: #2d8628;
- text-decoration: underline;
-}
-
-.inactive {
- color: gray;
-}
-
-button {
- font-size: 11px;
- border: 1px #0066cc solid;
- padding: 1px 0px;
-}
-
-button img, span {
- padding: 0px 2px ;
- vertical-align: middle;
-}
-
-.callout_main {
- font-family: Verdana, Arial, Helvetica;
- border: none;
- width: 99%;
- margin: 0;
- padding: 0;
-}
-
-.main_page {
- background-color: #eff9f9;
- border: none;
- width: 100%;
- margin: 0;
- padding: 0;
-}
-
-.quick_menu {
- background-color: #60687b;
- border: 0;
- margin: 0;
- padding: 0;
- /*text-align: right;*/
-}
-
-.quick_menu_selected {
- font-family: Verdana, Arial, Helvetica;
- font-size: 13px;
- border: none;
- white-space: nowrap;
- margin: 2px;
- padding: 2px;
- color: #00cc00;
- font-weight: bolder;
-}
-
-.logoutBar {
- padding-right: 1em;
- background: #e4ecec;
- color: black;
- border-bottom: 1px solid #cccccc;
- width: 100%;
-}
-
-.bottomBar {
- padding-right: 1em;
- background: #e4ecec;
- color: black;
- border-bottom: 1px solid #cccccc;
- width: 100%;
-}
-
-.bottomBarCell {
- font-size: 10px;
- line-height: 12px;
-}
-
-.bottomBar2 {
- padding-right: 1em;
- background: #e4ecec;
- color: black;
- border-top: 1px solid #cccccc;
- border-bottom: 1px solid #cccccc;
- width: 100%;
-}
-
-.logoutBarRight {
- text-align: right;
-}
-
-div.logoutBar {
- padding-right: 1em;
- background: #e4ecec;
- color: black;
- border-bottom: 1px solid #cccccc;
- text-align: right;
-}
-div.logoutBar a {
- font-weight: normal;
- margin-left: 1em;
- color: #436976;
- background-color: transparent;
-}
-div.logoutBar img {
- vertical-align: top;
-}
-
-div.tabs {
- padding: 3px 0 0 0;
- background: none transparent scroll repeat 0% 0%;
- white-space: nowrap;
- border-collapse: collapse;
- border-bottom: 1px solid #cccccc;
-
-}
-div.tabs a {
- border: 1px solid #cccccc;
- padding: 3px 10px;
- font-weight: normal;
- background: white scroll repeat 0% 0%;
- color: #436976;
- margin-right: 0.0em;
- height: 1.0em;
-}
-div.tabs a.selected {
- border-top: 1px solid #cccccc;
- border-right: 1px solid #cccccc;
- border-bottom: 1px solid #e4ecec;
- border-left: 1px solid #cccccc;
- font-weight: normal;
- background: #e4ecec;
- color: #436976;
-}
-div.tabs a:hover {
- border-top-color: #cccccc;
- border-right-color: #cccccc;
- border-bottom-color: #e4ecec;
- border-left-color: #cccccc;
- background: #e4ecec;
- color: #436976;
-}
-
-.menu_group {
- font-size: 13px;
- padding: 0px;
- color: #455372;
- background-color: #e4ecec;
- PADDING-LEFT: 3px;
- font-weight: bold;
-}
-
-.menu_group_items {
- background-color: #eff9f9;
- font-weight: normal;
- padding: 9px;
- border: 1px solid #cccccc;
-}
-
-#hotkeyshelp {
- text-align: right;
- font-weight: bolder;
-}
-
-#footer {
- position: relative;
- bottom: -3px;
-}
-
-.footer {
- font-family: Verdana, Arial, Helvetica;
- color: #cccccc;
- font-weight: normal;
- font-size: 9px;
- text-align: center;
- width: 100%;
-}
-
-.footer td a {
- color: #666666;
- font-size: 9px;
-}
-
-.tableheader {
- font-weight: bold;
- background-color: #788da1;
- color: white;
- text-align: center;
-}
-
-.tableheader2 {
- font-weight: bold;
- background-color: #788da1;
- color: white;
- text-align: left;
-}
-
-.tableseparator {
- border-left: 1px #444466 solid;
-}
-
-.titletext {
- font-weight: bold;
- font-size: 13px;
- color: #455372;
- border-bottom: 1px solid #cccccc;
- padding: 5px;
- width: 100%;
-}
-
-.headingtext {
- font-weight: bold;
- font-size: 13px;
- color: #455372;
-}
-
-.headingtext2 {
- font-size: 13px;
- color: #455372;
-}
-
-.headingtext3 {
- font-weight: bold;
- font-size: 10px;
- color: #455372;
-}
-
-.errortext {
- font-size: 13px;
- color: #ff0000;
- font-weight: bold;
-}
-
-.inputsubmit {
- font-size: 11px;
- border: 1px solid #0066cc;
- padding: 1px 4px;
-}
-
-.ajaxsubmit {
- font-size: 11px;
- border: 1px solid #0066cc;
- padding: 1px 4px;
-}
-
-.oddrow {
- background-color: #ffffff;
-}
-
-.evenrow {
- background-color: #eaedf1;
-}
-
-.overduebg {
- background-color: pink;
-}
-
-.overduefg {
- color: #dd7777;
-}
-
-.currentfg {
- color: #ff6666;
-}
-
-.redfg, a.redfg {
- color: red;
- font-weight: bold;
-}
-
-.settledbg {
- background-color: #00bb00;
-}
-
-.settledfg {
- color: #00bb00;
-}
-
-.inquirybg {
- background-color: #fdfeef;
-}
-
-.currencybg {
- background-color: #ee8888;
-}
-
-.stockmankobg {
- background-color: pink;
-}
-
-.stockmankofg {
- color: red;
-}
-
-table.tablestyle {
- border-collapse: collapse;
- border: 1px solid #8cacbb;
-}
-table.tablestyle td {
- border-collapse: collapse;
- border: 1px solid #8cacbb;
-}
-table.tablestyle2 {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-table.tablestyle2 td {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-table.tablestyle_inner {
- border-collapse: collapse;
- border: 1px solid #eff9f9;
-}
-table.tablestyle_inner td {
- border-collapse: collapse;
- border: 1px solid #eff9f9;
-}
-.tablestyle_noborder {
- padding: 3px;
-}
-
-.label {
- background-color: #e4ecec;
- color: black;
-}
-
-#loginscreen {
- background: #f5f5f5;
-}
-
-.login {
- width: 350px;
- border-left: 12px solid #367cb5;
- border-collapse: collapse;
- background-color: #eeeeee;
-}
-.login td {
- border-collapse: collapse;
- border: 1px solid #cccccc;
-}
-
-.amount {
- font-family: Verdana, Arial, Helvetica;
- font-size: 11px;
- text-align: right;
-}
-
-input.amount {
- padding-right: 0px;
- border-right: none;
-}
-
-.editbutton {
- color:#0000FF;
- background-color:transparent;
- border-style:none;
- text-decoration:underline;
- cursor: pointer;
-}
-
-.navibutton[disabled], .navibutton[disabled] span {
- color:#ddd;
- text-decoration: none;
- cursor: auto;
-}
-button.navibutton {
- font-family: Verdana, Arial, Helvetica;
- font-size: 11px;
- font-weight: bold;
- color:#fff;
- padding: 0 3px;
- background-color:transparent;
- border-style:none;
- cursor: pointer;
-}
-
-.navibutton span {
- text-decoration: underline;
-}
-
-.navibar {
- padding: 0 3px;
- color: #fff;
- border: 1px solid #cccccc;
- border-collapse: collapse;
- background-color: #788da1;
-}
-
-.navibar tr td {
- border: none;
-}
-
-.listsubmit {
- display: none;
-}
-
-ul.ajaxtabs{
- padding: 3px 0 0 0;
- margin: 3px 3px 0 3px;
- font: 12px Tahoma,Verdana;
- font-weight: bold;
-}
-
-ul.ajaxtabs li{
- list-style: none;
- margin: 0;
- display: inline;
-}
-
-ul.ajaxtabs li button{
- background-color: #dee7ec;
-/* background-repeat: repeat-x;
- background-position: top; */
- padding: 3px 8px;
- margin: 0px;
- border-top: 1px solid #8cacbb;
- border-right: 1px solid #8cacbb;
- border-bottom: none;
- border-left: none;
- font-weight: bold;
-}
-
-ul.ajaxtabs li button:hover{
- border-top: 1px solid #8cacbb;
- color:#FFFFFF;
-}
-div.spaceBox{
- background-color: #8cacbb;
- height:8px;
- border-bottom: 1px solid #8cacbb;
- border-left: 1px solid #8cacbb;
- border-right:1px solid #8cacbb;
- margin: 0 3px 0px 3px
-}
-
-div.contentBox{
- border: 1px solid #8cacbb;
- margin: 0 3px 3px 3px
-}
-
-ul.ajaxtabs li button.current, ul.ajaxtabs li button.current:hover{
- border-left: 1px solid #8cacbb;
- background-color: #8cacbb;
- color:#FFFFFF;
-}
-#hints {
- font-size: 13px;
- padding: 5px;
- border-bottom: 1px solid #8cacbb;
- margin: -4px -2px -2px;
- border: 1px solid #8cacbb;
- background-color: #FFFFE0;
- white-space: nowrap;
-}
-/*
- Calendar style
-*/
-#CCIframe {
- display: none;
- left: 0px;
- position: absolute;
- top: 0px;
- height: 250px;
- width: 270px;
- z-index: 99;
-}
-#CC {
- position:absolute;
- background-color:#FFF;
- margin:0; padding:0;
- display:none;
- z-index: 100;
-}
-#CC table {
- font-family: arial, verdana, helvetica, sans-serif;
- font-size: 8pt;
- border-left: 1px solid #336;
- border-right: 1px solid #336;
-}
-#CC th {
- font-weight: normal;
- text-align: center;
-}
-#CC th a {
- font-weight: normal;
- text-decoration: none;
- color: #FFF;
- padding: 1px;
-}
-#CC td {
- text-align: center;
-}
-#CC .header {
- background-color: #60687b;
-}
-#CC .weekday {
- background-color: #eee;
- color: #000;
-}
-#CC .weekend {
- background-color: #FFC;
- color: #000;
-}
-#CC .weekno {
- background-color: #e4ecec;
- color: #555;
-}
-#CC .current {
- border: 1px solid #339;
- background-color: #60687b;
- color: #FFF;
-}
-#CC .weekday, #CC .weekend, #CC .current {
- display: block;
- text-decoration: none;
- border: 1px solid #FFF;
- width: 2em;
-}
-#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
- color: #FFF;
- background-color: #60687b;
- border: 1px solid #999;
-}
-#CC .previous {
- text-align: left;
-}
-#CC .next {
- text-align: right;
-}
-#CC .previous, #CC .next {
- padding: 1px 3px 1px 3px;
- font-size: 1.4em;
-}
-#CC .previous a, #CC .next a {
- color: #FFF;
- text-decoration: none;
- font-weight: bold;
-}
-#CC .title {
- text-align: center;
- font-weight: bold;
- color: #FFF;
-}
-#CC .empty {
- background-color: #ddd;
- border: 1px solid #FFF;
-}
-
-div.err_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #cc3300;
- background-color: #ffcccc;
- color: #dd2200;
- text-align: center;
-}
-
-div.warn_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #ff9900;
- background-color: #ffff00;
- color: #ff5500;
- text-align: center;
-}
-
-div.note_msg {
- margin: 10px;
- padding: 3px;
- border: 1px solid #33cc00;
- background-color: #ccffcc;
- color: #007700;
- text-align: center;
-}
-
-#title {
- margin-bottom: 10px;
- width: 100%;
-}
+++ /dev/null
-<?php
-header("Location: ../index.php");
+++ /dev/null
-<?php
-/**********************************************************************
- Copyright (C) FrontAccounting, LLC.
- Released under the terms of the GNU General Public License, GPL,
- as published by the Free Software Foundation, either version 3
- of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
-***********************************************************************/
- class renderer
- {
- function get_icon($category)
- {
- global $path_to_root, $SysPrefs;
-
- if ($SysPrefs->show_menu_category_icons)
- $img = $category == '' ? 'right.gif' : $category.'.png';
- else
- $img = 'right.gif';
- return "<img src='$path_to_root/themes/".user_theme()."/images/$img' style='vertical-align:middle;' border='0'> ";
- }
-
- function wa_header()
- {
- page(_($help_context = "Main Menu"), false, true);
- }
-
- function wa_footer()
- {
- end_page(false, true);
- }
-
- function menu_header($title, $no_menu, $is_index)
- {
- global $path_to_root, $SysPrefs, $db_connections;
- echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td colspan='2' rowspan='2'>\n";
-
- echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td>\n";
- echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td class='quick_menu'>\n"; // tabs
-
- $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
- if (!$no_menu)
- {
- $applications = $_SESSION['App']->applications;
- $local_path_to_root = $path_to_root;
- $sel_app = $_SESSION['sel_app'];
- echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
- echo "<div class='tabs'>";
- foreach($applications as $app)
- {
- if ($_SESSION["wa_current_user"]->check_application_access($app))
- {
- $acc = access_string($app->name);
- echo "<a class='".($sel_app == $app->id ? 'selected' : 'menu_tab')
- ."' href='$local_path_to_root/index.php?application=".$app->id
- ."'$acc[1]>" .$acc[0] . "</a>";
- }
- }
- echo "</div>";
- echo "</td></tr></table>";
- // top status bar
- $pimg = "<img src='$local_path_to_root/themes/".user_theme()."/images/preferences.gif' width='14' height='14' border='0' alt='"._('Preferences')."'> ";
- $limg = "<img src='$local_path_to_root/themes/".user_theme()."/images/lock.gif' width='14' height='14' border='0' alt='"._('Change Password')."'> ";
- $img = "<img src='$local_path_to_root/themes/".user_theme()."/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
- $himg = "<img src='$local_path_to_root/themes/".user_theme()."/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
-
- echo "<table class='logoutBar'>";
- echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
- echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
- echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a> \n";
- echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>$limg" . _("Change password") . "</a> \n";
-
- if ($SysPrefs->help_base_url != null)
- {
- echo "<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>$himg" . _("Help") . "</a> ";
- }
- echo "<a class='shortcut' href='$local_path_to_root/access/logout.php?'>$img" . _("Logout") . "</a> ";
- echo "</td></tr></table>";
- }
- echo "</td></tr></table>";
-
- if ($no_menu)
- {
- echo "<center><table class='tablestyle_noborder'>"
- ."<tr><td><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td></tr>"
- ."</table></center>";
- } elseif ($title && !$is_index)
- {
- echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
- ."<td align=right>"
- .(user_hints() ? "<span id='hints'></span>" : '')
- ."</td>"
- ."</tr></table></center>";
- }
- }
-
- function menu_footer($no_menu, $is_index)
- {
- global $version, $SysPrefs, $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) // bottom status line
- {
- 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='".$SysPrefs->power_url."'><font color='#ffffff'>".$SysPrefs->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='".$SysPrefs->power_url."'><font color='#ffff00'".$SysPrefs->power_by
- ."</font></a></td>\n";
- echo "</tr>\n";
- if ($SysPrefs->allow_demo_mode)
- {
- echo "<tr>\n";
- //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&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 display_applications(&$waapp)
- {
- global $path_to_root;
-
- $selected_app = $waapp->get_selected_application();
- if (!$_SESSION["wa_current_user"]->check_application_access($selected_app))
- return;
-
- if (method_exists($selected_app, 'render_index'))
- {
- $selected_app->render_index();
- return;
- }
-
- echo "<table width='100%' cellpadding='0' cellspacing='0'>";
- foreach ($selected_app->modules as $module)
- {
- if (!$_SESSION["wa_current_user"]->check_module_access($module))
- continue;
- // image
- echo "<tr>";
- // values
- echo "<td valign='top' class='menu_group'>";
- echo "<table border=0 width='100%'>";
- echo "<tr><td class='menu_group'>";
- echo $module->name;
- echo "</td></tr><tr>";
- echo "<td class='menu_group_items'>";
-
- foreach ($module->lappfunctions as $appfunction)
- {
- $img = $this->get_icon($appfunction->category);
- if ($appfunction->label == "")
- echo " <br>";
- elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- {
- echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
- }
- elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
- {
- echo $img.'<span class="inactive">'
- .access_string($appfunction->label, true)
- ."</span><br>\n";
- }
- }
- echo "</td>";
- if (sizeof($module->rappfunctions) > 0)
- {
- echo "<td width='50%' class='menu_group_items'>";
- foreach ($module->rappfunctions as $appfunction)
- {
- $img = $this->get_icon($appfunction->category);
- if ($appfunction->label == "")
- echo " <br>";
- elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
- {
- echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
- }
- elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
- {
- echo $img.'<span class="inactive">'
- .access_string($appfunction->label, true)
- ."</span><br>\n";
- }
- }
- echo "</td>";
- }
-
- echo "</tr></table></td></tr>";
- }
- echo "</table>";
- }
- }
echo "</div>";
echo "</td></tr></table>";
// top status bar
+ $rimg = "<img src='$path_to_root/themes/".user_theme()."/images/report.png' width='14' height='14' border='0' alt='"._('Dashboard')."'> ";
$pimg = "<img src='$local_path_to_root/themes/".user_theme()."/images/preferences.gif' width='14' height='14' border='0' alt='"._('Preferences')."'> ";
$limg = "<img src='$local_path_to_root/themes/".user_theme()."/images/lock.gif' width='14' height='14' border='0' alt='"._('Change Password')."'> ";
$img = "<img src='$local_path_to_root/themes/".user_theme()."/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
echo "<table class='logoutBar'>";
echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
- echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a> \n";
+ echo "<td class='logoutBarRight'><a href='$path_to_root/admin/dashboard.php?sel_app=$sel_app'>$rimg" . _("Dashboard") . "</a> \n";
+
+ echo "<a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>$limg" . _("Change password") . "</a> \n";
if ($SysPrefs->help_base_url != null)
--- /dev/null
+/*--------------------------------------------------\
+| Dynamic | | default.css |
+|---------------------------------------------------|
+| For use with: |
+| FrontAccounting |
+| http://FrontAccounting.com/ |
+| by Joe Hunt Consulting |
+|---------------------------------------------------|
+| Developer: |
+| Joe Hunt |
+| |
+|---------------------------------------------------|
+| Note: |
+| Changes can be made to this CSS that will be |
+| reflected throughout FrontAccounting. |
+| |
+\--------------------------------------------------*/
+
+body {
+ background-color: #eee;
+ margin: 0;
+ padding: 0;
+ text-align: center;
+}
+
+body,td,th {
+ font-family:Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ color: #000;
+}
+
+/* Main */
+.fa-main {
+ /*width: 98%;*/
+ width: 99%;
+ margin: 0 auto;
+ text-align: left;
+ background-color: #fff;
+}
+
+tr, td, th {
+ line-height: 17px;
+ color: #000;
+}
+table {
+ text-align: left;
+}
+
+textarea {
+ font-size: 12px;
+}
+
+input, select
+{
+ font-size: 11px;
+ padding: 1px;
+}
+
+select {
+ max-width: 200px;
+}
+
+input.big {
+ width: 100px;
+}
+
+input.small {
+ width: 50px;
+}
+
+a, a:active {
+ color: #045c97;
+ text-decoration: none;
+}
+a:hover, a:focus {
+ color: #4f9adb;
+ text-decoration: underline;
+}
+a:visited {
+ color: #045c97;
+ text-decoration: none;
+}
+.clear {
+ clear: both;
+}
+.nodisp {
+ display: none;
+}
+.italic {
+ font-style: italic;
+}
+.flleft {
+ float: left;
+}
+.flright {
+ float: right;
+}
+
+/* Body */
+.fa-body {
+ width: 100%;
+ background-color: #fff;
+ margin: 0;
+ /* padding: 6px 0 0 0;*/
+}
+
+/* Content */
+.fa-content {
+ width: 100%;
+ margin: 50px 0 0;
+ padding: 6px 10px 5px 0;
+ vertical-align: top;
+}
+
+/* Footer */
+.fa-footer {
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ height: 10px;
+ margin: 0;
+ padding: 10px;
+ text-align: center;
+ font-size: 10px;
+ color: #036;
+}
+
+
+h1 {
+ font-size: 14px;
+ margin-right: 20px;
+ color: #466f01;
+}
+h2, .titletext {
+ font-weight: bold;
+ font-size: 13px;
+ color: #555;
+ padding: 5px;
+}
+.titletext {
+ border-bottom: 1px solid #697789;
+}
+
+h3 {
+ font-size: 100%;
+ padding-top: 1ex;
+ padding-bottom: 1ex;
+}
+#header { margin: 0; }
+#header ul {clear: right; float: right; font-size: 11px; margin: 8px 10px 0 0; }
+#header li{ list-style: none; display: inline; margin: 0; }
+#header li a{ color: #045c97; text-decoration: none; padding: 0 0 0 16px; }
+#header h1 {
+ padding: 4px 0 4px 10px;
+ margin: 0;
+}
+#header h2 {
+ font-style: italic;
+}
+
+.fa-footer .power a { font-size: 10px; padding: 0 12px 0 12px; text-align: center; background: transparent url(images/news.gif) no-repeat center left; color: #045c97; }
+.fa-footer .date { font-size: 10px; padding: 0 12px 0 12px; text-align: center; color: #045c97; }
+
+hr {
+ background: #ccc;
+ border: 0;
+ color: #ccc;
+ height: 1px;
+}
+
+.menu_group {
+ font-size: 12px;
+ padding: 0;
+ color: #555;
+ background-color: #fff;
+ padding-left: 3px;
+ font-weight: bold;
+}
+
+.menu_group_items {
+ font-size: 12px;
+ background-color: #f9f9f9;
+ font-weight: normal;
+ line-height: 19px;
+ padding: 9px;
+ border: 1px solid #697789;
+}
+
+.menu_group_items a {
+ text-decoration: none;
+}
+
+.tableheader {
+ font-weight: bold;
+ /*background-color: #7895ac;*/
+ background-color: #697789;
+ color: #fff;
+ text-align: center;
+}
+
+.tableheader2 {
+ font-weight: bold;
+ /*background-color: #7895ac;*/
+ background-color: #697789;
+ color: #fff;
+ text-align: left;
+}
+
+.tableseparator {
+ border-left: 1px solid #ccc;
+}
+
+.headingtext {
+ font-weight: bold;
+ font-size: 12px;
+ color: #555;
+}
+
+.headingtext2 {
+ font-size: 12px;
+ color: black;
+}
+
+.headingtext3 {
+ font-weight: bold;
+ font-size: 10px;
+ color: black;
+}
+
+.errortext {
+ font-size: 12px;
+ color: #f00;
+ font-weight: bold;
+}
+
+.inputsubmit {
+ font-size: 11px;
+ border: 1px #ccc solid;
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ padding: 1px 4px;
+}
+
+.ajaxsubmit {
+ font-size: 11px;
+ border: 1px #ccc solid;
+ background-image: url(images/footer_bg.png);
+ background-repeat: repeat-x;
+ padding: 1px 4px;
+}
+
+.oddrow {
+ background-color: #fafafa;
+}
+
+.evenrow {
+ background-color: #f3f3f3;
+}
+
+.overduebg {
+ background-color: pink;
+}
+
+.overduefg {
+ color: pink;
+}
+
+.currentfg {
+ color: #f66;
+}
+
+.redfg, a.redfg {
+ color: red;
+ font-weight: bold;
+}
+
+.settledbg {
+ background-color: #0b0;
+}
+
+.settledfg {
+ color: #0b0;
+}
+
+.inquirybg {
+ background-color: #fdfeef;
+}
+
+.currencybg {
+ background-color: #e88;
+}
+
+.stockmankobg {
+ background-color: pink;
+}
+
+.stockmankofg {
+ color: red;
+}
+
+table.tablestyle {
+ border-collapse: collapse;
+ border: 1px solid #e1e1e1;
+}
+table.tablestyle td {
+ border-collapse: collapse;
+ /*border: 1px solid #e1e1e1;*/
+ border: 1px solid #aaaaaa;
+}
+table.tablestyle2 {
+ border-collapse: collapse;
+ /*border: 1px solid #e1e1e1;*/
+ border: 1px solid #aaaaaa;
+}
+table.tablestyle2 td {
+ border-collapse: collapse;
+ /*border: 1px solid #e1e1e1;*/
+ border: 1px solid #aaaaaa;
+}
+table.tablestyle_inner {
+ border-collapse: collapse;
+ border: 1px solid #f9f9f9;
+}
+table.tablestyle_inner td {
+ border-collapse: collapse;
+ border: 1px solid #f9f9f9;
+}
+.tablestyle_noborder {
+ padding: 3px;
+}
+
+.label {
+ /*background-color: #ebf0f3*/;
+ background-color: #d9d9d9;
+ color: black;
+}
+
+#loginscreen {
+ background: #f5f5f5;
+}
+
+.login {
+ width: 350px;
+ border-left: 12px solid #367cb5;
+ border-collapse: collapse;
+ background-color: #eeeeee;
+}
+.login td {
+ border-collapse: collapse;
+ border: 1px solid #cccccc;
+}
+
+.amount {
+ font-family: Verdana, Arial, Helvetica;
+ font-size: 11px;
+ text-align: right;
+}
+
+input.amount {
+ padding-right: 0px;
+ border-right: none;
+}
+
+.editbutton {
+ color:#00f;
+ background-color:transparent;
+ border-style:none;
+ text-decoration:none;
+ padding: 0;
+ margin: 0;
+ cursor: pointer;
+}
+
+.navibutton[disabled] {
+ color:#ccc;
+ text-decoration:none;
+ cursor: auto;
+}
+
+button.navibutton {
+ font-family:Arial, Helvetica, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ color:#fff;
+ padding: 0 3px;
+ background-color: transparent;
+ border-style:none;
+ cursor: pointer;
+}
+
+.navibutton span {
+ text-decoration:underline;
+}
+
+.navibar {
+ padding: 0 3px;
+ color: #fff;
+ border: 1px solid #e1e1e1;
+ border-collapse: collapse;
+ background-color: #697789;
+}
+
+.listsubmit {
+ display: none;
+}
+
+.inactive {
+ color: gray;
+}
+
+button {
+ font-size: 11px;
+ border: 1px #0066cc solid;
+ padding: 1px 0px;
+}
+
+button img, span {
+ padding: 0px 2px ;
+ vertical-align: middle;
+}
+
+ul.ajaxtabs{
+ padding: 3px 0 0 0;
+ margin: 3px 3px 0 3px;
+ font: 12px Tahoma,Verdana;
+ font-weight: bold;
+}
+
+ul.ajaxtabs li{
+ list-style: none;
+ margin: 0;
+ display: inline;
+}
+
+ul.ajaxtabs li button{
+ background-color: #d9d9d9;
+ padding: 3px 8px;
+ margin: 0px;
+ border-top: 1px solid #697789;
+ border-right: 1px solid #697789;
+ border-bottom: none;
+ border-left: none;
+ font-weight: bold;
+}
+
+ul.ajaxtabs li button:hover{
+ border-top: 1px solid #697789;
+ color:#fff;
+}
+div.spaceBox{
+ background-color: #697789;
+ height:8px;
+ border-bottom: 1px solid #697789;
+ border-left: 1px solid #697789;
+ border-right:1px solid #697789;
+ margin: 0 3px 0px 3px
+}
+
+div.contentBox{
+ border: 1px solid #697789;
+ margin: 0 3px 3px 3px
+}
+
+ul.ajaxtabs li button.current, ul.ajaxtabs li button.current:hover{
+ border-left: 1px solid #697789;
+ background-color: #697789;
+ color:#fff;
+}
+#hints {
+ font-size: 12px;
+ padding: 5px;
+ border-bottom: 1px solid #697789;
+ margin: -4px -2px -2px;
+ border: 1px solid #697789;
+ background-color: #ffffea;
+ white-space: nowrap;
+}
+
+img { border: 0; }
+
+/*
+ Calendar style
+*/
+#CCIframe {
+ display: none;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ height: 250px;
+ width: 270px;
+ z-index: 99;
+}
+#CC {
+ position:absolute;
+ background-color:#FFF;
+ margin:0; padding:0;
+ display:none;
+ z-index: 100;
+}
+#CC table {
+ font-family: arial, verdana, helvetica, sans-serif;
+ font-size: 8pt;
+ border-left: 1px solid #336;
+ border-right: 1px solid #336;
+}
+#CC th {
+ font-weight: normal;
+ text-align: center;
+}
+#CC th a {
+ font-weight: normal;
+ text-decoration: none;
+ color: #FFF;
+ padding: 1px;
+}
+#CC td {
+ text-align: center;
+}
+#CC .header {
+ background-color: #22303b;
+}
+#CC .weekday {
+ background-color: #eee;
+ color: #000;
+}
+#CC .weekend {
+ background-color: #FFC;
+ color: #000;
+}
+#CC .weekno {
+ background-color: #cde;
+ color: #555;
+}
+#CC .current {
+ border: 1px solid #339;
+ background-color: #22303b;
+ color: #FFF;
+}
+#CC .weekday, #CC .weekend, #CC .current {
+ display: block;
+ text-decoration: none;
+ border: 1px solid #FFF;
+ width: 2em;
+}
+#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
+ color: #FFF;
+ background-color: #22303b;
+ border: 1px solid #999;
+}
+#CC .previous {
+ text-align: left;
+}
+#CC .next {
+ text-align: right;
+}
+#CC .previous, #CC .next {
+ padding: 1px 3px 1px 3px;
+ font-size: 1.4em;
+}
+#CC .previous a, #CC .next a {
+ color: #FFF;
+ text-decoration: none;
+ font-weight: bold;
+}
+#CC .title {
+ text-align: center;
+ font-weight: bold;
+ color: #FFF;
+}
+#CC .empty {
+ background-color: #ddd;
+ border: 1px solid #FFF;
+}
+
+div.err_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #cc3300;
+ background-color: #ffcccc;
+ color: #dd2200;
+ text-align: center;
+}
+
+div.warn_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #ff9900;
+ background-color: #ffff00;
+ color: #ff5500;
+ text-align: center;
+}
+
+div.note_msg {
+ margin: 10px;
+ padding: 3px;
+ border: 1px solid #33cc00;
+ background-color: #ccffcc;
+ color: #007700;
+ text-align: center;
+}
+
+#title {
+ margin-bottom: 10px;
+ width: 100%;
+}
+
+
+
+#cssmenu {
+ padding: 0;
+ margin: 0;
+ border: 0;
+ width: 95%;
+ position: absolute;
+}
+#cssmenu ul,
+#cssmenu li {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+#cssmenu ul {
+ /*position: relative;*/
+ z-index: 597;
+}
+#cssmenu ul li {
+ float: left;
+ min-height: 1px;
+ vertical-align: middle;
+}
+#cssmenu ul li.hover,
+#cssmenu ul li:hover {
+ /*position: relative;*/
+ z-index: 599;
+ cursor: default;
+}
+#cssmenu ul ul {
+ visibility: hidden;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ z-index: 598;
+ width: 100%;
+}
+#cssmenu ul ul li {
+ float: none;
+}
+#cssmenu ul ul ul {
+ top: 0;
+ left: 100%;
+}
+#cssmenu .align_right {
+ top: 0;
+ left:-240px;
+}
+
+#cssmenu ul li:hover > ul {
+ visibility: visible;
+}
+#cssmenu ul ul {
+ margin-top: 0;
+}
+#cssmenu a {
+ display: block;
+ line-height: 1em;
+ text-decoration: none;
+ margin: 0 -9px;
+}
+#cssmenu ul li.last ul {
+ left: auto;
+ right: 0;
+}
+#cssmenu ul li.last ul ul {
+ left: auto;
+ right: 99.5%;
+}
+#cssmenu:after,
+#cssmenu ul:after {
+ content: '';
+ display: block;
+ clear: both;
+}
+/* Custom CSS Styles */
+#cssmenu {
+ width: 100%;
+ font-family: Helvetica, Arial, sans-serif;
+}
+#cssmenu:before {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAICAIAAAC3eAIWAAAAA3NCSVQICAjb4U/gAAAAI0lEQVQImWPwj0hh+v//PxPD//9M////Z/rP8J/p//9/MD4AGUETB+SFfCsAAAAASUVORK5CYII=);
+ background-color: #606a77;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #4f5864), color-stop(1, #49515b));
+ background-image: -webkit-linear-gradient(top, #4f5864, #49515b);
+ background-image: -moz-linear-gradient(top, #4f5864, #49515b);
+ background-image: -o-linear-gradient(top, #4f5864, #49515b);
+ background-image: linear-gradient(#4f5864, #49515b);
+ -moz-box-shadow: inset 0 2px 0 #586270, inset 0 1px 0 #6b7888;
+ -webkit-box-shadow: inset 0 2px 0 #586270, inset 0 1px 0 #6b7888;
+ box-shadow: inset 0 2px 0 #586270, inset 0 1px 0 #6b7888;
+ content: '';
+ display: block;
+ height: 8px;
+}
+#cssmenu > ul {
+ border-bottom: 1px solid #252A30;
+ border-top: 1px solid #252A30;
+ -moz-box-shadow: inset 0 1px 0 #8799a9, 0 1px 1px rgba(0, 0, 0, 0.5);
+ -webkit-box-shadow: inset 0 1px 0 #8799a9, 0 1px 1px rgba(0, 0, 0, 0.5);
+ box-shadow: inset 0 1px 0 #8799a9, 0 1px 1px rgba(0, 0, 0, 0.5);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABNCAIAAADo7ZnJAAAAA3NCSVQICAjb4U/gAAAAUUlEQVQYlXWPyRGAMAwDd1wwHVADJS+POERk4OVD1mGO8yq1wFIKLXHsJLDGH8wSou8q0bfGxplYcpaHRerG/J/zS/edLTnrjvDo7PHv1Nhy3lZMnHg0MO2JAAAAAElFTkSuQmCC);
+ background-color: #566171;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #6e7d8f), color-stop(1, #404854));
+ background-image: -webkit-linear-gradient(top, #6e7d8f, #404854);
+ background-image: -moz-linear-gradient(top, #6e7d8f, #404854);
+ background-image: -o-linear-gradient(top, #6e7d8f, #404854);
+ background-image: linear-gradient(#6e7d8f, #404854);
+ /*height: 27px;*/
+ /*padding: 15px 15px 15px 5px;*/
+ padding: 2px 15px 5px 5px;
+}
+#cssmenu > ul > li {
+ margin: 0 10px;
+}
+#cssmenu > ul > li.has-sub:hover > a {
+ -moz-border-radius: 3px 3px 0 0;
+ -webkit-border-radius: 3px 3px 0 0;
+ border-radius: 3px 3px 0 0;
+ -moz-background-clip: padding;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+}
+#cssmenu > ul > li:hover > a {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAbCAIAAAAyOnIjAAAAA3NCSVQICAjb4U/gAAAAGElEQVQImWP4//8/079//0jGf//+JVUPAADfUJPhbDTaAAAAAElFTkSuQmCC);
+ background-color: #e2e2e2;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(1, #c8c8c8));
+ background-image: -webkit-linear-gradient(top, #ffffff, #c8c8c8);
+ background-image: -moz-linear-gradient(top, #ffffff, #c8c8c8);
+ background-image: -o-linear-gradient(top, #ffffff, #c8c8c8);
+ background-image: linear-gradient(#ffffff, #c8c8c8);
+}
+#cssmenu > ul > li.active:hover > a {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAbCAIAAAAyOnIjAAAAA3NCSVQICAjb4U/gAAAAJklEQVQImWP4MruP6d+/f0z//v5Fo/8x/fv3F41GyP8lUf2/v38BoDRPnb8AZS4AAAAASUVORK5CYII=);
+ background-color: #cb7b72;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f49b8e), color-stop(1, #bd584d));
+ background-image: -webkit-linear-gradient(top, #f49b8e, #bd584d);
+ background-image: -moz-linear-gradient(top, #f49b8e, #bd584d);
+ background-image: -o-linear-gradient(top, #f49b8e, #bd584d);
+ background-image: linear-gradient(#f49b8e, #bd584d);
+}
+#cssmenu ul a {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAbCAIAAAAyOnIjAAAAA3NCSVQICAjb4U/gAAAAIUlEQVQImWP4+PEj09+/f5n+/fvH9PfvXzhG5uNik6gOAOTaUDaAXrIOAAAAAElFTkSuQmCC);
+ background-color: #c2c2c2;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f1f1f1), color-stop(1, #a8a8a8));
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #a8a8a8);
+ background-image: -moz-linear-gradient(top, #f1f1f1, #a8a8a8);
+ background-image: -o-linear-gradient(top, #f1f1f1, #a8a8a8);
+ background-image: linear-gradient(#f1f1f1, #a8a8a8);
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ -moz-background-clip: padding;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 1px 1px 1px rgba(0, 0, 0, 0.5);
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 1px 1px 1px rgba(0, 0, 0, 0.5);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 1px 1px 1px rgba(0, 0, 0, 0.5);
+ color: #3c444d;
+ font-size: 12px;
+ line-height: 27px;
+ /*padding: 0 20px;*/
+ padding: 0 10px;
+ /*position: relative;*/
+ text-align: center;
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
+}
+#cssmenu ul ul {
+ /*width: 170px;*/
+ width: 170px;
+}
+#cssmenu ul ul ul {
+ width: 240px;
+}
+#cssmenu ul ul a {
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ -moz-border-radius: 0;
+ -webkit-border-radius: 0;
+ border-radius: 0;
+ -moz-background-clip: padding;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ line-height: 150%;
+ border-bottom: 1px solid #999999;
+}
+#cssmenu ul .active > a {
+ color: #FFF;
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAbCAIAAAAyOnIjAAAAA3NCSVQICAjb4U/gAAAANUlEQVQImXXMsQ0AIRTD0FMmvRlYnAm+TQEIGronxcrX2x80hUEDpNx2em0lx9wNj37+rX4AhN5PdtvsqRUAAAAASUVORK5CYII=);
+ background-color: #c46a60;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ef7260), color-stop(1, #b04c41));
+ background-image: -webkit-linear-gradient(top, #ef7260, #b04c41);
+ background-image: -moz-linear-gradient(top, #ef7260, #b04c41);
+ background-image: -o-linear-gradient(top, #ef7260, #b04c41);
+ background-image: linear-gradient(#ef7260, #b04c41);
+}
+#cssmenu ul .has-sub {
+ position: relative;
+}
+#cssmenu ul .has-sub ul {
+ -moz-border-radius: 0 3px 3px 3px;
+ -webkit-border-radius: 0 3px 3px 3px;
+ border-radius: 0 3px 3px 3px;
+ -moz-background-clip: padding;
+ -webkit-background-clip: padding-box;
+ background-clip: padding-box;
+ -moz-box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.5);
+ -webkit-box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.5);
+ box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.5);
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA2CAMAAAAxtAOuAAAAolBMVEXp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enCAApGAAAANXRSTlP9+vf08Ozp5eDc19POycS+ubOuqKOdl5GLhYB6dG5oYlxXUUxGQTs2MSwoIx8aFhMPCwgFAqv7N0MAAABMSURBVHheBcCDEcMAAADAj1Hbtr3/aj0/BEKRWCKVyRVKFVU1dQ1NLW0dXT19A0MjYxNTM3MLSytrG1s7ewdHJ2cXVzd3D08vbx/fP9L5BZigzasGAAAAAElFTkSuQmCC) repeat-x;
+ background-color: #c3c3c3;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #e9e9e9), color-stop(1, #aaaaaa));
+ background-image: -webkit-linear-gradient(top, #e9e9e9, #aaaaaa);
+ background-image: -moz-linear-gradient(top, #e9e9e9, #aaaaaa);
+ background-image: -o-linear-gradient(top, #e9e9e9, #aaaaaa);
+ background-image: linear-gradient(#e9e9e9, #aaaaaa);
+ /*padding: 3px 0;*/
+}
+#cssmenu ul .has-sub ul a {
+ background: none;
+ /*padding: 8px 8px 8px 16px;*/
+ padding: 4px 8px 4px 16px;
+ border-bottom: 1px solid transparent;
+ text-align: left;
+}
+#cssmenu ul .has-sub ul .has-sub a:after {
+ content: none;
+}
+#cssmenu ul .has-sub li:hover > a {
+ border-bottom: 1px solid #1D2024;
+ color: #FFF;
+ background-color: #55616f;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #56606f), color-stop(1, #3f4852));
+ background-image: -webkit-linear-gradient(top, #56606f, #3f4852);
+ background-image: -moz-linear-gradient(top, #56606f, #3f4852);
+ background-image: -o-linear-gradient(top, #56606f, #3f4852);
+ background-image: linear-gradient(#56606f, #3f4852);
+ -moz-box-shadow: inset 1px 2px 0 #5c6778, inset 0 1px 0 #4e5866;
+ -webkit-box-shadow: inset 1px 2px 0 #5c6778, inset 0 1px 0 #4e5866;
+ box-shadow: inset 1px 2px 0 #5c6778, inset 0 1px 0 #4e5866;
+ position: relative;
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
+}
+#cssmenu ul .has-sub li:hover > a:after {
+ border-left: 0 none;
+ background-color: #c35f54;
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ea5f51), color-stop(1, #a9463b));
+ background-image: -webkit-linear-gradient(top, #ea5f51, #a9463b);
+ background-image: -moz-linear-gradient(top, #ea5f51, #a9463b);
+ background-image: -o-linear-gradient(top, #ea5f51, #a9463b);
+ background-image: linear-gradient(#ea5f51, #a9463b);
+ -moz-box-shadow: inset -1px 2px 0 rgba(255, 255, 255, 0.2), inset 0 1px 0 #ce5448;
+ -webkit-box-shadow: inset -1px 2px 0 rgba(255, 255, 255, 0.2), inset 0 1px 0 #ce5448;
+ box-shadow: inset -1px 2px 0 rgba(255, 255, 255, 0.2), inset 0 1px 0 #ce5448;
+ content: '';
+ height: 100%;
+ width: 6px;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+#cssmenu ul .has-sub > a {
+ padding-right: 0;
+}
+#cssmenu ul .has-sub > a:after {
+ content: '>';
+ border-left: 1px solid rgba(100, 100, 100, 0.2);
+ color: #5D6A7A;
+ -moz-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
+ -webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
+ box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
+ display: inline-block;
+ font-size: 9px;
+ margin-left: 5px;
+ text-align: center;
+ height: 25px;
+ /*width: 24px;*/
+ width: 16px;
+ text-shadow: 0 -1px 0 #101417;
+}
+#cssmenu ul .active > a:after {
+ color: #FFF;
+}
+#cssmenu ul ul a {
+ font-size: 12px;
+}
--- /dev/null
+<?php
+header("Location: ../index.php");
+?>
--- /dev/null
+<?php
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU General Public License, GPL,
+ as published by the Free Software Foundation, either version 3
+ of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
+// Author: Joe Hunt, 17/11/2015. Upgraded to release 2.4. 10/11/2015.
+
+ class renderer
+ {
+ function wa_get_apps($title, $applications, $sel_app)
+ {
+ foreach($applications as $app)
+ {
+ foreach ($app->modules as $module)
+ {
+ $apps = array();
+ foreach ($module->lappfunctions as $appfunction)
+ $apps[] = $appfunction;
+ foreach ($module->rappfunctions as $appfunction)
+ $apps[] = $appfunction;
+ $application = array();
+ foreach ($apps as $application)
+ {
+ $url = explode('?', $application->link);
+ $app_lnk = $url[0];
+ $pos = strrpos($app_lnk, "/");
+ if ($pos > 0)
+ {
+ $app_lnk = substr($app_lnk, $pos + 1);
+ $lnk = $_SERVER['REQUEST_URI'];
+ $url = explode('?', $lnk);
+ $asset = false;
+ if (isset($url[1]))
+ $asset = strstr($url[1], "FixedAsset");
+ $lnk = $url[0];
+ $pos = strrpos($lnk, "/");
+ $lnk = substr($lnk, $pos + 1);
+ if ($app_lnk == $lnk)
+ {
+ $acc = access_string($app->name);
+ $app_id = ($asset != false ? "assets" : $app->id);
+ return array($acc[0], $module->name, $application->label, $app_id);
+ }
+ }
+ }
+ }
+ }
+ return array("", "", "", $sel_app);
+ }
+
+ function wa_header()
+ {
+ page(_($help_context = "Main Menu"), false, true);
+ }
+
+ function wa_footer()
+ {
+ end_page(false, true);
+ }
+ function shortcut($url, $label)
+ {
+ echo "<li>";
+ echo menu_link($url, $label);
+ echo "</li>";
+ }
+ function menu_header($title, $no_menu, $is_index)
+ {
+ global $path_to_root, $SysPrefs, $version;
+
+ $sel_app = $_SESSION['sel_app'];
+ echo "<div class='fa-main'>\n";
+ if (!$no_menu)
+ {
+ $applications = $_SESSION['App']->applications;
+ $local_path_to_root = $path_to_root;
+ $pimg = "<img src='$local_path_to_root/themes/".user_theme()."/images/preferences.gif' width='14' height='14' border='0' alt='"._('Preferences')."'> ";
+ $limg = "<img src='$local_path_to_root/themes/".user_theme()."/images/lock.gif' width='14' height='14' border='0' alt='"._('Change Password')."'> ";
+ $img = "<img src='$local_path_to_root/themes/".user_theme()."/images/on_off.png' width='14' height='14' border='0' alt='"._('Logout')."'> ";
+ $himg = "<img src='$local_path_to_root/themes/".user_theme()."/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
+ echo "<div id='header'>\n";
+ echo "<ul>\n";
+ echo " <li><a href='$local_path_to_root/admin/display_prefs.php?'>$pimg" . _("Preferences") . "</a></li>\n";
+ echo " <li><a href='$local_path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>$limg" . _("Change password") . "</a></li>\n";
+ if ($SysPrefs->help_base_url != null)
+ echo " <li><a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='".
+ help_url()."'>$himg" . _("Help") . "</a></li>";
+ echo " <li><a href='$path_to_root/access/logout.php?'>$img" . _("Logout") . "</a></li>";
+ echo "</ul>\n";
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
+ echo "<h1>$SysPrefs->power_by $version<span style='padding-left:300px;'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></span></h1>\n";
+ echo "</div>\n"; // header
+
+ echo "<div id='cssmenu'>\n";
+ echo "<ul>\n";
+ $i = 0;
+ $account = $this->wa_get_apps($title, $applications, $sel_app);
+ foreach($applications as $app)
+ {
+ if ($_SESSION["wa_current_user"]->check_application_access($app))
+ {
+ $acc = access_string($app->name);
+ $class = ($account[3] == $app->id ? "active" : "");
+ $n = count($app->modules);
+ if ($n)
+ $class .= " has-sub";
+ $dashboard = "";
+ $u_agent = $_SERVER['HTTP_USER_AGENT'];
+ if (preg_match('/android/i', $u_agent) && preg_match('/mobile/i', $u_agent)) {
+ $link = "#'";
+ $dashboard = "$local_path_to_root/index.php?application=$app->id";
+ }
+ else
+ $link = "$local_path_to_root/index.php?application=$app->id '$acc[1]";
+ echo " <li class ='$class'><a href='$link><span>" . $acc[0] . "</span></a>\n";
+ if (!$n)
+ {
+ echo " </li>\n";
+ continue;
+ }
+ echo " <ul>\n";
+ if ($dashboard !="")
+ echo " <li><a href='$dashboard'><span><font color='red'>"._("Dashboard")."</font></span></a></li>\n";
+ foreach ($app->modules as $module)
+ {
+ if (!$_SESSION["wa_current_user"]->check_module_access($module))
+ continue;
+ echo " <li class='has-sub'><a href='#'><span>$module->name</span></a>\n";
+ $apps2 = array();
+ foreach ($module->lappfunctions as $appfunction)
+ $apps2[] = $appfunction;
+ foreach ($module->rappfunctions as $appfunction)
+ $apps2[] = $appfunction;
+ $application = array();
+ $n = count($apps2);
+ $class = "";
+ if ($i > 5)
+ $class = "class='align_right'";
+ if ($n)
+ echo " <ul $class>\n";
+ else
+ {
+ echo " </li>\n";
+ continue;
+ }
+ foreach ($apps2 as $application)
+ {
+ $lnk = access_string($application->label);
+ if ($_SESSION["wa_current_user"]->can_access_page($application->access))
+ {
+ if ($application->label != "")
+ {
+ echo " <li><a href='$path_to_root/$application->link'><span>$lnk[0]</span></a></li>\n";
+ }
+ }
+ elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items())
+ echo " <li><a href='#'><span><font color='gray'>$lnk[0]</font></span></a></li>\n";
+ }
+ if ($n)
+ echo " </ul>\n";
+ echo " </li>\n";
+ }
+ echo " </ul>\n"; // menu
+ }
+ echo" </li>\n";
+ $i++;
+ }
+ echo "</ul>\n";
+ echo "</div>\n"; // menu
+ }
+ echo "<div class='fa-body'>\n";
+ if ($no_menu)
+ echo "<br>";
+ elseif ($title && !$no_menu && !$is_index)
+ {
+ echo "<div class='fa-content'>\n";
+ echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
+ ."<td align=right>"
+ .(user_hints() ? "<span id='hints'></span>" : '')
+ ."</td>"
+ ."</tr></table></center>";
+ }
+ }
+
+ function menu_footer($no_menu, $is_index)
+ {
+ global $path_to_root, $SysPrefs, $version, $db_connections;
+ include_once($path_to_root . "/includes/date_functions.inc");
+
+ if (!$no_menu && !$is_index)
+ echo "</div>\n"; // fa-content
+ echo "</div>\n"; // fa-body
+ if (!$no_menu)
+ {
+ echo "<script type='text/javascript'>if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
+ {document.getElementById('cssmenu').style.position = 'fixed';}</script>\n";
+ echo "<div class='fa-footer'>\n";
+ if (isset($_SESSION['wa_current_user']))
+ {
+ echo "<span class='power'><a target='_blank' href='$SysPrefs->power_url'>$SysPrefs->power_by $version</a></span>\n";
+ echo "<span class='date'>".Today() . " " . 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
+ }
+
+ function display_applications(&$waapp)
+ {
+ global $path_to_root;
+
+ $sel = $waapp->get_selected_application();
+ meta_forward("$path_to_root/admin/dashboard.php", "sel_app=$sel->id");
+ end_page();
+ exit;
+ }
+ }
+