From: <tim...@us...> - 2012-01-19 10:57:06
|
Revision: 4810 http://web-erp.svn.sourceforge.net/web-erp/?rev=4810&view=rev Author: tim_schofield Date: 2012-01-19 10:56:55 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Merge Tims branch into trunk: Fix xhtml errors Modified Paths: -------------- trunk/ContractBOM.php Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-01-19 10:53:00 UTC (rev 4809) +++ trunk/ContractBOM.php 2012-01-19 10:56:55 UTC (rev 4810) @@ -165,9 +165,9 @@ $AlreadyOnThisBOM = 0; if (filter_number_format($_POST['Qty'.$i])>0){ if (count($_SESSION['Contract'.$identifier]->ContractBOM)!=0){ - + foreach ($_SESSION['Contract'.$identifier]->ContractBOM AS $Component) { - + /* do a loop round the items on the order to see that the item is not already on this order */ if ($Component->StockID == trim($_POST['StockID'.$i])) { @@ -176,9 +176,9 @@ } } /* end of the foreach loop to look for preexisting items of the same code */ } - + if ($AlreadyOnThisBOM!=1){ - + $sql = "SELECT stockmaster.description, stockmaster.stockid, stockmaster.units, @@ -186,13 +186,13 @@ stockmaster.materialcost+labourcost+overheadcost AS unitcost FROM stockmaster WHERE stockmaster.stockid = '". trim($_POST['StockID'.$i]) . "'"; - + $ErrMsg = _('The item details could not be retrieved'); $DbgMsg = _('The SQL used to retrieve the item details but failed was'); $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); - + if ($myrow = DB_fetch_array($result1)){ - + $_SESSION['Contract'.$identifier]->Add_To_ContractBOM (trim($_POST['StockID'.$i]), $myrow['description'], '', @@ -289,8 +289,9 @@ $ErrMsg = _('The supplier category details could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the category details but failed was'); $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . - _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . '</p>'; + echo '<p class="page_title_text"> + <img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . + '</p>'; echo '<table class="selection"> <tr></tr> <tr><td><select name="StockCat">'; @@ -363,7 +364,7 @@ } if (file_exists( $_SESSION['part_pics_dir'] . '/' . $myrow['stockid'] . '.jpg') ) { - $ImageSource = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=' . $myrow['stockid']. '&text=&width=50&height=50">'; + $ImageSource = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=' . $myrow['stockid']. '&text=&width=50&height=50" />'; } else { $ImageSource = '<i>'._('No Image').'</i>'; } @@ -382,7 +383,7 @@ } #end of page full new headings if } - + #end of while loop echo '</table> <input type="hidden" name="CountOfItems" value="'. $i . '" />'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2012-01-19 10:57:06
|
Revision: 4810 http://web-erp.svn.sourceforge.net/web-erp/?rev=4810&view=rev Author: tim_schofield Date: 2012-01-19 10:56:55 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Merge Tims branch into trunk: Fix xhtml errors Modified Paths: -------------- trunk/ContractBOM.php Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-01-19 10:53:00 UTC (rev 4809) +++ trunk/ContractBOM.php 2012-01-19 10:56:55 UTC (rev 4810) @@ -165,9 +165,9 @@ $AlreadyOnThisBOM = 0; if (filter_number_format($_POST['Qty'.$i])>0){ if (count($_SESSION['Contract'.$identifier]->ContractBOM)!=0){ - + foreach ($_SESSION['Contract'.$identifier]->ContractBOM AS $Component) { - + /* do a loop round the items on the order to see that the item is not already on this order */ if ($Component->StockID == trim($_POST['StockID'.$i])) { @@ -176,9 +176,9 @@ } } /* end of the foreach loop to look for preexisting items of the same code */ } - + if ($AlreadyOnThisBOM!=1){ - + $sql = "SELECT stockmaster.description, stockmaster.stockid, stockmaster.units, @@ -186,13 +186,13 @@ stockmaster.materialcost+labourcost+overheadcost AS unitcost FROM stockmaster WHERE stockmaster.stockid = '". trim($_POST['StockID'.$i]) . "'"; - + $ErrMsg = _('The item details could not be retrieved'); $DbgMsg = _('The SQL used to retrieve the item details but failed was'); $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); - + if ($myrow = DB_fetch_array($result1)){ - + $_SESSION['Contract'.$identifier]->Add_To_ContractBOM (trim($_POST['StockID'.$i]), $myrow['description'], '', @@ -289,8 +289,9 @@ $ErrMsg = _('The supplier category details could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the category details but failed was'); $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . - _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . '</p>'; + echo '<p class="page_title_text"> + <img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . + '</p>'; echo '<table class="selection"> <tr></tr> <tr><td><select name="StockCat">'; @@ -363,7 +364,7 @@ } if (file_exists( $_SESSION['part_pics_dir'] . '/' . $myrow['stockid'] . '.jpg') ) { - $ImageSource = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=' . $myrow['stockid']. '&text=&width=50&height=50">'; + $ImageSource = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=' . $myrow['stockid']. '&text=&width=50&height=50" />'; } else { $ImageSource = '<i>'._('No Image').'</i>'; } @@ -382,7 +383,7 @@ } #end of page full new headings if } - + #end of while loop echo '</table> <input type="hidden" name="CountOfItems" value="'. $i . '" />'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |