From: <vv...@us...> - 2012-03-11 22:25:06
|
Revision: 5065 http://web-erp.svn.sourceforge.net/web-erp/?rev=5065&view=rev Author: vvs2012 Date: 2012-03-11 22:24:58 +0000 (Sun, 11 Mar 2012) Log Message: ----------- xhtml Modified Paths: -------------- trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/Departments.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/ExchangeRateTrend.php trunk/FixedAssetTransfer.php trunk/GLBudgets.php trunk/GLJournal.php trunk/GoodsReceived.php trunk/PDFPrintLabel.php trunk/PO_Header.php trunk/Payments.php trunk/SalesByTypePeriodInquiry.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesTopItemsInquiry.php trunk/SelectCreditItems.php trunk/StockCategories.php trunk/StockLocTransferReceive.php trunk/Stocks.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTenderCreate.php trunk/WorkOrderEntry.php trunk/reportwriter/install/ReportListForm.php Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DailyBankTransactions.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -12,7 +12,8 @@ </p>'; if (!isset($_POST['Show'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; @@ -54,18 +55,19 @@ } echo '<tr> <td>' . _('Transactions Dated From') . ':</td> - <td><input type="text" name="FromTransDate" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onChange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . + <td><input type="text" name="FromTransDate" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onchange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . date($_SESSION['DefaultDateFormat']) . '" /></td> </tr> <tr> <td>' . _('Transactions Dated To') . ':</td> - <td><input type="text" name="ToTransDate" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onChange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . date($_SESSION['DefaultDateFormat']) . '" /></td> + <td><input type="text" name="ToTransDate" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onchange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . date($_SESSION['DefaultDateFormat']) . '" /></td> </tr> </table> <br /> <div class="centre"> <input type="submit" name="Show" value="' . _('Show transactions'). '" /> </div> + </div> </form>'; } else { $SQL = "SELECT bankaccountname, @@ -104,7 +106,7 @@ $BankDetailRow = DB_fetch_array($BankResult); echo '<table class="selection"> <tr> - <th colspan="8"><font size="3" color="blue">' . _('Account Transactions For').' '.$BankDetailRow['bankaccountname'].' '._('Between').' '.$_POST['FromTransDate'] . ' ' . _('and') . ' ' . $_POST['ToTransDate'] . '</font></th> + <th colspan="8"><h3>' . _('Account Transactions For').' '.$BankDetailRow['bankaccountname'].' '._('Between').' '.$_POST['FromTransDate'] . ' ' . _('and') . ' ' . $_POST['ToTransDate'] . '</h3></th> </tr> <tr> <th>' . ('Date') . '</th> @@ -139,9 +141,11 @@ echo '</table>'; } //end if no bank trans in the range to show - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '" /></div>'; + echo '</div>'; echo '</form>'; } include('includes/footer.inc'); Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DailySalesInquiry.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -11,6 +11,7 @@ <br />'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">'; +echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (!isset($_POST['MonthToShow'])){ @@ -62,6 +63,7 @@ <div class="centre"> <input tabindex="4" type="submit" name="ShowResults" value="' . _('Show Daily Sales For The Selected Month') . '" /> </div> + </div> </form> <br />'; /*Now get and display the sales data returned */ Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DebtorsAtPeriodEnd.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -130,11 +130,12 @@ /*if $FromCriteria is not set then show a form to allow input */ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> - <table class="selection">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + <div>'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + echo '<table class="selection">'; echo '<tr> - <td>' . _('From Customer Code') .':</font></td> + <td>' . _('From Customer Code') .':</td> <td><input tabindex="1" type="text" maxlength="6" size="7" name="FromCriteria" value="1" /></td> </tr> <tr> @@ -162,6 +163,7 @@ <div class="centre"> <input tabindex="5" type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div> + </div> </form>'; include('includes/footer.inc'); Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DeliveryDetails.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -255,8 +255,8 @@ if(isset($_POST['MakeRecurringOrder']) AND ! $InputErrors){ - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/RecurringSalesOrders.php?identifier='.$identifier . '&NewRecurringOrder=Yes">'; - prnMsg(_('You should automatically be forwarded to the entry of recurring order details page') . '. ' . _('If this does not happen') . '(' . _('if the browser does not support META Refresh') . ') ' . '<a href="' . $rootpath . '/RecurringOrders.php?identifier='.$identifier . '&NewRecurringOrder=Yes">'. _('click here') .'</a> '. _('to continue'),'info'); + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/RecurringSalesOrders.php?identifier='.$identifier . '&NewRecurringOrder=Yes">'; + prnMsg(_('You should automatically be forwarded to the entry of recurring order details page') . '. ' . _('If this does not happen') . '(' . _('if the browser does not support META Refresh') . ') ' . '<a href="' . $rootpath . '/RecurringOrders.php?identifier='.$identifier . '&NewRecurringOrder=Yes">'. _('click here') .'</a> '. _('to continue'),'info'); include('includes/footer.inc'); exit; } @@ -276,7 +276,7 @@ if ($InputErrors ==0) { $OK_to_PROCESS = 1; } - If ($_POST['FreightCost'] != $OldFreightCost && $_SESSION['DoFreightCalc']==True){ + If ($_POST['FreightCost'] != $OldFreightCost AND $_SESSION['DoFreightCalc']==True){ $OK_to_PROCESS = 0; prnMsg(_('The freight charge has been updated') . '. ' . _('Please reconfirm that the order and the freight charges are acceptable and then confirm the order again if OK') .' <br /> '. _('The new freight cost is') .' ' . $_POST['FreightCost'] . ' ' . _('and the previously calculated freight cost was') .' '. $OldFreightCost,'warn'); } else { @@ -295,7 +295,7 @@ $myrow = DB_fetch_array($TermsResult); - if ($myrow['daysbeforedue']==0 && $myrow['dayinfollowingmonth']==0){ + if ($myrow['daysbeforedue']==0 AND $myrow['dayinfollowingmonth']==0){ /* THIS IS A CASH SALE NEED TO GO OFF TO 3RD PARTY SITE SENDING MERCHANT ACCOUNT DETAILS AND CHECK FOR APPROVAL FROM 3RD PARTY SITE BEFORE CONTINUING TO PROCESS THE ORDER @@ -311,7 +311,7 @@ } #end if else freight charge not altered } #end if process order -if (isset($OK_to_PROCESS) AND $OK_to_PROCESS == 1 && $_SESSION['ExistingOrder'.$identifier]==0){ +if (isset($OK_to_PROCESS) AND $OK_to_PROCESS == 1 AND $_SESSION['ExistingOrder'.$identifier]==0){ /* finally write the order header to the database and then the order line details */ @@ -572,16 +572,16 @@ echo '<br /><table class="selection"> <tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td> - <td>' . ' ' . '<a target="_blank" href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $OrderNo . '">'. _('Print packing slip') . ' (' . _('Preprinted stationery') . ')' .'</a></td> + <td>' . ' ' . '<a target="_blank" href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $OrderNo . '">'. _('Print packing slip') . ' (' . _('Preprinted stationery') . ')' .'</a></td> </tr>'; echo '<tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td> - <td>' . ' ' . '<a target="_blank" href="' . $rootpath . '/PrintCustOrder_generic.php?identifier='.$identifier . '&TransNo=' . $OrderNo . '">'. _('Print packing slip') . ' (' . _('Laser') . ')' .'</a></td> + <td>' . ' ' . '<a target="_blank" href="' . $rootpath . '/PrintCustOrder_generic.php?identifier='.$identifier . '&TransNo=' . $OrderNo . '">'. _('Print packing slip') . ' (' . _('Laser') . ')' .'</a></td> </tr>'; echo '<tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt="" /></td> - <td>' . ' ' . '<a href="' . $rootpath . '/ConfirmDispatch_Invoice.php?identifier='.$identifier . '&OrderNumber=' . $OrderNo .'">'. _('Confirm Dispatch and Produce Invoice') .'</a></td> + <td>' . ' ' . '<a href="' . $rootpath . '/ConfirmDispatch_Invoice.php?identifier='.$identifier . '&OrderNumber=' . $OrderNo .'">'. _('Confirm Dispatch and Produce Invoice') .'</a></td> </tr>'; echo '</table>'; @@ -591,20 +591,20 @@ echo '<br /><table class="selection"> <tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Order') . '" alt=""></td> - <td>' . ' ' . '<a href="' . $rootpath . '/PDFQuotation.php?identifier='.$identifier . '&QuotationNo=' . $OrderNo . '">'. _('Print Quotation (Landscape)') .'</a></td> + <td>' . ' ' . '<a href="' . $rootpath . '/PDFQuotation.php?identifier='.$identifier . '&QuotationNo=' . $OrderNo . '">'. _('Print Quotation (Landscape)') .'</a></td> </tr> </table>'; echo '<br /><table class="selection"> <tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Order') . '" alt="" /></td> - <td>' . ' ' . '<a href="' . $rootpath . '/PDFQuotationPortrait.php?identifier='.$identifier . '&QuotationNo=' . $OrderNo . '">'. _('Print Quotation (Portrait)') .'</a></td> + <td>' . ' ' . '<a href="' . $rootpath . '/PDFQuotationPortrait.php?identifier='.$identifier . '&QuotationNo=' . $OrderNo . '">'. _('Print Quotation (Portrait)') .'</a></td> </tr> </table>'; } echo '<br /><table class="selection"> <tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt="" /></td> - <td>' . ' ' . '<a href="'. $rootpath .'/SelectOrderItems.php?identifier='.$identifier . '&NewOrder=Yes">'. _('Add Another Sales Order') .'</a></td> + <td>' . ' ' . '<a href="'. $rootpath .'/SelectOrderItems.php?identifier='.$identifier . '&NewOrder=Yes">'. _('Add Another Sales Order') .'</a></td> </tr> </table>'; } else { @@ -617,7 +617,7 @@ include('includes/footer.inc'); exit; -} elseif (isset($OK_to_PROCESS) and $OK_to_PROCESS == 1 && $_SESSION['ExistingOrder'.$identifier]!=0){ +} elseif (isset($OK_to_PROCESS) AND ($OK_to_PROCESS == 1 AND $_SESSION['ExistingOrder'.$identifier]!=0)){ /* update the order header then update the old order line details and insert the new lines */ @@ -787,15 +787,15 @@ <table class="selection"> <tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td> - <td><a target="_blank" href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip - pre-printed stationery') .'</a></td> + <td><a target="_blank" href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip - pre-printed stationery') .'</a></td> </tr>'; echo '<tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td> - <td><a target="_blank" href="' . $rootpath . '/PrintCustOrder_generic.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip') . ' (' . _('Laser') . ')' .'</a></td> + <td><a target="_blank" href="' . $rootpath . '/PrintCustOrder_generic.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip') . ' (' . _('Laser') . ')' .'</a></td> </tr>'; echo '<tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt="" /></td> - <td><a href="' . $rootpath .'/ConfirmDispatch_Invoice.php?identifier='.$identifier . '&OrderNumber=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Confirm Order Delivery Quantities and Produce Invoice') .'</a></td> + <td><a href="' . $rootpath .'/ConfirmDispatch_Invoice.php?identifier='.$identifier . '&OrderNumber=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Confirm Order Delivery Quantities and Produce Invoice') .'</a></td> </tr>'; echo '<tr> <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt="" /></td> @@ -811,20 +811,21 @@ if (isset($_SESSION['Items'.$identifier]->SpecialInstructions) and mb_strlen($_SESSION['Items'.$identifier]->SpecialInstructions)>0) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'info'); } -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Delivery') . '" alt="" />' . ' ' . _('Delivery Details'); +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Delivery') . '" alt="" />' . ' ' . _('Delivery Details') . '</p>'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . _('Customer Code') . ' :<b> ' . $_SESSION['Items'.$identifier]->DebtorNo . '<br />'; echo '</b> ' . _('Customer Name') . ' :<b> ' . $_SESSION['Items'.$identifier]->CustomerName . '</b></p>'; echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method="post">'; +echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; /*Display the order with or without discount depending on access level*/ if (in_array(2,$_SESSION['AllowedPageSecurityTokens'])){ - echo '<table cellpading="2" colspan="7">'; + echo '<table>'; if ($_SESSION['Items'.$identifier]->Quotation==1){ echo '<tr><th colspan="7">'._('Quotation Summary').'</th></tr>'; @@ -1082,7 +1083,7 @@ echo '<option selected="selected" value="1">' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type="hidden" name="ReprintPackingSlip" value="0" />'; + echo '<tr><td><input type="hidden" name="ReprintPackingSlip" value="0" /></td></tr>'; } echo '<tr> @@ -1090,9 +1091,9 @@ <td><input type="text" class="number" size="10" maxlength="12" name="FreightCost" value="' . $_SESSION['Items'.$identifier]->FreightCost . '" /></td>'; if ($_SESSION['DoFreightCalc']==true){ - echo '<td><input type="submit" name="Update" value="' . _('Recalc Freight Cost') . '" /></td> - </tr>'; + echo '<td><input type="submit" name="Update" value="' . _('Recalc Freight Cost') . '" /></td>'; } +echo '</tr>'; if ((!isset($_POST['ShipVia']) OR $_POST['ShipVia']=='') AND isset($_SESSION['Items'.$identifier]->ShipVia)){ $_POST['ShipVia'] = $_SESSION['Items'.$identifier]->ShipVia; @@ -1141,6 +1142,8 @@ echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '" />'; } -echo '</div></form>'; +echo '</div> + </div> + </form>'; include('includes/footer.inc'); ?> Modified: trunk/Departments.php =================================================================== --- trunk/Departments.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/Departments.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -27,7 +27,7 @@ if (ContainsIllegalCharacters($_POST['DepartmentName'])) { $InputError = 1; - prnMsg( _('The description of the department must not contain the character') . " '&' " . _('or the character') ." '",'error'); + prnMsg( _('The description of the department must not contain the character') . " '&' " . _('or the character') ." '",'error'); } if (trim($_POST['DepartmentName']) == '') { $InputError = 1; @@ -111,6 +111,7 @@ $result = DB_query($sql,$db); } prnMsg($msg,'success'); + echo '<br />'; } unset ($SelectedDepartmentID); unset ($_POST['SelectedDepartmentID']); @@ -183,7 +184,7 @@ echo '<td>' . $myrow['description'] . '</td> <td>' . $myrow['authoriser'] . '</td> <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?SelectedDepartmentID=' . $myrow['departmentid'] . '">' . _('Edit') . '</a></td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?SelectedDepartmentID=' . $myrow['departmentid'] . '&delete=1">' . _('Delete') .'</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?SelectedDepartmentID=' . $myrow['departmentid'] . '&delete=1">' . _('Delete') .'</a></td> </tr>'; } //END WHILE LIST LOOP @@ -200,6 +201,7 @@ if (! isset($_GET['delete'])) { echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedDepartmentID)) { @@ -252,6 +254,7 @@ echo '<div class="centre"> <input type="submit" name="Submit" value="' . _('Enter Information') . '" /> </div> + </div> </form>'; } //end if record deleted no point displaying form to add record Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DiscountCategories.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -65,7 +65,8 @@ } if (isset($_POST['selectchoice'])) { - echo '<form name="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<form id="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; @@ -73,7 +74,7 @@ if (DB_num_rows($result) > 0) { echo '<table class="selection"><tr><td>'. _('Discount Category Code') .': </td>'; - echo '<td><select name="DiscCat" onChange="ReloadForm(update.select)">'; + echo '<td><select name="DiscCat" onchange="ReloadForm(update.select)">'; while ($myrow = DB_fetch_array($result)){ if ($myrow['discountcategory']==$_POST['DiscCat']){ @@ -81,7 +82,6 @@ } else { echo '<option value="' . $myrow['discountcategory'] . '">' . $myrow['discountcategory'] . '</option>'; } - echo '</option>'; } echo '</select></td>'; @@ -90,8 +90,11 @@ </table> <br />'; } + echo '</div> + </form>'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="ChooseOption" value="'.$_POST['ChooseOption'].'" />'; echo '<input type="hidden" name="selectchoice" value="'.$_POST['selectchoice'].'" />'; @@ -171,7 +174,8 @@ echo '</select></td></tr></table>'; echo '<br /><div class="centre"><input type="submit" name="SubmitCategory" value="'. _('Update Items') .'" /></div>'; } - echo '</form>'; + echo '</div> + </form>'; if (! isset($_POST['DiscCat'])){ /*set DiscCat to something to show results for first cat defined */ @@ -212,11 +216,11 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; printf('<td>%s</td> <td>%s - %s</td> - <td><a href="%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this discount category?') . '\');">'. _('Delete') .'</td> + <td><a href="%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this discount category?') . '\');">'. _('Delete') .'</a></td> </tr>', $myrow['discountcategory'], $myrow['stockid'], @@ -235,17 +239,20 @@ } if (!isset($_POST['selectchoice'])) { - echo '<form method="post" name="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<form method="post" id="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; echo '<tr><td>'._('Update discount category for').'</td>'; - echo '<td><select name="ChooseOption" onChange="ReloadForm(choose.selectchoice)">'; + echo '<td><select name="ChooseOption" onchange="ReloadForm(choose.selectchoice)">'; echo '<option value="1">'._('a single stock item').'</option>'; echo '<option value="2">'._('a complete stock category').'</option>'; echo '</select></td></tr> </table> <br />'; echo '<div class="centre"><input type="submit" name="selectchoice" value="'._('Select').'" /></div>'; + echo '</div> + </form>'; } include('includes/footer.inc'); Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/DiscountMatrix.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -82,6 +82,7 @@ } echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; +echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -105,7 +106,7 @@ } } -echo '</select>'; +echo '</select></td></tr>'; $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; @@ -122,9 +123,9 @@ echo '<option value="' . $myrow['discountcategory'] . '">' . $myrow['discountcategory'] . '</option>'; } } - echo '</select></td>'; + echo '</select></td></tr>'; } else { - echo '<input type="hidden" name="DiscountCategory" value="" />'; + echo '<tr><td><input type="hidden" name="DiscountCategory" value="" /></td></tr>'; } echo '<tr> @@ -173,13 +174,13 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; printf('<td>%s</td> <td>%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td><a href="%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this discount matrix record?') . '\');">' . _('Delete') . '</td> + <td><a href="%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this discount matrix record?') . '\');">' . _('Delete') . '</a></td> </tr>', $myrow['sales_type'], $myrow['discountcategory'], @@ -190,7 +191,8 @@ } echo '</table> - </form>'; + </div> + </form>'; include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/ExchangeRateTrend.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -32,7 +32,7 @@ // CurrencyToShow Currency Picker - echo '<tr><td><select name="CurrencyToShow" onChange="ReloadForm(update.submit)">'; + echo '<tr><td><select name="CurrencyToShow" onchange="ReloadForm(update.submit)">'; DB_data_seek($result,0); while ($myrow=DB_fetch_array($result)) { Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/FixedAssetTransfer.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -129,7 +129,7 @@ <td class="number">'.locale_number_format($myrow['cost'],$_SESSION['CompanyRecord']['decimalplaces']).'</td> <td class="number">'.locale_number_format($myrow['accumdepn'],$_SESSION['CompanyRecord']['decimalplaces']).'</td> <td>'.$myrow['locationdescription'].'</td>'; - echo '<td><select name="Location'.$myrow['assetid'].'" onChange="ReloadForm(Move'.$myrow['assetid'].')">'; + echo '<td><select name="Location'.$myrow['assetid'].'" onchange="ReloadForm(Move'.$myrow['assetid'].')">'; echo '<option></option>'; while ($LocationRow=DB_fetch_array($LocationResult)) { if ($LocationRow['locationid']==$myrow['location']) { Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/GLBudgets.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -35,7 +35,7 @@ echo '<br /> <tr> <td>'. _('Select GL Account'). ':</td> - <td><select name="SelectedAccount" onChange="ReloadForm(selectaccount.Select)">'; + <td><select name="SelectedAccount" onchange="ReloadForm(selectaccount.Select)">'; $SQL = "SELECT accountcode, accountname @@ -221,7 +221,7 @@ <td></td> <td><input class="number" type="text" size="14" name="AnnualAmountTY" value="0.00" /></td> <td></td> - <td><input onChange="numberFormat(this,2)" class="number" type="text" size="14" name="AnnualAmount" value="0.00" /></td> + <td><input onchange="numberFormat(this,2)" class="number" type="text" size="14" name="AnnualAmount" value="0.00" /></td> <td><input type="submit" name="Apportion" value="' . _('Apportion Budget') . '" /></td> </tr> </table>'; Modified: trunk/GLJournal.php =================================================================== --- trunk/GLJournal.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/GLJournal.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -318,7 +318,7 @@ if (!isset($_POST['GLManualCode'])) { $_POST['GLManualCode']=''; } -echo '<td><input class="number" type="text" name="GLManualCode" maxlength="12" size="12" onChange="inArray(this.value, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')" value="'. $_POST['GLManualCode'] .'" /></td>'; +echo '<td><input class="number" type="text" name="GLManualCode" maxlength="12" size="12" onchange="inArray(this.value, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')" value="'. $_POST['GLManualCode'] .'" /></td>'; $sql="SELECT accountcode, accountname @@ -326,7 +326,7 @@ ORDER BY accountcode"; $result=DB_query($sql, $db); -echo '<td><select name="GLCode" onChange="return assignComboToInput(this,'.'GLManualCode'.')">'; +echo '<td><select name="GLCode" onchange="return assignComboToInput(this,'.'GLManualCode'.')">'; echo '<option value="">' . _('Select a general ledger account code') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow['accountcode']){ @@ -350,11 +350,11 @@ echo '</tr> <tr> <th>' . _('Debit') . '</th> - <td><input type="text" class="number" name = "Debit" onChange="eitherOr(this, '.'Credit'.')" maxlength="12" size="10" value="' . locale_number_format($_POST['Debit'],$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> + <td><input type="text" class="number" name = "Debit" onchange="eitherOr(this, '.'Credit'.')" maxlength="12" size="10" value="' . locale_number_format($_POST['Debit'],$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> </tr> <tr> <th>' . _('Credit') . '</th> - <td><input type="text" class="number" Name = "Credit" onChange="eitherOr(this, '.'Debit'.')" maxlength="12" size="10" value="' . locale_number_format($_POST['Credit'],$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> + <td><input type="text" class="number" Name = "Credit" onchange="eitherOr(this, '.'Debit'.')" maxlength="12" size="10" value="' . locale_number_format($_POST['Credit'],$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> </tr> <tr> <td></td> Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/GoodsReceived.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -83,7 +83,7 @@ echo '<table class="selection"> <tr> <td>'. _('Date Goods/Service Received'). ':</td> - <td><input type="text" class="date" alt="'. $_SESSION['DefaultDateFormat'] .'" maxlength="10" size="10" onChange="return isDate(this, this.value, '."'". + <td><input type="text" class="date" alt="'. $_SESSION['DefaultDateFormat'] .'" maxlength="10" size="10" onchange="return isDate(this, this.value, '."'". $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '" /></td> </tr> </table> Modified: trunk/PDFPrintLabel.php =================================================================== --- trunk/PDFPrintLabel.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/PDFPrintLabel.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -155,18 +155,18 @@ </tr>'; echo '<tr> <td class="number">'.$txt[$iTxt++].':</td> - <td><select name="SalesType" onChange="ReloadForm(form1.refresh)"> + <td><select name="SalesType" onchange="ReloadForm(form1.refresh)"> '.$OptionSales.' </select></td> </tr>'; echo '<td class="number">'.$txt[$iTxt++].':</td> - <td><select name="Currency" onChange="ReloadForm(form1.refresh)"> + <td><select name="Currency" onchange="ReloadForm(form1.refresh)"> '.$OptionCurrency.' </select></td> </tr>'; echo '<tr> <td class="number">'.$txt[$iTxt++].':</td> - <td><select name="Category" onChange="ReloadForm(form1.refresh)"> + <td><select name="Category" onchange="ReloadForm(form1.refresh)"> '.$OptionsCategory.' </select> </td> </tr>'; Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/PO_Header.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -778,7 +778,7 @@ if ($_SESSION['PO'.$identifier]->AllowPrintPO==0 AND empty($_POST['RePrint'])){ echo '<tr><td>' . _('Allow Reprint') . ':</td> - <td><select name="RePrint" onChange="ReloadForm(form1.AllowRePrint)"> + <td><select name="RePrint" onchange="ReloadForm(form1.AllowRePrint)"> <option selected="selected" value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select></td>'; @@ -802,7 +802,7 @@ echo '<tr><td>' . _('New Purchase Order') . '</td></tr>'; } else { echo '<tr><td>' . _('Status') . ' : </td> - <td><select name="Status" onChange="ReloadForm(form1.UpdateStatus)">'; + <td><select name="Status" onchange="ReloadForm(form1.UpdateStatus)">'; switch ($_SESSION['PO'.$identifier]->Status) { case 'Pending': @@ -862,7 +862,7 @@ echo '<table class="selection" width="100%"> <tr> <td>' . _('Warehouse') . ':</td> - <td><select name="StkLocation" onChange="ReloadForm(form1.LookupDeliveryAddress)">'; + <td><select name="StkLocation" onchange="ReloadForm(form1.LookupDeliveryAddress)">'; $sql = "SELECT loccode, locationname @@ -1012,7 +1012,7 @@ echo '<table class="selection" width="100%"> <tr> <td>' . _('Supplier Selection') . ':</td> - <td><select name="Keywords" onChange="ReloadForm(form1.SearchSuppliers)">'; + <td><select name="Keywords" onchange="ReloadForm(form1.SearchSuppliers)">'; $SuppCoResult = DB_query("SELECT supplierid, suppname FROM suppliers ORDER BY suppname",$db); Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/Payments.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -756,7 +756,7 @@ echo '<tr> <td>' . _('Bank Account') . ':</td> - <td><select name="BankAccount" onChange="ReloadForm(UpdateHeader)">'; + <td><select name="BankAccount" onchange="ReloadForm(UpdateHeader)">'; if (DB_num_rows($AccountsResults)==0){ echo '</select></td> @@ -782,13 +782,13 @@ echo '<tr> <td>' . _('Date Paid') . ':</td> - <td><input type="text" name="DatePaid" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onChange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . $_SESSION['PaymentDetail' . $identifier]->DatePaid . '" /></td> + <td><input type="text" name="DatePaid" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" maxlength="10" size="11" onchange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . $_SESSION['PaymentDetail' . $identifier]->DatePaid . '" /></td> </tr>'; if ($_SESSION['PaymentDetail' . $identifier]->SupplierID==''){ echo '<tr><td>' . _('Currency of Payment') . ':</td> - <td><select name="Currency" onChange="ReloadForm(UpdateHeader)">'; + <td><select name="Currency" onchange="ReloadForm(UpdateHeader)">'; $SQL = "SELECT currency, currabrev, rate FROM currencies"; $result=DB_query($SQL,$db); @@ -939,17 +939,17 @@ if (isset($_POST['GLManualCode'])) { echo '<tr> <td>' . _('Enter GL Account Manually') . ':</td> - <td><input type="text" class="number" name="GLManualCode" maxlength="12" size="12" onChange="return inArray(this, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')"' . ' value="'. $_POST['GLManualCode'] .'" /></td> + <td><input type="text" class="number" name="GLManualCode" maxlength="12" size="12" onchange="return inArray(this, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')"' . ' value="'. $_POST['GLManualCode'] .'" /></td> </tr>'; } else { echo '<tr> <td>' . _('Enter GL Account Manually') . ':</td> - <td><input type="text" class="number" Name="GLManualCode" maxlength="12" size="12" onChange="return inArray(this, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')" /></td></tr>'; + <td><input type="text" class="number" Name="GLManualCode" maxlength="12" size="12" onchange="return inArray(this, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')" /></td></tr>'; } echo '<tr> <td>' . _('Select GL Group') . ':</td> - <td><select name="GLGroup" onChange="return ReloadForm(UpdateCodes)">'; + <td><select name="GLGroup" onchange="return ReloadForm(UpdateCodes)">'; $SQL = "SELECT groupname FROM accountgroups @@ -990,7 +990,7 @@ echo '<tr> <td>' . _('Select GL Account') . ':</td> - <td><select name="GLCode" onChange="return assignComboToInput(this,'.'GLManualCode'.')">'; + <td><select name="GLCode" onchange="return assignComboToInput(this,'.'GLManualCode'.')">'; $result=DB_query($SQL,$db); if (DB_num_rows($result)==0){ Modified: trunk/SalesByTypePeriodInquiry.php =================================================================== --- trunk/SalesByTypePeriodInquiry.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SalesByTypePeriodInquiry.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -34,7 +34,7 @@ if ($_POST['DateRange']=='Custom'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)"/></td> +echo ' onchange="ReloadForm(Form1.ShowSales)"/></td> </tr> <tr> <td>' . _('This Week') . ':</td> @@ -42,7 +42,7 @@ if ($_POST['DateRange']=='ThisWeek'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Month') . ':</td> @@ -50,7 +50,7 @@ if ($_POST['DateRange']=='ThisMonth'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Quarter') . ':</td> @@ -58,7 +58,7 @@ if ($_POST['DateRange']=='ThisQuarter'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr>'; if ($_POST['DateRange']=='Custom'){ if (!isset($_POST['ToDate'])){ @@ -86,7 +86,7 @@ if ($_POST['DisplayData']=='Daily'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr> <tr> <td>' . _('Weekly') . ':</td> @@ -94,7 +94,7 @@ if ($_POST['DisplayData']=='Weekly'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr> <tr> <td>' . _('Monthly') . ':</td> @@ -102,7 +102,7 @@ if ($_POST['DisplayData']=='Monthly'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr> <tr> <td>' . _('Quarterly') . ':</td> @@ -110,7 +110,7 @@ if ($_POST['DisplayData']=='Quarterly'){ echo 'checked'; } -echo ' onChange="ReloadForm(Form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(Form1.ShowSales)" /></td> </tr>'; echo '</table> </td></tr> Modified: trunk/SalesCategoryPeriodInquiry.php =================================================================== --- trunk/SalesCategoryPeriodInquiry.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SalesCategoryPeriodInquiry.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -27,7 +27,7 @@ if ($_POST['DateRange']=='Custom'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Week') . ':</td> @@ -35,7 +35,7 @@ if ($_POST['DateRange']=='ThisWeek'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Month') . ':</td> @@ -43,7 +43,7 @@ if ($_POST['DateRange']=='ThisMonth'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Quarter') . ':</td> @@ -51,7 +51,7 @@ if ($_POST['DateRange']=='ThisQuarter'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr>'; if ($_POST['DateRange']=='Custom'){ if (!isset($_POST['FromDate'])){ Modified: trunk/SalesTopItemsInquiry.php =================================================================== --- trunk/SalesTopItemsInquiry.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SalesTopItemsInquiry.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -30,7 +30,7 @@ if ($_POST['DateRange']=='Custom'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Week') . ':</td> @@ -38,7 +38,7 @@ if ($_POST['DateRange']=='ThisWeek'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Month') . ':</td> @@ -46,7 +46,7 @@ if ($_POST['DateRange']=='ThisMonth'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr> <tr> <td>' . _('This Quarter') . ':</td> @@ -54,7 +54,7 @@ if ($_POST['DateRange']=='ThisQuarter'){ echo 'checked'; } -echo ' onChange="ReloadForm(form1.ShowSales)" /></td> +echo ' onchange="ReloadForm(form1.ShowSales)" /></td> </tr>'; if ($_POST['DateRange']=='Custom'){ if (!isset($_POST['FromDate'])){ Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SelectCreditItems.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -841,7 +841,7 @@ <table class="selection"> <tr> <td>' . _('Credit Note Type') . ' :</td> - <td><select name="CreditType" onChange="ReloadForm(MainForm.Update)" >'; + <td><select name="CreditType" onchange="ReloadForm(MainForm.Update)" >'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option> Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/StockCategories.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -374,7 +374,7 @@ echo '<tr> <td>' . _('Stock Type') . ':</td> - <td><select name="StockType" onChange="ReloadForm(CategoryForm.UpdateTypes)" >'; + <td><select name="StockType" onchange="ReloadForm(CategoryForm.UpdateTypes)" >'; if (isset($_POST['StockType']) and $_POST['StockType']=='F') { echo '<option selected="selected" value="F">' . _('Finished Goods') . '</option>'; } else { Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/StockLocTransferReceive.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -511,7 +511,7 @@ echo '<tr> <td>'. _('Select Location Receiving Into'). ':</td> <td>'; - echo '<select name="RecLocation" onChange="ReloadForm(form1.RefreshTransferList)">'; + echo '<select name="RecLocation" onchange="ReloadForm(form1.RefreshTransferList)">'; if (!isset($_POST['RecLocation'])){ $_POST['RecLocation'] = $_SESSION['UserStockLocation']; } Modified: trunk/Stocks.php =================================================================== --- trunk/Stocks.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/Stocks.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -843,7 +843,7 @@ echo '<tr> <td>' . _('Category') . ':</td> - <td><select name="CategoryID" onChange="ReloadForm(ItemForm.UpdateCategories)">'; + <td><select name="CategoryID" onchange="ReloadForm(ItemForm.UpdateCategories)">'; $sql = "SELECT categoryid, categorydescription FROM stockcategory"; $ErrMsg = _('The stock categories could not be retrieved because'); Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SupplierCredit.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -521,7 +521,7 @@ echo '<tr> <td colspan="2"><input type="submit" name="ToggleTaxMethod" value="' . _('Change Tax Calculation Method') . '" /></td> - <td><select name="OverRideTax" onChange="ReloadForm(form1.ToggleTaxMethod)">'; + <td><select name="OverRideTax" onchange="ReloadForm(form1.ToggleTaxMethod)">'; if ($_POST['OverRideTax']=='Man'){ echo '<option value="Auto">' . _('Automatic') . '</option> Modified: trunk/SupplierInvoice.php =================================================================== --- trunk/SupplierInvoice.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SupplierInvoice.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -498,7 +498,7 @@ echo '<tr> <td colspan="2"><input type="submit" name="ToggleTaxMethod" value="' . _('Update Tax Calculation') . '" /></td> - <td><select name="OverRideTax" onChange="ReloadForm(form1.ToggleTaxMethod)">'; + <td><select name="OverRideTax" onchange="ReloadForm(form1.ToggleTaxMethod)">'; if ($_POST['OverRideTax']=='Man'){ echo '<option value="Auto">' . _('Automatic') . '</option> Modified: trunk/SupplierTenderCreate.php =================================================================== --- trunk/SupplierTenderCreate.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/SupplierTenderCreate.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -320,7 +320,7 @@ } echo '<tr> <td>' . _('Warehouse') . ':</td> - <td><select name="StkLocation" onChange="ReloadForm(form1.LookupDeliveryAddress)">'; + <td><select name="StkLocation" onchange="ReloadForm(form1.LookupDeliveryAddress)">'; $sql = "SELECT loccode, locationname Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/WorkOrderEntry.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -467,7 +467,7 @@ </tr>'; echo '<tr> <td class="label">' . _('Factory Location') .':</td> - <td><select name="StockLocation" onChange="ReloadForm(form1.submit)">'; + <td><select name="StockLocation" onchange="ReloadForm(form1.submit)">'; $LocResult = DB_query("SELECT loccode,locationname FROM locations",$db); while ($LocRow = DB_fetch_array($LocResult)){ if ($_POST['StockLocation']==$LocRow['loccode']){ Modified: trunk/reportwriter/install/ReportListForm.php =================================================================== --- trunk/reportwriter/install/ReportListForm.php 2012-03-11 21:29:58 UTC (rev 5064) +++ trunk/reportwriter/install/ReportListForm.php 2012-03-11 22:24:58 UTC (rev 5065) @@ -22,7 +22,7 @@ ORDER BY reportname"; $Result=DB_query($sql,$db,'','',false,true); if (DB_num_rows($Result)>0) { - $RptForm .= '<tr><td><select name="ReportID" size="10" onChange="submit()">'; + $RptForm .= '<tr><td><select name="ReportID" size="10" onchange="submit()">'; while ($Temp = DB_fetch_array($Result)) { $RptForm .= '<option value="'.$Temp['id'].'">'.$Temp['reportname'].'</option>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |