Permalink
Browse files

updating include paths, simplifying nav links, creating gitignore file

  • Loading branch information...
1 parent b968c73 commit e68d3c2192eae37384cee5645f86c9bc586ded29 @philipashlock committed Feb 5, 2012
Showing with 17 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +9 −2 pos/fannie/item/prodFunction.php
  3. +6 −2 pos/fannie/src/navbar.html
View
2 .gitignore
@@ -0,0 +1,2 @@
+/pos/fannie/src/mysql_connect.php
+/pos/fannie/define.php
View
11 pos/fannie/item/prodFunction.php
@@ -21,7 +21,10 @@
*********************************************************************************/
// TODO -- Add javascript for batcher product entry popup window ~joel 2007-08-21
-include_once('/pos/fannie/src/mysql_connect.php');
+//$script_directory = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
+$included_directory = substr(__FILE__, 0, strrpos(__FILE__, '/'));
+
+include_once("$included_directory/../src/mysql_connect.php");
function itemTemplate($upc) {
$resultItem = selectProduct($upc);
@@ -83,7 +86,10 @@ function selectSalesBatch($upc) {
function deptDropDowns() {
- require_once('/pos/fannie/src/chainedSelectors.php');
+
+ $included_directory = substr(__FILE__, 0, strrpos(__FILE__, '/'));
+ require_once("$included_directory/../src/chainedSelectors.php");
+
$selectorNames = array(
CS_FORM=>"pickSubDepartment",
@@ -185,6 +191,7 @@ function insertItem() {
if (itemRows($brandresult) == 0 && !is_null($_POST['brand'])) {
insertBrand($_POST['brand']);
}
+
$vendoresult = mysql_query(sprintf("select vendorid from vendors where lower(vendor) = lower('%s')",$_POST['vendor']));
if (itemRows($vendorresult) == 0 && !is_null($_POST['vendor'])) {
View
8 pos/fannie/src/navbar.html
@@ -14,11 +14,15 @@
<!-- ****** Infinite Menus Structure & Links ***** -->
<div class="imrcmain0 imgl" style="width:140px;z-index:999999;position:relative;"><div class="imcm imde" id="imouter0"><ul id="imenus0">
-<!-- <li style="width:100%;"><a href="../item/itemMaint.php" target=_blank><span class="imea imeam"><span></span></span>Item Maintenance</a>
+<!-- <li style="width:100%;"><a href="../item/itemMaint.php"
+
+><span class="imea imeam"><span></span></span>Item Maintenance</a>
<div class="imsc">
<div class="imsubc" style="width:155px;top:-28;left:135px;">
<ul style="">
- <li><a href="../item/itemMaint.php" target=_blank><span class="imea imeas"><span></span></span>Search &amp; Edit</a></li>
+ <li><a href="../item/itemMaint.php"
+
+><span class="imea imeas"><span></span></span>Search &amp; Edit</a></li>
<li><a href="../item/del/index.php"><span class="imea imeas"><span></span></span>Delete Items</a></li>
</ul>
</div>

0 comments on commit e68d3c2

Please sign in to comment.