[Weberp-svn] SF.net SVN: weberp:[5413] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-06-15 11:55:51
|
Revision: 5413 http://weberp.svn.sourceforge.net/weberp/?rev=5413&view=rev Author: tim_schofield Date: 2011-06-15 11:55:40 +0000 (Wed, 15 Jun 2011) Log Message: ----------- Ensure that all <option> tags have a </option> tag Modified Paths: -------------- trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/BOMIndentedReverse.php trunk/BankMatching.php trunk/ConfirmDispatch_Invoice.php trunk/CustEDISetup.php trunk/CustomerTransInquiry.php trunk/DailyBankTransactions.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/FixedAssetTransfer.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLTagProfit_Loss.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/Locations.php trunk/MRPCreateDemands.php trunk/MRPPlannedPurchaseOrders.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/PDFChequeListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFOrderStatus.php trunk/PDFPriceList.php trunk/POReport.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/Payments.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/SalesAnalReptCols.php trunk/SalesCategories.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockQuantityByDate.php trunk/StockTransfers.php trunk/Stocks.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SupplierTenders.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxGroups.php trunk/TopItems.php trunk/WorkOrderReceive.php trunk/Z_CheckDebtorsControl.php trunk/Z_DataExport.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/build/check_closing_tags.sh Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/AgedDebtors.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -513,8 +513,8 @@ echo '<tr><td>' . _('Summary or detailed report') . ':' . '</td> <td><select tabindex="6" name="DetailedReport">'; - echo '<option selected value="No">' . _('Summary Report'); - echo '<option value="Yes">' . _('Detailed Report'); + echo '<option selected value="No">' . _('Summary Report') . '</option>'; + echo '<option value="Yes">' . _('Detailed Report') . '</option>'; echo '</select></td></tr>'; echo '</table><br /><div class="centre"><input tabindex="7" type=submit name="PrintPDF" value="' . _('Print PDF') , '"></div>'; Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/AgedSuppliers.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -292,8 +292,8 @@ echo '<tr><td>' . _('All balances or overdues only') . ':' . "</td> <td><select tabindex='3' name='All_Or_Overdues'>"; - echo "<option selected value='All'>" . _('All suppliers with balances'); - echo "<option value='OverduesOnly'>" . _('Overdue accounts only'); + echo "<option selected value='All'>" . _('All suppliers with balances') . '</option>'; + echo "<option value='OverduesOnly'>" . _('Overdue accounts only') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('For suppliers trading in') . ':' . "</td> @@ -304,17 +304,17 @@ while ($myrow=DB_fetch_array($result)){ if ($myrow['currabrev'] == $_SESSION['CompanyRecord']['currencydefault']){ - echo "<option selected value='" . $myrow["currabrev"] . "'>" . $myrow['currency']; + echo "<option selected value='" . $myrow["currabrev"] . "'>" . $myrow['currency'] . '</option>'; } else { - echo "<option value='" . $myrow['currabrev'] . "'>" . $myrow['currency']; + echo "<option value='" . $myrow['currabrev'] . "'>" . $myrow['currency'] . '</option>'; } } echo '</select></td></tr>'; echo '<tr><td>' . _('Summary or Detailed Report') . ':' . "</td> <td><select tabindex='5' name='DetailedReport'>"; - echo "<option selected value='No'>" . _('Summary Report'); - echo "<option value='Yes'>" . _('Detailed Report'); + echo "<option selected value='No'>" . _('Summary Report') . '</option>'; + echo "<option value='Yes'>" . _('Detailed Report') . '</option>'; echo '</select></td></tr>'; echo '</table><br /><div class="centre"><input tabindex="6" type=submit name="PrintPDF" value="' . _('Print PDF') . '"></div>'; @@ -322,4 +322,4 @@ include('includes/footer.inc'); } /*end of else not PrintPDF */ -?> +?> \ No newline at end of file Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/BOMIndentedReverse.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -252,8 +252,8 @@ echo '<tr><td>' . _('Part') . ":</td>"; echo "<td><input type ='text' name='Part' size='20'>"; echo '<tr><td>' . _('Print Option') . ":</td><td><select name='Fill'>"; - echo "<option selected value='yes'>" . _('Print With Alternating Highlighted Lines'); - echo "<option value='no'>" . _('Plain Print'); + echo "<option selected value='yes'>" . _('Print With Alternating Highlighted Lines') . '</option>'; + echo "<option value='no'>" . _('Plain Print') . '</option>'; echo '</select></td></tr>'; echo "</table><br /><div class='centre'><input type=submit name='PrintPDF' value='" . _('Print PDF') . "'></div>"; Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/BankMatching.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -118,7 +118,7 @@ echo '<option selected Value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; echo '<option Value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; } else { - echo '<option Value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range'); + echo '<option Value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; echo '<option selected Value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/ConfirmDispatch_Invoice.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -1643,7 +1643,9 @@ $j++; echo '<tr> <td>'._('Action For Balance'). ':</td> - <td><select tabindex='.$j.' name=BOPolicy><option selected Value="BO">'._('Automatically put balance on back order').'<option Value="CAN">'._('Cancel any quantities not delivered').'</select></td> + <td><select tabindex='.$j.' name=BOPolicy> + <option selected Value="BO">'._('Automatically put balance on back order') . '</option>'. + '<option Value="CAN">'._('Cancel any quantities not delivered') . '</option>'.'</select></td> </tr>'; $j++; echo '<tr> Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/CustEDISetup.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -101,11 +101,11 @@ if ($myrow['ediinvoices']==0){ - echo '<option selected value=0>'._('Disabled'); - echo '<option value=1>'._('Enabled'); + echo '<option selected value=0>'._('Disabled') . '</option>'; + echo '<option value=1>'._('Enabled') . '</option>'; } else { - echo '<option value=0>'._('Disabled'); - echo '<option selected value=1>'._('Enabled'); + echo '<option value=0>'._('Disabled') . '</option>'; + echo '<option selected value=1>'._('Enabled') . '</option>'; } echo "</select><a href='$rootpath/EDIMessageFormat.php?" . SID . "&MessageType=INVOIC&PartnerCode=" . $_SESSION['CustomerID'] . "'>"._('Create') . '/' . _('Edit Invoice Message Format').'</a></td></tr>'; @@ -115,11 +115,11 @@ if ($myrow['ediorders']==0){ - echo '<option selected value=0>'._('Disabled'); - echo '<option value=1>'._('Enabled'); + echo '<option selected value=0>'._('Disabled') . '</option>'; + echo '<option value=1>'._('Enabled') . '</option>'; } else { - echo '<option value=0>'._('Disabled'); - echo '<option selected value=1>'._('Enabled'); + echo '<option value=0>'._('Disabled') . '</option>'; + echo '<option selected value=1>'._('Enabled') . '</option>'; } echo '</select></td></tr>'; @@ -132,11 +132,11 @@ <td><select tabindex=4 name='EDITransport'>"; if ($myrow['editransport']=='email'){ - echo "<option selected value='email'>"._('Email Attachments'); - echo "<option value='ftp'>"._('File Transfer Protocol (FTP)'); + echo "<option selected value='email'>"._('Email Attachments') . '</option>'; + echo "<option value='ftp'>"._('File Transfer Protocol (FTP)') . '</option>'; } else { - echo "<option value='email'>"._('Email Attachments'); - echo "<option selected value='ftp'>"._('File Transfer Protocol (FTP)'); + echo "<option value='email'>"._('Email Attachments') . '</option>'; + echo "<option selected value='ftp'>"._('File Transfer Protocol (FTP)') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/CustomerTransInquiry.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -23,16 +23,16 @@ $sql = "SELECT typeid, typename FROM systypes WHERE typeid >= 10 AND typeid <= 14"; $resultTypes = DB_query($sql,$db); -echo "<option Value='All'> All"; +echo "<option Value='All'> All" . '</option>'; while ($myrow=DB_fetch_array($resultTypes)){ if (isset($_POST['TransType'])){ if ($myrow['typeid'] == $_POST['TransType']){ - echo "<option selected Value='" . $myrow['typeid'] . "'>" . $myrow['typename']; + echo "<option selected Value='" . $myrow['typeid'] . "'>" . $myrow['typename'] . '</option>'; } else { - echo "<option Value='" . $myrow['typeid'] . "'>" . $myrow['typename']; + echo "<option Value='" . $myrow['typeid'] . "'>" . $myrow['typename'] . '</option>'; } } else { - echo "<option Value='" . $myrow['typeid'] . "'>" . $myrow['typename']; + echo "<option Value='" . $myrow['typeid'] . "'>" . $myrow['typename'] . '</option>'; } } echo '</select></td>'; Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/DailyBankTransactions.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -39,9 +39,9 @@ $_POST['BankAccount']=$myrow['accountcode']; } if ($_POST['BankAccount']==$myrow['accountcode']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode']; + echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; } else { - echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode']; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/DebtorsAtPeriodEnd.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -155,7 +155,7 @@ while ($myrow = DB_fetch_array($Periods,$db)){ - echo '<option value=' . $myrow['periodno'] . '>' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value=' . $myrow['periodno'] . '>' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/DeliveryDetails.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -927,9 +927,9 @@ while ($myrow=DB_fetch_row($StkLocsResult)){ if ($_SESSION['Items'.$identifier]->Location==$myrow[1]){ - echo '<option selected value="'.$myrow[1].'">'.$myrow[0]; + echo '<option selected value="'.$myrow[1].'">'.$myrow[0] . '</option>'; } else { - echo '<option value="'.$myrow[1].'">'.$myrow[0]; + echo '<option value="'.$myrow[1].'">'.$myrow[0] . '</option>'; } } @@ -1034,8 +1034,8 @@ echo '<tr> <td>'. _('Reprint packing slip') .':</td> <td><select name="ReprintPackingSlip">'; - echo '<option value=0>' . _('Yes'); - echo '<option selected value=1>' . _('No'); + echo '<option value=0>' . _('Yes') . '</option>'; + echo '<option selected value=1>' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { @@ -1063,9 +1063,9 @@ $ShipperResults = DB_query($sql,$db,$ErrMsg,$DbgMsg); while ($myrow=DB_fetch_array($ShipperResults)){ if ($myrow['shipper_id']==$_POST['ShipVia']){ - echo '<option selected value=' . $myrow['shipper_id'] . '>' . $myrow['shippername']; + echo '<option selected value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; }else { - echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername']; + echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; } } @@ -1074,11 +1074,11 @@ echo '<tr><td>'. _('Quotation Only') .':</td><td><select name="Quotation">'; if ($_SESSION['Items'.$identifier]->Quotation==1){ - echo '<option selected value=1>' . _('Yes'); - echo '<option value=0>' . _('No'); + echo '<option selected value=1>' . _('Yes') . '</option>'; + echo '<option value=0>' . _('No') . '</option>'; } else { - echo '<option value=1>' . _('Yes'); - echo '<option selected value=0>' . _('No'); + echo '<option value=1>' . _('Yes') . '</option>'; + echo '<option selected value=0>' . _('No') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/DiscountCategories.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -83,7 +83,6 @@ } else { echo '<option value="' . $myrow['discountcategory'] . '">' . $myrow['discountcategory']. '</option>'; } - echo '</option>'; } echo '</select></td>'; Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/DiscountMatrix.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -122,7 +122,6 @@ } else { echo '<option value="' . $myrow['discountcategory'] . '">' . $myrow['discountcategory'] . '</option>'; } - echo '</option>'; } echo '</select></td>'; } else { Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/FixedAssetTransfer.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -40,9 +40,9 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow['categoryid'] == $_POST['AssetCat']) { - echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } else { - echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } } Modified: trunk/FreightCosts.php =================================================================== --- trunk/FreightCosts.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/FreightCosts.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -40,7 +40,7 @@ <td><select name="ShipperID">'; while ($myrow = DB_fetch_array($ShipperResults)){ - echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername']; + echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; } echo '</select></td></tr> <tr> Modified: trunk/GLAccountCSV.php =================================================================== --- trunk/GLAccountCSV.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLAccountCSV.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -67,7 +67,7 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); -echo '<option value=0>0 - '._('All tags'); +echo '<option value=0>0 - '._('All tags') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow['tagref']){ echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLAccountInquiry.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -38,9 +38,9 @@ $Account = DB_query($sql,$db); while ($myrow=DB_fetch_array($Account,$db)){ if($myrow['accountcode'] == $SelectedAccount){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname']; + echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname']; + echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; } } echo '</select></td></tr>'; @@ -54,12 +54,12 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); -echo '<option value=0>0 - '._('All tags'); +echo '<option value=0>0 - '._('All tags') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow['tagref']){ - echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']; + echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']; + echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } } echo '</select></td></tr>'; @@ -70,10 +70,10 @@ $id=0; while ($myrow=DB_fetch_array($Periods,$db)){ if(isset($SelectedPeriod[$id]) and $myrow['periodno'] == $SelectedPeriod[$id]){ - echo '<option selected value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])); + echo '<option selected value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; $id++; } else { - echo '<option value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])); + echo '<option value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; } } echo '</select></td></tr><table>'; Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLAccountReport.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -270,10 +270,10 @@ $i=0; while ($myrow=DB_fetch_array($AccountsResult,$db)){ if(isset($_POST['Account'][$i]) AND $myrow['accountcode'] == $_POST['Account'][$i]){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname']; + echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; $i++; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname']; + echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; } } echo '</select></td>'; @@ -286,10 +286,10 @@ while ($myrow=DB_fetch_array($Periods,$db)){ if (isset($SelectedPeriod[$id]) and $myrow['periodno'] == $SelectedPeriod[$id]){ - echo '<option selected value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])); + echo '<option selected value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; $id++; } else { - echo '<option value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])); + echo '<option value=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; } } echo '</select></td></tr>'; @@ -303,12 +303,12 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); - echo '<option value=0>0 - '._('All tags'); + echo '<option value=0>0 - '._('All tags') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow['tagref']){ - echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']; + echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']; + echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLAccounts.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -251,11 +251,10 @@ while ($myrow = DB_fetch_array($result)){ if (isset($_POST['Group']) and $myrow[0]==$_POST['Group']){ - echo "<option selected value='"; + echo "<option selected value='".$myrow[0] . "'>" . $myrow[0] . '</option>'; } else { - echo "<option value='"; + echo "<option value='".$myrow[0] . "'>" . $myrow[0] . '</option>'; } - echo $myrow[0] . "'>" . $myrow[0]; } if (!isset($_GET['SelectedAccount']) or $_GET['SelectedAccount']=='') { Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLBalanceSheet.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -39,9 +39,9 @@ while ($myrow=DB_fetch_array($Periods,$db)){ if( $myrow['periodno']== $periodno){ - echo '<option selected value=' . $myrow['periodno'] . '>' . ConvertSQLDate($lastdate_in_period); + echo '<option selected value=' . $myrow['periodno'] . '>' . ConvertSQLDate($lastdate_in_period) . '</option>'; } else { - echo '<option value=' . $myrow['periodno'] . '>' . ConvertSQLDate($myrow['lastdate_in_period']); + echo '<option value=' . $myrow['periodno'] . '>' . ConvertSQLDate($myrow['lastdate_in_period']) . '</option>'; } } Modified: trunk/GLTagProfit_Loss.php =================================================================== --- trunk/GLTagProfit_Loss.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/GLTagProfit_Loss.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -75,7 +75,7 @@ if($myrow['periodno']==$DefaultToPeriod){ echo '<option selected value=' . $myrow['periodno'] . '>' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE =' . $myrow['periodno'] . '>' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; + echo '<option value =' . $myrow['periodno'] . '>' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } echo '</select></td></tr>'; @@ -88,7 +88,7 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); - echo '<option value=0>0 - None'; + echo '<option value=0>0 - None' . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow["tagref"]){ echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; Modified: trunk/InventoryPlanningPrefSupplier.php =================================================================== --- trunk/InventoryPlanningPrefSupplier.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/InventoryPlanningPrefSupplier.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -482,10 +482,10 @@ $sql = "SELECT loccode, locationname FROM locations"; $LocnResult=DB_query($sql,$db); - echo '<option Value="All">' . _('All Locations'); + echo '<option Value="All">' . _('All Locations') . '</option>'; while ($myrow=DB_fetch_array($LocnResult)){ - echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } echo '</select></td></tr>'; @@ -496,24 +496,24 @@ $_POST['NumberMonthsHolding']=1; } if ($_POST['NumberMonthsHolding']==0.5){ - echo '<option selected value="0.5">' . _('Two Weeks'); + echo '<option selected value="0.5">' . _('Two Weeks') . '</option>'; } else { - echo '<option value="0.5">' . _('Two Weeks'); + echo '<option value="0.5">' . _('Two Weeks') . '</option>'; } if ($_POST['NumberMonthsHolding']==1){ - echo '<option selected value="1">' . _('One Month'); + echo '<option selected value="1">' . _('One Month') . '</option>'; } else { - echo '<option selected value="1">' . _('One Month'); + echo '<option selected value="1">' . _('One Month') . '</option>'; } if ($_POST['NumberMonthsHolding']==1.5){ - echo '<option selected value="1.5">' . _('Six Weeks'); + echo '<option selected value="1.5">' . _('Six Weeks') . '</option>'; } else { - echo '<option value="1.5">' . _('Six Weeks'); + echo '<option value="1.5">' . _('Six Weeks') . '</option>'; } if ($_POST['NumberMonthsHolding']==2){ - echo '<option selected value="2">' . _('Two Months'); + echo '<option selected value="2">' . _('Two Months') . '</option>'; } else { - echo '<option value="2">' . _('Two Months'); + echo '<option value="2">' . _('Two Months') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/InventoryQuantities.php =================================================================== --- trunk/InventoryQuantities.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/InventoryQuantities.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -173,15 +173,15 @@ $_POST['StockCat']='All'; } if ($_POST['StockCat']=='All'){ - echo '<option selected value="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option value="All">' . _('All'); + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow1 = DB_fetch_array($result1)) { if ($myrow1['categoryid']==$_POST['StockCat']){ - echo '<option selected value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription']; + echo '<option selected value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } else { - echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription']; + echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/Locations.php =================================================================== --- trunk/Locations.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/Locations.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -505,9 +505,9 @@ $TaxProvinceResult = DB_query("SELECT taxprovinceid, taxprovincename FROM taxprovinces",$db); while ($myrow=DB_fetch_array($TaxProvinceResult)){ if ($_POST['TaxProvince']==$myrow['taxprovinceid']){ - echo '<option selected value=' . $myrow['taxprovinceid'] . '>' . $myrow['taxprovincename']; + echo '<option selected value=' . $myrow['taxprovinceid'] . '>' . $myrow['taxprovincename'] . '</option>'; } else { - echo '<option value=' . $myrow['taxprovinceid'] . '>' . $myrow['taxprovincename']; + echo '<option value=' . $myrow['taxprovinceid'] . '>' . $myrow['taxprovincename'] . '</option>'; } } Modified: trunk/MRPCreateDemands.php =================================================================== --- trunk/MRPCreateDemands.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/MRPCreateDemands.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -192,7 +192,7 @@ $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { echo '<option value="'; - echo $myrow['mrpdemandtype'] . '">' . $myrow['mrpdemandtype'] . ' - ' .$myrow['description']; + echo $myrow['mrpdemandtype'] . '">' . $myrow['mrpdemandtype'] . ' - ' .$myrow['description'] . '</option>'; } //end while loop echo '</select></td></tr>'; echo '<tr><td>' . _('Inventory Category') . ':</td><td><select name="CategoryID">'; Modified: trunk/MRPPlannedPurchaseOrders.php =================================================================== --- trunk/MRPPlannedPurchaseOrders.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/MRPPlannedPurchaseOrders.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -272,8 +272,8 @@ echo '<option value="Monthly">' . _('Monthly') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('Print Option') . ':</td><td><select name="Fill">'; - echo '<option selected value="yes">' . _('Print With Alternating Highlighted Lines'); - echo '<option value="no">' . _('Plain Print'); + echo '<option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option>'; + echo '<option value="no">' . _('Plain Print') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('Cut Off Date') . ':</td><td><input type ="text" class=date alt="'.$_SESSION['DefaultDateFormat'] . '" name="cutoffdate" size="10" value="'.date($_SESSION['DefaultDateFormat']).'"></td></tr>'; Modified: trunk/MRPReschedules.php =================================================================== --- trunk/MRPReschedules.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/MRPReschedules.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -129,8 +129,8 @@ echo '<br /><br /><form action=' . $_SERVER['PHP_SELF'] . ' method="post"><table class=selection>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr><td>' . _('Print Option') . ':</td><td><select name="Fill">'; - echo '<option selected value="yes">' . _('Print With Alternating Highlighted Lines'); - echo '<option value="no">' . _('Plain Print'); + echo '<option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option>'; + echo '<option value="no">' . _('Plain Print') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('Selection') . ':</td><td><select name="Selection">'; echo '<option selected value="All">' . _('All').'</option>'; Modified: trunk/MRPShortages.php =================================================================== --- trunk/MRPShortages.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/MRPShortages.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -239,14 +239,14 @@ echo '<table class="selection">'; echo '</select></td></tr>'; echo '<tr><td>' . _('Inventory Category') . ':</td><td><select name="CategoryID">'; - echo '<option selected value="All">' . _('All Stock Categories'); + echo '<option selected value="All">' . _('All Stock Categories') . '</option>'; $sql = "SELECT categoryid, categorydescription FROM stockcategory"; $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { echo '<option value="'; - echo $myrow['categoryid'] . '">' . $myrow['categoryid'] . ' - ' .$myrow['categorydescription']; + echo $myrow['categoryid'] . '">' . $myrow['categoryid'] . ' - ' .$myrow['categorydescription'] . '</option>'; } //end while loop echo '<tr><td>' . _('Sort') . ':</td><td><select name="Sort">'; echo '<option selected value="extcost">' . _('Extended Shortage Dollars').'</option>'; Modified: trunk/PDFChequeListing.php =================================================================== --- trunk/PDFChequeListing.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFChequeListing.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -52,7 +52,7 @@ echo '<select name="BankAccount">'; while ($myrow=DB_fetch_array($result)){ - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['bankaccountname']; + echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['bankaccountname'] . '</option>'; } Modified: trunk/PDFCustomerList.php =================================================================== --- trunk/PDFCustomerList.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFCustomerList.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -375,7 +375,7 @@ $sql="SELECT areacode, areadescription FROM areas"; $AreasResult= DB_query($sql,$db); - echo '<option selected value="All">' . _('All Areas'); + echo '<option selected value="All">' . _('All Areas') . '</option>'; While ($myrow = DB_fetch_array($AreasResult)){ echo '<option value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; @@ -390,7 +390,7 @@ $SalesFolkResult = DB_query($sql,$db); While ($myrow = DB_fetch_array($SalesFolkResult)){ - echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname']; + echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } echo '</select></td></tr>'; Modified: trunk/PDFDIFOT.php =================================================================== --- trunk/PDFDIFOT.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFDIFOT.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -44,27 +44,27 @@ echo "<select name='CategoryID'>"; - echo "<option selected value='All'>" . _('Over All Categories'); + echo "<option selected value='All'>" . _('Over All Categories') . '</option>'; while ($myrow=DB_fetch_array($result)){ - echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categorydescription']; + echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categorydescription'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Inventory Location') . ":</td><td><select name='Location'>"; - echo "<option selected value='All'>" . _('All Locations'); + echo "<option selected value='All'>" . _('All Locations') . '</option>'; $result= DB_query("SELECT loccode, locationname FROM locations",$db); while ($myrow=DB_fetch_array($result)){ - echo "<option value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; + echo "<option value='" . $myrow['loccode'] . "'>" . $myrow['locationname'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Email the report off') . ":</td><td><select name='Email'>"; - echo "<option selected value='No'>" . _('No'); - echo "<option value='Yes'>" . _('Yes'); + echo "<option selected value='No'>" . _('No') . '</option>'; + echo "<option value='Yes'>" . _('Yes') . '</option>'; echo "</select></td></tr></table><br /><div class='centre'><input type=submit name='Go' value='" . _('Create PDF') . "'></div>"; if ($InputError==1){ Modified: trunk/PDFDeliveryDifferences.php =================================================================== --- trunk/PDFDeliveryDifferences.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFDeliveryDifferences.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -41,27 +41,27 @@ echo "<select name='CategoryID'>"; - echo "<option selected value='All'>" . _('Over All Categories'); + echo "<option selected value='All'>" . _('Over All Categories') . '</option>'; while ($myrow=DB_fetch_array($result)){ - echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categorydescription']; + echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categorydescription'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Inventory Location') . ":</td><td><select name='Location'>"; - echo "<option selected value='All'>" . _('All Locations'); + echo "<option selected value='All'>" . _('All Locations') . '</option>'; $result= DB_query("SELECT loccode, locationname FROM locations",$db); while ($myrow=DB_fetch_array($result)){ - echo "<option value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; + echo "<option value='" . $myrow['loccode'] . "'>" . $myrow['locationname'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Email the report off') . ":</td><td><select name='Email'>"; - echo "<option selected value='No'>" . _('No'); - echo "<option value='Yes'>" . _('Yes'); + echo "<option selected value='No'>" . _('No') . '</option>'; + echo "<option value='Yes'>" . _('Yes') . '</option>'; echo "</select></td></tr></table><br /><div class='centre'><input type=submit name='Go' value='" . _('Create PDF') . "'></div>"; if ($InputError==1){ Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFOrderStatus.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -62,7 +62,7 @@ } echo '</select></td></tr>'; - echo '<tr><td>' . _('Back Order Only') . ':</td><td><select name="BackOrders">' . '</option>'; + echo '<tr><td>' . _('Back Order Only') . ':</td><td><select name="BackOrders">'; echo '<option selected value="Yes">' . _('Only Show Back Orders') . '</option>'; echo '<option value="No">' . _('Show All Orders') . '</option>'; echo '</select></td></tr></table><br /><div class="centre"><input type=submit name="Go" value="' . _('Create PDF') . '"></div>'; Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PDFPriceList.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -262,7 +262,7 @@ $sql="SELECT categoryid, categorydescription FROM stockcategory ORDER BY categoryid"; $CatResult= DB_query($sql,$db); While ($myrow = DB_fetch_array($CatResult)){ - echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categoryid'] . ' - ' . $myrow['categorydescription']; + echo "<option value='" . $myrow['categoryid'] . "'>" . $myrow['categoryid'] . ' - ' . $myrow['categorydescription'] . '</option>'; } echo '</select></td></tr>'; @@ -272,7 +272,7 @@ DB_data_seek($CatResult,0); While ($myrow = DB_fetch_array($CatResult)){ - echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categoryid'] . ' - ' . $myrow['categorydescription']; + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categoryid'] . ' - ' . $myrow['categorydescription'] . '</option>'; } echo '</select></td></tr>'; @@ -281,19 +281,19 @@ $SalesTypesResult=DB_query($sql,$db); while ($myrow=DB_fetch_array($SalesTypesResult)){ - echo '<option Value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type']; + echo '<option Value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Show Gross Profit %') . ':</td><td><select name="ShowGPPercentages">'; - echo '<option selected Value="No">'. _('Prices Only'); - echo '<option Value="Yes">'. _('Show GP % too'); + echo '<option selected Value="No">'. _('Prices Only') . '</option>'; + echo '<option Value="Yes">'. _('Show GP % too') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('Price Listing Type'). ':</td><td><select name="CustomerSpecials">'; - echo '<option selected Value="Sales Type Prices">'. _('Default Sales Type Prices'); - echo '<option Value="Customer Special Prices Only">'. _('Customer Special Prices Only'); - echo '<option Value="Full Description">'. _('Full Description'); + echo '<option selected Value="Sales Type Prices">'. _('Default Sales Type Prices') . '</option>'; + echo '<option Value="Customer Special Prices Only">'. _('Customer Special Prices Only') . '</option>'; + echo '<option Value="Full Description">'. _('Full Description') . '</option>'; echo '</select></td></tr>'; echo '<tr><td>' . _('Effective As At') . ':</td><td><input type="text" size=11 class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '">'; Modified: trunk/POReport.php =================================================================== --- trunk/POReport.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/POReport.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -1419,14 +1419,14 @@ echo '<tr><td>' . _('Report Type') . ':</td>'; echo "<td><select name='ReportType'>"; - echo "<option selected value='Detail'>" . _('Detail'); - echo "<option value='Summary'>" . _('Summary'); + echo "<option selected value='Detail'>" . _('Detail') . '</option>'; + echo "<option value='Summary'>" . _('Summary') . '</option>'; echo '</select></td><td> </td></tr>'; echo '<tr><td>' . _('Date Type') . ':</td>'; echo "<td><select name='DateType'>"; - echo "<option selected value='Order'>" . _('Order Date'); - echo "<option value='Delivery'>" . _('Delivery Date'); + echo "<option selected value='Order'>" . _('Order Date') . '</option>'; + echo "<option value='Delivery'>" . _('Delivery Date') . '</option>'; echo '</select></td><td> </td></tr>'; echo '<tr> @@ -1438,8 +1438,8 @@ echo '<tr><td>' . _('Part Number') . ':</td>'; echo "<td><select name='PartNumberOp'>"; - echo "<option selected value='Equals'>" . _('Equals'); - echo "<option value='LIKE'>" . _('Begins With'); + echo "<option selected value='Equals'>" . _('Equals') . '</option>'; + echo "<option value='LIKE'>" . _('Begins With') . '</option>'; echo '</select>'; echo "  <input type='Text' name='PartNumber' size=20 maxlength=20 value="; if (isset($_POST['PartNumber'])) { @@ -1450,8 +1450,8 @@ echo '<tr><td>' . _('Supplier Number') . ':</td>'; echo "<td><select name='SupplierIdOp'>"; - echo "<option selected value='Equals'>" . _('Equals'); - echo "<option value='LIKE'>" . _('Begins With'); + echo "<option selected value='Equals'>" . _('Equals') . '</option>'; + echo "<option value='LIKE'>" . _('Begins With') . '</option>'; echo '</select>'; echo "  <input type='Text' name='SupplierId' size=10 maxlength=10 value="; if (isset($_POST['SupplierId'])) { @@ -1462,8 +1462,8 @@ echo '<tr><td>' . _('Supplier Name') . ':</td>'; echo '<td><select name="SupplierNameOp">'; - echo '<option selected value="LIKE">' . _('Begins With'); - echo '<option value="Equals">' . _('Equals'); + echo '<option selected value="LIKE">' . _('Begins With') . '</option>'; + echo '<option value="Equals">' . _('Equals') . '</option>'; echo '</select>'; echo '  <input type="text" name="SupplierName" size=30 maxlength=30 value='; if (isset($_POST['SupplierName'])) { Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PO_Items.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -1046,7 +1046,7 @@ echo ':</font></tr><tr><td><select name="StockCat">'; - echo '<option selected value="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; while ($myrow1 = DB_fetch_array($result1)) { if (isset($_POST['StockCat']) and $_POST['StockCat']==$myrow1['categoryid']){ echo '<option selected value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PO_PDFPurchOrder.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -351,11 +351,11 @@ $_POST['PrintOrEmail'] = 'Print'; } if ($_POST['PrintOrEmail']=='Print'){ - echo '<option selected value="Print">'. _('Print'); - echo '<option value="Email">' . _('Email'); + echo '<option selected value="Print">'. _('Print') . '</option>'; + echo '<option value="Email">' . _('Email') . '</option>'; } else { - echo '<option value="Print">'. _('Print'); - echo '<option selected value="Email">'. _('Email'); + echo '<option value="Print">'. _('Print') . '</option>'; + echo '<option selected value="Email">'. _('Email') . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>'. _('Show Amounts on the Order'). '</td><td> @@ -364,11 +364,11 @@ $_POST['ShowAmounts'] = 'Yes'; } if ($_POST['ShowAmounts']=='Yes'){ - echo '<option selected value="Yes">'. _('Yes'); - echo '<option value="No">' . _('No'); + echo '<option selected value="Yes">'. _('Yes') . '</option>'; + echo '<option value="No">' . _('No') . '</option>'; } else { - echo '<option value="Yes">'. _('Yes'); - echo '<option selected value="No">'. _('No'); + echo '<option value="Yes">'. _('Yes') . '</option>'; + echo '<option selected value="No">'. _('No') . '</option>'; } echo '</select></td></tr>'; if ($_POST['PrintOrEmail']=='Email'){ @@ -384,9 +384,9 @@ while ($ContactDetails = DB_fetch_array($ContactsResult)){ if (strlen($ContactDetails['email'])>2 AND strpos($ContactDetails['email'],'@')>0){ if ($_POST['EmailTo']==$ContactDetails['email']){ - echo '<option selected value="' . $ContactDetails['email'] . '">' . $ContactDetails['Contact'] . ' - ' . $ContactDetails['email']; + echo '<option selected value="' . $ContactDetails['email'] . '">' . $ContactDetails['Contact'] . ' - ' . $ContactDetails['email'] . '</option>'; } else { - echo '<option value="' . $ContactDetails['email'] . '">' . $ContactDetails['contact'] . ' - ' . $ContactDetails['email']; + echo '<option value="' . $ContactDetails['email'] . '">' . $ContactDetails['contact'] . ' - ' . $ContactDetails['email'] . '</option>'; } } } Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PO_SelectOSPurchOrder.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -140,14 +140,14 @@ while ($myrow=DB_fetch_array($resultStkLocs)){ if (isset($_POST['StockLocation'])){ if ($myrow['loccode'] == $_POST['StockLocation']){ - echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { - echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } } elseif ($myrow['loccode']== $_SESSION['UserStockLocation']){ - echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { - echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } } @@ -191,9 +191,9 @@ while ($myrow1 = DB_fetch_array($result1)) { if (isset($_POST['StockCat']) and $myrow1['categoryid']==$_POST['StockCat']){ - echo "<option selected value='". $myrow1['categoryid'] . "'>" . $myrow1['categorydescription']; + echo "<option selected value='". $myrow1['categoryid'] . "'>" . $myrow1['categorydescription'] . '</option>'; } else { - echo "<option value='". $myrow1['categoryid'] . "'>" . $myrow1['categorydescription']; + echo "<option value='". $myrow1['categoryid'] . "'>" . $myrow1['categorydescription'] . '</option>'; } } echo "</select>"; Modified: trunk/PO_SelectPurchOrder.php =================================================================== --- trunk/PO_SelectPurchOrder.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PO_SelectPurchOrder.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -110,14 +110,14 @@ while ($myrow = DB_fetch_array($resultStkLocs)) { if (isset($_POST['StockLocation'])) { if ($myrow['loccode'] == $_POST['StockLocation']) { - echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { - echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } } elseif ($myrow['loccode'] == $_SESSION['UserStockLocation']) { - echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { - echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } } echo '</select> ' . _('Order Status:') .' <select name="Status">'; @@ -155,9 +155,9 @@ echo '<tr><td><font size=1>' . _('Select a stock category') . ':</font><select name="StockCat">'; while ($myrow1 = DB_fetch_array($result1)) { if (isset($_POST['StockCat']) and $myrow1['categoryid'] == $_POST['StockCat']) { - echo "<option selected value='" . $myrow1['categoryid'] . "'>" . $myrow1['categorydescription']; + echo "<option selected value='" . $myrow1['categoryid'] . "'>" . $myrow1['categorydescription'] . '</option>'; } else { - echo "<option value='" . $myrow1['categoryid'] . "'>" . $myrow1['categorydescription']; + echo "<option value='" . $myrow1['categoryid'] . "'>" . $myrow1['categorydescription'] . '</option>'; } } echo '</select><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td>'; Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/Payments.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -771,9 +771,9 @@ } else { while ($myrow=DB_fetch_array($result)){ if ($_SESSION['PaymentDetail']->Currency==$myrow['currabrev']){ - echo '<option selected value=' . $myrow['currabrev'] . '>' . $myrow['currency']; + echo '<option selected value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; } else { - echo '<option value=' . $myrow['currabrev'] . '>' . $myrow['currency']; + echo '<option value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; } } echo '</select></td><td><i>' . _('The transaction currency does not need to be the same as the bank account currency') . '</i></td></tr>'; @@ -834,9 +834,9 @@ foreach ($PaytTypes as $PaytType) { if (isset($_POST['Paymenttype']) and $_POST['Paymenttype']==$PaytType){ - echo '<option selected value="' . $PaytType . '">' . $PaytType; + echo '<option selected value="' . $PaytType . '">' . $PaytType . '</option>'; } else { - echo '<option Value="' . $PaytType . '">' . $PaytType; + echo '<option Value="' . $PaytType . '">' . $PaytType . '</option>'; } } //end foreach echo '</select></td></tr>'; Modified: trunk/PricesBasedOnMarkUp.php =================================================================== --- trunk/PricesBasedOnMarkUp.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PricesBasedOnMarkUp.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -26,7 +26,7 @@ <td><select name="PriceList">'; if (!isset($_POST['PriceList']) OR $_POST['PriceList']=='0'){ - echo '<option selected value="0">' . _('No Price List Selected'); + echo '<option selected value="0">' . _('No Price List Selected') . '</option>'; } while ($PriceLists=DB_fetch_array($PricesResult)){ @@ -48,7 +48,7 @@ <td><select name="CurrCode">'; if (!isset($_POST['CurrCode'])){ - echo '<option selected value=0>' . _('No Price List Currency Selected'); + echo '<option selected value=0>' . _('No Price List Currency Selected') . '</option>'; } while ($Currencies=DB_fetch_array($result)){ Modified: trunk/PricesByCost.php =================================================================== --- trunk/PricesByCost.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/PricesByCost.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -241,15 +241,15 @@ echo '<tr> <td>' . _('Category') . ':</td> <td><select name="StockCat">'; - echo '<option value="all">' . _('All Categories') . ''; + echo '<option value="all">' . _('All Categories') . '' . '</option>'; while ($myrow1 = DB_fetch_array($result1)) { - echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription']; + echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>' . _('Price') . ' <select name="Comparator">'; - echo '<option value="1">' . _('Less than or equal to') . ''; - echo '<option value="2">' . _('Greater than or equal to') . ''; + echo '<option value="1">' . _('Less than or equal to') . '' . '</option>'; + echo '<option value="2">' . _('Greater than or equal to') . '' . '</option>'; if ($_SESSION['WeightedAverageCosting']==1) { echo '</select>'.' '. _('Average Cost') . ' x </td>'; } else { Modified: trunk/SalesAnalReptCols.php =================================================================== --- trunk/SalesAnalReptCols.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SalesAnalReptCols.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -398,11 +398,11 @@ $_POST['Calculation']=0; } if ($_POST['Calculation'] ==1){ - echo '<option selected Value=1>' . _('Yes'); - echo '<option Value=0>' . _('No'); + echo '<option selected Value=1>' . _('Yes') . '</option>'; + echo '<option Value=0>' . _('No') . '</option>'; } else { - echo '<option Value=1>' . _('Yes'); - echo '<option selected Value=0>' . _('No'); + echo '<option Value=1>' . _('Yes') . '</option>'; + echo '<option selected Value=0>' . _('No') . '</option>'; } echo '</select></td></tr>'; @@ -492,11 +492,11 @@ echo '<tr><td>' . _('Constant') . ':</td><td><input type="TEXT" size=10 maxlength=10 name="Constant" value=' . $_POST['Constant'] . '></td></tr>'; echo '<tr><td>' . _('Format Type') . ':</td><td><select name="ValFormat">'; if ($_POST['ValFormat']=='N'){ - echo '<option selected Value="N">' . _('Numeric'); - echo '<option Value="P">' . _('Percentage'); + echo '<option selected Value="N">' . _('Numeric') . '</option>'; + echo '<option Value="P">' . _('Percentage') . '</option>'; } else { - echo '<option Value="N">' . _('Numeric'); - echo '<option selected Value="P">' . _('Percentage'); + echo '<option Value="N">' . _('Numeric') . '</option>'; + echo '<option selected Value="P">' . _('Percentage') . '</option>'; } echo '</select></td></tr><input type=hidden name="BudgetOrActual" Value=0> <input type=hidden name="DataType" Value=""> Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SalesCategories.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -388,7 +388,7 @@ // Only if the StockID is not already selected echo '<option value="'.$myrow['stockid'].'">'. $myrow['stockid'] . ' - "'. - $myrow['description'] . '"'; + $myrow['description'] . '"' . '</option>'; } } echo '</select>'; Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SalesGraph.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -114,9 +114,9 @@ } while ($myrow=DB_fetch_array($CategoriesResult)){ if($myrow['categoryid']==$_POST['CategoryID']){ - echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } else { - echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/SalesInquiry.php =================================================================== --- trunk/SalesInquiry.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SalesInquiry.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -1119,9 +1119,9 @@ echo '<tr><td>' . _('For Sales Areas') . ':</td><td><select name="Area">'; $sql="SELECT areacode, areadescription FROM areas"; $AreasResult= DB_query($sql,$db); - echo '<option selected value="All">' . _('All Areas'); + echo '<option selected value="All">' . _('All Areas') . '</option>'; While ($myrow = DB_fetch_array($AreasResult)){ - echo '<option value="' . $myrow['areacode'] . '">' . $myrow['areadescription']; + echo '<option value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } echo '</select></td></tr>'; Modified: trunk/SelectAsset.php =================================================================== --- trunk/SelectAsset.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SelectAsset.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -84,9 +84,9 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow['locationid'] == $_POST['AssetLocation']) { - echo '<option selected value="' . $myrow['locationid'] . '">' . $myrow['locationdescription']; + echo '<option selected value="' . $myrow['locationid'] . '">' . $myrow['locationdescription'] . '</option>'; } else { - echo '<option value="' . $myrow['locationid'] . '">' . $myrow['locationdescription']; + echo '<option value="' . $myrow['locationid'] . '">' . $myrow['locationdescription'] . '</option>'; } } echo '</select>'; Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2011-06-15 07:55:50 UTC (rev 5412) +++ trunk/SelectCreditItems.php 2011-06-15 11:55:40 UTC (rev 5413) @@ -820,17 +820,17 @@ echo '<br /><table class=selection><tr><td>' . _('Credit Note Type') . ' :</td><td><select name=CreditType>'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ - echo '<option selected value="Return">' . _('Goods returned to store'); - echo '<option value="WriteOff">' . _('Goods written off'); - echo '<option value="ReverseOverCharge">' . _('Reverse an Overcharge'); + echo '<option selected value="Return">' . _('Goods returned to store') . '</option>'; + echo '<option value="WriteOff">' . _('Goods written off') . '</option>'; + echo '<option value="ReverseOverCharge">' . _('Reverse an Overcharge') . '</option>'; } elseif ($_POST['CreditType']=='WriteOff') { - echo '<option selected value="WriteOff">' . _('Goods written off'); - echo '<option value="Return">' . _('Goods returned to store'); - echo '<option value="ReverseOverCharge">' . _('Reverse an Overcharge'); + echo '<option selected value="WriteOff">' . _('Goods written off') . '</option>'; + echo '<option value="Return">' . _('Goods returned to store') . '</option>'; + echo '<option value="ReverseOverCharge">' . _('Reverse an Ov... [truncated message content] |