Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updating include paths, simplifying nav links, creating gitignore file

  • Loading branch information...
commit e68d3c2192eae37384cee5645f86c9bc586ded29 1 parent b968c73
Philip Ashlock authored February 05, 2012
2  .gitignore
... ...
@@ -0,0 +1,2 @@
  1
+/pos/fannie/src/mysql_connect.php
  2
+/pos/fannie/define.php
11  pos/fannie/item/prodFunction.php
@@ -21,7 +21,10 @@
21 21
 *********************************************************************************/
22 22
 //	TODO -- Add javascript for batcher product entry popup window		~joel 2007-08-21
23 23
 
24  
-include_once('/pos/fannie/src/mysql_connect.php');
  24
+//$script_directory = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
  25
+$included_directory = substr(__FILE__, 0, strrpos(__FILE__, '/'));
  26
+
  27
+include_once("$included_directory/../src/mysql_connect.php");
25 28
 
26 29
 function itemTemplate($upc) {
27 30
 	$resultItem = selectProduct($upc);
@@ -83,7 +86,10 @@ function selectSalesBatch($upc) {
83 86
 
84 87
 
85 88
 function deptDropDowns() {
86  
-			require_once('/pos/fannie/src/chainedSelectors.php');
  89
+	
  90
+			$included_directory = substr(__FILE__, 0, strrpos(__FILE__, '/'));		
  91
+			require_once("$included_directory/../src/chainedSelectors.php");
  92
+
87 93
 
88 94
 			$selectorNames = array(
89 95
 				CS_FORM=>"pickSubDepartment", 
@@ -185,6 +191,7 @@ function insertItem() {
185 191
 if (itemRows($brandresult) == 0 && !is_null($_POST['brand'])) {
186 192
 						                                insertBrand($_POST['brand']);
187 193
 }
  194
+
188 195
 $vendoresult = mysql_query(sprintf("select vendorid from vendors where lower(vendor) = lower('%s')",$_POST['vendor']));
189 196
 if (itemRows($vendorresult) == 0 && !is_null($_POST['vendor'])) {
190 197
 
8  pos/fannie/src/navbar.html
@@ -14,11 +14,15 @@
14 14
 <!--  ****** Infinite Menus Structure & Links ***** -->
15 15
 <div class="imrcmain0 imgl" style="width:140px;z-index:999999;position:relative;"><div class="imcm imde" id="imouter0"><ul id="imenus0">
16 16
 
17  
-<!-- <li style="width:100%;"><a href="../item/itemMaint.php" target=_blank><span class="imea imeam"><span></span></span>Item Maintenance</a>
  17
+<!-- <li style="width:100%;"><a href="../item/itemMaint.php"
  18
+
  19
+><span class="imea imeam"><span></span></span>Item Maintenance</a>
18 20
 	<div class="imsc">
19 21
 		<div class="imsubc" style="width:155px;top:-28;left:135px;">
20 22
 			<ul style="">
21  
-				<li><a href="../item/itemMaint.php" target=_blank><span class="imea imeas"><span></span></span>Search &amp; Edit</a></li>
  23
+				<li><a href="../item/itemMaint.php"
  24
+
  25
+><span class="imea imeas"><span></span></span>Search &amp; Edit</a></li>
22 26
 				<li><a href="../item/del/index.php"><span class="imea imeas"><span></span></span>Delete Items</a></li>
23 27
 			</ul>
24 28
 		</div>

0 notes on commit e68d3c2

Please sign in to comment.
Something went wrong with that request. Please try again.