27-Dec-2010 Joe Hunt
! Prepared for category icons in applications/application.php for themes
-$ /applications/application.php
+ To activate, set $show_menu_category_icons = 1, in config.php
+$ /config.default.php
+ /applications/application.php
/applications/customers.php
/applications/dimensions.php
/applications/generalledger.php
/applications/manufacturing.php
/applications/setup.php
/applications/supplier.php
- /themes/aqua/renderer.php (commented member for the future)
- /themes/cool/renderer.php (commented member for the future)
- /themes/default/renderer.php (commented member for the future)
+ /themes/aqua/renderer.php
+ /themes/aqua/images/menu_entry.png (new file)
+ /themes/aqua/images/menu_inquiry.png (new file)
+ /themes/aqua/images/menu_maintenance.png (new file)
+ /themes/aqua/images/menu_report.png (new file)
+ /themes/aqua/images/menu_settings.png (new file)
+ /themes/aqua/images/menu_system.png (new file)
+ /themes/aqua/images/menu_transaction.png (new file)
+ /themes/aqua/images/menu_update.png (new file)
+ /themes/cool/renderer.php
+ /themes/cool/images/menu_entry.png (new file)
+ /themes/cool/images/menu_inquiry.png (new file)
+ /themes/cool/images/menu_maintenance.png (new file)
+ /themes/cool/images/menu_report.png (new file)
+ /themes/cool/images/menu_settings.png (new file)
+ /themes/cool/images/menu_system.png (new file)
+ /themes/cool/images/menu_transaction.png (new file)
+ /themes/cool/images/menu_update.png (new file)
+ /themes/default/renderer.php
+ /themes/default/images/menu_entry.png (new file)
+ /themes/default/images/menu_inquiry.png (new file)
+ /themes/default/images/menu_maintenance.png (new file)
+ /themes/default/images/menu_report.png (new file)
+ /themes/default/images/menu_settings.png (new file)
+ /themes/default/images/menu_system.png (new file)
+ /themes/default/images/menu_transaction.png (new file)
+ /themes/default/images/menu_update.png (new file)
27-Dec-2010 Janusz Dobrowolski
+ Option for allowing negative prices for dummy/service items [0000343]
$config_allocation_settled_allowance = 0.005;
- /* Alow negative prices for dummy/service items. To be moved to GL db settings */
+ /* Allow negative prices for dummy/service items. To be moved to GL db settings */
$allow_negative_prices = 1;
+ /* Show menu category icons in core themes */
+ $show_menu_category_icons = 0;
+
// Internal configurable variables
//-----------------------------------------------------------------------------------
{
function get_icon($category)
{
- global $path_to_root;
-
- // uncomment this line if you want to use the pre-defined categories.
- //$img = $category == '' ? 'right.gif' : $category.'.png';
- $img = 'right.gif';
+ global $path_to_root, $show_menu_category_icons;
+;
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
return "<img src='$path_to_root/themes/cool/images/$img' style='vertical-align:middle;' border='0'> ";
}
{
function get_icon($category)
{
- global $path_to_root;
-
- // uncomment this line if you want to use the pre-defined categories.
- //$img = $category == '' ? 'right.gif' : $category.'.png';
- $img = 'right.gif';
+ global $path_to_root, $show_menu_category_icons;
+;
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
return "<img src='$path_to_root/themes/cool/images/$img' style='vertical-align:middle;' border='0'> ";
}
{
function get_icon($category)
{
- global $path_to_root;
-
- // uncomment this line if you want to use the pre-defined categories.
- //$img = $category == '' ? 'right.gif' : $category.'.png';
- $img = 'right.gif';
+ global $path_to_root, $show_menu_category_icons;
+;
+ if ($show_menu_category_icons)
+ $img = $category == '' ? 'right.gif' : $category.'.png';
+ else
+ $img = 'right.gif';
return "<img src='$path_to_root/themes/cool/images/$img' style='vertical-align:middle;' border='0'> ";
}