! -> Note
$ -> Affected files
+28-Feb-2009 Joe Hunt
+! Improved layout in standard themes (graphics)
+$ /themes/aqua/renderer.php
+ /themes/aqua/help.gif (new file)
+ /themes/aqua/login.gif (new file)
+ /themes/aqua/right.gif (new file)
+ /themes/cool/renderer.php
+ /themes/cool/help.gif (new file)
+ /themes/cool/login.gif (new file)
+ /themes/cool/right.gif (new file)
+ /themes/default/renderer.php
+ /themes/default/help.gif (new file)
+ /themes/default/login.gif (new file)
+ /themes/default/right.gif (new file)
+ /themes/themes/login.css
+
27-Feb-2009 Janusz Dobrowolski
# Security fix to my last commit.
$ /frontaccounting.php
{
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
+ $img = "<img src='$local_path_to_root/themes/aqua/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
+ $himg = "<img src='$local_path_to_root/themes/aqua/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
echo "<div class=tabs>";
if ($help_base_url != null)
{
- echo "<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($title, $sel_app)."'>" . _("Help") . "</a> ";
}
- echo "<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></table>";
}
echo "</td></tr></table>";
function display_applications(&$waapp)
{
-
+ global $path_to_root;
+
$selected_app = $waapp->get_selected_application();
+ $img = "<img src='$path_to_root/themes/aqua/images/right.gif' style='vertical-align:middle;' width='17' height='17' border='0'> ";
foreach ($selected_app->modules as $module)
{
// image
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
}
}
echo "</td>";
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
- }
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
+ }
}
echo "</td>";
}
{
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
+ $img = "<img src='$local_path_to_root/themes/cool/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
+ $himg = "<img src='$local_path_to_root/themes/cool/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
echo "<div class=tabs>";
if ($help_base_url != null)
{
- echo "<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($title, $sel_app)."'>" . _("Help") . "</a> ";
}
- echo "<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></table>";
}
echo "</td></tr></table>";
function display_applications(&$waapp)
{
-
+ global $path_to_root;
$selected_app = $waapp->get_selected_application();
+ $img = "<img src='$path_to_root/themes/cool/images/right.gif' style='vertical-align:middle;' width='17' height='17' border='0'> ";
foreach ($selected_app->modules as $module)
{
// image
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
}
}
echo "</td>";
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
}
}
echo "</td>";
| | | login.css |
|---------------------------------------------------|
| For use with: |
-| OpenAccounting |
-| http://open-accounting.sourceforge.net/ |
-| by KylieTech Consulting |
+| FrontAccounting |
+| http://frontaccounting.net/ |
+| by FrontAccount, LLC |
|---------------------------------------------------|
| Developer: |
-| Shane Barnaby |
+| Joe Hunt |
| |
|---------------------------------------------------|
| Note: |
}
td.login {
- background: #dddddd;
+ border: 1px solid #ccc;
+ background-color: #eee;
}
\ No newline at end of file
{
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
+ $img = "<img src='$local_path_to_root/themes/default/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
+ $himg = "<img src='$local_path_to_root/themes/default/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
echo "<div class=tabs>";
if ($help_base_url != null)
{
- echo "<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($title, $sel_app)."'>" . _("Help") . "</a> ";
}
- echo "<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></table>";
}
echo "</td></tr></table>";
function display_applications(&$waapp)
{
+ global $path_to_root;
$selected_app = $waapp->get_selected_application();
+ $img = "<img src='$path_to_root/themes/default/images/right.gif' style='vertical-align:middle;' width='17' height='17' border='0'> ";
foreach ($selected_app->modules as $module)
{
// image
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
}
}
echo "</td>";
{
if ($_SESSION["wa_current_user"]->can_access_page($appfunction->access))
{
- $lnk = access_string($appfunction->label);
- echo "<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ if ($appfunction->label == "")
+ echo " <br>";
+ else
+ {
+ $lnk = access_string($appfunction->label);
+ echo "$img<a href='$appfunction->link'$lnk[1]>$lnk[0]</a><br>";
+ }
}
}
echo "</td>";