Preparing for Graphic Links final.Optimized.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 22 Nov 2008 10:42:08 +0000 (10:42 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 22 Nov 2008 10:42:08 +0000 (10:42 +0000)
21 files changed:
CHANGELOG.txt
admin/create_coy.php
admin/inst_lang.php
admin/inst_module.php
config.php
dimensions/inquiry/search_dimensions.php
includes/ui/db_pager_view.inc
includes/ui/ui_controls.inc
includes/ui/ui_view.inc
lang/installed_languages.inc
manufacturing/search_work_orders.php
purchasing/allocations/supplier_allocation_main.php
purchasing/inquiry/po_search.php
purchasing/inquiry/po_search_completed.php
purchasing/inquiry/supplier_allocation_inquiry.php
reporting/includes/reporting.inc
sales/allocations/customer_allocation_main.php
sales/inquiry/customer_allocation_inquiry.php
sales/inquiry/customer_inquiry.php
sales/inquiry/sales_deliveries_view.php
sales/inquiry/sales_orders_view.php

index 2f466e1e2faa768f15b26cfc15a69e64a656ce86..f98177f1ad943952e788d7c7ece8754ca74a093a 100644 (file)
@@ -19,6 +19,32 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+22-Nov-2008 Joe Hunt
++ Preparing for Graphic Links final.Optimized.
+$ config.php
+  /admin/create_coy.php
+  /admin/inst_lang.php
+  /admin/inst_module.php
+  /dimensions/inquiry/search_dimensions.php
+  /includes/ui/ui_controls.inc
+  /includes/ui/ui_view.inc
+  /includes/db_pager_view.inc
+  /manufacturing/search_work_orders.php
+  /purchasing/inquiry/po_search.php
+  /purchasing/inquiry/po_search_completed.php
+  /purchasing/inquiry/supplier_allocation_inquiry.php
+  /purchasing/allocations/supplier_allocation_main.php
+  /reporting/includes/reporting.inc
+  /sales/allocations/customer_allocation_main.php
+  /sales/inquiry/customer_allocation_inquiry.php
+  /sales/inquiry/customer_inquiry.php
+  /sales/inquiry/sales_orders_view.php
+  /sales/inquiry/sales_deliveries_view.php
+  /themes/default/images/receive.gif (new file)
+  /themes/aquat/images/receive.gif (new file)
+  /themes/cool/images/receive.gif (new file)
+  
+  
 21-Nov-2008 Joe Hunt
 + Preparing for Graphic Links instead of Text Links (user display option, default)
   (new field in 0_users, graphic_links)
index cdcb971ec698b6a5b1fb48630b185cf281a9d52d..dc420a16a3d5eaee2ad3e2bd5778f802818e9c26 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -249,9 +249,8 @@ function display_companies()
                $delete = _("Delete");
                if (user_graphic_links())
                {
-                       global $path_to_root;
-                       $edit = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_EDIT."' width='14' height='14' border='0' title='$edit' />\n";
-                       $delete = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_DELETE."' width='14' height='14' border='0' title='$delete' />\n";
+                       $edit = set_icon(ICON_EDIT, $edit);
+                       $delete = set_icon(ICON_DELETE, $delete);
                }
        label_cell("<a href='" . $_SERVER['PHP_SELF']. "?selected_id=$i'>$edit</a>");
                label_cell( $i == $coyno ? '' :
index 4233418ff12c0b475ed6a674f4aea7eb8decd5e3..aa259f92ecc7785dcae40aec1aae54dd927346ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -278,9 +278,8 @@ function display_languages()
                $delete = _("Delete");
                if (user_graphic_links())
                {
-                       global $path_to_root;
-                       $edit = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_EDIT."' width='14' height='14' border='0' title='$edit' />\n";
-                       $delete = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_DELETE."' width='14' height='14' border='0' title='$delete' />\n";
+                       $edit = set_icon(ICON_EDIT, $edit);
+                       $delete = set_icon(ICON_DELETE, $delete);
                }
        label_cell("<a href='" . $_SERVER['PHP_SELF']. "?selected_id=$i'>$edit</a>");
                label_cell($conn[$i]['code'] == $lang ? '' :
index 4b50573431dbde46363743ce08980ab1c6ef4751..f3c5ec63f9947b6cc2e7eb4015639a02283bc356 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -292,9 +292,8 @@ function display_modules()
                $delete = _("Delete");
                if (user_graphic_links())
                {
-                       global $path_to_root;
-                       $edit = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_EDIT."' width='14' height='14' border='0' title='$edit' />\n";
-                       $delete = "<img src='$path_to_root/themes/".user_theme()."/images/".ICON_DELETE."' width='14' height='14' border='0' title='$delete' />\n";
+                       $edit = set_icon(ICON_EDIT, $edit);
+                       $delete = set_icon(ICON_DELETE, $delete);
                }
        label_cell("<a href='" . $_SERVER['PHP_SELF']. "?selected_id=$i'>$edit</a>");
                label_cell("<a href='javascript:deleteModule(".$i.", \"" . $mods[$i]['name'] . "\")'>$delete</a>");
index 29d13bc4b5e1aeed1aa4cb7a57f452600eb49de5..b44956fd409263da6025e391b82162fc0a959615 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -190,6 +190,7 @@ if (!defined('ICON_EDIT'))
        define("ICON_PDF", "pdf.gif");  
        define("ICON_DOC", "invoice.gif");      
        define("ICON_CREDIT", "credit.gif");    
+       define("ICON_RECEIVE", "receive.gif");  
        define("ICON_DOWN", "download.gif");    
        define("ICON_MONEY", "money.png");      
        define("ICON_REMOVE", "remove.png");    
index ceb7c4e0eab7e62668b9d9256480f28b039f13c6..480e7094281db68ad193e1d823f5b155d525d33b 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
 
@@ -116,7 +125,7 @@ function edit_link($row)
 {
        return $row["closed"] ?  '' :
                pager_link(_("Edit"),
-                       "/dimensions/dimension_entry.php?trans_no=" . $row["id"]);
+                       "/dimensions/dimension_entry.php?trans_no=" . $row["id"], ICON_EDIT);
 }
 
 $sql = "SELECT dim.id,
index d44902417dcc99e3910def8b7e4a131229b96bfa..f4824fb173cbba683b5918db0a2972193d94ddf5 100644 (file)
@@ -1,10 +1,22 @@
 <?php
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 //--------------------------------------------------------------------------------------------------
-function pager_link($link_text, $url)
+function pager_link($link_text, $url, $icon=false)
 {
        global $path_to_root;
        
        $link = access_string($link_text);
+       if (user_graphic_links() && $icon)
+               $link[0] = set_icon($icon, $link[0]);
 
        $href = $path_to_root . $url;
        return "<a href='$href'$link[1]>" . $link[0] . "</a>";
index 4fbdb984b4b8ffaf3eb72d265f6e103cedccc15e..46744ae8974b14e38dad7da4c502a6fdf5c624a2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -187,24 +187,29 @@ function table_header($labels)
 
 //-----------------------------------------------------------------------------------
 
+function set_icon($icon, $title)
+{
+       global $path_to_root;
+       return "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$title' />\n";   
+}
+
 function button($name, $value, $title=false, $icon=false)
 {
        // php silently changes dots,spaces,'[' and characters 128-159
        // to underscore in POST names, to maintain compatibility with register_globals
        if (user_graphic_links() && $icon)
        {
-               global $path_to_root;
+               if ($value == _("Delete")) // Helper during implementation
+                       $icon = ICON_DELETE;
                echo "<button type='submit' class='editbutton' name='".
                        htmlentities(strtr($name, array('.'=>'=2E',' '=>'=20','='=>'=3D','['=>'=5B'))).
-                       "' value='' /><img src='$path_to_root/themes/".user_theme().
-                       "/images/$icon' width='14' height='14' border='0' ".($title ? "title='$title'" : "title='$value'")." />\n";
+                       "' value='' />".set_icon($icon, ($title ? $title: $value))."\n";
        }
        else
                echo "<input type='submit' class='editbutton' name='"
                        .htmlentities(strtr($name, array('.'=>'=2E',' '=>'=20','='=>'=3D','['=>'=5B')))
                        ."' value='$value'"
                        .($title ? " title='$title'":'')." />\n";
-       
 }
 
 function button_cell($name, $value, $title=false, $icon=false)
index b5c98534603071b2ee663969f9129f1deb7765d4..2be9bbd1a2453ca21acddc07d283d318eefd8402 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -39,7 +39,7 @@ function get_supplier_trans_view_str($type, $trans_no, $label="", $icon=false)
        {
                $pars = access_string($label);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str = "<a target='_blank' href='$path_to_root/purchasing/view/$viewer?trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
        }
        else
@@ -65,7 +65,7 @@ function get_gl_view_str($type, $trans_no, $label="", $force=false)
        }       
        $pars = access_string($label);
        if (user_graphic_links() && $icon)
-               $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+               $pars[0] = set_icon($icon, $pars[0]);
        $gl_view = "<a target='_blank' href='$path_to_root/gl/view/gl_trans_view.php?type_id=$type&trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
 
        return $gl_view;
@@ -114,7 +114,7 @@ function get_customer_trans_view_str($type, $trans_no, $label="", $icon=false)
        {
                $pars = access_string($lbl);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str .= "<a target='_blank' href='$path_to_root/sales/view/$viewer?trans_no=$trans' onclick=\"javascript:openWindow(this.href,this.target); return false;\" $pars[1]>$pars[0]</a>";
        }
        else
@@ -150,7 +150,7 @@ function get_banking_trans_view_str($type, $trans_no, $label="", $icon=false)
        {
                $pars = access_string($label);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str = "<a target='_blank' href='$path_to_root/gl/view/$viewer?trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
        }
        else
@@ -181,7 +181,7 @@ function get_inventory_trans_view_str($type, $trans_no, $label="", $icon=false)
        {
                $pars = access_string($label);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str = "<a target='_blank' href='$path_to_root/inventory/view/$viewer?trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
        }
        else
@@ -214,7 +214,7 @@ function get_manufacturing_trans_view_str($type, $trans_no, $label="", $icon=fal
        {
                $pars = access_string($label);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str = "<a target='_blank' href='$path_to_root/manufacturing/view/$viewer?trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
        }
        else
@@ -243,7 +243,7 @@ function get_dimensions_trans_view_str($type, $trans_no, $label="", $icon=false)
        {
                $pars = access_string($label);
                if (user_graphic_links() && $icon)
-                       $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+                       $pars[0] = set_icon($icon, $pars[0]);
                $preview_str = "<a target='_blank' href='$path_to_root/dimensions/view/$viewer?trans_no=$trans_no' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";
        }
        else
index 2d8a8015daae5c6cbb2f2678145c3ef169619c2d..5be1f689e50b238065bb8bc50b3ab3d492aa8964 100644 (file)
@@ -12,6 +12,6 @@
 
 $installed_languages = array (
        0 => array ('code' => 'en_GB', 'name' => 'English', 'encoding' => 'iso-8859-1'),
-               array ('code' => 'en_US', 'name' => 'English (US)', 'encoding' => 'iso-8859-1')
+               array ('code' => 'en_US', 'name' => 'English (US)', 'encoding' => 'iso-8859-1'),
        );
 ?>
\ No newline at end of file
index cff20c0500862255abac865f001055fd85a4e12b..94100133d0521844a53f6102310ebdc7872ea2cb 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -98,7 +107,7 @@ function edit_link($row)
 {
        return  $row['closed'] ? '<i>'._('Closed').'</i>' :
                pager_link(_("Edit"),
-                       "/manufacturing/work_order_entry.php?trans_no=" . $row["id"]);
+                       "/manufacturing/work_order_entry.php?trans_no=" . $row["id"], ICON_EDIT);
 }
 
 function release_link($row)
index b52f9ada86018edd000c88dc19f89e14790dc8bd..69be12080bf6e6ce0d782f699b22879366db9c07 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $path_to_root="../..";
 $page_security = 3;
 include($path_to_root . "/includes/db_pager.inc");
@@ -74,7 +83,7 @@ function alloc_link($row)
 {
        return pager_link(_("Allocate"),
                "/purchasing/allocations/supplier_allocate.php?trans_no="
-                       .$row["trans_no"] . "&trans_type=" . $row["type"] );
+                       .$row["trans_no"] . "&trans_type=" . $row["type"], ICON_MONEY );
 }
 
 function amount_left($row)
index 753fe2ff0f4ebabbd7c6742c3540fc7333d70126..659726fedd1776e24b5aa09358c5dc71beb5d222 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -73,19 +82,19 @@ function edit_link($row)
 {
   return pager_link( _("Edit"),
        "/purchasing/po_entry_items.php?" . SID 
-       . "ModifyOrderNumber=" . $row["order_no"]);
+       . "ModifyOrderNumber=" . $row["order_no"], ICON_EDIT);
 }
 
 function prt_link($row)
 {
-       return print_document_link($row['order_no'], _("Print"), true, 18);
+       return print_document_link($row['order_no'], _("Print"), true, 18, ICON_PRINT);
 }
 
 function receive_link($row) 
 {
   return pager_link( _("Receive"),
        "/purchasing/po_receive_items.php?" . SID 
-       . "PONumber=" . $row["order_no"]);
+       . "PONumber=" . $row["order_no"], ICON_RECEIVE);
 }
 
 function check_overdue($row)
index 56945c6bc8ea37aee139e5bd4aec78d8f8b814e2..cacc3baee41b5fa5d9bdb64a2474b7f003e0a429 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -85,7 +94,7 @@ function trans_view($trans)
 
 function prt_link($row)
 {
-       return print_document_link($row['order_no'], _("Print"), true, 18);
+       return print_document_link($row['order_no'], _("Print"), true, 18, ICON_PRINT);
 }
 
 //---------------------------------------------------------------------------------------------
index ee78a35271f1c4017e39aecd8df1730940c7aa94..f03205467b6c99d5807a6d3d02e533e13aa75f5e 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security=2;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -88,7 +97,7 @@ function alloc_link($row)
        $link = 
        pager_link(_("Allocations"),
                "/purchasing/allocations/supplier_allocate.php?trans_no=" .
-                       $row["trans_no"]. "&trans_type=" . $row["type"] );
+                       $row["trans_no"]. "&trans_type=" . $row["type"], ICON_MONEY );
 
        return (($row["type"] == 1 || $row["type"] == 21 || $row["type"] == 22) 
                && (-$row["TotalAmount"] - $row["Allocated"]) > 0)
index d134c800890649a85768c3db5358850da8f52723..e514d769244c531b3eaad204b4d07c290fd0f098 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**********************************************************************
-    Copyright (C) 2005-2008  FrontAccounting, LLC.
+    Copyright (C) FrontAccounting, LLC.
        Released under the terms of the GNU Affero General Public License,
        AGPL, as published by the Free Software Foundation, either version 
        3 of the License, or (at your option) any later version.
@@ -91,7 +91,7 @@ function print_link($link_text, $rep, $pars = array(), $dir = '', $icon=false)
        $class = $pdf_debug ? '' : "class='printlink'";
        $pars = access_string($link_text);
        if (user_graphic_links() && $icon)
-               $pars[0] = "<img src='$path_to_root/themes/".user_theme()."/images/$icon' width='14' height='14' border='0' title='$pars[0]' />\n";
+               $pars[0] = set_icon($icon, $pars[0]);
        return "<a $class target='_blank' href='$url'$pars[1]>$pars[0]</a>";
 }
 
index 4ba875bd9524161fa9ab081e0223281a28cbe007..c3c3c3af8af9fa3518ebc0af09979f533100d1ca 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $path_to_root="../..";
 $page_security = 3;
 include($path_to_root . "/includes/db_pager.inc");
@@ -74,8 +83,7 @@ function alloc_link($row)
 {
        return pager_link(_("Allocate"),
                "/sales/allocations/customer_allocate.php?trans_no="
-                       .$row["trans_no"] . "&trans_type=" . $row["type"]               
-       );
+                       .$row["trans_no"] . "&trans_type=" . $row["type"], ICON_MONEY);
 }
 
 function amount_left($row)
index dde0a8a535e9fc77d1b1dcfece5a25946ecfa104..4e4a341c58168996889e76e061d213f55510b62b 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 1;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -85,7 +94,7 @@ function alloc_link($row)
        $link = 
        pager_link(_("Allocation"),
                "/sales/allocations/customer_allocate.php?trans_no=" . $row["trans_no"] 
-               ."&trans_type=" . $row["type"]);
+               ."&trans_type=" . $row["type"], ICON_MONEY);
 
        if ($row["type"] == 11 && $row['TotalAmount'] > 0)
        {
index 52b82ef92f54cb43eee991548a366a9ff039dbca..b8e555bbc3389464550f2f4ab8bb81eee990b208 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 1;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -149,7 +158,7 @@ function credit_link($row)
        return $row['type'] == 10 ?
                pager_link(_("Credit This"),
                        "/sales/customer_credit_invoice.php?InvoiceNumber=".
-                       $row['trans_no'])
+                       $row['trans_no'], ICON_CREDIT)
                        : '';
 }
 
@@ -171,13 +180,13 @@ function edit_link($row)
                $str = "/sales/customer_delivery.php?ModifyDelivery=".$row['trans_no'];
                break;
        }
-       return pager_link(_('Edit'), $str);
+       return pager_link(_('Edit'), $str, ICON_EDIT);
 }
 
 function prt_link($row)
 {
        if ($row['type'] != 12) // customer payment printout not defined yet.
-               return print_document_link($row['trans_no'], _("Print"), true, $row['type']);
+               return print_document_link($row['trans_no'], _("Print"), true, $row['type'], ICON_PRINT);
 }
 
 function check_overdue($row)
index d55bc0812ded960e883b6839e2f60d71570d801a..c1dc48f8e859939109a13b160738c4100611ea44 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
@@ -139,19 +148,19 @@ function edit_link($row)
 {
        return $row["Outstanding"]==0 ? '' :
                pager_link(_('Edit'), "/sales/customer_delivery.php?ModifyDelivery="
-                       .$row['trans_no']);
+                       .$row['trans_no'], ICON_EDIT);
 }
 
 function prt_link($row)
 {
-       return print_document_link($row['trans_no'], _("Print"), true, 13);
+       return print_document_link($row['trans_no'], _("Print"), true, 13, ICON_PRINT);
 }
 
 function invoice_link($row)
 {
        return $row["Outstanding"]==0 ? '' :
                pager_link(_('Invoice'), "/sales/customer_invoice.php?DeliveryNumber=" 
-                       .$row['trans_no']);
+                       .$row['trans_no'], ICON_DOC);
 }
 
 function check_overdue($row)
index aba6a1cf7703bd51578c1d72e9c910a12dad8111..b174688deba3d91dbb64b41af46f7a2f4abfc9b6 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
 
@@ -76,31 +85,31 @@ function view_link($dummy, $order_no)
 
 function prt_link($row)
 {
-       return print_document_link($row['order_no'], _("Print"), true, 30);
+       return print_document_link($row['order_no'], _("Print"), true, 30, ICON_PRINT);
 }
 
 function edit_link($row) 
 {
   return pager_link( _("Edit"),
-    "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $row['order_no']);
+    "/sales/sales_order_entry.php?" . SID . "ModifyOrderNumber=" . $row['order_no'], ICON_EDIT);
 }
 
 function dispatch_link($row)
 {
   return pager_link( _("Dispatch"),
-       "/sales/customer_delivery.php?" . SID . "OrderNumber=" .$row['order_no']);
+       "/sales/customer_delivery.php?" . SID . "OrderNumber=" .$row['order_no'], ICON_DOC);
 }
 
 function invoice_link($row)
 {
   return pager_link( _("Invoice"),
-       "/sales/sales_order_entry.php?" . SID . "NewInvoice=" .$row["order_no"]);
+       "/sales/sales_order_entry.php?" . SID . "NewInvoice=" .$row["order_no"], ICON_DOC);
 }
 
 function delivery_link($row)
 {
   return pager_link( _("Delivery"),
-       "/sales/sales_order_entry.php?" . SID . "NewDelivery=" .$row['order_no']);
+       "/sales/sales_order_entry.php?" . SID . "NewDelivery=" .$row['order_no'], ICON_DOC);
 }
 
 function tmpl_checkbox($row)