projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Payment terms were not retrieved on invoice edit start.
[fa-stable.git]
/
themes
/
default
/
renderer.php
diff --git
a/themes/default/renderer.php
b/themes/default/renderer.php
index 5233839d91e513e918ce128ecd60a0d1912eaa9f..5ba820da3ea10bf85c6bc2b50bc6d3e67a5bc1bc 100644
(file)
--- a/
themes/default/renderer.php
+++ b/
themes/default/renderer.php
@@
-14,7
+14,7
@@
function wa_header()
{
// add_js_ufile("themes/default/renderer.js");
function wa_header()
{
// add_js_ufile("themes/default/renderer.js");
- page(_("Main Menu"), false, true);
+ page(_(
$help_context =
"Main Menu"), false, true);
}
function wa_footer()
}
function wa_footer()
@@
-68,27
+68,30
@@
if ($help_base_url != null)
{
if ($help_base_url != null)
{
- echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url(
$title, $sel_app
)."'>" . _("Help") . "</a> ";
+ echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a> ";
}
echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
}
echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
+ echo "</td></tr><tr><td colspan=3>";
echo "</td></tr></table>";
}
echo "</td></tr></table>";
echo "</td></tr></table>";
}
echo "</td></tr></table>";
- if ($title && !$no_menu && !$is_index)
+ if ($no_menu)
+ echo "<br>";
+ elseif ($title && !$is_index)
{
{
- echo "<center><table
width='100%
'><tr><td width='100%' class='titletext'>$title</td>"
+ 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>";
}
."<td align=right>"
.(user_hints() ? "<span id='hints'></span>" : '')
."</td>"
."</tr></table></center>";
}
-
}
function menu_footer($no_menu, $is_index)
{
}
function menu_footer($no_menu, $is_index)
{
- global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root;
+ 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");
if ($no_menu == false)
include_once($path_to_root . "/includes/date_functions.inc");
if ($no_menu == false)
@@
-98,8
+101,12
@@
else
echo "<table class=bottomBar2>\n";
echo "<tr>";
else
echo "<table class=bottomBar2>\n";
echo "<tr>";
- if (isset($_SESSION['wa_current_user']))
+ if (isset($_SESSION['wa_current_user'])) {
+ $phelp = implode('; ', $Pagehelp);
echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
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 "</tr></table>\n";
}
echo "</td></tr></table></td>\n";
@@
-108,7
+115,7
@@
{
echo "<table align='center' id='footer'>\n";
echo "<tr>\n";
{
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() . "</font></a></td>\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";
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";
@@
-144,13
+151,18
@@
foreach ($module->lappfunctions as $appfunction)
{
foreach ($module->lappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
+ if ($appfunction->label == "")
+ echo " <br>";
+ elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
{
- if ($appfunction->label == "")
- echo " <br>";
- else
echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
}
echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
}
+ else
+ {
+ echo $img.'<span class="inactive">'
+ .access_string($appfunction->label, true)
+ ."</span><br>\n";
+ }
}
echo "</td>";
if (sizeof($module->rappfunctions) > 0)
}
echo "</td>";
if (sizeof($module->rappfunctions) > 0)
@@
-158,13
+170,18
@@
echo "<td width='50%' class='menu_group_items'>";
foreach ($module->rappfunctions as $appfunction)
{
echo "<td width='50%' class='menu_group_items'>";
foreach ($module->rappfunctions as $appfunction)
{
- if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
+ if ($appfunction->label == "")
+ echo " <br>";
+ elseif ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
{
- if ($appfunction->label == "")
- echo " <br>";
- else
echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
}
echo $img.menu_link($appfunction->link, $appfunction->label)."<br>\n";
}
+ else
+ {
+ echo $img.'<span class="inactive">'
+ .access_string($appfunction->label, true)
+ ."</span><br>\n";
+ }
}
echo "</td>";
}
}
echo "</td>";
}