Skip to content

Commit

Permalink
updating include paths, simplifying nav links, creating gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
philipashlock committed Feb 5, 2012
1 parent b968c73 commit e68d3c2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
/pos/fannie/src/mysql_connect.php
/pos/fannie/define.php
11 changes: 9 additions & 2 deletions pos/fannie/item/prodFunction.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
*********************************************************************************/ *********************************************************************************/
// TODO -- Add javascript for batcher product entry popup window ~joel 2007-08-21 // 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) { function itemTemplate($upc) {
$resultItem = selectProduct($upc); $resultItem = selectProduct($upc);
Expand Down Expand Up @@ -83,7 +86,10 @@ function selectSalesBatch($upc) {




function deptDropDowns() { 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( $selectorNames = array(
CS_FORM=>"pickSubDepartment", CS_FORM=>"pickSubDepartment",
Expand Down Expand Up @@ -185,6 +191,7 @@ function insertItem() {
if (itemRows($brandresult) == 0 && !is_null($_POST['brand'])) { if (itemRows($brandresult) == 0 && !is_null($_POST['brand'])) {
insertBrand($_POST['brand']); insertBrand($_POST['brand']);
} }

$vendoresult = mysql_query(sprintf("select vendorid from vendors where lower(vendor) = lower('%s')",$_POST['vendor'])); $vendoresult = mysql_query(sprintf("select vendorid from vendors where lower(vendor) = lower('%s')",$_POST['vendor']));
if (itemRows($vendorresult) == 0 && !is_null($_POST['vendor'])) { if (itemRows($vendorresult) == 0 && !is_null($_POST['vendor'])) {


Expand Down
8 changes: 6 additions & 2 deletions pos/fannie/src/navbar.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
<!-- ****** Infinite Menus Structure & Links ***** --> <!-- ****** 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"> <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="imsc">
<div class="imsubc" style="width:155px;top:-28;left:135px;"> <div class="imsubc" style="width:155px;top:-28;left:135px;">
<ul style=""> <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> <li><a href="../item/del/index.php"><span class="imea imeas"><span></span></span>Delete Items</a></li>
</ul> </ul>
</div> </div>
Expand Down

0 comments on commit e68d3c2

Please sign in to comment.