From: <vv...@us...> - 2012-01-21 22:05:21
|
Revision: 4828 http://web-erp.svn.sourceforge.net/web-erp/?rev=4828&view=rev Author: vvs2012 Date: 2012-01-21 22:05:14 +0000 (Sat, 21 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/AccountGroups.php trunk/CustomerReceipt.php trunk/PDFPriceList.php trunk/PricesBasedOnMarkUp.php trunk/SpecialOrder.php trunk/StockCategories.php trunk/StockSerialItemResearch.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_ImportGLAccountSections.php Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/AccountGroups.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -276,7 +276,7 @@ echo '<br /><form method="post" id="AccountGroups" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - + echo '<table class="selection"><tr><td>'; if (isset($_GET['SelectedAccountGroup'])) { //editing an existing account group @@ -304,7 +304,6 @@ $_POST['PandL'] = $myrow['pandl']; $_POST['ParentGroupName'] = $myrow['parentgroupname']; - echo '<table class="selection"><tr><td>'; echo '<input type="hidden" name="SelectedAccountGroup" value="' . $_GET['SelectedAccountGroup'] . '" />'; echo '<input type="hidden" name="GroupName" value="' . $_POST['GroupName'] . '" />'; @@ -330,7 +329,6 @@ $_POST['PandL']=''; } - echo '<br /><table class="selection"><tr><td>'; echo '<input type="hidden" name="SelectedAccountGroup" value="' . $_POST['SelectedAccountGroup'] . '" />'; echo _('Account Group Name') . ':' . '</td><td> <input tabindex="1" ' . (in_array('GroupName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="GroupName" size="50" maxlength="50" value="' . $_POST['GroupName'] . '" /></td></tr>'; Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/CustomerReceipt.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -544,8 +544,8 @@ echo '<br />'; prnMsg( _('Receipt batch') . ' ' . $_SESSION['ReceiptBatch']->BatchNo . ' ' . _('has been successfully entered into the database'),'success'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . '<a href="' . $rootpath . '/PDFBankingSummary.php?BatchNo=' . $_SESSION['ReceiptBatch']->BatchNo . '">' . _('Print PDF Batch Summary') . '</a></p>'; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/allocation.png" title="' . _('Allocate') . '" alt="">' . ' ' . '<a href="' . $rootpath . '/CustomerAllocations.php">' . _('Allocate Receipts') . '</a></p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a href="' . $rootpath . '/PDFBankingSummary.php?BatchNo=' . $_SESSION['ReceiptBatch']->BatchNo . '">' . _('Print PDF Batch Summary') . '</a></p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/allocation.png" title="' . _('Allocate') . '" alt="" />' . ' ' . '<a href="' . $rootpath . '/CustomerAllocations.php">' . _('Allocate Receipts') . '</a></p>'; echo '<p class="page_title_text"><a href="' . $rootpath . '/CustomerReceipt.php?NewReceipt=Yes&Type=Customer">' . _('Enter Receipts') . '</a> </p>'; @@ -743,9 +743,9 @@ $AccountsResults = DB_query($SQL,$db,$ErrMsg,$DbgMsg); if (isset($_POST['GLEntry'])) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Enter Receipt') . '" alt="">' . ' ' . _('General Ledger Receipt Entry') . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Enter Receipt') . '" alt="" />' . ' ' . _('General Ledger Receipt Entry') . '</p>'; } else { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Enter Receipt') . '" alt="">' . ' ' . _('Enter Customer Receipt') . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Enter Receipt') . '" alt="" />' . ' ' . _('Enter Customer Receipt') . '</p>'; echo '<div class="page_help_text">' . _('To enter a payment TO a customer (ie. to pay out a credit note), enter a negative payment amount.') . '</div>'; } echo '<br /> @@ -782,7 +782,7 @@ echo '<tr> <td>' . _('Date Banked') . ':</td> - <td><input tabindex="2" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="DateBanked" maxlength="10" size="10" onChange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . $_SESSION['ReceiptBatch']->DateBanked . '"></td> + <td><input tabindex="2" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="DateBanked" maxlength="10" size="10" onChange="isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . $_SESSION['ReceiptBatch']->DateBanked . '" /></td> </tr> <tr> <td>' . _('Currency') . ':</td> @@ -887,8 +887,8 @@ if (isset($_SESSION['ReceiptBatch'])){ /* Now show the entries made so far */ if (!$BankAccountEmpty) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Banked') . - '" alt="">' . ' ' . $_SESSION['ReceiptBatch']->ReceiptType . ' - ' . _('Banked into the') . " " . + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Banked') . '" alt="" /> + ' . ' ' . $_SESSION['ReceiptBatch']->ReceiptType . ' - ' . _('Banked into the') . " " . $_SESSION['ReceiptBatch']->BankAccountName . ' ' . _('on') . ' ' . $_SESSION['ReceiptBatch']->DateBanked . '</p>'; } @@ -1072,7 +1072,7 @@ <td>' . _('Amount of Discount') . ':</td> <td><input tabindex="10" type="text" name="Discount" maxlength="12" size="13" class="number" value="' . $_POST['Discount'] . '" /> ' . _('agreed prompt payment discount is') . ' ' . $DisplayDiscountPercent . '</td></tr>'; } else { - echo '<input tabindex=11 type="hidden" name="Discount" value="0" />'; + echo '<input tabindex="11" type="hidden" name="Discount" value="0" />'; } echo '<tr> @@ -1080,7 +1080,7 @@ <td><input tabindex="12" type="text" name="PayeeBankDetail" maxlength="22" size="20" value="' . $_POST['PayeeBankDetail'] . '" /></td> </tr>'; // echo '<tr><td>' . _('Narrative') . ':</td> -// <td><input tabindex=13 type="text" name="Narrative" maxlength=30 size=32 value="' . $_POST['Narrative'] . '"></td></tr>'; +// <td><input tabindex="13" type="text" name="Narrative" maxlength="30" size="32" value="' . $_POST['Narrative'] . '" /></td></tr>'; echo '<td>' . _('Narrative') . ':</td> <td><textarea name="Narrative" cols="40" rows="1"></textarea></td> </tr> @@ -1098,7 +1098,7 @@ echo '<br />'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . _('Select a Customer') . '</b> + <img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . _('Select a Customer') . '</b> <table class="selection"> <tr> <td>' . _('Text in the Customer') . ' ' . '<b>' . _('name') . '</b>:</td> @@ -1140,7 +1140,7 @@ echo '<tr class="EvenTableRows">'; $k=1; } - printf('<td><font size=1><input tabindex="'. strval(12+$j).'" type="submit" name="Select" value="%s" /></font></td> + printf('<td><input tabindex="'. strval(12+$j).'" type="submit" name="Select" value="%s" /></td> <td>%s</td> </tr>', $myrow['debtorno'], Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/PDFPriceList.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -251,8 +251,8 @@ $title= _('Price Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/customer.png" title="' . - _('Price List') . '" alt="" />' . ' ' . _('Print a price list') . '</p>'; + echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/customer.png" title="' . _('Price List') . '" alt="" /> + ' . ' ' . _('Print a price list') . '</p>'; if (!isset($_POST['FromCriteria']) or !isset($_POST['ToCriteria'])) { @@ -302,7 +302,9 @@ 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']) . '">'; + echo '<tr><td>' . _('Effective As At') . ':</td>'; + echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />'; + echo '</td></tr>'; echo '</table><br /><div class="centre"><input type=Submit Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; } Modified: trunk/PricesBasedOnMarkUp.php =================================================================== --- trunk/PricesBasedOnMarkUp.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/PricesBasedOnMarkUp.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -5,8 +5,7 @@ $title=_('Update Pricing'); include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . - '" alt="" />' . $title.'</p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . $title.'</p>'; echo '<br /><div class="page_help_text">' . _('This page adds new prices or updates already existing prices for a specified sales type (price list) and currency for the stock category selected - based on a percentage mark up from cost prices or from preferred supplier cost data or from another price list. The rounding factor ensures that prices are at least this amount or a multiple of it. A rounding factor of 5 would mean that prices would be a minimum of 5 and other prices would be expressed as multiples of 5.') . '</div><br /><div class="centre">'; @@ -145,13 +144,13 @@ } echo '<tr><td>' . _('Rounding Factor') . ':</td> - <td><input type="text" class=number name="RoundingFactor" size="6" maxlength="6" value=' . $_POST['RoundingFactor'] . '></td></tr>'; + <td><input type="text" class="number" name="RoundingFactor" size="6" maxlength="6" value="' . $_POST['RoundingFactor'] . '" /></td></tr>'; echo '<tr><td>' . _('New Price To Be Effective From') . ':</td> - <td><input type="text" class=date alt="' . $_SESSION['DefaultDateFormat'] . '" name="PriceStartDate" size="10" maxlength="10" value="' . $_POST['PriceStartDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="PriceStartDate" size="10" maxlength="10" value="' . $_POST['PriceStartDate'] . '" /></td></tr>'; echo '<tr><td>' . _('New Price To Be Effective To (Blank = No End Date)') . ':</td> - <td><input type="text" class=date alt="' . $_SESSION['DefaultDateFormat'] . '" name="PriceEndDate" size="10" maxlength="10" value="' . $_POST['PriceEndDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="PriceEndDate" size="10" maxlength="10" value="' . $_POST['PriceEndDate'] . '" /></td></tr>'; if (!isset($_POST['IncreasePercent'])){ $_POST['IncreasePercent']=0; @@ -161,7 +160,7 @@ <td><input type="text" name="IncreasePercent" class="number" size="4" maxlength="4" value="' . $_POST['IncreasePercent'] . '"></td></tr></table>'; -echo '<p><div class="centre"><input type="submit" name="UpdatePrices" value="' . _('Update Prices') . '\' onclick="return confirm(\'' . _('Are you sure you wish to update or add all the prices according to the criteria selected?') . '\');"></div>'; +echo '<p><div class="centre"><input type="submit" name="UpdatePrices" value="' . _('Update Prices') . '\' onclick="return confirm(\'' . _('Are you sure you wish to update or add all the prices according to the criteria selected?') . '\');" /></div>'; echo '</form>'; Modified: trunk/SpecialOrder.php =================================================================== --- trunk/SpecialOrder.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/SpecialOrder.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -740,10 +740,10 @@ <input type="submit" name="EnterLine" value="' . _('Add Item to Order') . '" /> <br /> <br /> - <input type="submit" name="Cancel" value="' . _('Start Again') . '"> + <input type="submit" name="Cancel" value="' . _('Start Again') . '" /> <br /> <br /> - <input type="submit" name="Commit" value="' . _('Process This Order') . '"> + <input type="submit" name="Commit" value="' . _('Process This Order') . '" /> </div> </form>'; Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/StockCategories.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -8,8 +8,7 @@ include('includes/header.inc'); echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . - _('Inventory Adjustment') . '" alt="" />' . ' ' . $title . ' + <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Inventory Adjustment') . '" alt="" />' . ' ' . $title . ' </p>'; if (isset($_GET['SelectedCategory'])){ @@ -350,7 +349,7 @@ echo '<tr> <td>' . _('Category Description') . ':</td> - <td><input type="text" name="CategoryDescription" size=22 maxlength=20 value="' . $_POST['CategoryDescription'] . '" /></td></tr>'; + <td><input type="text" name="CategoryDescription" size="22" maxlength="20" value="' . $_POST['CategoryDescription'] . '" /></td></tr>'; echo '<tr> @@ -535,28 +534,26 @@ } else { echo '<option value="2">' . _('Check Box') . '</option>'; } - echo '</select></td> - <td><input type="textbox" name="PropDefault' . $PropertyCounter . '" value="' . $myrow['defaultvalue'] . '"></td> - <td><input type="checkbox" name="PropNumeric' . $PropertyCounter . '"'; - - if ($myrow['numericvalue'] ==1){ - echo 'checked'; - } - echo '"></td> - <td><input type="textbox" class="number" name="PropMinimum' . $PropertyCounter . '" value="' . locale_number_format($myrow['minimumvalue'],'Variable') . '" /></td> - <td><input type="textbox" class="number" name="PropMaximum' . $PropertyCounter . '" value="' . locale_number_format($myrow['maximumvalue'],'Variable') . '" /></td>'; + echo '</select></td>'; + + echo '<td><input type="textbox" name="PropDefault' . $PropertyCounter . '" value="' . $myrow['defaultvalue'] . '" /></td>'; + echo '<td><input type="checkbox" name="PropNumeric' . $PropertyCounter . '"'; + if ($myrow['numericvalue'] == 1){ + echo ' checked="checked"'; + } + echo ' /></td>'; + + echo '<td><input type="textbox" class="number" name="PropMinimum' . $PropertyCounter . '" value="' . locale_number_format($myrow['minimumvalue'],'Variable') . '" /></td>'; + echo '<td><input type="textbox" class="number" name="PropMaximum' . $PropertyCounter . '" value="' . locale_number_format($myrow['maximumvalue'],'Variable') . '" /></td>'; echo '<td align="center"><input type="checkbox" name="PropReqSO' . $PropertyCounter .'"'; + if ($myrow['reqatsalesorder']==1){ + echo ' checked="checked"'; + } + echo ' /></td>'; + + echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DeleteProperty=' . $myrow['stkcatpropid'] .'&SelectedCategory=' . $SelectedCategory . '" onclick=\'return confirm("' . _('Are you sure you wish to delete this property? All properties of this type set up for stock items will also be deleted.') . '");\'>' . _('Delete') . '</td>'; + echo '</tr>'; - if ($myrow['reqatsalesorder']==1){ - echo 'checked'; - } else { - echo ''; - } - - echo ' /></td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DeleteProperty=' . $myrow['stkcatpropid'] .'&SelectedCategory=' . $SelectedCategory . '" onclick=\'return confirm("' . _('Are you sure you wish to delete this property? All properties of this type set up for stock items will also be deleted.') . '");\'>' . _('Delete') . '</td> - </tr>'; - $PropertyCounter++; } //end loop around defined properties for this category echo '<input type="hidden" name="PropID' . $PropertyCounter .'" value="NewProperty" />'; Modified: trunk/StockSerialItemResearch.php =================================================================== --- trunk/StockSerialItemResearch.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/StockSerialItemResearch.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -6,9 +6,8 @@ include('includes/header.inc'); echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . -'" alt="" /><b>' . $title. '</b> - </p>'; + <img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . $title. '</b> + </p>'; //validate the submission Modified: trunk/Z_CreateCompanyTemplateFile.php =================================================================== --- trunk/Z_CreateCompanyTemplateFile.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/Z_CreateCompanyTemplateFile.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -218,7 +218,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; prnMsg(_('Running the create a new company template script will export all account groups, account codes and tax set up tables including tax groups, tax authorities, tax rates etc. However, no transactions or private data will be exported. There is opportunity to prevent specific general ledger accounts from being exported where these are considered private - again no transactional or balance data is exported and you can inspect the contents of the sql file. The template file will be emailed automatically to the webERP project'),'info'); -echo _('Enter the name of the template to be created') . ':<input type="text" name="TemplateName">'; +echo _('Enter the name of the template to be created') . ':<input type="text" name="TemplateName" />'; prnMsg(_('Warning: All selected accounts will be exported - please de-select the accounts you do not wish to export to the new template file'),'warn'); @@ -233,14 +233,14 @@ while ($ChartRow = DB_fetch_array($ChartResult)){ echo '<tr><td>' . $ChartRow['accountcode'] . '</td> <td>' . $ChartRow['accountname'] . '</td> - <td><input type="checkbox" name="IncludeAccount_' . $i . '" CHECKED></td> + <td><input type="checkbox" name="IncludeAccount_' . $i . '" checked="checked" /></td> </tr>'; $i++; } echo '</table>'; echo '<hr>'; -echo '<center><input type="submit" name="CreateTemplate" value="' . _('Create Template and Email') . '"></center>'; +echo '<center><input type="submit" name="CreateTemplate" value="' . _('Create Template and Email') . '" /></center>'; echo '</form>'; include('includes/footer.inc'); Modified: trunk/Z_ImportGLAccountSections.php =================================================================== --- trunk/Z_ImportGLAccountSections.php 2012-01-21 15:41:50 UTC (rev 4827) +++ trunk/Z_ImportGLAccountSections.php 2012-01-21 22:05:14 UTC (rev 4828) @@ -73,8 +73,8 @@ echo '<form name="ItemForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' .SID .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table><tr><td>'._('File to import').'</td>'. - '<td><input type="file" id="ImportFile" name="ImportFile"></td></tr></table>'; - echo '<div class= "centre"><input type="submit" name="update" value="Process"></div>'; + '<td><input type="file" id="ImportFile" name="ImportFile" /></td></tr></table>'; + echo '<div class= "centre"><input type="submit" name="update" value="Process" /></div>'; echo '</form>'; } include('includes/footer.inc'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-22 00:19:45
|
Revision: 4829 http://web-erp.svn.sourceforge.net/web-erp/?rev=4829&view=rev Author: daintree Date: 2012-01-22 00:19:38 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/GLAccountInquiry.php trunk/Z_poEditLangModule.php Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2012-01-21 22:05:14 UTC (rev 4828) +++ trunk/GLAccountInquiry.php 2012-01-22 00:19:38 UTC (rev 4829) @@ -180,13 +180,13 @@ echo '<tr bgcolor="#FDFEEF"> <td colspan="3"><b>' . _('Brought Forward Balance') . '</b><td> </td></td> - <td class="number"><b>' . locale_number_format(-$RunningTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format(-$RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td></td> </tr>'; } else { //its a debit balance b/fwd echo '<tr bgcolor="#FDFEEF"> <td colspan="3"><b>' . _('Brought Forward Balance') . '</b></td> - <td class="number"><b>' . locale_number_format($RunningTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format($RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td colspan="2"></td> </tr>'; } @@ -220,18 +220,18 @@ $RunningTotal = 0; } echo '<td></td> - <td class="number"><b>' . locale_number_format(-$PeriodTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format(-$PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td></td> </tr>'; } else { //its a debit balance b/fwd if ($PandLAccount==True) { $RunningTotal = 0; } - echo '<td class="number"><b>' . locale_number_format($PeriodTotal,2) . '</b></td> + echo '<td class="number"><b>' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td colspan="2"></td> </tr>'; } - $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . locale_number_format($PeriodTotal,2) . ' ' . _('Movement per ChartDetails record') . ': ' . locale_number_format($ChartDetailRow['actual'],2) . ' ' . _('Period difference') . ': ' . locale_number_format($PeriodTotal -$ChartDetailRow['actual'],3); + $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Movement per ChartDetails record') . ': ' . locale_number_format($ChartDetailRow['actual'],$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Period difference') . ': ' . locale_number_format($PeriodTotal -$ChartDetailRow['actual'],3); if (ABS($PeriodTotal -$ChartDetailRow['actual'])>0.01){ $ShowIntegrityReport = True; @@ -253,10 +253,10 @@ $PeriodTotal += $myrow['amount']; if($myrow['amount']>=0){ - $DebitAmount = locale_number_format($myrow['amount'],2); + $DebitAmount = locale_number_format($myrow['amount'],$_SESSION['CompanyRecord']['decimalplaces']); $CreditAmount = ''; } else { - $CreditAmount = locale_number_format(-$myrow['amount'],2); + $CreditAmount = locale_number_format(-$myrow['amount'],$_SESSION['CompanyRecord']['decimalplaces']); $DebitAmount = ''; } @@ -285,7 +285,7 @@ $DebitAmount, $CreditAmount, $myrow['narrative'], - locale_number_format($RunningTotal,2), + locale_number_format($RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']), $tagrow['tagdescription']); } @@ -299,9 +299,9 @@ echo '</b></td>'; if ($RunningTotal >0){ - echo '<td class="number"><b>' . locale_number_format(($RunningTotal),2) . '</b></td><td colspan="2"></td></tr>'; + echo '<td class="number"><b>' . locale_number_format(($RunningTotal),$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td><td colspan="2"></td></tr>'; }else { - echo '<td></td><td class="number"><b>' . locale_number_format((-$RunningTotal),2) . '</b></td><td colspan="2"></td></tr>'; + echo '<td></td><td class="number"><b>' . locale_number_format((-$RunningTotal),$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td><td colspan="2"></td></tr>'; } echo '</table>'; } /* end of if Show button hit */ Modified: trunk/Z_poEditLangModule.php =================================================================== --- trunk/Z_poEditLangModule.php 2012-01-21 22:05:14 UTC (rev 4828) +++ trunk/Z_poEditLangModule.php 2012-01-22 00:19:38 UTC (rev 4829) @@ -20,7 +20,7 @@ $PathToLanguage = './locale/' . $_SESSION['Language'] . '/LC_MESSAGES/messages.po'; $PathToNewLanguage = './locale/' . $_SESSION['Language'] . '/LC_MESSAGES/messages.po.new'; -echo "<br /> <a href='" . $rootpath . "/Z_poAdmin.php'>" . _('Back to the translation menu') . "</a>"; +echo '<br /> <a href="' . $rootpath . '/Z_poAdmin.php">' . _('Back to the translation menu') . '</a>'; echo '<br /><br /> ' . _('Utility to edit a language file module'); echo '<br /> ' . _('Current language is') . ' ' . $_SESSION['Language']; echo '<br /><br /> ' . _('To change language click on the user name at the top left, change to language desired and click Modify'); @@ -130,12 +130,12 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '</div'; echo '<table>'; - echo '<tr><th ALIGN="center">' . _('Language File for') . ' "' . $_POST['language'] . '"</th></tr>'; - echo '<tr><td ALIGN="center">' . _('Module') . ' "' . $_POST['module'] . '"</td></tr>'; + echo '<tr><th align="center">' . _('Language File for') . ' "' . $_POST['language'] . '"</th></tr>'; + echo '<tr><td align="center">' . _('Module') . ' "' . $_POST['module'] . '"</td></tr>'; echo '<tr><td></td></tr>'; echo '<tr><td>'; - echo '<table WIDTH="100%">'; + echo '<table width="100%">'; echo '<tr>'; echo '<th>' . _('Default text') . '</th>'; echo '<th>' . _('Translation') . '</th>'; @@ -151,9 +151,9 @@ } else { echo '<tr>'; - echo '<td VALIGN="top"><I>' . $DefaultText[$i] . '</I></td>'; - echo '<td VALIGN="top"><input type="text" size="60" name="moduletext_' . $msgstr[$i] . '" VALUE="' . $ModuleText[$i] . '" /></td>'; - echo '<td VALIGN="top">' . $AlsoIn[$i] . '<input type="hidden" name="msgstr_' . $msgstr[$i] . '" VALUE="' . $msgstr[$i] . '" /></td>'; + echo '<td valign="top"><i>' . $DefaultText[$i] . '</i></td>'; + echo '<td valign="top"><input type="text" size="60" name="moduletext_' . $msgstr[$i] . '" value="' . $ModuleText[$i] . '" /></td>'; + echo '<td valign="top">' . $AlsoIn[$i] . '<input type="hidden" name="msgstr_' . $msgstr[$i] . '" value="' . $msgstr[$i] . '" /></td>'; echo '</tr>'; echo '<tr><th colspan="3"></th></tr>'; } @@ -165,8 +165,8 @@ echo '</td></tr>'; echo '</table>'; echo '<br /><div class="centre">'; - echo '<input type="submit" name="submit" VALUE="' . _('Modify') . '" /> '; - echo '<input type="hidden" name="module" VALUE="' . $_POST['module'] . '" />'; + echo '<input type="submit" name="submit" value="' . _('Modify') . '" /> '; + echo '<input type="hidden" name="module" value="' . $_POST['module'] . '" />'; echo '</form>'; echo '</div>'; @@ -213,8 +213,11 @@ } else { - echo '<br /><table><tr><td>'; - echo '<form method="post" action=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '>'; + echo '<br /> + <table> + <tr> + <td>'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" >'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table>'; @@ -228,11 +231,13 @@ echo '</tr></table>'; echo '<br />'; - echo '<div class="centre">'; - echo '<input type="submit" name="proceed" VALUE="' . _('Proceed') . '" /> '; - echo '<br /><br /><input type="submit" name="ReMergePO" VALUE="' . _('Refresh messages with latest strings') . '">'; - echo '</div>'; - echo '</form>'; + echo '<div class="centre"> + <input type="submit" name="proceed" value="' . _('Proceed') . '" /> + <br /> + <br /> + <input type="submit" name="ReMergePO" value="' . _('Refresh messages with latest strings') . '" /> + </div> + </form>'; echo '</td></tr></table>'; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-22 00:19:45
|
Revision: 4829 http://web-erp.svn.sourceforge.net/web-erp/?rev=4829&view=rev Author: daintree Date: 2012-01-22 00:19:38 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/GLAccountInquiry.php trunk/Z_poEditLangModule.php Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2012-01-21 22:05:14 UTC (rev 4828) +++ trunk/GLAccountInquiry.php 2012-01-22 00:19:38 UTC (rev 4829) @@ -180,13 +180,13 @@ echo '<tr bgcolor="#FDFEEF"> <td colspan="3"><b>' . _('Brought Forward Balance') . '</b><td> </td></td> - <td class="number"><b>' . locale_number_format(-$RunningTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format(-$RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td></td> </tr>'; } else { //its a debit balance b/fwd echo '<tr bgcolor="#FDFEEF"> <td colspan="3"><b>' . _('Brought Forward Balance') . '</b></td> - <td class="number"><b>' . locale_number_format($RunningTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format($RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td colspan="2"></td> </tr>'; } @@ -220,18 +220,18 @@ $RunningTotal = 0; } echo '<td></td> - <td class="number"><b>' . locale_number_format(-$PeriodTotal,2) . '</b></td> + <td class="number"><b>' . locale_number_format(-$PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td></td> </tr>'; } else { //its a debit balance b/fwd if ($PandLAccount==True) { $RunningTotal = 0; } - echo '<td class="number"><b>' . locale_number_format($PeriodTotal,2) . '</b></td> + echo '<td class="number"><b>' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> <td colspan="2"></td> </tr>'; } - $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . locale_number_format($PeriodTotal,2) . ' ' . _('Movement per ChartDetails record') . ': ' . locale_number_format($ChartDetailRow['actual'],2) . ' ' . _('Period difference') . ': ' . locale_number_format($PeriodTotal -$ChartDetailRow['actual'],3); + $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Movement per ChartDetails record') . ': ' . locale_number_format($ChartDetailRow['actual'],$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Period difference') . ': ' . locale_number_format($PeriodTotal -$ChartDetailRow['actual'],3); if (ABS($PeriodTotal -$ChartDetailRow['actual'])>0.01){ $ShowIntegrityReport = True; @@ -253,10 +253,10 @@ $PeriodTotal += $myrow['amount']; if($myrow['amount']>=0){ - $DebitAmount = locale_number_format($myrow['amount'],2); + $DebitAmount = locale_number_format($myrow['amount'],$_SESSION['CompanyRecord']['decimalplaces']); $CreditAmount = ''; } else { - $CreditAmount = locale_number_format(-$myrow['amount'],2); + $CreditAmount = locale_number_format(-$myrow['amount'],$_SESSION['CompanyRecord']['decimalplaces']); $DebitAmount = ''; } @@ -285,7 +285,7 @@ $DebitAmount, $CreditAmount, $myrow['narrative'], - locale_number_format($RunningTotal,2), + locale_number_format($RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']), $tagrow['tagdescription']); } @@ -299,9 +299,9 @@ echo '</b></td>'; if ($RunningTotal >0){ - echo '<td class="number"><b>' . locale_number_format(($RunningTotal),2) . '</b></td><td colspan="2"></td></tr>'; + echo '<td class="number"><b>' . locale_number_format(($RunningTotal),$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td><td colspan="2"></td></tr>'; }else { - echo '<td></td><td class="number"><b>' . locale_number_format((-$RunningTotal),2) . '</b></td><td colspan="2"></td></tr>'; + echo '<td></td><td class="number"><b>' . locale_number_format((-$RunningTotal),$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td><td colspan="2"></td></tr>'; } echo '</table>'; } /* end of if Show button hit */ Modified: trunk/Z_poEditLangModule.php =================================================================== --- trunk/Z_poEditLangModule.php 2012-01-21 22:05:14 UTC (rev 4828) +++ trunk/Z_poEditLangModule.php 2012-01-22 00:19:38 UTC (rev 4829) @@ -20,7 +20,7 @@ $PathToLanguage = './locale/' . $_SESSION['Language'] . '/LC_MESSAGES/messages.po'; $PathToNewLanguage = './locale/' . $_SESSION['Language'] . '/LC_MESSAGES/messages.po.new'; -echo "<br /> <a href='" . $rootpath . "/Z_poAdmin.php'>" . _('Back to the translation menu') . "</a>"; +echo '<br /> <a href="' . $rootpath . '/Z_poAdmin.php">' . _('Back to the translation menu') . '</a>'; echo '<br /><br /> ' . _('Utility to edit a language file module'); echo '<br /> ' . _('Current language is') . ' ' . $_SESSION['Language']; echo '<br /><br /> ' . _('To change language click on the user name at the top left, change to language desired and click Modify'); @@ -130,12 +130,12 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '</div'; echo '<table>'; - echo '<tr><th ALIGN="center">' . _('Language File for') . ' "' . $_POST['language'] . '"</th></tr>'; - echo '<tr><td ALIGN="center">' . _('Module') . ' "' . $_POST['module'] . '"</td></tr>'; + echo '<tr><th align="center">' . _('Language File for') . ' "' . $_POST['language'] . '"</th></tr>'; + echo '<tr><td align="center">' . _('Module') . ' "' . $_POST['module'] . '"</td></tr>'; echo '<tr><td></td></tr>'; echo '<tr><td>'; - echo '<table WIDTH="100%">'; + echo '<table width="100%">'; echo '<tr>'; echo '<th>' . _('Default text') . '</th>'; echo '<th>' . _('Translation') . '</th>'; @@ -151,9 +151,9 @@ } else { echo '<tr>'; - echo '<td VALIGN="top"><I>' . $DefaultText[$i] . '</I></td>'; - echo '<td VALIGN="top"><input type="text" size="60" name="moduletext_' . $msgstr[$i] . '" VALUE="' . $ModuleText[$i] . '" /></td>'; - echo '<td VALIGN="top">' . $AlsoIn[$i] . '<input type="hidden" name="msgstr_' . $msgstr[$i] . '" VALUE="' . $msgstr[$i] . '" /></td>'; + echo '<td valign="top"><i>' . $DefaultText[$i] . '</i></td>'; + echo '<td valign="top"><input type="text" size="60" name="moduletext_' . $msgstr[$i] . '" value="' . $ModuleText[$i] . '" /></td>'; + echo '<td valign="top">' . $AlsoIn[$i] . '<input type="hidden" name="msgstr_' . $msgstr[$i] . '" value="' . $msgstr[$i] . '" /></td>'; echo '</tr>'; echo '<tr><th colspan="3"></th></tr>'; } @@ -165,8 +165,8 @@ echo '</td></tr>'; echo '</table>'; echo '<br /><div class="centre">'; - echo '<input type="submit" name="submit" VALUE="' . _('Modify') . '" /> '; - echo '<input type="hidden" name="module" VALUE="' . $_POST['module'] . '" />'; + echo '<input type="submit" name="submit" value="' . _('Modify') . '" /> '; + echo '<input type="hidden" name="module" value="' . $_POST['module'] . '" />'; echo '</form>'; echo '</div>'; @@ -213,8 +213,11 @@ } else { - echo '<br /><table><tr><td>'; - echo '<form method="post" action=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '>'; + echo '<br /> + <table> + <tr> + <td>'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" >'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table>'; @@ -228,11 +231,13 @@ echo '</tr></table>'; echo '<br />'; - echo '<div class="centre">'; - echo '<input type="submit" name="proceed" VALUE="' . _('Proceed') . '" /> '; - echo '<br /><br /><input type="submit" name="ReMergePO" VALUE="' . _('Refresh messages with latest strings') . '">'; - echo '</div>'; - echo '</form>'; + echo '<div class="centre"> + <input type="submit" name="proceed" value="' . _('Proceed') . '" /> + <br /> + <br /> + <input type="submit" name="ReMergePO" value="' . _('Refresh messages with latest strings') . '" /> + </div> + </form>'; echo '</td></tr></table>'; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vv...@us...> - 2012-01-22 02:58:00
|
Revision: 4830 http://web-erp.svn.sourceforge.net/web-erp/?rev=4830&view=rev Author: vvs2012 Date: 2012-01-22 02:57:49 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/AccountSections.php trunk/AddCustomerNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/BOMExtendedQty.php trunk/BOMIndentedReverse.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankReconciliation.php trunk/ConfirmDispatch_Invoice.php trunk/Credit_Invoice.php trunk/CustWhereAlloc.php trunk/CustomerAllocations.php trunk/CustomerTypes.php trunk/Customers.php trunk/DeliveryDetails.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/GLAccountReport.php trunk/GLBalanceSheet.php trunk/GLProfit_Loss.php trunk/GLTrialBalance.php trunk/GoodsReceived.php trunk/GoodsReceivedControlled.php trunk/InventoryQuantities.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/OffersReceived.php trunk/OutstandingGRNs.php trunk/PDFChequeListing.php trunk/PDFCustomerList.php trunk/PDFOrderStatus.php trunk/PDFPriceList.php trunk/PDFRemittanceAdvice.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/SalesAnalReptCols.php trunk/SalesCategories.php trunk/SalesGraph.php trunk/SalesPeople.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockLocTransfer.php trunk/StockQuantityByDate.php trunk/StockTransferControlled.php trunk/StockUsage.php trunk/SupplierCredit.php trunk/Suppliers.php trunk/TaxAuthorityRates.php trunk/TaxProvinces.php trunk/WorkOrderCosting.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/doc/Change.log trunk/doc/Manual/ManualAPIFunctions.php trunk/doc/Manual/ManualGeneralLedger.html trunk/doc/Manual/ManualRequirements.html trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsFile.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/OutputSerialItems.php Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AccountSections.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -232,7 +232,7 @@ $_POST['SectionID'] = $myrow['sectionid']; $_POST['SectionName'] = $myrow['sectionname']; - echo '<input type=hidden name="SelectedSectionID" value="' . $_POST['SectionID'] . '" />'; + echo '<input type="hidden" name="SelectedSectionID" value="' . $_POST['SectionID'] . '" />'; echo '<table class="selection"> <tr> <td>' . _('Section Number') . ':' . '</td> Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AddCustomerNotes.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -191,9 +191,9 @@ $_POST['date'] = $myrow['date']; $_POST['priority'] = $myrow['priority']; $_POST['debtorno'] = $myrow['debtorno']; - echo '<input type=hidden name="Id" value="'. $Id .'" />'; - echo '<input type=hidden name="Con_ID" value="' . $_POST['noteid'] . '" />'; - echo '<input type=hidden name="DebtorNo" value="' . $_POST['debtorno'] . '" />'; + echo '<input type="hidden" name="Id" value="'. $Id .'" />'; + echo '<input type="hidden" name="Con_ID" value="' . $_POST['noteid'] . '" />'; + echo '<input type="hidden" name="DebtorNo" value="' . $_POST['debtorno'] . '" />'; echo '<table class="selection"> <tr> <td>'. _('Note ID').':</td> Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AgedDebtors.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -513,7 +513,7 @@ </table> <br /> <div class="centre"> - <input tabindex="7" type=submit name="PrintPDF" value="' . _('Print PDF') , '" /> + <input tabindex="7" type="submit" name="PrintPDF" value="' . _('Print PDF') , '" /> </div>'; } include('includes/footer.inc'); Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AgedSuppliers.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -325,7 +325,7 @@ </table> <br /> <div class="centre"> - <input tabindex="6" type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input tabindex="6" type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; } include('includes/footer.inc'); Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Areas.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -195,8 +195,8 @@ $_POST['AreaCode'] = $myrow['areacode']; $_POST['AreaDescription'] = $myrow['areadescription']; - echo '<input type=hidden name="SelectedArea" value="' . $SelectedArea . '" />'; - echo '<input type=hidden name="AreaCode" value="' .$_POST['AreaCode'] . '" />'; + echo '<input type="hidden" name="SelectedArea" value="' . $SelectedArea . '" />'; + echo '<input type="hidden" name="AreaCode" value="' .$_POST['AreaCode'] . '" />'; echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMExtendedQty.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -292,7 +292,7 @@ <br /> <div class="centre"> <br /> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMIndentedReverse.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -252,7 +252,7 @@ </table> <p> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div> </p>'; Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -605,7 +605,7 @@ } else { //end of if $SelectedComponent - echo '<input type=hidden name="SelectedParent" value="' . $SelectedParent . '" />'; + echo '<input type="hidden" name="SelectedParent" value="' . $SelectedParent . '" />'; /* echo "Enter the details of a new component in the fields below. <br />Click on 'Enter Information' to add the new component, once all fields are completed."; */ echo '<table class="selection">'; Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BankAccounts.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -276,8 +276,8 @@ $_POST['CurrCode'] = $myrow['currcode']; $_POST['DefAccount'] = $myrow['invoice']; - echo '<input type=hidden name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; - echo '<input type=hidden name="AccountCode" value="' . $_POST['AccountCode'] . '">'; + echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; + echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '">'; echo '<table class="selection"> <tr><td>' . _('Bank Account GL Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td> Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BankReconciliation.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -131,7 +131,7 @@ echo '</table> <p> <div class="centre"> - <input type=submit tabindex="2" name="ShowRec" value="' . _('Show bank reconciliation statement') . '" /> + <input type="submit" tabindex="2" name="ShowRec" value="' . _('Show bank reconciliation statement') . '" /> </div> </p> <br />'; @@ -364,7 +364,7 @@ <td colspan="7">' . _('It is normal for foreign currency accounts to have exchange differences that need to be reflected as the exchange rate varies. This reconciliation is prepared using the exchange rate set up in the currencies table (see the set-up tab). This table must be maintained with the current exchange rate before running the reconciliation. If you wish to create a journal to reflect the exchange difference based on the current exchange rate to correct the reconciliation to the actual bank statement balance click below.') . '</td> </tr> <tr> - <td colspan="7" align="center"><input type=submit name="DoExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" /></td> + <td colspan="7" align="center"><input type="submit" name="DoExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" /></td> </tr>'; } echo '</table>'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -327,7 +327,7 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input type=hidden name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Credit_Invoice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -315,7 +315,7 @@ if ($LnItm->Controlled==1){ - echo '<td><input type=hidden name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustWhereAlloc.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -10,8 +10,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . - _('Customer Where Allocated'). '" alt="" />' . $title . ' + <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Customer Where Allocated'). '" alt="" />' . $title . ' </p> <table class="selection"> <tr> @@ -96,7 +95,7 @@ echo '<tr> <th colspan="6"> <div class="centre"> - <font size=3 color="blue"><b>'._('Allocations made against invoice number') . ' ' . $_POST['TransNo'] . '<br />'._('Transaction Total').': '. locale_number_format($myrow['totamt'],$CurrDecimalPlaces) . ' ' . $CurrCode . '</font></b> + <b>'._('Allocations made against invoice number') . ' ' . $_POST['TransNo'] . '<br />'._('Transaction Total').': '. locale_number_format($myrow['totamt'],$CurrDecimalPlaces) . ' ' . $CurrCode . '</b> </div> </th> </tr>'; Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustomerAllocations.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -338,7 +338,7 @@ // Page called with trans number echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; + echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; // Show trans already allocated and potential new allocations @@ -408,7 +408,7 @@ $balance += $YetToAlloc-$AllocnItem->AllocAmt; $j++; echo '<input tabindex="'.$j.'" type="text" class="number" name="Amt' . $Counter .'" maxlength="12" size="13" value="' . locale_number_format(round($AllocnItem->AllocAmt,$_SESSION['Alloc']->CurrDecimalPlaces),$_SESSION['Alloc']->CurrDecimalPlaces) . '" /> - <input type=hidden name="AllocID' . $Counter . '" value="' . $AllocnItem->ID . '" /></td> + <input type="hidden" name="AllocID' . $Counter . '" value="' . $AllocnItem->ID . '" /></td> <td class="number">' . locale_number_format($balance,$_SESSION['Alloc']->CurrDecimalPlaces) . '</td> </tr>'; } Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustomerTypes.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -239,8 +239,8 @@ $_POST['typeid'] = $myrow['typeid']; $_POST['typename'] = $myrow['typename']; - echo '<input type=hidden name="SelectedType" value="' . $SelectedType . '">'; - echo '<input type=hidden name="typeid" value=' . $_POST['typeid'] . '">'; + echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '">'; + echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '">'; echo '<table class="selection">'; // We dont allow the user to change an existing type code @@ -261,7 +261,7 @@ echo '</td></tr> </table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; echo '</form>'; Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Customers.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -681,11 +681,11 @@ $_POST['CustomerPOLine'] = $myrow['customerpoline']; $_POST['typeid'] = $myrow['typeid']; - echo '<input type=hidden name="DebtorNo" value="' . $DebtorNo . '" />'; + echo '<input type="hidden" name="DebtorNo" value="' . $DebtorNo . '" />'; } else { // its a new customer being added - echo '<input type=hidden name="New" value="Yes" />'; + echo '<input type="hidden" name="New" value="Yes" />'; /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ @@ -1081,7 +1081,7 @@ if (isset($_POST['New']) and $_POST['New']) { echo '<div class="centre"> <input type="submit" name="submit" value="' . _('Add New Customer') . '" /> - <input type=submit name="Reset" value="' . _('Reset') . '" /> + <input type="submit" name="Reset" value="' . _('Reset') . '" /> </div> </form>'; } elseif (!isset($_GET['Modify'])){ Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/DeliveryDetails.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -1072,7 +1072,7 @@ echo '<option selected value=1>' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type=hidden name="ReprintPackingSlip" value=0>'; + echo '<input type="hidden" name="ReprintPackingSlip" value=0>'; } echo '<tr> @@ -1080,7 +1080,7 @@ <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> + echo '<td><input type="submit" name="Update" value="' . _('Recalc Freight Cost') . '" /></td> </tr>'; } @@ -1122,11 +1122,11 @@ echo '</table>'; -echo '<br /><div class="centre"><input type=submit name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; +echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; if ($_SESSION['ExistingOrder'.$identifier]==0){ - echo '<br /><br /><input type=submit name="ProcessOrder" value="' . _('Place Order') . '">'; - echo '<br /><br /><input type=submit name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; + echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '">'; + echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; } else { echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '">'; } Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/EDIMessageFormat.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -162,7 +162,7 @@ echo '</table><p>'; if (DB_num_rows($result)==0){ echo '<div class="centre"> - <input tabindex=1 type=submit name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> + <input tabindex=1 type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> </div> <br />'; } Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/EmailCustTrans.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -38,8 +38,8 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type=hidden name="TransNo" value="' . $_GET['FromTransNo'] . '">'; -echo '<input type=hidden name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; +echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '">'; +echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; echo '<br /><table>'; @@ -64,7 +64,7 @@ <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> </table>'; -echo '<br /><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; +echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '">'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ExchangeRateTrend.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -48,7 +48,7 @@ echo '</table>'; /*close off the table in the third column */ - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; echo '</form>'; // ************** Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/FixedAssetTransfer.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -69,7 +69,7 @@ echo '</td></tr></table><br />'; - echo '<div class="centre"><input type=submit name="Search" value="'. _('Search Now') . '"></div></form><br />'; + echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '"></div></form><br />'; } if (isset($_POST['Search'])) { Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/FormDesigner.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -158,7 +158,7 @@ $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input name=FormName type=hidden value="'.$_POST['FormName'].'">'; +echo '<input name=FormName type="hidden" value="'.$_POST['FormName'].'">'; echo '<table width=95% border=1>'; //Start of outer table echo '<tr><th width=33%>'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'"></th>'; /* Select the paper size/orientation */ Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLAccountReport.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -285,7 +285,7 @@ echo '</table><p> <div class="centre"> - <input type=submit name="RunReport" value="' ._('Run Report'). '"></div> + <input type="submit" name="RunReport" value="' ._('Run Report'). '"></div> </form>'; include ('includes/footer.inc'); Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLBalanceSheet.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -314,7 +314,7 @@ include('includes/header.inc'); echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="BalancePeriodEnd" value="' . $_POST['BalancePeriodEnd'] . '" />'; + echo '<input type="hidden" name="BalancePeriodEnd" value="' . $_POST['BalancePeriodEnd'] . '" />'; $RetainedEarningsAct = $_SESSION['CompanyRecord']['retainedearnings']; Modified: trunk/GLProfit_Loss.php =================================================================== --- trunk/GLProfit_Loss.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLProfit_Loss.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -552,7 +552,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> - <input type=hidden name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; + <input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; $NumberOfMonths = $_POST['ToPeriod'] - $_POST['FromPeriod'] + 1; Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLTrialBalance.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -385,8 +385,8 @@ include('includes/header.inc'); echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> - <input type=hidden name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; + echo '<input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> + <input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; $NumberOfMonths = $_POST['ToPeriod'] - $_POST['FromPeriod'] + 1; @@ -720,7 +720,7 @@ locale_number_format($CheckPeriodBudget,$_SESSION['CompanyRecord']['decimalplaces'])); echo '</table><br />'; - echo '<div class="centre"><input type=submit Name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>'; + echo '<div class="centre"><input type="submit" Name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>'; } echo '</form>'; Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GoodsReceived.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -252,14 +252,14 @@ prnMsg(_('Negative stocks would result by processing a negative delivery - quantities must be changed or the stock quantity of the item going negative corrected before this delivery will be processed.'),'error'); - echo '<div class="centre"><input type=submit name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; }elseif ($DeliveryQuantityTooLarge==1 AND isset($_POST['ProcessGoodsReceived'])){ prnMsg(_('Entered quantities cannot be greater than the quantity entered on the purchase invoice including the allowed over-receive percentage'). ' ' . '(' . $_SESSION['OverReceiveProportion'] .'%)','error'); echo '<br />'; prnMsg(_('Modify the ordered items on the purchase invoice if you wish to increase the quantities'),'info'); - echo '<div class="centre"><input type=submit name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; } elseif (isset($_POST['ProcessGoodsReceived']) AND $_SESSION['PO'.$identifier]->SomethingReceived()==1 AND $InputError == false){ Modified: trunk/GoodsReceivedControlled.php =================================================================== --- trunk/GoodsReceivedControlled.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GoodsReceivedControlled.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -76,7 +76,7 @@ $ShowExisting = false; include ('includes/InputSerialItems.php'); -//echo '<br /><input type=submit name=\'AddBatches\' VALUE=\'Enter\'><br />'; +//echo '<br /><input type="submit" name=\'AddBatches\' VALUE=\'Enter\'><br />'; /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/InventoryQuantities.php =================================================================== --- trunk/InventoryQuantities.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/InventoryQuantities.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -206,7 +206,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/MRPReschedules.php =================================================================== --- trunk/MRPReschedules.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/MRPReschedules.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -149,7 +149,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/MRPShortages.php =================================================================== --- trunk/MRPShortages.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/MRPShortages.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -299,7 +299,7 @@ echo '</table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/OffersReceived.php =================================================================== --- trunk/OffersReceived.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/OffersReceived.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -38,8 +38,8 @@ if (DB_num_rows($result)==0) { prnMsg(_('There are no offers outstanding that you are authorised to deal with'), 'information'); } else { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . - _('Select Supplier') . '" alt="" />' . ' ' . _('Select Supplier') . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Select Supplier') . '" alt="" /> + ' . ' ' . _('Select Supplier') . '</p>'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> @@ -53,7 +53,7 @@ </tr> <tr><td colspan="12"> <div class="centre"> - <input type=submit name=select value=' . _('Enter Information') . '> + <input type="submit" name="select" value="' . _('Enter Information') . '" /> </div> </td> </tr> @@ -140,7 +140,7 @@ echo '<tr> <td colspan="12"> <div class="centre"> - <input type="submit" name="submit" value=' . _('Enter Information') . '> + <input type="submit" name="submit" value="' . _('Enter Information') . '" /> </div> </td> </tr> Modified: trunk/OutstandingGRNs.php =================================================================== --- trunk/OutstandingGRNs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/OutstandingGRNs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -175,7 +175,7 @@ </table> <br /> <div class="centre"> - <input type=Submit Name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" Name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFChequeListing.php =================================================================== --- trunk/PDFChequeListing.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFChequeListing.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -66,7 +66,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFCustomerList.php =================================================================== --- trunk/PDFCustomerList.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFCustomerList.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -414,7 +414,7 @@ echo '</table> <br /> <div class="centre"> - <input type=Submit Name="PrintPDF" value="'. _('Print PDF'). '"> + <input type="submit" Name="PrintPDF" value="'. _('Print PDF'). '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFOrderStatus.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -70,7 +70,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFPriceList.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -306,7 +306,7 @@ echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />'; echo '</td></tr>'; - echo '</table><br /><div class="centre"><input type=Submit Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; + echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; } include('includes/footer.inc'); Modified: trunk/PDFRemittanceAdvice.php =================================================================== --- trunk/PDFRemittanceAdvice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFRemittanceAdvice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -167,7 +167,7 @@ echo '</table> <div class="centre"> - <input type=Submit Name="PrintPDF" Value="' . _('Print PDF') . '"> + <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '"> </div>'; include ('includes/footer.inc'); Modified: trunk/PO_AuthorisationLevels.php =================================================================== --- trunk/PO_AuthorisationLevels.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_AuthorisationLevels.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -209,7 +209,7 @@ <td>'._('Currency').'</td> <td>' . $myrow['currency'] . '</td> </tr>'; - echo '<input type=hidden name="CurrCode" value="'.$Currency.'"'; + echo '<input type="hidden" name="CurrCode" value="'.$Currency.'"'; } else { echo '<tr><td>'._('Currency').'</td><td><select name="CurrCode">'; $currencysql="SELECT currabrev,currency FROM currencies"; @@ -226,16 +226,16 @@ echo '<tr><td>'._('User can create orders').'</td>'; if ($CanCreate==1) { - echo '<td><input type=checkbox name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" name="CanCreate"></td></tr>'; } else { - echo '<td><input type=checkbox checked name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" checked name="CanCreate"></td></tr>'; } echo '<tr><td>'._('User can release invoices').'</td>'; if ($OffHold==1) { - echo '<td><input type=checkbox name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" name="OffHold"></td></tr>'; } else { - echo '<td><input type=checkbox checked name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" checked name="OffHold"></td></tr>'; } echo '<tr><td>'._('User can authorise orders up to :').'</td>'; @@ -243,9 +243,9 @@ echo '</table>'; if (isset($_GET['Edit'])) { - echo '<br /><div class="centre"><input type=submit name="Update" value="'._('Update Information').'"></div></form>'; + echo '<br /><div class="centre"><input type="submit" name="Update" value="'._('Update Information').'"></div></form>'; } else { - echo '<br /><div class="centre"><input type=submit name="Submit" value="'._('Enter Information').'"></div></form>'; + echo '<br /><div class="centre"><input type="submit" name="Submit" value="'._('Enter Information').'"></div></form>'; } include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_Header.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -782,7 +782,7 @@ <option selected value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select></td>'; - echo '<td><input type=submit name="AllowRePrint" value="Update"></td></tr>'; + echo '<td><input type="submit" name="AllowRePrint" value="Update"></td></tr>'; } elseif ($Printed) { echo '<tr><td colspan=2><a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $_SESSION['ExistingOrder'] . '&identifier='.$identifier. '">' . _('Reprint Now') . '</a></td></tr>'; } Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_Items.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -768,7 +768,7 @@ <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ReqDelDate" size=11 value="'.$_SESSION['PO'.$identifier]->DeliveryDate .'" /></td></tr>'; echo '</table>'; echo '<div class="centre"> - <input type=submit name="EnterLine" value="Enter Item" /> + <input type="submit" name="EnterLine" value="Enter Item" /> </div>'; } Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_PDFPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -351,10 +351,10 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ($ViewingOnly==1){ - echo '<input type=hidden name="ViewingOnly" value=1>'; + echo '<input type="hidden" name="ViewingOnly" value=1>'; } echo '<br /><br />'; - echo '<input type=hidden name="OrderNo" value="'. $OrderNo. '">'; + echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '">'; echo '<table> <tr> <td>'. _('Print or Email the Order'). '</td> Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_SelectOSPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -222,7 +222,7 @@ echo '<table> <tr> <td><input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '" /> - <input type=submit name="ResetPart" value="' . _('Show All') . '" /></td> + <input type="submit" name="ResetPart" value="' . _('Show All') . '" /></td> </tr> </table>'; Modified: trunk/PaymentTerms.php =================================================================== --- trunk/PaymentTerms.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PaymentTerms.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -247,8 +247,8 @@ $DaysBeforeDue = $myrow['daysbeforedue']; $DayInFollowingMonth = $myrow['dayinfollowingmonth']; - echo '<input type=hidden name="SelectedTerms" value="' . $SelectedTerms . '" />'; - echo '<input type=hidden name="TermsIndicator" value="' . $_POST['TermsIndicator'] . '" />'; + echo '<input type="hidden" name="SelectedTerms" value="' . $SelectedTerms . '" />'; + echo '<input type="hidden" name="TermsIndicator" value="' . $_POST['TermsIndicator'] . '" />'; echo '<br /> <table class="selection">'; echo '<tr> Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Payments.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -1034,8 +1034,8 @@ echo '</table><br />'; echo '<div class="centre"> - <input type=submit name="Process" value="' . _('Accept') . '" /> - <input type=submit name="Cancel" value="' . _('Cancel') . '" /> + <input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> </div>'; if (sizeOf($_SESSION['PaymentDetail']->GLItems)>0) { @@ -1102,7 +1102,7 @@ echo '<input type="hidden" name="Discount" Value="0" />'; } echo '</table><br />'; - echo '<input type=submit name="CommitBatch" value="' . _('Accept and Process Payment') . '" />'; + echo '<input type="submit" name="CommitBatch" value="' . _('Accept and Process Payment') . '" />'; } echo '</form>'; Modified: trunk/PcAssignCashToTab.php =================================================================== --- trunk/PcAssignCashToTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcAssignCashToTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -214,7 +214,7 @@ echo '<tr><th colspan="8">' . _('Detail Of PC Tab Movements For Last') .': '; echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; echo '<input type="text" class="number" name="Days" value="' . $Days . '" maxlength="3" size="4" /> ' . _('Days'); - echo '<input type=submit name="Go" value="' . _('Go') . '" />'; + echo '<input type="submit" name="Go" value="' . _('Go') . '" />'; echo '</th></tr></form>'; echo '<tr> <th>' . _('Date') . '</th> @@ -322,9 +322,9 @@ $_POST['Receipt'] = $myrow['receipt']; echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; - echo '<input type=hidden name="SelectedIndex" value="' . $SelectedIndex. '" />'; - echo '<input type=hidden name="CurrentAmount" value="' . $Amount[0]. '" />'; - echo '<input type=hidden name="Days" value="' . $Days . '" />'; + echo '<input type="hidden" name="SelectedIndex" value="' . $SelectedIndex. '" />'; + echo '<input type="hidden" name="CurrentAmount" value="' . $Amount[0]. '" />'; + echo '<input type="hidden" name="Days" value="' . $Days . '" />'; } /* Ricard: needs revision of this date initialization */ @@ -362,9 +362,9 @@ <td><input type="text" name="Receipt" size="50" maxlength="49" value="' . $_POST['Receipt'] . '" /></td> </tr>'; - echo '<input type=hidden name="CurrentAmount" value="' . $Amount['0']. '" />'; - echo '<input type=hidden name="SelectedTabs" value="' . $SelectedTabs . '" />'; - echo '<input type=hidden name="Days" value="' .$Days. '" />'; + echo '<input type="hidden" name="CurrentAmount" value="' . $Amount['0']. '" />'; + echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; + echo '<input type="hidden" name="Days" value="' .$Days. '" />'; echo '</td></tr></table>'; // close main table Modified: trunk/PcAuthorizeExpenses.php =================================================================== --- trunk/PcAuthorizeExpenses.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcAuthorizeExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -319,7 +319,7 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name="Process" value="' . _('Accept') . '"> + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/PcExpenses.php =================================================================== --- trunk/PcExpenses.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -264,8 +264,8 @@ $_POST['GLAccount'] = $myrow['glaccount']; $_POST['Tag'] = $myrow['tag']; - echo '<input type=hidden name="SelectedExpense" value="' . $SelectedExpense . '">'; - echo '<input type=hidden name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; + echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '">'; + echo '<input type="hidden" name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; // We dont allow the user to change an existing type code echo '<table class="selection"> <tr> Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcExpensesTypeTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -224,8 +224,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"> - <input type=submit name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"> + <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/PcReportTab.php =================================================================== --- trunk/PcReportTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcReportTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -236,7 +236,7 @@ echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FromDate" VALUE="' . $_POST['FromDate'] . '"> - <input type=hidden name="ToDate" value="' . $_POST['ToDate'] . '">'; + <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '">'; $SqlTabs = "SELECT * FROM pctabs WHERE tabcode='".$SelectedTabs."'"; @@ -396,7 +396,7 @@ $Amount[0]=0; } - echo '<tr><td colspan=2 style=text-align:right >' . _('Balance At') . ' '.$_POST['ToDate'].':</td> + echo '<tr><td colspan=2 style="text"-align:right >' . _('Balance At') . ' '.$_POST['ToDate'].':</td> <td>'.locale_number_format($Amount[0],$_SESSION['CompanyRecord']['decimalplaces']).' </td><td>'.$Tabs['currency'].'</td></tr>'; echo '</table>'; Modified: trunk/PcTabs.php =================================================================== --- trunk/PcTabs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcTabs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -5,8 +5,7 @@ $title = _('Maintenance Of Petty Cash Tabs'); include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') - . '" alt="" />' . ' ' . $title . '</p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') . '" alt="" />' . ' ' . $title . '</p>'; if (isset($_POST['SelectedTab'])){ $SelectedTab = mb_strtoupper($_POST['SelectedTab']); @@ -282,8 +281,8 @@ $_POST['GLAccountPcashTab'] = $myrow['glaccountpcash']; - echo '<input type=hidden name="SelectedTab" value="' . $SelectedTab . '">'; - echo '<input type=hidden name="TabCode" value="' . $_POST['TabCode']. '">'; + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; + echo '<input type="hidden" name="TabCode" value="' . $_POST['TabCode']. '" />'; echo '<table class="selection"> <tr> <td>' . _('Tab Code') . ':</td> @@ -293,7 +292,7 @@ // This is a new type so the user may volunteer a type code echo '<table class="selection"> <tr><td>' . _('Tab Code') . ':</td> - <td><input type="Text"' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TabCode"></td></tr>'; + <td><input type="text"' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TabCode" /></td></tr>'; } @@ -463,7 +462,7 @@ echo '</select></td></tr>'; echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name="Submit" value="' . _('Accept') . '" /><input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; + echo '<p><div class="centre"><input type="submit" name="Submit" value="' . _('Accept') . '" /><input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; Modified: trunk/PcTypeTabs.php =================================================================== --- trunk/PcTypeTabs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcTypeTabs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -123,7 +123,7 @@ echo '<br />'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><div class="centre"><input type=submit name=return value="' . _('Return to list of tab types') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name=return value="' . _('Return to list of tab types') . '"></div>'; echo '</form>'; include('includes/footer.inc'); exit; @@ -233,7 +233,7 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"><input type=submit name="Cancel" VALUE="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"><input type="submit" name="Cancel" VALUE="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Prices.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -214,8 +214,8 @@ <th colspan="7"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Pricing for part') . ': - <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20"> - <input type=submit name="NewPart" value="' . _('Review Prices') . '"></th> + <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20" /> + <input type="submit" name="NewPart" value="' . _('Review Prices') . '" /></th> </tr> </form>'; @@ -269,10 +269,10 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($_GET['Edit'])){ - echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'">'; - echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '">'; - echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '">'; - echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '">'; + echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'" />'; + echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '" />'; + echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '" />'; + echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '" />'; $_POST['CurrAbrev'] = $_GET['CurrAbrev']; $_POST['TypeAbbrev'] = $_GET['TypeAbbrev']; /*the price sent with the get is sql format price so no need to filter */ @@ -332,32 +332,24 @@ $_POST['EndDate'] = ''; } echo '<tr><td>' . _('Price Effective From Date') . ':</td> - <td><input type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size=10 maxlength=10 value="' . $_POST['StartDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size="10" maxlength="10" value="' . $_POST['StartDate'] . '" /></td></tr>'; echo '<tr><td>' . _('Price Effective To Date') . ':</td> - <td><input type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size=10 maxlength=10 value="' . $_POST['EndDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size="10" maxlength="10" value="' . $_POST['EndDate'] . '" /></td></tr>'; echo '<input type="hidden" name="Item" value="' . $Item.'" />'; - ?> - - - <tr><td><?php echo _('Price'); ?>:</td> - <td> - <input type="text" class="number" name="Price" size=12 maxlength=11 value= - "<?php - if(isset($_POST['Price'])) { - echo $_POST['Price']; - } - ?>" /> - - </td></tr> - + echo '<tr><td>' . _('Price') . ':</td> + <td> + <input type="text" class="number" name="Price" size="12" maxlength="11" value='; + if (isset($_POST['Price'])) { + echo $_POST['Price']; + } + echo '" /> + </td></tr> </table> <br /><div class="centre"> - <input type="submit" name="submit" value="<?php echo _('Enter') . '/' . _('Amend Price'); ?>"> - </div> + <input type="submit" name="submit" value="' . _('Enter') . '/' . _('Amend Price') . '"> + </div>'; +} -<?php - } - echo '</form>'; include('includes/footer.inc'); Modified: trunk/RecurringSalesOrders.php =================================================================== --- trunk/RecurringSalesOrders.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/RecurringSalesOrders.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -501,7 +501,7 @@ echo '<input type="submit" name="Process" value="' . _('Update Recurring Order Details') . '" />'; echo '<hr>'; - echo '<br /><br /><input type=submit name="DeleteRecurringOrder" value="' . _('Delete Recurring Order') . ' ' . $_POST['ExistingRecurrOrderNo'] . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this recurring order template?') . '\');" />'; + echo '<br /><br /><input type="submit" name="DeleteRecurringOrder" value="' . _('Delete Recurring Order') . ' ' . $_POST['ExistingRecurrOrderNo'] . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this recurring order template?') . '\');" />'; } echo '</form></div>'; Modified: trunk/ReorderLevel.php =================================================================== --- trunk/ReorderLevel.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ReorderLevel.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -225,7 +225,7 @@ echo '</table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/SalesAnalReptCols.php =================================================================== --- trunk/SalesAnalReptCols.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesAnalReptCols.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -337,7 +337,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="ReportHeading" value="'.$ReportHeading.'" />'; - echo '<input type=hidden name="ReportID" value="' . $ReportID . '" />'; + echo '<input type="hidden" name="ReportID" value="' . $ReportID . '" />'; if (isset($SelectedCol)) { //editing an existing Column @@ -382,7 +382,7 @@ $_POST['BudgetOrActual']=$myrow['budgetoractual']; $_POST['ValFormat']=$myrow['valformat']; - echo '<input type=hidden name="SelectedCol" value="' . $SelectedCol . '" />'; + echo '<input type="hidden" name="SelectedCol" value="' . $SelectedCol . '" />'; echo '<table class="selection">'; } else { @@ -477,11 +477,11 @@ } echo '</select></td> </tr>'; - echo '<input type=hidden name="ValFormat" value="N" /> - <input type=hidden name="ColNumerator" value="0" /> - <input type=hidden name="ColDenominator" value="0" /> - <input type=hidden name="CalcOperator" value="" /> - <input type=hidden name="Constant" value="0" />'; + echo '<input type="hidden" name="ValFormat" value="N" /> + <input type="hidden" name="ColNumerator" value="0" /> + <input type="hidden" name="ColDenominator" value="0" /> + <input type="hidden" name="CalcOperator" value="" /> + <input type="hidden" name="Constant" value="0" />'; } else { /*it IS a calculated column */ @@ -539,10 +539,10 @@ echo '<option selected value="P">' . _('Percentage') . '</option>'; } echo '</select></td></tr> - <input type=hidden name="BudgetOrActual" value="0" /> - <input type=hidden name="DataType" value="" /> - <input type=hidden name="PeriodFrom" value="0" /> - <input type=hidden name="PeriodTo" value="0" />'; + <input type="hidden" name="BudgetOrActual" value="0" /> + <input type="hidden" name="DataType" value="" /> + <input type="hidden" name="PeriodFrom" value="0" /> + <input type="hidden" name="PeriodTo" value="0" />'; } echo '</table>'; Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesCategories.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -301,8 +301,8 @@ $_POST['ParentCategory'] = $myrow['parentcatid']; $_POST['SalesCatName'] = $myrow['salescatname']; - echo '<input type=hidden name="SelectedCategory" value="' . $SelectedCategory . '">'; - echo '<input type=hidden name="ParentCategory" value="' . (isset($_POST['ParentCatId'])?($_POST['ParentCategory']):('0')) . '">'; + echo '<input type="hidden" name="SelectedCategory" value="' . $SelectedCategory . '">'; + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCatId'])?($_POST['ParentCategory']):('0')) . '">'; $FormCaps = _('Edit Sub Category'); } else { //end of if $SelectedCategory only do the else when a new record is being entered @@ -310,7 +310,7 @@ if (isset($ParentCategory)) { $_POST['ParentCategory'] = $ParentCategory; } - echo '<input type=hidden name="ParentCategory" value="' . + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCategory'])?($_POST['ParentCategory']):('0')) . '">'; $FormCaps = _('New Sub Category'); } @@ -369,9 +369,9 @@ echo '<p><form enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if( isset($SelectedCategory) ) { // If we selected a category we need to keep it selected - echo '<input type=hidden name="SelectedCategory" value="' . $SelectedCategory . '" />'; + echo '<input type="hidden" name="SelectedCategory" value="' . $SelectedCategory . '" />'; } - echo '<input type=hidden name="ParentCategory" value="' . + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCategory'])?($_POST['ParentCategory']):('0')) . '" /> '; Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesGraph.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -179,8 +179,8 @@ <input type="radio"" name="GraphOn" value="All" CHECKED>' . _('All') . '<br /> <input type="radio"" name="GraphOn" value="Customer">' . _('Customer') . '<br /> <input type="radio"" name="GraphOn" value="StockID">' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> - <td>' . _('To:') . ' <input type=TEXT name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> + <td>' . _('To:') . ' <input type="text" name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> <input type="radio"" name="GraphValue" value="Net" CHECKED>' . _('Net Sales Value') . '<br /> Modified: trunk/SalesPeople.php =================================================================== --- trunk/SalesPeople.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesPeople.php 2012-01-22... [truncated message content] |
From: <vv...@us...> - 2012-01-22 02:58:01
|
Revision: 4830 http://web-erp.svn.sourceforge.net/web-erp/?rev=4830&view=rev Author: vvs2012 Date: 2012-01-22 02:57:49 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/AccountSections.php trunk/AddCustomerNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/BOMExtendedQty.php trunk/BOMIndentedReverse.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankReconciliation.php trunk/ConfirmDispatch_Invoice.php trunk/Credit_Invoice.php trunk/CustWhereAlloc.php trunk/CustomerAllocations.php trunk/CustomerTypes.php trunk/Customers.php trunk/DeliveryDetails.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/GLAccountReport.php trunk/GLBalanceSheet.php trunk/GLProfit_Loss.php trunk/GLTrialBalance.php trunk/GoodsReceived.php trunk/GoodsReceivedControlled.php trunk/InventoryQuantities.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/OffersReceived.php trunk/OutstandingGRNs.php trunk/PDFChequeListing.php trunk/PDFCustomerList.php trunk/PDFOrderStatus.php trunk/PDFPriceList.php trunk/PDFRemittanceAdvice.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/SalesAnalReptCols.php trunk/SalesCategories.php trunk/SalesGraph.php trunk/SalesPeople.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockLocTransfer.php trunk/StockQuantityByDate.php trunk/StockTransferControlled.php trunk/StockUsage.php trunk/SupplierCredit.php trunk/Suppliers.php trunk/TaxAuthorityRates.php trunk/TaxProvinces.php trunk/WorkOrderCosting.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/doc/Change.log trunk/doc/Manual/ManualAPIFunctions.php trunk/doc/Manual/ManualGeneralLedger.html trunk/doc/Manual/ManualRequirements.html trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsFile.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/OutputSerialItems.php Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AccountSections.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -232,7 +232,7 @@ $_POST['SectionID'] = $myrow['sectionid']; $_POST['SectionName'] = $myrow['sectionname']; - echo '<input type=hidden name="SelectedSectionID" value="' . $_POST['SectionID'] . '" />'; + echo '<input type="hidden" name="SelectedSectionID" value="' . $_POST['SectionID'] . '" />'; echo '<table class="selection"> <tr> <td>' . _('Section Number') . ':' . '</td> Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AddCustomerNotes.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -191,9 +191,9 @@ $_POST['date'] = $myrow['date']; $_POST['priority'] = $myrow['priority']; $_POST['debtorno'] = $myrow['debtorno']; - echo '<input type=hidden name="Id" value="'. $Id .'" />'; - echo '<input type=hidden name="Con_ID" value="' . $_POST['noteid'] . '" />'; - echo '<input type=hidden name="DebtorNo" value="' . $_POST['debtorno'] . '" />'; + echo '<input type="hidden" name="Id" value="'. $Id .'" />'; + echo '<input type="hidden" name="Con_ID" value="' . $_POST['noteid'] . '" />'; + echo '<input type="hidden" name="DebtorNo" value="' . $_POST['debtorno'] . '" />'; echo '<table class="selection"> <tr> <td>'. _('Note ID').':</td> Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AgedDebtors.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -513,7 +513,7 @@ </table> <br /> <div class="centre"> - <input tabindex="7" type=submit name="PrintPDF" value="' . _('Print PDF') , '" /> + <input tabindex="7" type="submit" name="PrintPDF" value="' . _('Print PDF') , '" /> </div>'; } include('includes/footer.inc'); Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/AgedSuppliers.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -325,7 +325,7 @@ </table> <br /> <div class="centre"> - <input tabindex="6" type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input tabindex="6" type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; } include('includes/footer.inc'); Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Areas.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -195,8 +195,8 @@ $_POST['AreaCode'] = $myrow['areacode']; $_POST['AreaDescription'] = $myrow['areadescription']; - echo '<input type=hidden name="SelectedArea" value="' . $SelectedArea . '" />'; - echo '<input type=hidden name="AreaCode" value="' .$_POST['AreaCode'] . '" />'; + echo '<input type="hidden" name="SelectedArea" value="' . $SelectedArea . '" />'; + echo '<input type="hidden" name="AreaCode" value="' .$_POST['AreaCode'] . '" />'; echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMExtendedQty.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -292,7 +292,7 @@ <br /> <div class="centre"> <br /> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMIndentedReverse.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -252,7 +252,7 @@ </table> <p> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div> </p>'; Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BOMs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -605,7 +605,7 @@ } else { //end of if $SelectedComponent - echo '<input type=hidden name="SelectedParent" value="' . $SelectedParent . '" />'; + echo '<input type="hidden" name="SelectedParent" value="' . $SelectedParent . '" />'; /* echo "Enter the details of a new component in the fields below. <br />Click on 'Enter Information' to add the new component, once all fields are completed."; */ echo '<table class="selection">'; Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BankAccounts.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -276,8 +276,8 @@ $_POST['CurrCode'] = $myrow['currcode']; $_POST['DefAccount'] = $myrow['invoice']; - echo '<input type=hidden name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; - echo '<input type=hidden name="AccountCode" value="' . $_POST['AccountCode'] . '">'; + echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; + echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '">'; echo '<table class="selection"> <tr><td>' . _('Bank Account GL Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td> Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/BankReconciliation.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -131,7 +131,7 @@ echo '</table> <p> <div class="centre"> - <input type=submit tabindex="2" name="ShowRec" value="' . _('Show bank reconciliation statement') . '" /> + <input type="submit" tabindex="2" name="ShowRec" value="' . _('Show bank reconciliation statement') . '" /> </div> </p> <br />'; @@ -364,7 +364,7 @@ <td colspan="7">' . _('It is normal for foreign currency accounts to have exchange differences that need to be reflected as the exchange rate varies. This reconciliation is prepared using the exchange rate set up in the currencies table (see the set-up tab). This table must be maintained with the current exchange rate before running the reconciliation. If you wish to create a journal to reflect the exchange difference based on the current exchange rate to correct the reconciliation to the actual bank statement balance click below.') . '</td> </tr> <tr> - <td colspan="7" align="center"><input type=submit name="DoExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" /></td> + <td colspan="7" align="center"><input type="submit" name="DoExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" /></td> </tr>'; } echo '</table>'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -327,7 +327,7 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input type=hidden name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Credit_Invoice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -315,7 +315,7 @@ if ($LnItm->Controlled==1){ - echo '<td><input type=hidden name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustWhereAlloc.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -10,8 +10,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . - _('Customer Where Allocated'). '" alt="" />' . $title . ' + <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Customer Where Allocated'). '" alt="" />' . $title . ' </p> <table class="selection"> <tr> @@ -96,7 +95,7 @@ echo '<tr> <th colspan="6"> <div class="centre"> - <font size=3 color="blue"><b>'._('Allocations made against invoice number') . ' ' . $_POST['TransNo'] . '<br />'._('Transaction Total').': '. locale_number_format($myrow['totamt'],$CurrDecimalPlaces) . ' ' . $CurrCode . '</font></b> + <b>'._('Allocations made against invoice number') . ' ' . $_POST['TransNo'] . '<br />'._('Transaction Total').': '. locale_number_format($myrow['totamt'],$CurrDecimalPlaces) . ' ' . $CurrCode . '</b> </div> </th> </tr>'; Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustomerAllocations.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -338,7 +338,7 @@ // Page called with trans number echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; + echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; // Show trans already allocated and potential new allocations @@ -408,7 +408,7 @@ $balance += $YetToAlloc-$AllocnItem->AllocAmt; $j++; echo '<input tabindex="'.$j.'" type="text" class="number" name="Amt' . $Counter .'" maxlength="12" size="13" value="' . locale_number_format(round($AllocnItem->AllocAmt,$_SESSION['Alloc']->CurrDecimalPlaces),$_SESSION['Alloc']->CurrDecimalPlaces) . '" /> - <input type=hidden name="AllocID' . $Counter . '" value="' . $AllocnItem->ID . '" /></td> + <input type="hidden" name="AllocID' . $Counter . '" value="' . $AllocnItem->ID . '" /></td> <td class="number">' . locale_number_format($balance,$_SESSION['Alloc']->CurrDecimalPlaces) . '</td> </tr>'; } Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/CustomerTypes.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -239,8 +239,8 @@ $_POST['typeid'] = $myrow['typeid']; $_POST['typename'] = $myrow['typename']; - echo '<input type=hidden name="SelectedType" value="' . $SelectedType . '">'; - echo '<input type=hidden name="typeid" value=' . $_POST['typeid'] . '">'; + echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '">'; + echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '">'; echo '<table class="selection">'; // We dont allow the user to change an existing type code @@ -261,7 +261,7 @@ echo '</td></tr> </table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; echo '</form>'; Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Customers.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -681,11 +681,11 @@ $_POST['CustomerPOLine'] = $myrow['customerpoline']; $_POST['typeid'] = $myrow['typeid']; - echo '<input type=hidden name="DebtorNo" value="' . $DebtorNo . '" />'; + echo '<input type="hidden" name="DebtorNo" value="' . $DebtorNo . '" />'; } else { // its a new customer being added - echo '<input type=hidden name="New" value="Yes" />'; + echo '<input type="hidden" name="New" value="Yes" />'; /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ @@ -1081,7 +1081,7 @@ if (isset($_POST['New']) and $_POST['New']) { echo '<div class="centre"> <input type="submit" name="submit" value="' . _('Add New Customer') . '" /> - <input type=submit name="Reset" value="' . _('Reset') . '" /> + <input type="submit" name="Reset" value="' . _('Reset') . '" /> </div> </form>'; } elseif (!isset($_GET['Modify'])){ Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/DeliveryDetails.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -1072,7 +1072,7 @@ echo '<option selected value=1>' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type=hidden name="ReprintPackingSlip" value=0>'; + echo '<input type="hidden" name="ReprintPackingSlip" value=0>'; } echo '<tr> @@ -1080,7 +1080,7 @@ <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> + echo '<td><input type="submit" name="Update" value="' . _('Recalc Freight Cost') . '" /></td> </tr>'; } @@ -1122,11 +1122,11 @@ echo '</table>'; -echo '<br /><div class="centre"><input type=submit name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; +echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; if ($_SESSION['ExistingOrder'.$identifier]==0){ - echo '<br /><br /><input type=submit name="ProcessOrder" value="' . _('Place Order') . '">'; - echo '<br /><br /><input type=submit name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; + echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '">'; + echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; } else { echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '">'; } Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/EDIMessageFormat.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -162,7 +162,7 @@ echo '</table><p>'; if (DB_num_rows($result)==0){ echo '<div class="centre"> - <input tabindex=1 type=submit name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> + <input tabindex=1 type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> </div> <br />'; } Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/EmailCustTrans.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -38,8 +38,8 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type=hidden name="TransNo" value="' . $_GET['FromTransNo'] . '">'; -echo '<input type=hidden name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; +echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '">'; +echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; echo '<br /><table>'; @@ -64,7 +64,7 @@ <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> </table>'; -echo '<br /><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; +echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '">'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ExchangeRateTrend.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -48,7 +48,7 @@ echo '</table>'; /*close off the table in the third column */ - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; echo '</form>'; // ************** Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/FixedAssetTransfer.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -69,7 +69,7 @@ echo '</td></tr></table><br />'; - echo '<div class="centre"><input type=submit name="Search" value="'. _('Search Now') . '"></div></form><br />'; + echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '"></div></form><br />'; } if (isset($_POST['Search'])) { Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/FormDesigner.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -158,7 +158,7 @@ $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input name=FormName type=hidden value="'.$_POST['FormName'].'">'; +echo '<input name=FormName type="hidden" value="'.$_POST['FormName'].'">'; echo '<table width=95% border=1>'; //Start of outer table echo '<tr><th width=33%>'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'"></th>'; /* Select the paper size/orientation */ Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLAccountReport.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -285,7 +285,7 @@ echo '</table><p> <div class="centre"> - <input type=submit name="RunReport" value="' ._('Run Report'). '"></div> + <input type="submit" name="RunReport" value="' ._('Run Report'). '"></div> </form>'; include ('includes/footer.inc'); Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLBalanceSheet.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -314,7 +314,7 @@ include('includes/header.inc'); echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="BalancePeriodEnd" value="' . $_POST['BalancePeriodEnd'] . '" />'; + echo '<input type="hidden" name="BalancePeriodEnd" value="' . $_POST['BalancePeriodEnd'] . '" />'; $RetainedEarningsAct = $_SESSION['CompanyRecord']['retainedearnings']; Modified: trunk/GLProfit_Loss.php =================================================================== --- trunk/GLProfit_Loss.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLProfit_Loss.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -552,7 +552,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> - <input type=hidden name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; + <input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; $NumberOfMonths = $_POST['ToPeriod'] - $_POST['FromPeriod'] + 1; Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GLTrialBalance.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -385,8 +385,8 @@ include('includes/header.inc'); echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> - <input type=hidden name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; + echo '<input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" /> + <input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />'; $NumberOfMonths = $_POST['ToPeriod'] - $_POST['FromPeriod'] + 1; @@ -720,7 +720,7 @@ locale_number_format($CheckPeriodBudget,$_SESSION['CompanyRecord']['decimalplaces'])); echo '</table><br />'; - echo '<div class="centre"><input type=submit Name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>'; + echo '<div class="centre"><input type="submit" Name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" /></div>'; } echo '</form>'; Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GoodsReceived.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -252,14 +252,14 @@ prnMsg(_('Negative stocks would result by processing a negative delivery - quantities must be changed or the stock quantity of the item going negative corrected before this delivery will be processed.'),'error'); - echo '<div class="centre"><input type=submit name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; }elseif ($DeliveryQuantityTooLarge==1 AND isset($_POST['ProcessGoodsReceived'])){ prnMsg(_('Entered quantities cannot be greater than the quantity entered on the purchase invoice including the allowed over-receive percentage'). ' ' . '(' . $_SESSION['OverReceiveProportion'] .'%)','error'); echo '<br />'; prnMsg(_('Modify the ordered items on the purchase invoice if you wish to increase the quantities'),'info'); - echo '<div class="centre"><input type=submit name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; } elseif (isset($_POST['ProcessGoodsReceived']) AND $_SESSION['PO'.$identifier]->SomethingReceived()==1 AND $InputError == false){ Modified: trunk/GoodsReceivedControlled.php =================================================================== --- trunk/GoodsReceivedControlled.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/GoodsReceivedControlled.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -76,7 +76,7 @@ $ShowExisting = false; include ('includes/InputSerialItems.php'); -//echo '<br /><input type=submit name=\'AddBatches\' VALUE=\'Enter\'><br />'; +//echo '<br /><input type="submit" name=\'AddBatches\' VALUE=\'Enter\'><br />'; /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/InventoryQuantities.php =================================================================== --- trunk/InventoryQuantities.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/InventoryQuantities.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -206,7 +206,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/MRPReschedules.php =================================================================== --- trunk/MRPReschedules.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/MRPReschedules.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -149,7 +149,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/MRPShortages.php =================================================================== --- trunk/MRPShortages.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/MRPShortages.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -299,7 +299,7 @@ echo '</table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/OffersReceived.php =================================================================== --- trunk/OffersReceived.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/OffersReceived.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -38,8 +38,8 @@ if (DB_num_rows($result)==0) { prnMsg(_('There are no offers outstanding that you are authorised to deal with'), 'information'); } else { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . - _('Select Supplier') . '" alt="" />' . ' ' . _('Select Supplier') . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Select Supplier') . '" alt="" /> + ' . ' ' . _('Select Supplier') . '</p>'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> @@ -53,7 +53,7 @@ </tr> <tr><td colspan="12"> <div class="centre"> - <input type=submit name=select value=' . _('Enter Information') . '> + <input type="submit" name="select" value="' . _('Enter Information') . '" /> </div> </td> </tr> @@ -140,7 +140,7 @@ echo '<tr> <td colspan="12"> <div class="centre"> - <input type="submit" name="submit" value=' . _('Enter Information') . '> + <input type="submit" name="submit" value="' . _('Enter Information') . '" /> </div> </td> </tr> Modified: trunk/OutstandingGRNs.php =================================================================== --- trunk/OutstandingGRNs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/OutstandingGRNs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -175,7 +175,7 @@ </table> <br /> <div class="centre"> - <input type=Submit Name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" Name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFChequeListing.php =================================================================== --- trunk/PDFChequeListing.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFChequeListing.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -66,7 +66,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFCustomerList.php =================================================================== --- trunk/PDFCustomerList.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFCustomerList.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -414,7 +414,7 @@ echo '</table> <br /> <div class="centre"> - <input type=Submit Name="PrintPDF" value="'. _('Print PDF'). '"> + <input type="submit" Name="PrintPDF" value="'. _('Print PDF'). '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFOrderStatus.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -70,7 +70,7 @@ </table> <br /> <div class="centre"> - <input type=submit name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '"> </div>'; include('includes/footer.inc'); Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFPriceList.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -306,7 +306,7 @@ echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />'; echo '</td></tr>'; - echo '</table><br /><div class="centre"><input type=Submit Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; + echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; } include('includes/footer.inc'); Modified: trunk/PDFRemittanceAdvice.php =================================================================== --- trunk/PDFRemittanceAdvice.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PDFRemittanceAdvice.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -167,7 +167,7 @@ echo '</table> <div class="centre"> - <input type=Submit Name="PrintPDF" Value="' . _('Print PDF') . '"> + <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '"> </div>'; include ('includes/footer.inc'); Modified: trunk/PO_AuthorisationLevels.php =================================================================== --- trunk/PO_AuthorisationLevels.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_AuthorisationLevels.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -209,7 +209,7 @@ <td>'._('Currency').'</td> <td>' . $myrow['currency'] . '</td> </tr>'; - echo '<input type=hidden name="CurrCode" value="'.$Currency.'"'; + echo '<input type="hidden" name="CurrCode" value="'.$Currency.'"'; } else { echo '<tr><td>'._('Currency').'</td><td><select name="CurrCode">'; $currencysql="SELECT currabrev,currency FROM currencies"; @@ -226,16 +226,16 @@ echo '<tr><td>'._('User can create orders').'</td>'; if ($CanCreate==1) { - echo '<td><input type=checkbox name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" name="CanCreate"></td></tr>'; } else { - echo '<td><input type=checkbox checked name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" checked name="CanCreate"></td></tr>'; } echo '<tr><td>'._('User can release invoices').'</td>'; if ($OffHold==1) { - echo '<td><input type=checkbox name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" name="OffHold"></td></tr>'; } else { - echo '<td><input type=checkbox checked name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" checked name="OffHold"></td></tr>'; } echo '<tr><td>'._('User can authorise orders up to :').'</td>'; @@ -243,9 +243,9 @@ echo '</table>'; if (isset($_GET['Edit'])) { - echo '<br /><div class="centre"><input type=submit name="Update" value="'._('Update Information').'"></div></form>'; + echo '<br /><div class="centre"><input type="submit" name="Update" value="'._('Update Information').'"></div></form>'; } else { - echo '<br /><div class="centre"><input type=submit name="Submit" value="'._('Enter Information').'"></div></form>'; + echo '<br /><div class="centre"><input type="submit" name="Submit" value="'._('Enter Information').'"></div></form>'; } include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_Header.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -782,7 +782,7 @@ <option selected value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select></td>'; - echo '<td><input type=submit name="AllowRePrint" value="Update"></td></tr>'; + echo '<td><input type="submit" name="AllowRePrint" value="Update"></td></tr>'; } elseif ($Printed) { echo '<tr><td colspan=2><a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $_SESSION['ExistingOrder'] . '&identifier='.$identifier. '">' . _('Reprint Now') . '</a></td></tr>'; } Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_Items.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -768,7 +768,7 @@ <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ReqDelDate" size=11 value="'.$_SESSION['PO'.$identifier]->DeliveryDate .'" /></td></tr>'; echo '</table>'; echo '<div class="centre"> - <input type=submit name="EnterLine" value="Enter Item" /> + <input type="submit" name="EnterLine" value="Enter Item" /> </div>'; } Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_PDFPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -351,10 +351,10 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ($ViewingOnly==1){ - echo '<input type=hidden name="ViewingOnly" value=1>'; + echo '<input type="hidden" name="ViewingOnly" value=1>'; } echo '<br /><br />'; - echo '<input type=hidden name="OrderNo" value="'. $OrderNo. '">'; + echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '">'; echo '<table> <tr> <td>'. _('Print or Email the Order'). '</td> Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PO_SelectOSPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -222,7 +222,7 @@ echo '<table> <tr> <td><input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '" /> - <input type=submit name="ResetPart" value="' . _('Show All') . '" /></td> + <input type="submit" name="ResetPart" value="' . _('Show All') . '" /></td> </tr> </table>'; Modified: trunk/PaymentTerms.php =================================================================== --- trunk/PaymentTerms.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PaymentTerms.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -247,8 +247,8 @@ $DaysBeforeDue = $myrow['daysbeforedue']; $DayInFollowingMonth = $myrow['dayinfollowingmonth']; - echo '<input type=hidden name="SelectedTerms" value="' . $SelectedTerms . '" />'; - echo '<input type=hidden name="TermsIndicator" value="' . $_POST['TermsIndicator'] . '" />'; + echo '<input type="hidden" name="SelectedTerms" value="' . $SelectedTerms . '" />'; + echo '<input type="hidden" name="TermsIndicator" value="' . $_POST['TermsIndicator'] . '" />'; echo '<br /> <table class="selection">'; echo '<tr> Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Payments.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -1034,8 +1034,8 @@ echo '</table><br />'; echo '<div class="centre"> - <input type=submit name="Process" value="' . _('Accept') . '" /> - <input type=submit name="Cancel" value="' . _('Cancel') . '" /> + <input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> </div>'; if (sizeOf($_SESSION['PaymentDetail']->GLItems)>0) { @@ -1102,7 +1102,7 @@ echo '<input type="hidden" name="Discount" Value="0" />'; } echo '</table><br />'; - echo '<input type=submit name="CommitBatch" value="' . _('Accept and Process Payment') . '" />'; + echo '<input type="submit" name="CommitBatch" value="' . _('Accept and Process Payment') . '" />'; } echo '</form>'; Modified: trunk/PcAssignCashToTab.php =================================================================== --- trunk/PcAssignCashToTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcAssignCashToTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -214,7 +214,7 @@ echo '<tr><th colspan="8">' . _('Detail Of PC Tab Movements For Last') .': '; echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; echo '<input type="text" class="number" name="Days" value="' . $Days . '" maxlength="3" size="4" /> ' . _('Days'); - echo '<input type=submit name="Go" value="' . _('Go') . '" />'; + echo '<input type="submit" name="Go" value="' . _('Go') . '" />'; echo '</th></tr></form>'; echo '<tr> <th>' . _('Date') . '</th> @@ -322,9 +322,9 @@ $_POST['Receipt'] = $myrow['receipt']; echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; - echo '<input type=hidden name="SelectedIndex" value="' . $SelectedIndex. '" />'; - echo '<input type=hidden name="CurrentAmount" value="' . $Amount[0]. '" />'; - echo '<input type=hidden name="Days" value="' . $Days . '" />'; + echo '<input type="hidden" name="SelectedIndex" value="' . $SelectedIndex. '" />'; + echo '<input type="hidden" name="CurrentAmount" value="' . $Amount[0]. '" />'; + echo '<input type="hidden" name="Days" value="' . $Days . '" />'; } /* Ricard: needs revision of this date initialization */ @@ -362,9 +362,9 @@ <td><input type="text" name="Receipt" size="50" maxlength="49" value="' . $_POST['Receipt'] . '" /></td> </tr>'; - echo '<input type=hidden name="CurrentAmount" value="' . $Amount['0']. '" />'; - echo '<input type=hidden name="SelectedTabs" value="' . $SelectedTabs . '" />'; - echo '<input type=hidden name="Days" value="' .$Days. '" />'; + echo '<input type="hidden" name="CurrentAmount" value="' . $Amount['0']. '" />'; + echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; + echo '<input type="hidden" name="Days" value="' .$Days. '" />'; echo '</td></tr></table>'; // close main table Modified: trunk/PcAuthorizeExpenses.php =================================================================== --- trunk/PcAuthorizeExpenses.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcAuthorizeExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -319,7 +319,7 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name="Process" value="' . _('Accept') . '"> + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/PcExpenses.php =================================================================== --- trunk/PcExpenses.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -264,8 +264,8 @@ $_POST['GLAccount'] = $myrow['glaccount']; $_POST['Tag'] = $myrow['tag']; - echo '<input type=hidden name="SelectedExpense" value="' . $SelectedExpense . '">'; - echo '<input type=hidden name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; + echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '">'; + echo '<input type="hidden" name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; // We dont allow the user to change an existing type code echo '<table class="selection"> <tr> Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcExpensesTypeTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -224,8 +224,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"> - <input type=submit name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"> + <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/PcReportTab.php =================================================================== --- trunk/PcReportTab.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcReportTab.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -236,7 +236,7 @@ echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FromDate" VALUE="' . $_POST['FromDate'] . '"> - <input type=hidden name="ToDate" value="' . $_POST['ToDate'] . '">'; + <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '">'; $SqlTabs = "SELECT * FROM pctabs WHERE tabcode='".$SelectedTabs."'"; @@ -396,7 +396,7 @@ $Amount[0]=0; } - echo '<tr><td colspan=2 style=text-align:right >' . _('Balance At') . ' '.$_POST['ToDate'].':</td> + echo '<tr><td colspan=2 style="text"-align:right >' . _('Balance At') . ' '.$_POST['ToDate'].':</td> <td>'.locale_number_format($Amount[0],$_SESSION['CompanyRecord']['decimalplaces']).' </td><td>'.$Tabs['currency'].'</td></tr>'; echo '</table>'; Modified: trunk/PcTabs.php =================================================================== --- trunk/PcTabs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcTabs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -5,8 +5,7 @@ $title = _('Maintenance Of Petty Cash Tabs'); include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') - . '" alt="" />' . ' ' . $title . '</p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') . '" alt="" />' . ' ' . $title . '</p>'; if (isset($_POST['SelectedTab'])){ $SelectedTab = mb_strtoupper($_POST['SelectedTab']); @@ -282,8 +281,8 @@ $_POST['GLAccountPcashTab'] = $myrow['glaccountpcash']; - echo '<input type=hidden name="SelectedTab" value="' . $SelectedTab . '">'; - echo '<input type=hidden name="TabCode" value="' . $_POST['TabCode']. '">'; + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; + echo '<input type="hidden" name="TabCode" value="' . $_POST['TabCode']. '" />'; echo '<table class="selection"> <tr> <td>' . _('Tab Code') . ':</td> @@ -293,7 +292,7 @@ // This is a new type so the user may volunteer a type code echo '<table class="selection"> <tr><td>' . _('Tab Code') . ':</td> - <td><input type="Text"' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TabCode"></td></tr>'; + <td><input type="text"' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TabCode" /></td></tr>'; } @@ -463,7 +462,7 @@ echo '</select></td></tr>'; echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name="Submit" value="' . _('Accept') . '" /><input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; + echo '<p><div class="centre"><input type="submit" name="Submit" value="' . _('Accept') . '" /><input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; Modified: trunk/PcTypeTabs.php =================================================================== --- trunk/PcTypeTabs.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/PcTypeTabs.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -123,7 +123,7 @@ echo '<br />'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><div class="centre"><input type=submit name=return value="' . _('Return to list of tab types') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name=return value="' . _('Return to list of tab types') . '"></div>'; echo '</form>'; include('includes/footer.inc'); exit; @@ -233,7 +233,7 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"><input type=submit name="Cancel" VALUE="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"><input type="submit" name="Cancel" VALUE="' . _('Cancel') . '"></div>'; echo '</form>'; Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/Prices.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -214,8 +214,8 @@ <th colspan="7"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Pricing for part') . ': - <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20"> - <input type=submit name="NewPart" value="' . _('Review Prices') . '"></th> + <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20" /> + <input type="submit" name="NewPart" value="' . _('Review Prices') . '" /></th> </tr> </form>'; @@ -269,10 +269,10 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($_GET['Edit'])){ - echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'">'; - echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '">'; - echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '">'; - echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '">'; + echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'" />'; + echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '" />'; + echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '" />'; + echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '" />'; $_POST['CurrAbrev'] = $_GET['CurrAbrev']; $_POST['TypeAbbrev'] = $_GET['TypeAbbrev']; /*the price sent with the get is sql format price so no need to filter */ @@ -332,32 +332,24 @@ $_POST['EndDate'] = ''; } echo '<tr><td>' . _('Price Effective From Date') . ':</td> - <td><input type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size=10 maxlength=10 value="' . $_POST['StartDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size="10" maxlength="10" value="' . $_POST['StartDate'] . '" /></td></tr>'; echo '<tr><td>' . _('Price Effective To Date') . ':</td> - <td><input type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size=10 maxlength=10 value="' . $_POST['EndDate'] . '"></td></tr>'; + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size="10" maxlength="10" value="' . $_POST['EndDate'] . '" /></td></tr>'; echo '<input type="hidden" name="Item" value="' . $Item.'" />'; - ?> - - - <tr><td><?php echo _('Price'); ?>:</td> - <td> - <input type="text" class="number" name="Price" size=12 maxlength=11 value= - "<?php - if(isset($_POST['Price'])) { - echo $_POST['Price']; - } - ?>" /> - - </td></tr> - + echo '<tr><td>' . _('Price') . ':</td> + <td> + <input type="text" class="number" name="Price" size="12" maxlength="11" value='; + if (isset($_POST['Price'])) { + echo $_POST['Price']; + } + echo '" /> + </td></tr> </table> <br /><div class="centre"> - <input type="submit" name="submit" value="<?php echo _('Enter') . '/' . _('Amend Price'); ?>"> - </div> + <input type="submit" name="submit" value="' . _('Enter') . '/' . _('Amend Price') . '"> + </div>'; +} -<?php - } - echo '</form>'; include('includes/footer.inc'); Modified: trunk/RecurringSalesOrders.php =================================================================== --- trunk/RecurringSalesOrders.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/RecurringSalesOrders.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -501,7 +501,7 @@ echo '<input type="submit" name="Process" value="' . _('Update Recurring Order Details') . '" />'; echo '<hr>'; - echo '<br /><br /><input type=submit name="DeleteRecurringOrder" value="' . _('Delete Recurring Order') . ' ' . $_POST['ExistingRecurrOrderNo'] . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this recurring order template?') . '\');" />'; + echo '<br /><br /><input type="submit" name="DeleteRecurringOrder" value="' . _('Delete Recurring Order') . ' ' . $_POST['ExistingRecurrOrderNo'] . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this recurring order template?') . '\');" />'; } echo '</form></div>'; Modified: trunk/ReorderLevel.php =================================================================== --- trunk/ReorderLevel.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/ReorderLevel.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -225,7 +225,7 @@ echo '</table> <br /> <div class="centre"> - <input type=submit name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/SalesAnalReptCols.php =================================================================== --- trunk/SalesAnalReptCols.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesAnalReptCols.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -337,7 +337,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="ReportHeading" value="'.$ReportHeading.'" />'; - echo '<input type=hidden name="ReportID" value="' . $ReportID . '" />'; + echo '<input type="hidden" name="ReportID" value="' . $ReportID . '" />'; if (isset($SelectedCol)) { //editing an existing Column @@ -382,7 +382,7 @@ $_POST['BudgetOrActual']=$myrow['budgetoractual']; $_POST['ValFormat']=$myrow['valformat']; - echo '<input type=hidden name="SelectedCol" value="' . $SelectedCol . '" />'; + echo '<input type="hidden" name="SelectedCol" value="' . $SelectedCol . '" />'; echo '<table class="selection">'; } else { @@ -477,11 +477,11 @@ } echo '</select></td> </tr>'; - echo '<input type=hidden name="ValFormat" value="N" /> - <input type=hidden name="ColNumerator" value="0" /> - <input type=hidden name="ColDenominator" value="0" /> - <input type=hidden name="CalcOperator" value="" /> - <input type=hidden name="Constant" value="0" />'; + echo '<input type="hidden" name="ValFormat" value="N" /> + <input type="hidden" name="ColNumerator" value="0" /> + <input type="hidden" name="ColDenominator" value="0" /> + <input type="hidden" name="CalcOperator" value="" /> + <input type="hidden" name="Constant" value="0" />'; } else { /*it IS a calculated column */ @@ -539,10 +539,10 @@ echo '<option selected value="P">' . _('Percentage') . '</option>'; } echo '</select></td></tr> - <input type=hidden name="BudgetOrActual" value="0" /> - <input type=hidden name="DataType" value="" /> - <input type=hidden name="PeriodFrom" value="0" /> - <input type=hidden name="PeriodTo" value="0" />'; + <input type="hidden" name="BudgetOrActual" value="0" /> + <input type="hidden" name="DataType" value="" /> + <input type="hidden" name="PeriodFrom" value="0" /> + <input type="hidden" name="PeriodTo" value="0" />'; } echo '</table>'; Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesCategories.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -301,8 +301,8 @@ $_POST['ParentCategory'] = $myrow['parentcatid']; $_POST['SalesCatName'] = $myrow['salescatname']; - echo '<input type=hidden name="SelectedCategory" value="' . $SelectedCategory . '">'; - echo '<input type=hidden name="ParentCategory" value="' . (isset($_POST['ParentCatId'])?($_POST['ParentCategory']):('0')) . '">'; + echo '<input type="hidden" name="SelectedCategory" value="' . $SelectedCategory . '">'; + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCatId'])?($_POST['ParentCategory']):('0')) . '">'; $FormCaps = _('Edit Sub Category'); } else { //end of if $SelectedCategory only do the else when a new record is being entered @@ -310,7 +310,7 @@ if (isset($ParentCategory)) { $_POST['ParentCategory'] = $ParentCategory; } - echo '<input type=hidden name="ParentCategory" value="' . + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCategory'])?($_POST['ParentCategory']):('0')) . '">'; $FormCaps = _('New Sub Category'); } @@ -369,9 +369,9 @@ echo '<p><form enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if( isset($SelectedCategory) ) { // If we selected a category we need to keep it selected - echo '<input type=hidden name="SelectedCategory" value="' . $SelectedCategory . '" />'; + echo '<input type="hidden" name="SelectedCategory" value="' . $SelectedCategory . '" />'; } - echo '<input type=hidden name="ParentCategory" value="' . + echo '<input type="hidden" name="ParentCategory" value="' . (isset($_POST['ParentCategory'])?($_POST['ParentCategory']):('0')) . '" /> '; Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesGraph.php 2012-01-22 02:57:49 UTC (rev 4830) @@ -179,8 +179,8 @@ <input type="radio"" name="GraphOn" value="All" CHECKED>' . _('All') . '<br /> <input type="radio"" name="GraphOn" value="Customer">' . _('Customer') . '<br /> <input type="radio"" name="GraphOn" value="StockID">' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> - <td>' . _('To:') . ' <input type=TEXT name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> + <td>' . _('To:') . ' <input type="text" name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> <input type="radio"" name="GraphValue" value="Net" CHECKED>' . _('Net Sales Value') . '<br /> Modified: trunk/SalesPeople.php =================================================================== --- trunk/SalesPeople.php 2012-01-22 00:19:38 UTC (rev 4829) +++ trunk/SalesPeople.php 2012-01-22... [truncated message content] |
From: <dai...@us...> - 2012-01-22 07:33:57
|
Revision: 4831 http://web-erp.svn.sourceforge.net/web-erp/?rev=4831&view=rev Author: daintree Date: 2012-01-22 07:33:48 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/CustomerTypes.php trunk/DeliveryDetails.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FixedAssetTransfer.php trunk/GLAccountReport.php trunk/GoodsReceived.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/PDFChequeListing.php trunk/PDFOrderStatus.php trunk/PDFPriceList.php trunk/PDFRemittanceAdvice.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_PDFPurchOrder.php trunk/PcAuthorizeExpenses.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTypeTabs.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectGLAccount.php trunk/SelectProduct.php Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/CustomerTypes.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -239,8 +239,8 @@ $_POST['typeid'] = $myrow['typeid']; $_POST['typename'] = $myrow['typename']; - echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '">'; - echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '">'; + echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '" />'; + echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '" />'; echo '<table class="selection">'; // We dont allow the user to change an existing type code @@ -256,12 +256,12 @@ $_POST['typename']=''; } echo '<tr><td>' . _('Type Name') . ':</td> - <td><input type="Text" name="typename" value="' . $_POST['typename'] . '"></td></tr>'; + <td><input type="Text" name="typename" value="' . $_POST['typename'] . '" /></td></tr>'; echo '</td></tr> </table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>'; echo '</form>'; Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/DeliveryDetails.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -996,7 +996,7 @@ // The estimated Dispatch date or Delivery date for this order echo '<tr> <td>'. _('Estimated Delivery Date') .':</td> - <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '"></td> + <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> </tr>'; // The date when a quote was issued to the customer echo '<tr> @@ -1034,14 +1034,14 @@ </tr> <tr> <td>'. _('Contact Phone Number') .':</td> - <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '"></td> + <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> </tr> <tr> - <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '"></td> + <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> </tr> <tr> <td>'. _('Customer Reference') .':</td> - <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '"></td> + <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> </tr> <tr> <td>'. _('Comments') .':</td> @@ -1072,7 +1072,7 @@ echo '<option selected value=1>' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type="hidden" name="ReprintPackingSlip" value=0>'; + echo '<input type="hidden" name="ReprintPackingSlip" value=0 />'; } echo '<tr> @@ -1122,13 +1122,13 @@ echo '</table>'; -echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; +echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '" /><br />'; if ($_SESSION['ExistingOrder'.$identifier]==0){ - echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '">'; - echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; + echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '" />'; + echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '" />'; } else { - echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '">'; + echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '" />'; } echo '</div></form>'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/EmailCustTrans.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -38,8 +38,8 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '">'; -echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; +echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '" />'; +echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '" />'; echo '<br /><table>'; @@ -61,10 +61,10 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> + <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '" /></td> </table>'; -echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '">'; +echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '" />'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/ExchangeRateTrend.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -48,7 +48,7 @@ echo '</table>'; /*close off the table in the third column */ - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>'; echo '</form>'; // ************** @@ -59,9 +59,9 @@ $graph = $CurrencyToShow. '/' . $FunctionalCurrency . $graph; $image = 'http://www.x-rates.com/d/' . $graph; - echo '<p></div><table class=selection>'; - echo '<tr><th><div class="centre"><font size=4 color=BLUE><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></font></th></tr>'; - echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '"></td></tr>'; + echo '<p></div><table class="selection">'; + echo '<tr><th><div class="centre"><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></th></tr>'; + echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '" /></td></tr>'; echo '</table>'; Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/FixedAssetTransfer.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -51,25 +51,25 @@ if (isset($_POST['Keywords'])) { - echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size="20" maxlength="25" />'; } else { - echo '<input type="text" name="Keywords" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" size="20" maxlength="25" />'; } echo '</td></tr><tr><td></td>'; - echo '<td><font size 3><b>' . _('OR').' ' . '</b></font>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>'; + echo '<td><b>' . _('OR').' ' . '</b>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>'; echo '<td>'; if (isset($_POST['AssetID'])) { - echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size=15 maxlength=18>'; + echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size="15" maxlength="18" />'; } else { - echo '<input type="text" name="AssetID" size=15 maxlength=18>'; + echo '<input type="text" name="AssetID" size="15" maxlength="18" />'; } echo '</td></tr></table><br />'; - echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '"></div></form><br />'; + echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '" /></div></form><br />'; } if (isset($_POST['Search'])) { @@ -104,23 +104,26 @@ AND fixedassets.assetid " . LIKE . "'".$_POST['AssetID']."' AND fixedassets.serialno " . LIKE . "'".$_POST['SerialNumber']."'"; $Result=DB_query($sql, $db); - echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'" method=post><table class=selection>'; + echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<tr><th>'._('Asset ID') . '</th> + echo '<tr> + <th>'._('Asset ID') . '</th> <th>' . _('Description') . '</th> <th>' . _('Serial number') . '</th> <th>' . _('Purchase Cost') . '</th> <th>' . _('Total Depreciation') . '</th> <th>' . _('Current Location') . '</th> <th>' . _('Move To :') . '</th> - </tr>'; + </tr>'; $locationsql="SELECT locationid, locationdescription from fixedassetlocations"; $LocationResult=DB_query($locationsql, $db); while ($myrow=DB_fetch_array($Result)) { - echo '<tr><td>'.$myrow['assetid'].'</td> + echo '<tr> + <td>'.$myrow['assetid'].'</td> <td>'.$myrow['description'].'</td> <td>'.$myrow['serialno'].'</td> <td class="number">'.locale_number_format($myrow['cost'],$_SESSION['CompanyRecord']['decimalplaces']).'</td> @@ -137,11 +140,11 @@ } DB_data_seek($LocationResult,0); echo '</select></td>'; - echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'"'; - echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'"'; - echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'"'; - echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'"'; - echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move"></td>'; + echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'" />'; + echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'" />'; + echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'" />'; + echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'" />'; + echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move" /></td>'; echo '</tr>'; } echo '</table></form>'; Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/GLAccountReport.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -283,10 +283,12 @@ echo '</select></td></tr>'; // End select tag - echo '</table><p> + echo '</table> + <br /> <div class="centre"> - <input type="submit" name="RunReport" value="' ._('Run Report'). '"></div> - </form>'; + <input type="submit" name="RunReport" value="' ._('Run Report'). '" /> + </div> + </form>'; include ('includes/footer.inc'); exit; Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/GoodsReceived.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -84,7 +84,7 @@ <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, '."'". - $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '"></td> + $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '" /></td> </tr> </table> <br />'; @@ -246,20 +246,20 @@ if ($_SESSION['PO'.$identifier]->SomethingReceived()==0 AND isset($_POST['ProcessGoodsReceived'])){ /*Then dont bother proceeding cos nothing to do ! */ prnMsg(_('There is nothing to process') . '. ' . _('Please enter valid quantities greater than zero'),'warn'); - echo '<div class="centre"><input type="submit" name="Update" Value=' . _('Update') . '></div>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" /></div>'; } elseif ($NegativesFound){ prnMsg(_('Negative stocks would result by processing a negative delivery - quantities must be changed or the stock quantity of the item going negative corrected before this delivery will be processed.'),'error'); - echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />'; }elseif ($DeliveryQuantityTooLarge==1 AND isset($_POST['ProcessGoodsReceived'])){ prnMsg(_('Entered quantities cannot be greater than the quantity entered on the purchase invoice including the allowed over-receive percentage'). ' ' . '(' . $_SESSION['OverReceiveProportion'] .'%)','error'); echo '<br />'; prnMsg(_('Modify the ordered items on the purchase invoice if you wish to increase the quantities'),'info'); - echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />'; } elseif (isset($_POST['ProcessGoodsReceived']) AND $_SESSION['PO'.$identifier]->SomethingReceived()==1 AND $InputError == false){ Modified: trunk/MRPReschedules.php =================================================================== --- trunk/MRPReschedules.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/MRPReschedules.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -149,7 +149,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/MRPShortages.php =================================================================== --- trunk/MRPShortages.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/MRPShortages.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -299,7 +299,7 @@ echo '</table> <br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFChequeListing.php =================================================================== --- trunk/PDFChequeListing.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFChequeListing.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -39,7 +39,7 @@ <td><input type="text" name="FromDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which cheques are to be listed') . ':</td> - <td><input type="text" name="ToDate" maxlength="10" size="10" class=date alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '"></td> + <td><input type="text" name="ToDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td> </tr>'; echo '<tr><td>' . _('Bank Account') . '</td><td>'; @@ -66,7 +66,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFOrderStatus.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -37,7 +37,7 @@ <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which orders are to be listed') . ':</td><td>'; - echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '"></td></tr>'; + echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td></tr>'; echo '<tr><td>' . _('Inventory Category') . '</td><td>'; $sql = "SELECT categorydescription, categoryid FROM stockcategory WHERE stocktype<>'D' AND stocktype<>'L'"; @@ -70,7 +70,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFPriceList.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -306,7 +306,7 @@ echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />'; echo '</td></tr>'; - echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; + echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '" /></div>'; } include('includes/footer.inc'); Modified: trunk/PDFRemittanceAdvice.php =================================================================== --- trunk/PDFRemittanceAdvice.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFRemittanceAdvice.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -167,7 +167,7 @@ echo '</table> <div class="centre"> - <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '"> + <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '" /> </div>'; include ('includes/footer.inc'); Modified: trunk/PO_AuthorisationLevels.php =================================================================== --- trunk/PO_AuthorisationLevels.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_AuthorisationLevels.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -209,7 +209,7 @@ <td>'._('Currency').'</td> <td>' . $myrow['currency'] . '</td> </tr>'; - echo '<input type="hidden" name="CurrCode" value="'.$Currency.'"'; + echo '<input type="hidden" name="CurrCode" value="'.$Currency.'" />'; } else { echo '<tr><td>'._('Currency').'</td><td><select name="CurrCode">'; $currencysql="SELECT currabrev,currency FROM currencies"; @@ -224,28 +224,44 @@ echo '</select></td></tr>'; } -echo '<tr><td>'._('User can create orders').'</td>'; +echo '<tr> + <td>'._('User can create orders').'</td>'; if ($CanCreate==1) { - echo '<td><input type="checkbox" name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" name="CanCreate"></td> + </tr>'; } else { - echo '<td><input type="checkbox" checked name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" checked name="CanCreate"></td> + </tr>'; } -echo '<tr><td>'._('User can release invoices').'</td>'; +echo '<tr> + <td>'._('User can release invoices').'</td>'; if ($OffHold==1) { - echo '<td><input type="checkbox" name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" name="OffHold"></td> + </tr>'; } else { - echo '<td><input type="checkbox" checked name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" checked name="OffHold"></td> + </tr>'; } -echo '<tr><td>'._('User can authorise orders up to :').'</td>'; -echo '<td><input type=input name="AuthLevel" size=11 class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '"></td</tr>'; -echo '</table>'; +echo '<tr> + <td>'._('User can authorise orders up to :').'</td>'; +echo '<td><input type="text" name="AuthLevel" size="11" class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '" /></td> + </tr> + </table>'; if (isset($_GET['Edit'])) { - echo '<br /><div class="centre"><input type="submit" name="Update" value="'._('Update Information').'"></div></form>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="Update" value="'._('Update Information').'" /> + </div> + </form>'; } else { - echo '<br /><div class="centre"><input type="submit" name="Submit" value="'._('Enter Information').'"></div></form>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="Submit" value="'._('Enter Information').'" /> + </div> + </form>'; } include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_Header.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -755,8 +755,7 @@ } echo '<tr><td>' . _('Initiated By') . ':</td> - <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' . - $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>'; + <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' . $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>'; echo '<tr><td>' . _('Requisition Ref') . ':</td> <td><input type="text" name="Requisition" size="16" maxlength="15" value="' . $_POST['Requisition'] . '" /></td></tr>'; @@ -782,7 +781,7 @@ <option selected value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select></td>'; - echo '<td><input type="submit" name="AllowRePrint" value="Update"></td></tr>'; + echo '<td><input type="submit" name="AllowRePrint" value="Update" /></td></tr>'; } elseif ($Printed) { echo '<tr><td colspan=2><a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $_SESSION['ExistingOrder'] . '&identifier='.$identifier. '">' . _('Reprint Now') . '</a></td></tr>'; } @@ -798,7 +797,7 @@ $_SESSION['PO'.$identifier]->OrderNo . '&identifier=' . $identifier . '">'._('Receive this order').'</a></td></tr>'; } if ($_SESSION['PO'.$identifier]->Status==''){ //then its a new order - echo '<input type="hidden" name="Status" value="NewOrder">'; + echo '<input type="hidden" name="Status" value="NewOrder" />'; echo '<tr><td>' . _('New Purchase Order') . '</td></tr>'; } else { echo '<tr><td>' . _('Status') . ' : </td> @@ -845,7 +844,7 @@ </tr>'; echo '<input type="hidden" name="StatusCommentsComplete" value="' . htmlentities($_SESSION['PO'.$identifier]->StatusComments, ENT_QUOTES,'UTF-8') .'" />'; - echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'"></td>'; + echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'" /></td>'; } //end its not a new order echo '</tr></table></td>'; @@ -879,7 +878,7 @@ } echo '</select> - <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '"></td> + <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '" /></td> </tr>'; /* If this is the first time @@ -969,28 +968,28 @@ echo '<tr><td>' . _('Delivery Contact') . ':</td> - <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '"></td> + <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 1 :</td> - <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '"></td> + <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 2 :</td> - <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '"></td> + <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 3 :</td> - <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '"></td> + <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 4 :</td> - <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '"></td> + <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 5 :</td> - <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '"></td> + <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 6 :</td> - <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '"></td> + <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '" /></td> </tr>'; echo '<tr><td>' . _('Phone') . ':</td> - <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '"></td> + <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '" /></td> </tr>'; echo '<tr><td>' . _('Delivery By') . ':</td><td><select name="DeliveryBy">'; @@ -1098,7 +1097,7 @@ echo '<tr> <td>' . _('Delivery To') . ':</td> - <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '"></td> + <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '" /></td> </tr>'; if ($_SESSION['PO'.$identifier]->CurrCode != $_SESSION['CompanyRecord']['currencydefault']) { @@ -1127,7 +1126,7 @@ echo '</td></tr></table><br />'; /* end of main table */ echo '<div class="centre"> - <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '"> + <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '" /> </div>'; } /*end of if supplier selected */ Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_PDFPurchOrder.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -351,10 +351,10 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ($ViewingOnly==1){ - echo '<input type="hidden" name="ViewingOnly" value=1>'; + echo '<input type="hidden" name="ViewingOnly" value=1 />'; } echo '<br /><br />'; - echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '">'; + echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '" />'; echo '<table> <tr> <td>'. _('Print or Email the Order'). '</td> Modified: trunk/PcAuthorizeExpenses.php =================================================================== --- trunk/PcAuthorizeExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcAuthorizeExpenses.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -53,11 +53,11 @@ if(!isset ($Days)){ $Days=30; } - echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '">'; + echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; echo '<br /><table class=selection>'; echo '<tr><th colspan=7>' . _('Detail Of Movement For Last ') .': '; echo '<input type="text" class="number" name="Days" value="' . $Days . '" maxlength="3" size="4" />' . _('Days'); - echo '<input type="submit" name="Go" value="' . _('Go') . '"></tr></th>'; + echo '<input type="submit" name="Go" value="' . _('Go') . '" /></tr></th>'; echo '</form>'; $sql = "SELECT pcashdetails.counterindex, @@ -285,7 +285,7 @@ // Do the postings include ('includes/GLPostings.inc'); - echo'</table><br /><div class="centre"><input type="submit" name="Submit" value=' . _('Update') . '></div></form>'; + echo'</table><br /><div class="centre"><input type="submit" name="Submit" value="' . _('Update') . '" /></div></form>'; } else { /*The option to submit was not hit so display form */ @@ -319,8 +319,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; } /*end of else not submit */ Modified: trunk/PcExpenses.php =================================================================== --- trunk/PcExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcExpenses.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -264,13 +264,14 @@ $_POST['GLAccount'] = $myrow['glaccount']; $_POST['Tag'] = $myrow['tag']; - echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '">'; - echo '<input type="hidden" name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; + echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '" />'; + echo '<input type="hidden" name="CodeExpense" value="' . $_POST['CodeExpense']. '" />'; // We dont allow the user to change an existing type code echo '<table class="selection"> <tr> - <td>' . _('Code Of Expense') . ':</td> - <td>' . $_POST['CodeExpense'] . '</td></tr>'; + <td>' . _('Code Of Expense') . ':</td> + <td>' . $_POST['CodeExpense'] . '</td> + </tr>'; } else { @@ -278,8 +279,8 @@ echo '<table class="selection"> <tr> - <td>' . _('Code Of Expense') . ':</td> - <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense"></td> + <td>' . _('Code Of Expense') . ':</td> + <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense" /></td> </tr>'; } @@ -289,7 +290,7 @@ } echo '<tr> <td>' . _('Description') . ':</td> - <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size=50 maxlength=49 value="' . $_POST['Description'] . '"></td> + <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size="50" maxlength="49" value="' . $_POST['Description'] . '" /></td> </tr>'; echo '<tr> @@ -340,8 +341,11 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /> - <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> + </div>'; echo '</form>'; Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcExpensesTypeTab.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -136,8 +136,8 @@ echo '</table>'; // close table in first column echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; @@ -150,7 +150,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; $sql = "SELECT pctabexpenses.codeexpense, pcexpenses.description @@ -224,8 +224,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; Modified: trunk/PcReportTab.php =================================================================== --- trunk/PcReportTab.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcReportTab.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -20,7 +20,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') . '" alt="" />' . ' ' . $title . '</p>'; - echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (!isset($_POST['FromDate'])){ @@ -62,13 +62,13 @@ echo '</select></td></tr>'; echo'<tr><td>' . _('From Date :') . '</td><td>'; - echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '">'; + echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" />'; echo '</td></tr>'; echo '<tr><td>' . _('To Date:') .'</td><td>'; - echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '">'; + echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '" />'; echo '</td></tr></table><br />'; - echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'">'; - echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '"></div>'; + echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'" />'; + echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '" /></div>'; } else if (isset($_POST['PrintPDF'])) { @@ -235,8 +235,8 @@ echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="FromDate" VALUE="' . $_POST['FromDate'] . '"> - <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '">'; + echo '<input type="hidden" name="FromDate" value="' . $_POST['FromDate'] . '" /> + <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '" />'; $SqlTabs = "SELECT * FROM pctabs WHERE tabcode='".$SelectedTabs."'"; @@ -400,7 +400,7 @@ <td>'.locale_number_format($Amount[0],$_SESSION['CompanyRecord']['decimalplaces']).' </td><td>'.$Tabs['currency'].'</td></tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '"></div>'; + echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '" /></div>'; } echo '</form>'; include('includes/footer.inc'); Modified: trunk/PcTypeTabs.php =================================================================== --- trunk/PcTypeTabs.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcTypeTabs.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -123,7 +123,7 @@ echo '<br />'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><div class="centre"><input type="submit" name=return value="' . _('Return to list of tab types') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Return" value="' . _('Return to list of tab types') . '" /></div>'; echo '</form>'; include('includes/footer.inc'); exit; @@ -206,12 +206,12 @@ $_POST['TypeTabCode'] = $myrow['typetabcode']; $_POST['TypeTabDescription'] = $myrow['typetabdescription']; - echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; - echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '">'; - echo '<table class=selection> + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; + echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '" />'; + echo '<table class="selection"> <tr><td>' . _('Code Of Type Of Tab') . ':</td> - <td>' . $_POST['TypeTabCode'] . '</td>< - /tr>'; + <td>' . $_POST['TypeTabCode'] . '</td> + </tr>'; // We dont allow the user to change an existing type code @@ -221,22 +221,33 @@ // This is a new type so the user may volunteer a type code - echo '<table class="selection"><tr><td>' . _('Code Of Type Of Tab') . ':</td><td><input type="text" - ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode"></td></tr>'; + echo '<table class="selection"> + <tr> + <td>' . _('Code Of Type Of Tab') . ':</td> + <td><input type="text" ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode" /></td> + </tr>'; } if (!isset($_POST['TypeTabDescription'])) { $_POST['TypeTabDescription']=''; } - echo '<tr><td>' . _('Description Of Type of Tab') . ':</td><td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '"></td></tr>'; + echo '<tr> + <td>' . _('Description Of Type of Tab') . ':</td> + <td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '" /></td> + </tr>'; - echo '</td></tr></table>'; // close main table + echo '</td> + </tr> + </table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"><input type="submit" name="Cancel" VALUE="' . _('Cancel') . '"></div>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> + </div> + </form>'; - echo '</form>'; - } // end if user wish to delete include('includes/footer.inc'); Modified: trunk/SelectAsset.php =================================================================== --- trunk/SelectAsset.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectAsset.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -67,11 +67,16 @@ echo '<td>' . _('Enter partial description') . '</b>:</td><td>'; if (isset($_POST['Keywords'])) { - echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size="20" maxlength="25" />'; } else { - echo '<input type="text" name="Keywords" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" size="20" maxlength="25"> /'; } -echo '</td></tr><tr><td>' . _('Asset Location') . ':</td><td><select name="AssetLocation">'; +echo '</td> + </tr> + <tr> + <td>' . _('Asset Location') . ':</td> + <td><select name="AssetLocation">'; + if (!isset($_POST['AssetLocation'])) { $_POST['AssetLocation'] = 'ALL'; } @@ -80,7 +85,7 @@ } else { echo '<option value="ALL">' . _('Any asset location') . '</option>'; } -$result = DB_query('SELECT locationid, locationdescription FROM fixedassetlocations',$db); +$result = DB_query("SELECT locationid, locationdescription FROM fixedassetlocations",$db); while ($myrow = DB_fetch_array($result)) { if ($myrow['locationid'] == $_POST['AssetLocation']) { @@ -94,14 +99,18 @@ echo ' </td><td><b>' . _('OR') . ' ' . '</b>' . _('Enter partial asset code') . '</b>:</td>'; echo '<td>'; if (isset($_POST['AssetCode'])) { - echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size=15 maxlength=13>'; + echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size="15" maxlength="13" />'; } else { - echo '<input type="text" name="AssetCode" size=15 maxlength=13>'; + echo '<input type="text" name="AssetCode" size="15" maxlength="13" />'; } echo '</td></tr></table><br />'; -echo '<div class="centre"><input type="submit" name="Search" value="' . _('Search Now') . '"></div><br /></form>'; +echo '<div class="centre"> + <input type="submit" name="Search" value="' . _('Search Now') . '" /> + </div> + <br /> + </form>'; echo '<script type="text/javascript">defaultControl(document.forms[0].Keywords);</script>'; -echo '</form>'; + // query for list of record(s) if(isset($_POST['Go']) OR isset($_POST['Next']) OR isset($_POST['Previous'])) { $_POST['Search']='Search'; @@ -231,13 +240,13 @@ $ListPage++; } echo '</select> - <input type="submit" name="Go" value="' . _('Go') . '"> - <input type="submit" name="Previous" value="' . _('Previous') . '"> - <input type="submit" name="Next" value="' . _('Next') . '">'; + <input type="submit" name="Go" value="' . _('Go') . '" /> + <input type="submit" name="Previous" value="' . _('Previous') . '" /> + <input type="submit" name="Next" value="' . _('Next') . '" />'; echo '<p></div>'; } - echo '<table cellpadding=2 colspan=7 class=selection>'; + echo '<table class="selection">'; $tableheader = '<tr> <th>' . _('Asset Code') . '</th> <th>' . _('Description') . '</th> @@ -259,7 +268,7 @@ echo '<tr class="OddTableRows">'; $k++; } - echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'"></td> + echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'" /></td> <td>' . $myrow['description'] . '</td> <td>' . $myrow['locationdescription'] . '</td> <td>' . ConvertSQLDate($myrow['datepurchased']) . '</td> Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectCreditItems.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -261,8 +261,8 @@ } else { echo '<td></td>'; } - echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '"></td> - <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'"> + echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> + <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'" /> <input type="hidden" name="SelectedBranch' . $j .'" value="'. $myrow['branchcode'].'" /> <td>'.$myrow['contactname'].'</td> <td>'.$myrow['phoneno'].'</td> @@ -709,16 +709,16 @@ <td>' . $LineItem->ItemDescription . '</td>'; if ($LineItem->Controlled==0){ - echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>'; + echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>'; } else { echo '<td class="number"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . locale_number_format($LineItem->Quantity,$LineItem->DecimalPlaces) . '</a> - <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>'; + <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>'; } echo '<td>' . $LineItem->Units . '</td> - <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size=10 maxlength=12 value=' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '></td> - <td><input type="CheckBox" name="Gross" value=False></td> - <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size=3 maxlength=3 value=' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '>%</td> + <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size="10" maxlength="12" value="' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td> + <td><input type="CheckBox" name="Gross" value=False /></td> + <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size="3" maxlength="3" value="' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '" />%</td> <td class="number">' . $DisplayLineTotal . '</td>'; @@ -742,7 +742,7 @@ if ($i>0){ echo '<br />'; } - echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '">'; + echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '" />'; $i++; if ($Tax->TaxOnTax ==1){ $TaxTotals[$Tax->TaxAuthID] += ($Tax->TaxRate * ($LineTotal + $TaxLineTotal)); @@ -782,7 +782,7 @@ <td colspan="5"></td>'; echo '<td colspan="2" class="number">'. _('Credit Freight').'</td> - <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>'; + <td><input type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>'; $FreightTaxTotal =0; //initialise tax total @@ -977,8 +977,8 @@ <div class="centre">'; echo '<input type="submit" name="Search" value="' . _('Search Now') .'" /> - <input type="submit" Name="ChangeCustomer" value="' . _('Change Customer') . '" /> - <input type="submit" Name="Quick" value="' . _('Quick Entry') . '" /> + <input type="submit" name="ChangeCustomer" value="' . _('Change Customer') . '" /> + <input type="submit" name="Quick" value="' . _('Quick Entry') . '" /> </div>'; if (isset($SearchResult)) { @@ -1003,7 +1003,7 @@ $k++; } if(file_exists($_SESSION['part_pics_dir'] . '/' .mb_strtoupper($myrow['stockid']).'.jpg') ) { - printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td> + printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size=1>%s</font></td> <td><font size=1>%s</font></td> <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120"></td></tr>', @@ -1012,7 +1012,7 @@ $myrow['units'], $myrow['stockid']); } else { //don't try to show the image - printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td> + printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size=1>%s</font></td> <td><font size=1>%s</font></td> <td>' . _('No Image') . '</td></tr>', @@ -1046,8 +1046,8 @@ echo '</table> <br /> <div class="centre"> - <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '"> - <input type="submit" name="PartSearch" value="' . _('Search Parts') . '"> + <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '" /> + <input type="submit" name="PartSearch" value="' . _('Search Parts') . '" /> </div>'; } Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectGLAccount.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -20,9 +20,13 @@ $AccountID = $_POST['Select']; $_POST['Select'] = NULL; - echo '<br /><div class="centre"><a href="' . $rootpath . '/GLAccounts.php?' . SID . '&SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>'; - echo '<br /><a href="' . $rootpath . '/GLAccountInquiry.php?' . SID . '&Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>'; - echo '<br /><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">' . _('New Search') . '</a></div>'; + echo '<br /> + <div class="centre"> + <a href="' . $rootpath . '/GLAccounts.php?SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>'; + echo '<br /> + <a href="' . $rootpath . '/GLAccountInquiry.php?Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>'; + echo '<br /> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('New Search') . '</a></div>'; } elseif (isset($_POST['Search'])){ @@ -76,34 +80,40 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Search for General Ledger Accounts') . '</p>'; - echo "<br /><form action='" . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . "' method=post>"; + echo '<br /> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if(mb_strlen($msg)>1){ prnMsg($msg,'info'); } - echo '<table cellpadding=3 colspan=4 class=selection> + echo '<table class="selection"> <tr> - <td><font size=1>' . _('Enter extract of text in the Account name') .":</font></td> - <td><input type='Text' name='Keywords' size=20 maxlength=25></td> - <td><font size=3><b>" . _('OR') . "</b></font></td> - <td><font size=1>" . _('Enter Account No. to search from') . ":</font></td> - <td><input type='Text' name='GLCode' size=15 maxlength=18 class=number ></td> + <td><font size=1>' . _('Enter extract of text in the Account name') .':</font></td> + <td><input type="text" name="Keywords" size="20" maxlength="25" /></td> + <td><font size="3"><b>' . _('OR') . '</b></font></td> + <td><font size="1">' . _('Enter Account No. to search from') . ':</font></td> + <td><input type="text" name="GLCode" size="15" maxlength="18" class="number" /></td> </tr> - </table><br />"; + </table> + <br />'; - echo '<div class="centre"><input type="submit" name="Search" value=' . _('Search Now') . '"> - <input type="submit" action=reset value="' . _('Reset') .'"></div>'; + echo '<div class="centre"> + <input type="submit" name="Search" value=' . _('Search Now') . '" /> + <input type="submit" action=reset value="' . _('Reset') .'" /> + </div>'; if (isset($result) and DB_num_rows($result)>0) { - echo '<br /><table cellpadding=2 colspan=7 class=selection>'; + echo '<br /><table class="selection">'; - $TableHeader = '<tr><th>' . _('Code') . '</th> - <th>' . _('Account Name') . '</th> - <th>' . _('Group') . '</th> - <th>' . _('Account Type') . '</th></tr>'; + $TableHeader = '<tr> + <th>' . _('Code') . '</th> + <th>' . _('Account Name') . '</th> + <th>' . _('Group') . '</th> + <th>' . _('Account Type') . '</th> + </tr>'; echo $TableHeader; @@ -111,15 +121,16 @@ while ($myrow=DB_fetch_array($result)) { - printf('<tr><td><font size=1><input type="submit" name="Select" value="%s" /></font></td> - <td><font size=1>%s</font></td> - <td><font size=1>%s</font></td> - <td><font size=1>%s</font></td> - </tr>', - $myrow['accountcode'], - $myrow['accountname'], - $myrow['group_'], - $myrow['pl']); + printf('<tr> + <td><font size=1><input type="submit" name="Select" value="%s" /></font></td> + <td><font size=1>%s</font></td> + <td><font size=1>%s</font></td> + <td><font size=1>%s</font></td> + </tr>', + $myrow['accountcode'], + $myrow['accountname'], + $myrow['group_'], + $myrow['pl']); $j++; if ($j == 12){ Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectProduct.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -36,7 +36,7 @@ ORDER BY categorydescription"; $result1 = DB_query($SQL, $db); if (DB_num_rows($result1) == 0) { - echo '<p><font size=4 color=red>' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>'; + echo '<p><font size="4" color="red">' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>'; echo '<br /><a href="' . $rootpath . '/StockCategories.php">' . _('Define Stock Categories') . '</a>'; exit; } @@ -75,9 +75,13 @@ } else { $ItemStatus = ''; } - echo '<table width="90%"><tr><th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th></tr>'; + echo '<table width="90%"> + <tr> + <th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th> + </tr>'; - echo '<tr><td width="40%" valign="top"> + echo '<tr> + <td width="40%" valign="top"> <table align="left">'; //nested table echo '<tr><th class="number">' . _('Item Type:') . '</th> <td colspan="2" class="select">'; @@ -718,24 +722,24 @@ $ListPage++; } echo '</select> - <input type="submit" name="Go" value="' . _('Go') . '"> - <input type="submit" name="Previous" value="' . _('Previous') . '"> + <input type="submit" name="Go" value="' . _('Go') . '" /> + <input type="submit" name="Previous" value="' . _('Previous') . '" /> <input type="submit" name="Next" value="' . _('Next') . '">'; - echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'">'; - echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'">'; - echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'">'; + echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'" />'; + echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'" />'; + echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'" />'; // echo '<input type="hidden" name=Search value="Search">'; echo '<p></div>'; } - echo '<table cellpadding="2" colspan="7">'; - $tableheader = '<tr> - <th>' . _('Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Total Qty On Hand') . '</th> - <th>' . _('Units') . '</th> - <th>' . _('Stock Status') . '</th> - </tr>'; - echo $tableheader; + echo '<table class="selection">'; + $TableHeader = '<tr> + <th>' . _('Code') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Total Qty On Hand') . '</th> + <th>' . _('Units') . '</th> + <th>' . _('Stock Status') . '</th> + </tr>'; + echo $TableHeader; $j = 1; $k = 0; //row counter to determine background colour $RowIndex = 0; @@ -771,7 +775,7 @@ $j++; if ($j == 20 AND ($RowIndex + 1 != $_SESSION['DisplayRecordsMax'])) { $j = 1; - echo $tableheader; + echo $TableHeader; } $RowIndex = $RowIndex + 1; //end of page full new headings if This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-22 07:33:57
|
Revision: 4831 http://web-erp.svn.sourceforge.net/web-erp/?rev=4831&view=rev Author: daintree Date: 2012-01-22 07:33:48 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/CustomerTypes.php trunk/DeliveryDetails.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FixedAssetTransfer.php trunk/GLAccountReport.php trunk/GoodsReceived.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/PDFChequeListing.php trunk/PDFOrderStatus.php trunk/PDFPriceList.php trunk/PDFRemittanceAdvice.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_PDFPurchOrder.php trunk/PcAuthorizeExpenses.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTypeTabs.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectGLAccount.php trunk/SelectProduct.php Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/CustomerTypes.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -239,8 +239,8 @@ $_POST['typeid'] = $myrow['typeid']; $_POST['typename'] = $myrow['typename']; - echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '">'; - echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '">'; + echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '" />'; + echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '" />'; echo '<table class="selection">'; // We dont allow the user to change an existing type code @@ -256,12 +256,12 @@ $_POST['typename']=''; } echo '<tr><td>' . _('Type Name') . ':</td> - <td><input type="Text" name="typename" value="' . $_POST['typename'] . '"></td></tr>'; + <td><input type="Text" name="typename" value="' . $_POST['typename'] . '" /></td></tr>'; echo '</td></tr> </table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>'; echo '</form>'; Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/DeliveryDetails.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -996,7 +996,7 @@ // The estimated Dispatch date or Delivery date for this order echo '<tr> <td>'. _('Estimated Delivery Date') .':</td> - <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '"></td> + <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> </tr>'; // The date when a quote was issued to the customer echo '<tr> @@ -1034,14 +1034,14 @@ </tr> <tr> <td>'. _('Contact Phone Number') .':</td> - <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '"></td> + <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> </tr> <tr> - <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '"></td> + <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> </tr> <tr> <td>'. _('Customer Reference') .':</td> - <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '"></td> + <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> </tr> <tr> <td>'. _('Comments') .':</td> @@ -1072,7 +1072,7 @@ echo '<option selected value=1>' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type="hidden" name="ReprintPackingSlip" value=0>'; + echo '<input type="hidden" name="ReprintPackingSlip" value=0 />'; } echo '<tr> @@ -1122,13 +1122,13 @@ echo '</table>'; -echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />'; +echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '" /><br />'; if ($_SESSION['ExistingOrder'.$identifier]==0){ - echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '">'; - echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">'; + echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '" />'; + echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '" />'; } else { - echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '">'; + echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '" />'; } echo '</div></form>'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/EmailCustTrans.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -38,8 +38,8 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '">'; -echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; +echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '" />'; +echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '" />'; echo '<br /><table>'; @@ -61,10 +61,10 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> + <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '" /></td> </table>'; -echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '">'; +echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '" />'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/ExchangeRateTrend.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -48,7 +48,7 @@ echo '</table>'; /*close off the table in the third column */ - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>'; echo '</form>'; // ************** @@ -59,9 +59,9 @@ $graph = $CurrencyToShow. '/' . $FunctionalCurrency . $graph; $image = 'http://www.x-rates.com/d/' . $graph; - echo '<p></div><table class=selection>'; - echo '<tr><th><div class="centre"><font size=4 color=BLUE><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></font></th></tr>'; - echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '"></td></tr>'; + echo '<p></div><table class="selection">'; + echo '<tr><th><div class="centre"><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></th></tr>'; + echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '" /></td></tr>'; echo '</table>'; Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/FixedAssetTransfer.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -51,25 +51,25 @@ if (isset($_POST['Keywords'])) { - echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size="20" maxlength="25" />'; } else { - echo '<input type="text" name="Keywords" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" size="20" maxlength="25" />'; } echo '</td></tr><tr><td></td>'; - echo '<td><font size 3><b>' . _('OR').' ' . '</b></font>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>'; + echo '<td><b>' . _('OR').' ' . '</b>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>'; echo '<td>'; if (isset($_POST['AssetID'])) { - echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size=15 maxlength=18>'; + echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size="15" maxlength="18" />'; } else { - echo '<input type="text" name="AssetID" size=15 maxlength=18>'; + echo '<input type="text" name="AssetID" size="15" maxlength="18" />'; } echo '</td></tr></table><br />'; - echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '"></div></form><br />'; + echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '" /></div></form><br />'; } if (isset($_POST['Search'])) { @@ -104,23 +104,26 @@ AND fixedassets.assetid " . LIKE . "'".$_POST['AssetID']."' AND fixedassets.serialno " . LIKE . "'".$_POST['SerialNumber']."'"; $Result=DB_query($sql, $db); - echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'" method=post><table class=selection>'; + echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<tr><th>'._('Asset ID') . '</th> + echo '<tr> + <th>'._('Asset ID') . '</th> <th>' . _('Description') . '</th> <th>' . _('Serial number') . '</th> <th>' . _('Purchase Cost') . '</th> <th>' . _('Total Depreciation') . '</th> <th>' . _('Current Location') . '</th> <th>' . _('Move To :') . '</th> - </tr>'; + </tr>'; $locationsql="SELECT locationid, locationdescription from fixedassetlocations"; $LocationResult=DB_query($locationsql, $db); while ($myrow=DB_fetch_array($Result)) { - echo '<tr><td>'.$myrow['assetid'].'</td> + echo '<tr> + <td>'.$myrow['assetid'].'</td> <td>'.$myrow['description'].'</td> <td>'.$myrow['serialno'].'</td> <td class="number">'.locale_number_format($myrow['cost'],$_SESSION['CompanyRecord']['decimalplaces']).'</td> @@ -137,11 +140,11 @@ } DB_data_seek($LocationResult,0); echo '</select></td>'; - echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'"'; - echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'"'; - echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'"'; - echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'"'; - echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move"></td>'; + echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'" />'; + echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'" />'; + echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'" />'; + echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'" />'; + echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move" /></td>'; echo '</tr>'; } echo '</table></form>'; Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/GLAccountReport.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -283,10 +283,12 @@ echo '</select></td></tr>'; // End select tag - echo '</table><p> + echo '</table> + <br /> <div class="centre"> - <input type="submit" name="RunReport" value="' ._('Run Report'). '"></div> - </form>'; + <input type="submit" name="RunReport" value="' ._('Run Report'). '" /> + </div> + </form>'; include ('includes/footer.inc'); exit; Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/GoodsReceived.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -84,7 +84,7 @@ <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, '."'". - $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '"></td> + $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '" /></td> </tr> </table> <br />'; @@ -246,20 +246,20 @@ if ($_SESSION['PO'.$identifier]->SomethingReceived()==0 AND isset($_POST['ProcessGoodsReceived'])){ /*Then dont bother proceeding cos nothing to do ! */ prnMsg(_('There is nothing to process') . '. ' . _('Please enter valid quantities greater than zero'),'warn'); - echo '<div class="centre"><input type="submit" name="Update" Value=' . _('Update') . '></div>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" /></div>'; } elseif ($NegativesFound){ prnMsg(_('Negative stocks would result by processing a negative delivery - quantities must be changed or the stock quantity of the item going negative corrected before this delivery will be processed.'),'error'); - echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />'; }elseif ($DeliveryQuantityTooLarge==1 AND isset($_POST['ProcessGoodsReceived'])){ prnMsg(_('Entered quantities cannot be greater than the quantity entered on the purchase invoice including the allowed over-receive percentage'). ' ' . '(' . $_SESSION['OverReceiveProportion'] .'%)','error'); echo '<br />'; prnMsg(_('Modify the ordered items on the purchase invoice if you wish to increase the quantities'),'info'); - echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>'; + echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />'; } elseif (isset($_POST['ProcessGoodsReceived']) AND $_SESSION['PO'.$identifier]->SomethingReceived()==1 AND $InputError == false){ Modified: trunk/MRPReschedules.php =================================================================== --- trunk/MRPReschedules.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/MRPReschedules.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -149,7 +149,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/MRPShortages.php =================================================================== --- trunk/MRPShortages.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/MRPShortages.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -299,7 +299,7 @@ echo '</table> <br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"> + <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFChequeListing.php =================================================================== --- trunk/PDFChequeListing.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFChequeListing.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -39,7 +39,7 @@ <td><input type="text" name="FromDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which cheques are to be listed') . ':</td> - <td><input type="text" name="ToDate" maxlength="10" size="10" class=date alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '"></td> + <td><input type="text" name="ToDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td> </tr>'; echo '<tr><td>' . _('Bank Account') . '</td><td>'; @@ -66,7 +66,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFOrderStatus.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -37,7 +37,7 @@ <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which orders are to be listed') . ':</td><td>'; - echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '"></td></tr>'; + echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td></tr>'; echo '<tr><td>' . _('Inventory Category') . '</td><td>'; $sql = "SELECT categorydescription, categoryid FROM stockcategory WHERE stocktype<>'D' AND stocktype<>'L'"; @@ -70,7 +70,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="Go" value="' . _('Create PDF') . '"> + <input type="submit" name="Go" value="' . _('Create PDF') . '" /> </div>'; include('includes/footer.inc'); Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFPriceList.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -306,7 +306,7 @@ echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />'; echo '</td></tr>'; - echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; + echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '" /></div>'; } include('includes/footer.inc'); Modified: trunk/PDFRemittanceAdvice.php =================================================================== --- trunk/PDFRemittanceAdvice.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PDFRemittanceAdvice.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -167,7 +167,7 @@ echo '</table> <div class="centre"> - <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '"> + <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '" /> </div>'; include ('includes/footer.inc'); Modified: trunk/PO_AuthorisationLevels.php =================================================================== --- trunk/PO_AuthorisationLevels.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_AuthorisationLevels.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -209,7 +209,7 @@ <td>'._('Currency').'</td> <td>' . $myrow['currency'] . '</td> </tr>'; - echo '<input type="hidden" name="CurrCode" value="'.$Currency.'"'; + echo '<input type="hidden" name="CurrCode" value="'.$Currency.'" />'; } else { echo '<tr><td>'._('Currency').'</td><td><select name="CurrCode">'; $currencysql="SELECT currabrev,currency FROM currencies"; @@ -224,28 +224,44 @@ echo '</select></td></tr>'; } -echo '<tr><td>'._('User can create orders').'</td>'; +echo '<tr> + <td>'._('User can create orders').'</td>'; if ($CanCreate==1) { - echo '<td><input type="checkbox" name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" name="CanCreate"></td> + </tr>'; } else { - echo '<td><input type="checkbox" checked name="CanCreate"></td></tr>'; + echo '<td><input type="checkbox" checked name="CanCreate"></td> + </tr>'; } -echo '<tr><td>'._('User can release invoices').'</td>'; +echo '<tr> + <td>'._('User can release invoices').'</td>'; if ($OffHold==1) { - echo '<td><input type="checkbox" name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" name="OffHold"></td> + </tr>'; } else { - echo '<td><input type="checkbox" checked name="OffHold"></td></tr>'; + echo '<td><input type="checkbox" checked name="OffHold"></td> + </tr>'; } -echo '<tr><td>'._('User can authorise orders up to :').'</td>'; -echo '<td><input type=input name="AuthLevel" size=11 class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '"></td</tr>'; -echo '</table>'; +echo '<tr> + <td>'._('User can authorise orders up to :').'</td>'; +echo '<td><input type="text" name="AuthLevel" size="11" class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '" /></td> + </tr> + </table>'; if (isset($_GET['Edit'])) { - echo '<br /><div class="centre"><input type="submit" name="Update" value="'._('Update Information').'"></div></form>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="Update" value="'._('Update Information').'" /> + </div> + </form>'; } else { - echo '<br /><div class="centre"><input type="submit" name="Submit" value="'._('Enter Information').'"></div></form>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="Submit" value="'._('Enter Information').'" /> + </div> + </form>'; } include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_Header.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -755,8 +755,7 @@ } echo '<tr><td>' . _('Initiated By') . ':</td> - <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' . - $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>'; + <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' . $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>'; echo '<tr><td>' . _('Requisition Ref') . ':</td> <td><input type="text" name="Requisition" size="16" maxlength="15" value="' . $_POST['Requisition'] . '" /></td></tr>'; @@ -782,7 +781,7 @@ <option selected value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select></td>'; - echo '<td><input type="submit" name="AllowRePrint" value="Update"></td></tr>'; + echo '<td><input type="submit" name="AllowRePrint" value="Update" /></td></tr>'; } elseif ($Printed) { echo '<tr><td colspan=2><a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $_SESSION['ExistingOrder'] . '&identifier='.$identifier. '">' . _('Reprint Now') . '</a></td></tr>'; } @@ -798,7 +797,7 @@ $_SESSION['PO'.$identifier]->OrderNo . '&identifier=' . $identifier . '">'._('Receive this order').'</a></td></tr>'; } if ($_SESSION['PO'.$identifier]->Status==''){ //then its a new order - echo '<input type="hidden" name="Status" value="NewOrder">'; + echo '<input type="hidden" name="Status" value="NewOrder" />'; echo '<tr><td>' . _('New Purchase Order') . '</td></tr>'; } else { echo '<tr><td>' . _('Status') . ' : </td> @@ -845,7 +844,7 @@ </tr>'; echo '<input type="hidden" name="StatusCommentsComplete" value="' . htmlentities($_SESSION['PO'.$identifier]->StatusComments, ENT_QUOTES,'UTF-8') .'" />'; - echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'"></td>'; + echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'" /></td>'; } //end its not a new order echo '</tr></table></td>'; @@ -879,7 +878,7 @@ } echo '</select> - <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '"></td> + <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '" /></td> </tr>'; /* If this is the first time @@ -969,28 +968,28 @@ echo '<tr><td>' . _('Delivery Contact') . ':</td> - <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '"></td> + <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 1 :</td> - <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '"></td> + <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 2 :</td> - <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '"></td> + <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 3 :</td> - <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '"></td> + <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 4 :</td> - <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '"></td> + <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 5 :</td> - <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '"></td> + <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '" /></td> </tr>'; echo '<tr><td>' . _('Address') . ' 6 :</td> - <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '"></td> + <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '" /></td> </tr>'; echo '<tr><td>' . _('Phone') . ':</td> - <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '"></td> + <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '" /></td> </tr>'; echo '<tr><td>' . _('Delivery By') . ':</td><td><select name="DeliveryBy">'; @@ -1098,7 +1097,7 @@ echo '<tr> <td>' . _('Delivery To') . ':</td> - <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '"></td> + <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '" /></td> </tr>'; if ($_SESSION['PO'.$identifier]->CurrCode != $_SESSION['CompanyRecord']['currencydefault']) { @@ -1127,7 +1126,7 @@ echo '</td></tr></table><br />'; /* end of main table */ echo '<div class="centre"> - <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '"> + <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '" /> </div>'; } /*end of if supplier selected */ Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PO_PDFPurchOrder.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -351,10 +351,10 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ($ViewingOnly==1){ - echo '<input type="hidden" name="ViewingOnly" value=1>'; + echo '<input type="hidden" name="ViewingOnly" value=1 />'; } echo '<br /><br />'; - echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '">'; + echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '" />'; echo '<table> <tr> <td>'. _('Print or Email the Order'). '</td> Modified: trunk/PcAuthorizeExpenses.php =================================================================== --- trunk/PcAuthorizeExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcAuthorizeExpenses.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -53,11 +53,11 @@ if(!isset ($Days)){ $Days=30; } - echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '">'; + echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />'; echo '<br /><table class=selection>'; echo '<tr><th colspan=7>' . _('Detail Of Movement For Last ') .': '; echo '<input type="text" class="number" name="Days" value="' . $Days . '" maxlength="3" size="4" />' . _('Days'); - echo '<input type="submit" name="Go" value="' . _('Go') . '"></tr></th>'; + echo '<input type="submit" name="Go" value="' . _('Go') . '" /></tr></th>'; echo '</form>'; $sql = "SELECT pcashdetails.counterindex, @@ -285,7 +285,7 @@ // Do the postings include ('includes/GLPostings.inc'); - echo'</table><br /><div class="centre"><input type="submit" name="Submit" value=' . _('Update') . '></div></form>'; + echo'</table><br /><div class="centre"><input type="submit" name="Submit" value="' . _('Update') . '" /></div></form>'; } else { /*The option to submit was not hit so display form */ @@ -319,8 +319,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; } /*end of else not submit */ Modified: trunk/PcExpenses.php =================================================================== --- trunk/PcExpenses.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcExpenses.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -264,13 +264,14 @@ $_POST['GLAccount'] = $myrow['glaccount']; $_POST['Tag'] = $myrow['tag']; - echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '">'; - echo '<input type="hidden" name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">'; + echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '" />'; + echo '<input type="hidden" name="CodeExpense" value="' . $_POST['CodeExpense']. '" />'; // We dont allow the user to change an existing type code echo '<table class="selection"> <tr> - <td>' . _('Code Of Expense') . ':</td> - <td>' . $_POST['CodeExpense'] . '</td></tr>'; + <td>' . _('Code Of Expense') . ':</td> + <td>' . $_POST['CodeExpense'] . '</td> + </tr>'; } else { @@ -278,8 +279,8 @@ echo '<table class="selection"> <tr> - <td>' . _('Code Of Expense') . ':</td> - <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense"></td> + <td>' . _('Code Of Expense') . ':</td> + <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense" /></td> </tr>'; } @@ -289,7 +290,7 @@ } echo '<tr> <td>' . _('Description') . ':</td> - <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size=50 maxlength=49 value="' . $_POST['Description'] . '"></td> + <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size="50" maxlength="49" value="' . $_POST['Description'] . '" /></td> </tr>'; echo '<tr> @@ -340,8 +341,11 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /> - <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> + </div>'; echo '</form>'; Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcExpensesTypeTab.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -136,8 +136,8 @@ echo '</table>'; // close table in first column echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; @@ -150,7 +150,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; $sql = "SELECT pctabexpenses.codeexpense, pcexpenses.description @@ -224,8 +224,8 @@ echo '</td></tr></table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"> - <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>'; echo '</form>'; Modified: trunk/PcReportTab.php =================================================================== --- trunk/PcReportTab.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcReportTab.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -20,7 +20,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry') . '" alt="" />' . ' ' . $title . '</p>'; - echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (!isset($_POST['FromDate'])){ @@ -62,13 +62,13 @@ echo '</select></td></tr>'; echo'<tr><td>' . _('From Date :') . '</td><td>'; - echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '">'; + echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" />'; echo '</td></tr>'; echo '<tr><td>' . _('To Date:') .'</td><td>'; - echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '">'; + echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '" />'; echo '</td></tr></table><br />'; - echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'">'; - echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '"></div>'; + echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'" />'; + echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '" /></div>'; } else if (isset($_POST['PrintPDF'])) { @@ -235,8 +235,8 @@ echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="FromDate" VALUE="' . $_POST['FromDate'] . '"> - <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '">'; + echo '<input type="hidden" name="FromDate" value="' . $_POST['FromDate'] . '" /> + <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '" />'; $SqlTabs = "SELECT * FROM pctabs WHERE tabcode='".$SelectedTabs."'"; @@ -400,7 +400,7 @@ <td>'.locale_number_format($Amount[0],$_SESSION['CompanyRecord']['decimalplaces']).' </td><td>'.$Tabs['currency'].'</td></tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '"></div>'; + echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '" /></div>'; } echo '</form>'; include('includes/footer.inc'); Modified: trunk/PcTypeTabs.php =================================================================== --- trunk/PcTypeTabs.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/PcTypeTabs.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -123,7 +123,7 @@ echo '<br />'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><div class="centre"><input type="submit" name=return value="' . _('Return to list of tab types') . '"></div>'; + echo '<p><div class="centre"><input type="submit" name="Return" value="' . _('Return to list of tab types') . '" /></div>'; echo '</form>'; include('includes/footer.inc'); exit; @@ -206,12 +206,12 @@ $_POST['TypeTabCode'] = $myrow['typetabcode']; $_POST['TypeTabDescription'] = $myrow['typetabdescription']; - echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; - echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '">'; - echo '<table class=selection> + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />'; + echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '" />'; + echo '<table class="selection"> <tr><td>' . _('Code Of Type Of Tab') . ':</td> - <td>' . $_POST['TypeTabCode'] . '</td>< - /tr>'; + <td>' . $_POST['TypeTabCode'] . '</td> + </tr>'; // We dont allow the user to change an existing type code @@ -221,22 +221,33 @@ // This is a new type so the user may volunteer a type code - echo '<table class="selection"><tr><td>' . _('Code Of Type Of Tab') . ':</td><td><input type="text" - ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode"></td></tr>'; + echo '<table class="selection"> + <tr> + <td>' . _('Code Of Type Of Tab') . ':</td> + <td><input type="text" ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode" /></td> + </tr>'; } if (!isset($_POST['TypeTabDescription'])) { $_POST['TypeTabDescription']=''; } - echo '<tr><td>' . _('Description Of Type of Tab') . ':</td><td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '"></td></tr>'; + echo '<tr> + <td>' . _('Description Of Type of Tab') . ':</td> + <td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '" /></td> + </tr>'; - echo '</td></tr></table>'; // close main table + echo '</td> + </tr> + </table>'; // close main table - echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"><input type="submit" name="Cancel" VALUE="' . _('Cancel') . '"></div>'; + echo '<br /> + <div class="centre"> + <input type="submit" name="submit" value="' . _('Accept') . '" /> + <input type="submit" name="Cancel" value="' . _('Cancel') . '" /> + </div> + </form>'; - echo '</form>'; - } // end if user wish to delete include('includes/footer.inc'); Modified: trunk/SelectAsset.php =================================================================== --- trunk/SelectAsset.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectAsset.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -67,11 +67,16 @@ echo '<td>' . _('Enter partial description') . '</b>:</td><td>'; if (isset($_POST['Keywords'])) { - echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size="20" maxlength="25" />'; } else { - echo '<input type="text" name="Keywords" size=20 maxlength=25>'; + echo '<input type="text" name="Keywords" size="20" maxlength="25"> /'; } -echo '</td></tr><tr><td>' . _('Asset Location') . ':</td><td><select name="AssetLocation">'; +echo '</td> + </tr> + <tr> + <td>' . _('Asset Location') . ':</td> + <td><select name="AssetLocation">'; + if (!isset($_POST['AssetLocation'])) { $_POST['AssetLocation'] = 'ALL'; } @@ -80,7 +85,7 @@ } else { echo '<option value="ALL">' . _('Any asset location') . '</option>'; } -$result = DB_query('SELECT locationid, locationdescription FROM fixedassetlocations',$db); +$result = DB_query("SELECT locationid, locationdescription FROM fixedassetlocations",$db); while ($myrow = DB_fetch_array($result)) { if ($myrow['locationid'] == $_POST['AssetLocation']) { @@ -94,14 +99,18 @@ echo ' </td><td><b>' . _('OR') . ' ' . '</b>' . _('Enter partial asset code') . '</b>:</td>'; echo '<td>'; if (isset($_POST['AssetCode'])) { - echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size=15 maxlength=13>'; + echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size="15" maxlength="13" />'; } else { - echo '<input type="text" name="AssetCode" size=15 maxlength=13>'; + echo '<input type="text" name="AssetCode" size="15" maxlength="13" />'; } echo '</td></tr></table><br />'; -echo '<div class="centre"><input type="submit" name="Search" value="' . _('Search Now') . '"></div><br /></form>'; +echo '<div class="centre"> + <input type="submit" name="Search" value="' . _('Search Now') . '" /> + </div> + <br /> + </form>'; echo '<script type="text/javascript">defaultControl(document.forms[0].Keywords);</script>'; -echo '</form>'; + // query for list of record(s) if(isset($_POST['Go']) OR isset($_POST['Next']) OR isset($_POST['Previous'])) { $_POST['Search']='Search'; @@ -231,13 +240,13 @@ $ListPage++; } echo '</select> - <input type="submit" name="Go" value="' . _('Go') . '"> - <input type="submit" name="Previous" value="' . _('Previous') . '"> - <input type="submit" name="Next" value="' . _('Next') . '">'; + <input type="submit" name="Go" value="' . _('Go') . '" /> + <input type="submit" name="Previous" value="' . _('Previous') . '" /> + <input type="submit" name="Next" value="' . _('Next') . '" />'; echo '<p></div>'; } - echo '<table cellpadding=2 colspan=7 class=selection>'; + echo '<table class="selection">'; $tableheader = '<tr> <th>' . _('Asset Code') . '</th> <th>' . _('Description') . '</th> @@ -259,7 +268,7 @@ echo '<tr class="OddTableRows">'; $k++; } - echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'"></td> + echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'" /></td> <td>' . $myrow['description'] . '</td> <td>' . $myrow['locationdescription'] . '</td> <td>' . ConvertSQLDate($myrow['datepurchased']) . '</td> Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectCreditItems.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -261,8 +261,8 @@ } else { echo '<td></td>'; } - echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '"></td> - <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'"> + echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> + <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'" /> <input type="hidden" name="SelectedBranch' . $j .'" value="'. $myrow['branchcode'].'" /> <td>'.$myrow['contactname'].'</td> <td>'.$myrow['phoneno'].'</td> @@ -709,16 +709,16 @@ <td>' . $LineItem->ItemDescription . '</td>'; if ($LineItem->Controlled==0){ - echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>'; + echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>'; } else { echo '<td class="number"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . locale_number_format($LineItem->Quantity,$LineItem->DecimalPlaces) . '</a> - <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>'; + <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>'; } echo '<td>' . $LineItem->Units . '</td> - <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size=10 maxlength=12 value=' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '></td> - <td><input type="CheckBox" name="Gross" value=False></td> - <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size=3 maxlength=3 value=' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '>%</td> + <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size="10" maxlength="12" value="' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td> + <td><input type="CheckBox" name="Gross" value=False /></td> + <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size="3" maxlength="3" value="' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '" />%</td> <td class="number">' . $DisplayLineTotal . '</td>'; @@ -742,7 +742,7 @@ if ($i>0){ echo '<br />'; } - echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '">'; + echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '" />'; $i++; if ($Tax->TaxOnTax ==1){ $TaxTotals[$Tax->TaxAuthID] += ($Tax->TaxRate * ($LineTotal + $TaxLineTotal)); @@ -782,7 +782,7 @@ <td colspan="5"></td>'; echo '<td colspan="2" class="number">'. _('Credit Freight').'</td> - <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>'; + <td><input type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>'; $FreightTaxTotal =0; //initialise tax total @@ -977,8 +977,8 @@ <div class="centre">'; echo '<input type="submit" name="Search" value="' . _('Search Now') .'" /> - <input type="submit" Name="ChangeCustomer" value="' . _('Change Customer') . '" /> - <input type="submit" Name="Quick" value="' . _('Quick Entry') . '" /> + <input type="submit" name="ChangeCustomer" value="' . _('Change Customer') . '" /> + <input type="submit" name="Quick" value="' . _('Quick Entry') . '" /> </div>'; if (isset($SearchResult)) { @@ -1003,7 +1003,7 @@ $k++; } if(file_exists($_SESSION['part_pics_dir'] . '/' .mb_strtoupper($myrow['stockid']).'.jpg') ) { - printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td> + printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size=1>%s</font></td> <td><font size=1>%s</font></td> <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120"></td></tr>', @@ -1012,7 +1012,7 @@ $myrow['units'], $myrow['stockid']); } else { //don't try to show the image - printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td> + printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size=1>%s</font></td> <td><font size=1>%s</font></td> <td>' . _('No Image') . '</td></tr>', @@ -1046,8 +1046,8 @@ echo '</table> <br /> <div class="centre"> - <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '"> - <input type="submit" name="PartSearch" value="' . _('Search Parts') . '"> + <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '" /> + <input type="submit" name="PartSearch" value="' . _('Search Parts') . '" /> </div>'; } Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectGLAccount.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -20,9 +20,13 @@ $AccountID = $_POST['Select']; $_POST['Select'] = NULL; - echo '<br /><div class="centre"><a href="' . $rootpath . '/GLAccounts.php?' . SID . '&SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>'; - echo '<br /><a href="' . $rootpath . '/GLAccountInquiry.php?' . SID . '&Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>'; - echo '<br /><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">' . _('New Search') . '</a></div>'; + echo '<br /> + <div class="centre"> + <a href="' . $rootpath . '/GLAccounts.php?SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>'; + echo '<br /> + <a href="' . $rootpath . '/GLAccountInquiry.php?Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>'; + echo '<br /> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('New Search') . '</a></div>'; } elseif (isset($_POST['Search'])){ @@ -76,34 +80,40 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Search for General Ledger Accounts') . '</p>'; - echo "<br /><form action='" . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . "' method=post>"; + echo '<br /> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if(mb_strlen($msg)>1){ prnMsg($msg,'info'); } - echo '<table cellpadding=3 colspan=4 class=selection> + echo '<table class="selection"> <tr> - <td><font size=1>' . _('Enter extract of text in the Account name') .":</font></td> - <td><input type='Text' name='Keywords' size=20 maxlength=25></td> - <td><font size=3><b>" . _('OR') . "</b></font></td> - <td><font size=1>" . _('Enter Account No. to search from') . ":</font></td> - <td><input type='Text' name='GLCode' size=15 maxlength=18 class=number ></td> + <td><font size=1>' . _('Enter extract of text in the Account name') .':</font></td> + <td><input type="text" name="Keywords" size="20" maxlength="25" /></td> + <td><font size="3"><b>' . _('OR') . '</b></font></td> + <td><font size="1">' . _('Enter Account No. to search from') . ':</font></td> + <td><input type="text" name="GLCode" size="15" maxlength="18" class="number" /></td> </tr> - </table><br />"; + </table> + <br />'; - echo '<div class="centre"><input type="submit" name="Search" value=' . _('Search Now') . '"> - <input type="submit" action=reset value="' . _('Reset') .'"></div>'; + echo '<div class="centre"> + <input type="submit" name="Search" value=' . _('Search Now') . '" /> + <input type="submit" action=reset value="' . _('Reset') .'" /> + </div>'; if (isset($result) and DB_num_rows($result)>0) { - echo '<br /><table cellpadding=2 colspan=7 class=selection>'; + echo '<br /><table class="selection">'; - $TableHeader = '<tr><th>' . _('Code') . '</th> - <th>' . _('Account Name') . '</th> - <th>' . _('Group') . '</th> - <th>' . _('Account Type') . '</th></tr>'; + $TableHeader = '<tr> + <th>' . _('Code') . '</th> + <th>' . _('Account Name') . '</th> + <th>' . _('Group') . '</th> + <th>' . _('Account Type') . '</th> + </tr>'; echo $TableHeader; @@ -111,15 +121,16 @@ while ($myrow=DB_fetch_array($result)) { - printf('<tr><td><font size=1><input type="submit" name="Select" value="%s" /></font></td> - <td><font size=1>%s</font></td> - <td><font size=1>%s</font></td> - <td><font size=1>%s</font></td> - </tr>', - $myrow['accountcode'], - $myrow['accountname'], - $myrow['group_'], - $myrow['pl']); + printf('<tr> + <td><font size=1><input type="submit" name="Select" value="%s" /></font></td> + <td><font size=1>%s</font></td> + <td><font size=1>%s</font></td> + <td><font size=1>%s</font></td> + </tr>', + $myrow['accountcode'], + $myrow['accountname'], + $myrow['group_'], + $myrow['pl']); $j++; if ($j == 12){ Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-22 02:57:49 UTC (rev 4830) +++ trunk/SelectProduct.php 2012-01-22 07:33:48 UTC (rev 4831) @@ -36,7 +36,7 @@ ORDER BY categorydescription"; $result1 = DB_query($SQL, $db); if (DB_num_rows($result1) == 0) { - echo '<p><font size=4 color=red>' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>'; + echo '<p><font size="4" color="red">' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>'; echo '<br /><a href="' . $rootpath . '/StockCategories.php">' . _('Define Stock Categories') . '</a>'; exit; } @@ -75,9 +75,13 @@ } else { $ItemStatus = ''; } - echo '<table width="90%"><tr><th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th></tr>'; + echo '<table width="90%"> + <tr> + <th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th> + </tr>'; - echo '<tr><td width="40%" valign="top"> + echo '<tr> + <td width="40%" valign="top"> <table align="left">'; //nested table echo '<tr><th class="number">' . _('Item Type:') . '</th> <td colspan="2" class="select">'; @@ -718,24 +722,24 @@ $ListPage++; } echo '</select> - <input type="submit" name="Go" value="' . _('Go') . '"> - <input type="submit" name="Previous" value="' . _('Previous') . '"> + <input type="submit" name="Go" value="' . _('Go') . '" /> + <input type="submit" name="Previous" value="' . _('Previous') . '" /> <input type="submit" name="Next" value="' . _('Next') . '">'; - echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'">'; - echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'">'; - echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'">'; + echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'" />'; + echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'" />'; + echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'" />'; // echo '<input type="hidden" name=Search value="Search">'; echo '<p></div>'; } - echo '<table cellpadding="2" colspan="7">'; - $tableheader = '<tr> - <th>' . _('Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Total Qty On Hand') . '</th> - <th>' . _('Units') . '</th> - <th>' . _('Stock Status') . '</th> - </tr>'; - echo $tableheader; + echo '<table class="selection">'; + $TableHeader = '<tr> + <th>' . _('Code') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Total Qty On Hand') . '</th> + <th>' . _('Units') . '</th> + <th>' . _('Stock Status') . '</th> + </tr>'; + echo $TableHeader; $j = 1; $k = 0; //row counter to determine background colour $RowIndex = 0; @@ -771,7 +775,7 @@ $j++; if ($j == 20 AND ($RowIndex + 1 != $_SESSION['DisplayRecordsMax'])) { $j = 1; - echo $tableheader; + echo $TableHeader; } $RowIndex = $RowIndex + 1; //end of page full new headings if This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vv...@us...> - 2012-01-22 22:18:01
|
Revision: 4835 http://web-erp.svn.sourceforge.net/web-erp/?rev=4835&view=rev Author: vvs2012 Date: 2012-01-22 22:17:50 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Added quotes and missing closing tags in multiple files Modified Paths: -------------- trunk/Areas.php trunk/BOMListing.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/ConfirmDispatch_Invoice.php trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/CustomerTransInquiry.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/EDIMessageFormat.php trunk/EmailConfirmation.php trunk/FTP_RadioBeacon.php trunk/Factors.php trunk/FixedAssetItems.php trunk/FixedAssetRegister.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLProfit_Loss.php trunk/GLTags.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GoodsReceivedControlled.php trunk/InventoryPlanningPrefSupplier.php trunk/Locations.php trunk/MRPCalendar.php trunk/MRPDemands.php trunk/MRPPlannedWorkOrders.php trunk/PDFBankingSummary.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPrintLabel.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PeriodsInquiry.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/RecurringSalesOrders.php trunk/ReorderLevelLocation.php trunk/ReverseGRN.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/Shipments.php trunk/ShiptsList.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocTransferReceive.php trunk/Stocks.php trunk/SuppCreditGRNs.php trunk/SuppInvGRNs.php trunk/SupplierAllocations.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierTenders.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/TaxAuthorities.php trunk/UnitsOfMeasure.php trunk/UserSettings.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WorkOrderCosting.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/WorkOrderStatus.php trunk/Z_ChangeStockCategory.php trunk/Z_DataExport.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_UploadForm.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/doc/Change.log trunk/index.php Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Areas.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -213,7 +213,7 @@ echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> - <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3></td> + <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3 /></td> </tr>'; } Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BOMListing.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -117,7 +117,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr><td>' . _('From Inventory Part Code') . ':' . '</font></td> - <td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1"></td> + <td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1" /></td> </tr>'; echo '<tr><td>' . _('To Inventory Part Code') . ':' . '</td> @@ -126,7 +126,7 @@ echo '</table> - <br /><div class="centre"><input tabindex="3" type="submit" name="PrintPDF" value="' . _('Print PDF') . '"></div>'; + <br /><div class="centre"><input tabindex="3" type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /></div>'; echo '<script>defaultControl(document.forms[0].FromCriteria);</script>'; } include('includes/footer.inc');; Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BankAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -276,8 +276,8 @@ $_POST['CurrCode'] = $myrow['currcode']; $_POST['DefAccount'] = $myrow['invoice']; - echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; - echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '">'; + echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '" />'; + echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '" />'; echo '<table class="selection"> <tr><td>' . _('Bank Account GL Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td> @@ -324,13 +324,13 @@ } echo '<tr><td>' . _('Bank Account Name') . ': </td> - <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50></td></tr> + <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50 /></td></tr> <tr><td>' . _('Bank Account Code') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50></td></tr> + <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50 /></td></tr> <tr><td>' . _('Bank Account Number') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50"></td></tr> + <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Address') . ': </td> - <td><input tabindex="4" ' . (in_array('BankAddress',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="BankAddress" value="' . $_POST['BankAddress'] . '" size="40" maxlength="50"></td></tr> + <td><input tabindex="4" ' . (in_array('BankAddress',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="BankAddress" value="' . $_POST['BankAddress'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Currency Of Account') . ': </td> <td><select tabindex="5" name="CurrCode">'; @@ -388,7 +388,7 @@ echo '</select></td>'; echo '</tr></table><br /> - <div class="centre"><input tabindex="7" type="submit" name="submit" value="'. _('Enter Information') .'"></div>'; + <div class="centre"><input tabindex="7" type="submit" name="submit" value="'. _('Enter Information') .'" /></div>'; echo '</form>'; include('includes/footer.inc'); Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BankMatching.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -90,7 +90,7 @@ echo '<table class="selection"> <tr> <td align="left">' . _('Bank Account') . ':</td> - <td colspan=3><select tabindex="1" name="BankAccount">'; + <td colspan="3"><select tabindex="1" name="BankAccount">'; $sql = "SELECT accountcode, bankaccountname FROM bankaccounts"; $resultBankActs = DB_query($sql,$db); Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/COGSGLPostings.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -248,7 +248,7 @@ $_POST['StkCat'] = $myrow['stkcat']; $_POST['SalesType'] = $myrow['salestype']; - echo '<input type="hidden" name="SelectedCOGSPostingID" value="' . $SelectedCOGSPostingID . '">'; + echo '<input type="hidden" name="SelectedCOGSPostingID" value="' . $SelectedCOGSPostingID . '" />'; } //end of if $SelectedCOGSPostingID only do the else when a new record is being entered Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -327,13 +327,13 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '" /><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . '_QtyDispatched" maxlength="12" size="12" value="' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '"></td>'; + echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . '_QtyDispatched" maxlength="12" size="12" value="' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '" /></td>'; } } $DisplayDiscountPercent = locale_number_format($LnItm->DiscountPercent*100,2) . '%'; @@ -476,7 +476,7 @@ OR $_POST['ChargeFreightCost']==0)) { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td> - <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0"></td>'; + <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; $_SESSION['Items'.$identifier]->FreightCost=0; } else { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td>'; @@ -1613,9 +1613,9 @@ echo '<br /><div class="centre">'; if ($_SESSION['InvoicePortraitFormat']==0){ - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; + echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; } else { - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; + echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; } echo '<a href="'.$rootpath.'/SelectSalesOrder.php">'. _('Select another order for invoicing'). '</a><br /><br />'; echo '<a href="'.$rootpath.'/SelectOrderItems.php?NewOrder=Yes">'._('Sales Order Entry').'</a></div><br />'; @@ -1635,12 +1635,12 @@ echo '<table class="selection"> <tr> <td>' ._('Date On Invoice'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date"></td> + <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> </tr>'; $j++; echo '<tr> <td>' . _('Consignment Note Ref'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '"></td> + <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> </tr>'; $j++; echo '<tr> Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CreditItemsControlled.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -70,7 +70,7 @@ echo '<div class="centre">'; if ($CreditLink == 'Credit_Invoice.php'){ - echo '<input type="hidden" name="CreditInvoice" value="Yes">'; + echo '<input type="hidden" name="CreditInvoice" value="Yes" />'; } echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CreditStatus.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"></td> + ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Credit_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -418,7 +418,7 @@ } if (!isset($_POST['ProcessCredit'])) { - echo '<input type="text" class="number" name="FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . '" maxlength="4" size="4" value=' . $FreightTaxLine->TaxRate * 100 . '>'; + echo '<input type="text" class="number" name="FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . '" maxlength="4" size="4" value="' . $FreightTaxLine->TaxRate * 100 . '" />'; } if ($FreightTaxLine->TaxOnTax ==1){ $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); @@ -444,7 +444,7 @@ echo '<tr> <td colspan="7" class="number">' . _('Credit Totals') . '</td> <td class="number"><hr><b>' . $DisplayTotal . '</b><hr></td> - <td colspan=2></td> + <td colspan="2"></td> <td class="number"><hr><b>' . locale_number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '<hr></td> <td class="number"><hr><b>' . locale_number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b><hr></td> </tr></table>'; @@ -1509,9 +1509,9 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . '><p>'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . ' /><br />'; $j++; - echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'"></div>'; + echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } echo '</form>'; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Currencies.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -247,7 +247,7 @@ } if ($myrow[1]!=$FunctionalCurrency){ - printf('<td><img src="%s"></td> + printf('<td><img src="%s" /></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -276,7 +276,7 @@ $rootpath, '&CurrencyToShow=' . $myrow['currabrev']); } else { - printf('<td><img src="%s"></td> + printf('<td><img src="%s" /></td> <td>%s</td> <td>%s</td> <td>%s</td> Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustEDISetup.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -150,13 +150,13 @@ if ($myrow['editransport']=='ftp'){ echo '<tr><td>'._('FTP Server User Name') . ':</td> - <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '"></td></tr>'; + <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '" /></td></tr>'; echo '<tr><td>'._('FTP Server Password') . ':</td> - <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '"></td></tr>'; + <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; } echo '</table> - <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '"></div> + <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> </form>'; include('includes/footer.inc'); Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustomerAllocations.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -397,7 +397,7 @@ <td class="number">' . locale_number_format($balance,$_SESSION['Alloc']->CurrDecimalPlaces) . '</td> </tr>'; } else { - echo '<input type="hidden" name="YetToAlloc' . $Counter . '" value="' . round($YetToAlloc,$_SESSION['Alloc']->CurrDecimalPlaces) . '"></td>'; + echo '<input type="hidden" name="YetToAlloc' . $Counter . '" value="' . round($YetToAlloc,$_SESSION['Alloc']->CurrDecimalPlaces) . '" /></td>'; echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustomerTransInquiry.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -137,7 +137,7 @@ if ($_POST['TransType']==10){ /* invoices */ printf($format_base . - '<td><a target="_blank" href=%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Invoice"><img src="%s" title="' . _('Click to preview the invoice') . '"></a></td> + '<td><a target="_blank" href=%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Invoice"><img src="%s" title="' . _('Click to preview the invoice') . '" /></a></td> </tr>', $myrow['typename'], $myrow['transno'], @@ -156,7 +156,7 @@ } elseif ($_POST['TransType']==11){ /* credit notes */ printf($format_base . - '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Credit"><img src="%s" title="' . _('Click to preview the credit') . '"></a></td> + '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Credit"><img src="%s" title="' . _('Click to preview the credit') . '" /></a></td> </tr>', $myrow['typename'], $myrow['transno'], Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Customers.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -437,29 +437,29 @@ /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ if ($_SESSION['AutoDebtorNo']==0) { - echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10></td></tr>'; + echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10 /></td></tr>'; } echo '<tr><td>' . _('Customer Name') . ':</td> - <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Telephone') . ':</td> - <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Facsimile') . ':</td> - <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Email Address') . ':</td> - <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> - <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40></td></tr>'; + <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> - <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40></td></tr>'; + <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td> - <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40></td></tr>'; + <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 4 (Postal Code)') . ':</td> - <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40></td></tr>'; + <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 5') . ':</td> - <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20></td></tr>'; + <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20 /></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> - <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15></td></tr>'; + <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15 /></td></tr>'; @@ -467,10 +467,10 @@ $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes ",$db); if (DB_num_rows($result)==0){ $DataError =1; - echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; } else { echo '<tr><td>' . _('Sales Type/Price List') . ':</td> - <td><select tabindex=9 name="SalesType">'; + <td><select tabindex="9" name="SalesType">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; @@ -484,10 +484,10 @@ if (DB_num_rows($result)==0){ $DataError =1; echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; } else { echo '<tr><td>' . _('Customer Type') . ':</td> - <td><select tabindex=9 name="typeid">'; + <td><select tabindex="9" name="typeid">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; @@ -498,7 +498,7 @@ $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> - <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10></td></tr>'; + <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10 /></td></tr>'; echo '</table></td> <td><table class="selection"> @@ -520,13 +520,13 @@ </tr> <tr> <td>' . _('Tax Reference') . ':</td> - <td><input tabindex=15 type="text" name="TaxRef" size="22" maxlength="20" /></td> + <td><input tabindex="15" type="text" name="TaxRef" size="22" maxlength="20" /></td> </tr>'; $result=DB_query("SELECT terms, termsindicator FROM paymentterms",$db); if (DB_num_rows($result)==0){ $DataError =1; - echo '<tr><td colspan=2>' . prnMsg(_('There are no payment terms currently defined - go to the setup tab of the main menu and set at least one up first'),'error') . '</td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('There are no payment terms currently defined - go to the setup tab of the main menu and set at least one up first'),'error') . '</td></tr>'; } else { echo '<tr> Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DailyBankTransactions.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -141,7 +141,7 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; 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 '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '" /></div>'; echo '</form>'; } include('includes/footer.inc'); Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DeliveryDetails.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -814,12 +814,12 @@ /*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 cellpading="2" colspan="7">'; if ($_SESSION['Items'.$identifier]->Quotation==1){ - echo '<tr><th colspan=7>'._('Quotation Summary').'</th></tr>'; + echo '<tr><th colspan="7">'._('Quotation Summary').'</th></tr>'; } else { - echo '<tr><th colspan=7>'._('Order Summary').'</th></tr>'; + echo '<tr><th colspan="7">'._('Order Summary').'</th></tr>'; } echo '<tr> <th>'. _('Item Code') .'</th> Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DiscountCategories.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -85,7 +85,7 @@ } echo '</select></td>'; - echo '<td><input type="submit" name="select" value="'._('Select').'"></td> + echo '<td><input type="submit" name="select" value="'._('Select').'" /></td> </tr> </table> <br />'; @@ -93,20 +93,20 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 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'].'">'; + echo '<input type="hidden" name="ChooseOption" value="'.$_POST['ChooseOption'].'" />'; + echo '<input type="hidden" name="selectchoice" value="'.$_POST['selectchoice'].'" />'; if (isset($_POST['ChooseOption']) and $_POST['ChooseOption']==1) { echo '<table class="selection"><tr><td>'. _('Discount Category Code') .':</td><td>'; if (isset($_POST['DiscCat'])) { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'"></td> + echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'" /></td> <td>'._('OR') . '</td> <td></td> <td>'._('OR').'</td> </tr>'; } else { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2></td> + echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 /></td> <td>' ._('OR') . '</td> <td></td> <td>'._('OR') . '</td> @@ -123,17 +123,17 @@ $_POST['PartDesc']=''; } echo '<tr><td>'. _('Enter Stock Code') .':</td> - <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '"></td> + <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '" /></td> <td>'._('Partial code') . ':</td> - <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '"></td> + <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '" /></td> <td>' . _('Partial description') . ':</td> - <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10></td> - <td><input type="submit" name="search" value="' . _('Search') .'"></td> + <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10 /></td> + <td><input type="submit" name="search" value="' . _('Search') .'" /></td> </tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type="submit" name="submit" value="'. _('Update Item') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" name="submit" value="'. _('Update Item') .'" /></div>'; if (isset($_POST['search'])) { if ($_POST['PartID']!='' and $_POST['PartDesc']=='') @@ -169,7 +169,7 @@ echo '<option value="'.$myrow['categoryid'].'">'.$myrow['categorydescription'].'</option>'; } echo '</select></td></tr></table>'; - echo '<br /><div class="centre"><input type="submit" name="SubmitCategory" value="'. _('Update Items') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" name="SubmitCategory" value="'. _('Update Items') .'" /></div>'; } echo '</form>'; @@ -245,7 +245,7 @@ echo '</select></td></tr> </table> <br />'; - echo '<div class="centre"><input type="submit" name="selectchoice" value="'._('Select').'"></div>'; + echo '<div class="centre"><input type="submit" name="selectchoice" value="'._('Select').'" /></div>'; } include('includes/footer.inc'); Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/EDIMessageFormat.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -202,7 +202,7 @@ echo '<table class=selection>'; if ($myrow['messagetype']!='') { - echo '<tr><th colspan=2><font size=3>' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</font></th></tr>'; + echo '<tr><th colspan="2">' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</th></tr>'; } echo '<tr><td>' . _('Section') . ':</td>'; Modified: trunk/EmailConfirmation.php =================================================================== --- trunk/EmailConfirmation.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/EmailConfirmation.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -252,7 +252,7 @@ <title>Email Confirmation</title> </head> <body> -<Table width='60%'> +<table width='60%'> <tr> <td align='center' colspan='4'> <?php echo "<IMG src='" . $rootpath . '/' . $_SESSION['LogoFile'] . "' alt='Logo'" . "width='500' height='100' align='center' border='0'>" ?> Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FTP_RadioBeacon.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -44,7 +44,7 @@ /*show a table of the orders returned by the SQL */ -echo '<table cellpadding=2 colspan=7 WIDTH=100%>'; +echo '<table cellpadding="2" colspan="7" width="100%">'; $TableHeader = '<tr> <td class=tableheader>' . _('Modify') . '</td> <td class=tableheader>' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Factors.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -275,7 +275,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="New" value="No">'; + echo '<input type="hidden" name="New" value="No" />'; echo '<table class="selection"> <tr> <th>' . _('ID') . '</th> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FixedAssetItems.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -390,7 +390,7 @@ /*If the page was called without $AssetID passed to page then assume a new asset is to be entered other wise the form showing the fields with the existing entries against the asset will show for editing with a hidden AssetID field. New is set to flag that the page may have called itself and still be entering a new asset, in which case the page needs to know not to go looking up details for an existing asset*/ $New = 1; - echo '<input type="hidden" name="New" value="">'. "\n"; + echo '<input type="hidden" name="New" value="" /><br />'; $_POST['LongDescription'] = ''; $_POST['Description'] = ''; @@ -469,7 +469,7 @@ echo '<tr> <td>'. _('Image File (.jpg)') . ':</td> - <td><input type="file" id="ItemPicture" name="ItemPicture"></td>'; + <td><input type="file" id="ItemPicture" name="ItemPicture" /></td>'; if (function_exists('imagecreatefromjpg')){ $AssetImgLink = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC'. @@ -480,7 +480,7 @@ '" >'; } else { if( isset($AssetID) and file_exists($_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg') ) { - $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" >'; + $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" />'; } else { $AssetImgLink = _('No Image'); } Modified: trunk/FixedAssetRegister.php =================================================================== --- trunk/FixedAssetRegister.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FixedAssetRegister.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -220,7 +220,7 @@ } else { echo '<input type="hidden" name="FromDate" value="' . $_POST['FromDate'] . '" />'; - echo '<input type="hidden" name="ToDate" value=' . $_POST['ToDate'] . '>'; + echo '<input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '" />'; echo '<input type="hidden" name="AssetCategory" value="' . $_POST['AssetCategory'] . '" />'; echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'] . '" />'; echo '<input type="hidden" name="AssetLocation" value="' . $_POST['AssetLocation'] . '" />'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FormDesigner.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -158,11 +158,11 @@ $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input name=FormName type="hidden" value="'.$_POST['FormName'].'">'; -echo '<table width=95% border=1>'; //Start of outer table -echo '<tr><th width=33%>'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'"></th>'; +echo '<input name="FormName" type="hidden" value="'.$_POST['FormName'].'" />'; +echo '<table width="95%" border="1">'; //Start of outer table +echo '<tr><th width="33%">'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'" /></th>'; /* Select the paper size/orientation */ -echo '<th width=33%>'._('Paper Size').'<select name="PaperSize">'; +echo '<th width="33%">'._('Paper Size').'<select name="PaperSize">'; foreach ($Papers as $Paper) { if (mb_substr($Paper,-8)=='Portrait') { $PaperValue=mb_substr($Paper,0,mb_strlen($Paper)-9); @@ -177,33 +177,33 @@ } echo '</select></th>'; /* and the standard line height for the form */ -echo '<th width=33%>'._('Line Height').'<input type="text" class="number" name="LineHeight" size=3 maxlength=3 value="'.$FormDesign->LineHeight.'"></th></tr><tr>'; +echo '<th width=33%>'._('Line Height').'<input type="text" class="number" name="LineHeight" size="3" maxlength="3" value="'.$FormDesign->LineHeight.'" /></th></tr><tr>'; $counter=1; // Count how many sub tables are in the row foreach ($FormDesign as $key) { switch ($key['type']) { case 'image': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=8>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'SimpleText': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'."\n"; SimpleTextLine($key); echo '</table></td>'; $counter=$counter+1; break; case 'MultiLineText': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=4>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="4">'.$key['name'].'</th></tr>'."\n"; MultiTextLine($key); echo '</table></td>'; $counter=$counter+1; break; case 'ElementArray': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=7>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="7">'.$key['name'].'</th></tr>'."\n"; foreach ($key as $subkey) { if ($subkey['type']=='SimpleText') { echo '<tr>'; @@ -221,7 +221,7 @@ echo '<td>'.$subkey['name'].'</td>'; DataTextLine($subkey); } elseif ($subkey['type']=='StartLine') { - echo '<td colspan=3>'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size=4 maxlength=4 value="'.$key->y.'"></td>'; + echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'"></td>'; } echo '</tr>'; } @@ -230,30 +230,30 @@ $counter=$counter+1; break; case 'CurvedRectangle': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td></tr><tr>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; - echo '<td class=number>'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size=3 maxlength=3 value="'.$key->radius.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td></tr><tr>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Rectangle': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td></tr><tr>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td></tr><tr>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Line': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size=4 maxlength=4 value="'.$key->startx.'"></td>'; - echo '<td class=number>'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size=4 maxlength=4 value="'.$key->starty.'"></td></tr><tr>'; - echo '<td class=number>'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size=4 maxlength=4 value="'.$key->endx.'"></td>'; - echo '<td class=number>'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size=4 maxlength=4 value="'.$key->endy.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'"></td>'; + echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'"></td></tr><tr>'; + echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'"></td>'; + echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; Modified: trunk/FreightCosts.php =================================================================== --- trunk/FreightCosts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FreightCosts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -56,7 +56,7 @@ echo '</select></td></tr> </table> - <br /><div class="centre"><input type="submit" value="' . _('Accept') . '" name="Accept"></div> + <br /><div class="centre"><input type="submit" value="' . _('Accept') . '" name="Accept" /></div> </form>'; } else { @@ -300,7 +300,7 @@ $_POST['FixedPrice'] = $myrow['fixedprice']; $_POST['MinimumChg'] = $myrow['minimumchg']; - echo '<input type="hidden" name="SelectedFreightCost" value="' . $SelectedFreightCost . '">'; + echo '<input type="hidden" name="SelectedFreightCost" value="' . $SelectedFreightCost . '" />'; } else { $_POST['FixedPrice'] = 0; @@ -317,26 +317,26 @@ if (!isset($_POST['MAXCub'])) {$_POST['MAXCub']='';} echo '<br /><table class=selection>'; - echo '<tr><th colspan=2><font size=4 color=blue>' . _('For Deliveries From') . ' ' . $LocationName . ' ' . _('using') . ' ' . - $ShipperName . '</font></th></tr>'; + echo '<tr><th colspan="2">' . _('For Deliveries From') . ' ' . $LocationName . ' ' . _('using') . ' ' . + $ShipperName . '</th></tr>'; echo'<tr><td>' . _('Destination') . ':</td> - <td><input type="text" maxlength=20 size=20 name="Destination" value="' . $_POST['Destination'] . '"></td></tr>'; + <td><input type="text" maxlength=20 size=20 name="Destination" value="' . $_POST['Destination'] . '" /></td></tr>'; echo '<tr><td>' . _('Rate per Cubic Metre') . ':</td> - <td><input type="text" name="CubRate" class="number" size=6 maxlength=5 value="' . $_POST['CubRate'] . '"></td></tr>'; + <td><input type="text" name="CubRate" class="number" size=6 maxlength=5 value="' . $_POST['CubRate'] . '" /></td></tr>'; echo '<tr><td>' . _('Rate Per KG') . ':</td> - <td><input type="text" name="KGRate" class="number" size=6 maxlength=5 value="' . $_POST['KGRate'] . '"></td></tr>'; + <td><input type="text" name="KGRate" class="number" size=6 maxlength=5 value="' . $_POST['KGRate'] . '" /></td></tr>'; echo '<tr><td>' . _('Maximum Weight Per Package (KGs)') . ':</a></td> - <td><input type="text" name="MAXKGs" class="number" size=8 maxlength=7 value="' . $_POST['MAXKGs'] . '"></td></tr>'; + <td><input type="text" name="MAXKGs" class="number" size=8 maxlength=7 value="' . $_POST['MAXKGs'] . '" /></td></tr>'; echo '<tr><td>' . _('Maximum Volume Per Package (cubic metres)') . ':</a></td> - <td><input type="text" name="MAXCub" class="number" size=8 maxlength=7 value="' . $_POST['MAXCub'] . '"></td></tr>'; + <td><input type="text" name="MAXCub" class="number" size=8 maxlength=7 value="' . $_POST['MAXCub'] . '" /></td></tr>'; echo '<tr><td>' . _('Fixed Price (zero if rate per KG or Cubic)') . ':</a></td> - <td><input type="text" name="FixedPrice" class="number" size=6 maxlength=5 value="' . $_POST['FixedPrice'] . '"></td></tr>'; + <td><input type="text" name="FixedPrice" class="number" size=6 maxlength=5 value="' . $_POST['FixedPrice'] . '" /></td></tr>'; echo '<tr><td>' . _('Minimum Charge (0 is N/A)') . ':</a></td> - <td><input type="text" name="MinimumChg" class="number" size=6 maxlength=5 value="' . $_POST['MinimumChg'] . '"></td></tr>'; + <td><input type="text" name="MinimumChg" class="number" size=6 maxlength=5 value="' . $_POST['MinimumChg'] . '" /></td></tr>'; echo '</table><br />'; - echo '<div class="centre"><input type="submit" name="submit" value="' . _('Enter Information') . '"></div>'; + echo '<div class="centre"><input type="submit" name="submit" value="' . _('Enter Information') . '" /></div>'; echo '</form>'; Modified: trunk/GLAccountCSV.php =================================================================== --- trunk/GLAccountCSV.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLAccountCSV.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -79,7 +79,7 @@ // End select tag echo '</table><p> - <div class="centre"><input type="submit" name="MakeCSV" value="'._('Make CSV File').'"></div> + <div class="centre"><input type="submit" name="MakeCSV" value="'._('Make CSV File').'" /></div> </form>'; /* End of the Form rest of script is what happens if the show button is hit*/ Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -222,8 +222,8 @@ $_POST['AccountName'] = $myrow['accountname']; $_POST['Group'] = $myrow['group_']; - echo '<input type="hidden" name="SelectedAccount" value="' . $SelectedAccount . '">'; - echo '<input type="hidden" name="AccountCode" VALUE="' . $_POST['AccountCode'] .'">'; + echo '<input type="hidden" name="SelectedAccount" value="' . $SelectedAccount . '" />'; + echo '<input type="hidden" name="AccountCode" VALUE="' . $_POST['AccountCode'] .'" />'; echo '<table class=selection> <tr><td>' . _('Account Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td></tr>'; @@ -235,7 +235,7 @@ } if (!isset($_POST['AccountName'])) {$_POST['AccountName']='';} - echo '<tr><td>' . _('Account Name') . ":</td><td><input type='Text' size=51 maxlength=50 name='AccountName' value='" . $_POST['AccountName'] . "'></td></tr>"; + echo '<tr><td>' . _('Account Name') . ":</td><td><input type='Text' size=51 maxlength=50 name='AccountName' value='" . $_POST['AccountName'] . "' /></td></tr>"; $sql = 'SELECT groupname FROM accountgroups ORDER BY sequenceintb'; $result = DB_query($sql, $db); @@ -259,7 +259,7 @@ echo '</select></td></tr></table>'; - echo '<br /><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div>'; + echo '<br /><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '" /></div>'; echo '</form>'; Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLBalanceSheet.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -63,7 +63,7 @@ </div>'; echo '<br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="'._('Produce PDF Report').'"> + <input type="submit" name="PrintPDF" value="'._('Produce PDF Report').'" /> </div> </form>'; @@ -364,7 +364,7 @@ echo '<div class="invoice"> <table class="selection"> <tr> - <th colspan=6> + <th colspan="6"> <div class="centre"><font size="4" color="blue"><b>' . _('Balance Sheet as at') . ' ' . $BalanceDate .'</b></font> </div> @@ -620,7 +620,7 @@ </tr>'; } else { echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr></td> <td></td> <td><hr></td> @@ -628,7 +628,7 @@ } printf('<tr> - <td colspan=3><font size=4>%s</font></td> + <td colspan="3">%s</td> <td class="number">%s</td> <td></td> <td class="number">%s</td> Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLBudgets.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -191,7 +191,7 @@ echo '<td><input type="text" class="number" size=14 name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod+($i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; - echo '<td><input type="text" class="number" size=14 name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; + echo '<td><input type="text" class="number" size=14 name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '</tr>'; $LastYearActual=$LastYearActual+$Actual[$CurrentYearEndPeriod-(24-$i)]; $LastYearBudget=$LastYearBudget+$Budget[$CurrentYearEndPeriod-(24-$i)]; @@ -231,7 +231,7 @@ echo '<script>defaultControl(document.form.1next);</script>'; echo '<br /> <div class="centre"> - <input type="submit" name=update value="' . _('Update') . '"> + <input type="submit" name=update value="' . _('Update') . '" /> </div> </form>'; Modified: trunk/GLProfit_Loss.php =================================================================== --- trunk/GLProfit_Loss.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLProfit_Loss.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -748,7 +748,7 @@ if ($Section==1) { /*Income*/ echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr /></td> <td></td> <td><hr /></td> @@ -757,7 +757,7 @@ </tr>'; printf('<tr> - <td colspan="2"><font size=4>%s</font></td> + <td colspan="2">%s</td> <td></td> <td class="number">%s</td> <td></td> @@ -875,7 +875,7 @@ $ActGrp = $myrow['groupname']; if ($_POST['Detail']=='Detailed'){ printf('<tr> - <th colspan=8><font size=3 color=BLUE><b>%s</b></font></th> + <th colspan="8"><b>%s</b></th> </tr>', $myrow['groupname']); echo $TableHeader; @@ -1051,7 +1051,7 @@ if ($Section==1) { /*Income*/ echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr /></td> <td></td> <td><hr /></td> Modified: trunk/GLTags.php =================================================================== --- trunk/GLTags.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLTags.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -57,8 +57,8 @@ <table> <tr> <td>'. _('Description') . '</td> - <td><input type="text" size="30" maxlength="30" name="Description" value="'.$Description.'"></td> - <td><input type="hidden" name="reference" value="'.$_GET['SelectedTag'].'">'; + <td><input type="text" size="30" maxlength="30" name="Description" value="'.$Description.'" /></td> + <td><input type="hidden" name="reference" value="'.$_GET['SelectedTag'].'" />'; if (isset($_GET['Action']) AND $_GET['Action']=='edit') { echo '<input type="submit" name="update" value="' . _('Update') . '" />'; Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLTrialBalance.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -436,8 +436,8 @@ Account Code , Account Name... [truncated message content] |
From: <vv...@us...> - 2012-01-22 22:18:01
|
Revision: 4835 http://web-erp.svn.sourceforge.net/web-erp/?rev=4835&view=rev Author: vvs2012 Date: 2012-01-22 22:17:50 +0000 (Sun, 22 Jan 2012) Log Message: ----------- Added quotes and missing closing tags in multiple files Modified Paths: -------------- trunk/Areas.php trunk/BOMListing.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/ConfirmDispatch_Invoice.php trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/CustomerTransInquiry.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/EDIMessageFormat.php trunk/EmailConfirmation.php trunk/FTP_RadioBeacon.php trunk/Factors.php trunk/FixedAssetItems.php trunk/FixedAssetRegister.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLProfit_Loss.php trunk/GLTags.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GoodsReceivedControlled.php trunk/InventoryPlanningPrefSupplier.php trunk/Locations.php trunk/MRPCalendar.php trunk/MRPDemands.php trunk/MRPPlannedWorkOrders.php trunk/PDFBankingSummary.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPrintLabel.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PeriodsInquiry.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/RecurringSalesOrders.php trunk/ReorderLevelLocation.php trunk/ReverseGRN.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/Shipments.php trunk/ShiptsList.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocTransferReceive.php trunk/Stocks.php trunk/SuppCreditGRNs.php trunk/SuppInvGRNs.php trunk/SupplierAllocations.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierTenders.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/TaxAuthorities.php trunk/UnitsOfMeasure.php trunk/UserSettings.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WorkOrderCosting.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/WorkOrderStatus.php trunk/Z_ChangeStockCategory.php trunk/Z_DataExport.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_UploadForm.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/doc/Change.log trunk/index.php Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Areas.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -213,7 +213,7 @@ echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> - <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3></td> + <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3 /></td> </tr>'; } Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BOMListing.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -117,7 +117,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr><td>' . _('From Inventory Part Code') . ':' . '</font></td> - <td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1"></td> + <td><input tabindex="1" type="text" name="FromCriteria" size="20" maxlength="20" value="1" /></td> </tr>'; echo '<tr><td>' . _('To Inventory Part Code') . ':' . '</td> @@ -126,7 +126,7 @@ echo '</table> - <br /><div class="centre"><input tabindex="3" type="submit" name="PrintPDF" value="' . _('Print PDF') . '"></div>'; + <br /><div class="centre"><input tabindex="3" type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /></div>'; echo '<script>defaultControl(document.forms[0].FromCriteria);</script>'; } include('includes/footer.inc');; Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BankAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -276,8 +276,8 @@ $_POST['CurrCode'] = $myrow['currcode']; $_POST['DefAccount'] = $myrow['invoice']; - echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '">'; - echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '">'; + echo '<input type="hidden" name="SelectedBankAccount" value="' . $SelectedBankAccount . '" />'; + echo '<input type="hidden" name="AccountCode" value="' . $_POST['AccountCode'] . '" />'; echo '<table class="selection"> <tr><td>' . _('Bank Account GL Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td> @@ -324,13 +324,13 @@ } echo '<tr><td>' . _('Bank Account Name') . ': </td> - <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50></td></tr> + <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50 /></td></tr> <tr><td>' . _('Bank Account Code') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50></td></tr> + <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50 /></td></tr> <tr><td>' . _('Bank Account Number') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50"></td></tr> + <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Address') . ': </td> - <td><input tabindex="4" ' . (in_array('BankAddress',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="BankAddress" value="' . $_POST['BankAddress'] . '" size="40" maxlength="50"></td></tr> + <td><input tabindex="4" ' . (in_array('BankAddress',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="BankAddress" value="' . $_POST['BankAddress'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Currency Of Account') . ': </td> <td><select tabindex="5" name="CurrCode">'; @@ -388,7 +388,7 @@ echo '</select></td>'; echo '</tr></table><br /> - <div class="centre"><input tabindex="7" type="submit" name="submit" value="'. _('Enter Information') .'"></div>'; + <div class="centre"><input tabindex="7" type="submit" name="submit" value="'. _('Enter Information') .'" /></div>'; echo '</form>'; include('includes/footer.inc'); Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/BankMatching.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -90,7 +90,7 @@ echo '<table class="selection"> <tr> <td align="left">' . _('Bank Account') . ':</td> - <td colspan=3><select tabindex="1" name="BankAccount">'; + <td colspan="3"><select tabindex="1" name="BankAccount">'; $sql = "SELECT accountcode, bankaccountname FROM bankaccounts"; $resultBankActs = DB_query($sql,$db); Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/COGSGLPostings.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -248,7 +248,7 @@ $_POST['StkCat'] = $myrow['stkcat']; $_POST['SalesType'] = $myrow['salestype']; - echo '<input type="hidden" name="SelectedCOGSPostingID" value="' . $SelectedCOGSPostingID . '">'; + echo '<input type="hidden" name="SelectedCOGSPostingID" value="' . $SelectedCOGSPostingID . '" />'; } //end of if $SelectedCOGSPostingID only do the else when a new record is being entered Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -327,13 +327,13 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '" /><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . '_QtyDispatched" maxlength="12" size="12" value="' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '"></td>'; + echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" name="' . $LnItm->LineNumber . '_QtyDispatched" maxlength="12" size="12" value="' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '" /></td>'; } } $DisplayDiscountPercent = locale_number_format($LnItm->DiscountPercent*100,2) . '%'; @@ -476,7 +476,7 @@ OR $_POST['ChargeFreightCost']==0)) { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td> - <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0"></td>'; + <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; $_SESSION['Items'.$identifier]->FreightCost=0; } else { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td>'; @@ -1613,9 +1613,9 @@ echo '<br /><div class="centre">'; if ($_SESSION['InvoicePortraitFormat']==0){ - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; + echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; } else { - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; + echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; } echo '<a href="'.$rootpath.'/SelectSalesOrder.php">'. _('Select another order for invoicing'). '</a><br /><br />'; echo '<a href="'.$rootpath.'/SelectOrderItems.php?NewOrder=Yes">'._('Sales Order Entry').'</a></div><br />'; @@ -1635,12 +1635,12 @@ echo '<table class="selection"> <tr> <td>' ._('Date On Invoice'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date"></td> + <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> </tr>'; $j++; echo '<tr> <td>' . _('Consignment Note Ref'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '"></td> + <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> </tr>'; $j++; echo '<tr> Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CreditItemsControlled.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -70,7 +70,7 @@ echo '<div class="centre">'; if ($CreditLink == 'Credit_Invoice.php'){ - echo '<input type="hidden" name="CreditInvoice" value="Yes">'; + echo '<input type="hidden" name="CreditInvoice" value="Yes" />'; } echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CreditStatus.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"></td> + ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Credit_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -418,7 +418,7 @@ } if (!isset($_POST['ProcessCredit'])) { - echo '<input type="text" class="number" name="FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . '" maxlength="4" size="4" value=' . $FreightTaxLine->TaxRate * 100 . '>'; + echo '<input type="text" class="number" name="FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . '" maxlength="4" size="4" value="' . $FreightTaxLine->TaxRate * 100 . '" />'; } if ($FreightTaxLine->TaxOnTax ==1){ $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); @@ -444,7 +444,7 @@ echo '<tr> <td colspan="7" class="number">' . _('Credit Totals') . '</td> <td class="number"><hr><b>' . $DisplayTotal . '</b><hr></td> - <td colspan=2></td> + <td colspan="2"></td> <td class="number"><hr><b>' . locale_number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '<hr></td> <td class="number"><hr><b>' . locale_number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b><hr></td> </tr></table>'; @@ -1509,9 +1509,9 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . '><p>'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . ' /><br />'; $j++; - echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'"></div>'; + echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } echo '</form>'; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Currencies.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -247,7 +247,7 @@ } if ($myrow[1]!=$FunctionalCurrency){ - printf('<td><img src="%s"></td> + printf('<td><img src="%s" /></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -276,7 +276,7 @@ $rootpath, '&CurrencyToShow=' . $myrow['currabrev']); } else { - printf('<td><img src="%s"></td> + printf('<td><img src="%s" /></td> <td>%s</td> <td>%s</td> <td>%s</td> Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustEDISetup.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -150,13 +150,13 @@ if ($myrow['editransport']=='ftp'){ echo '<tr><td>'._('FTP Server User Name') . ':</td> - <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '"></td></tr>'; + <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '" /></td></tr>'; echo '<tr><td>'._('FTP Server Password') . ':</td> - <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '"></td></tr>'; + <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; } echo '</table> - <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '"></div> + <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> </form>'; include('includes/footer.inc'); Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustomerAllocations.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -397,7 +397,7 @@ <td class="number">' . locale_number_format($balance,$_SESSION['Alloc']->CurrDecimalPlaces) . '</td> </tr>'; } else { - echo '<input type="hidden" name="YetToAlloc' . $Counter . '" value="' . round($YetToAlloc,$_SESSION['Alloc']->CurrDecimalPlaces) . '"></td>'; + echo '<input type="hidden" name="YetToAlloc' . $Counter . '" value="' . round($YetToAlloc,$_SESSION['Alloc']->CurrDecimalPlaces) . '" /></td>'; echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/CustomerTransInquiry.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -137,7 +137,7 @@ if ($_POST['TransType']==10){ /* invoices */ printf($format_base . - '<td><a target="_blank" href=%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Invoice"><img src="%s" title="' . _('Click to preview the invoice') . '"></a></td> + '<td><a target="_blank" href=%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Invoice"><img src="%s" title="' . _('Click to preview the invoice') . '" /></a></td> </tr>', $myrow['typename'], $myrow['transno'], @@ -156,7 +156,7 @@ } elseif ($_POST['TransType']==11){ /* credit notes */ printf($format_base . - '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Credit"><img src="%s" title="' . _('Click to preview the credit') . '"></a></td> + '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Credit"><img src="%s" title="' . _('Click to preview the credit') . '" /></a></td> </tr>', $myrow['typename'], $myrow['transno'], Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Customers.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -437,29 +437,29 @@ /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ if ($_SESSION['AutoDebtorNo']==0) { - echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10></td></tr>'; + echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10 /></td></tr>'; } echo '<tr><td>' . _('Customer Name') . ':</td> - <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Telephone') . ':</td> - <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Facsimile') . ':</td> - <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Email Address') . ':</td> - <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40></td></tr>'; + <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> - <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40></td></tr>'; + <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> - <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40></td></tr>'; + <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td> - <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40></td></tr>'; + <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 4 (Postal Code)') . ':</td> - <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40></td></tr>'; + <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40 /></td></tr>'; echo '<tr><td>' . _('Address Line 5') . ':</td> - <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20></td></tr>'; + <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20 /></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> - <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15></td></tr>'; + <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15 /></td></tr>'; @@ -467,10 +467,10 @@ $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes ",$db); if (DB_num_rows($result)==0){ $DataError =1; - echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; } else { echo '<tr><td>' . _('Sales Type/Price List') . ':</td> - <td><select tabindex=9 name="SalesType">'; + <td><select tabindex="9" name="SalesType">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; @@ -484,10 +484,10 @@ if (DB_num_rows($result)==0){ $DataError =1; echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; } else { echo '<tr><td>' . _('Customer Type') . ':</td> - <td><select tabindex=9 name="typeid">'; + <td><select tabindex="9" name="typeid">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; @@ -498,7 +498,7 @@ $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> - <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10></td></tr>'; + <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10 /></td></tr>'; echo '</table></td> <td><table class="selection"> @@ -520,13 +520,13 @@ </tr> <tr> <td>' . _('Tax Reference') . ':</td> - <td><input tabindex=15 type="text" name="TaxRef" size="22" maxlength="20" /></td> + <td><input tabindex="15" type="text" name="TaxRef" size="22" maxlength="20" /></td> </tr>'; $result=DB_query("SELECT terms, termsindicator FROM paymentterms",$db); if (DB_num_rows($result)==0){ $DataError =1; - echo '<tr><td colspan=2>' . prnMsg(_('There are no payment terms currently defined - go to the setup tab of the main menu and set at least one up first'),'error') . '</td></tr>'; + echo '<tr><td colspan="2">' . prnMsg(_('There are no payment terms currently defined - go to the setup tab of the main menu and set at least one up first'),'error') . '</td></tr>'; } else { echo '<tr> Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DailyBankTransactions.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -141,7 +141,7 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; 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 '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '" /></div>'; echo '</form>'; } include('includes/footer.inc'); Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DeliveryDetails.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -814,12 +814,12 @@ /*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 cellpading="2" colspan="7">'; if ($_SESSION['Items'.$identifier]->Quotation==1){ - echo '<tr><th colspan=7>'._('Quotation Summary').'</th></tr>'; + echo '<tr><th colspan="7">'._('Quotation Summary').'</th></tr>'; } else { - echo '<tr><th colspan=7>'._('Order Summary').'</th></tr>'; + echo '<tr><th colspan="7">'._('Order Summary').'</th></tr>'; } echo '<tr> <th>'. _('Item Code') .'</th> Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/DiscountCategories.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -85,7 +85,7 @@ } echo '</select></td>'; - echo '<td><input type="submit" name="select" value="'._('Select').'"></td> + echo '<td><input type="submit" name="select" value="'._('Select').'" /></td> </tr> </table> <br />'; @@ -93,20 +93,20 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 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'].'">'; + echo '<input type="hidden" name="ChooseOption" value="'.$_POST['ChooseOption'].'" />'; + echo '<input type="hidden" name="selectchoice" value="'.$_POST['selectchoice'].'" />'; if (isset($_POST['ChooseOption']) and $_POST['ChooseOption']==1) { echo '<table class="selection"><tr><td>'. _('Discount Category Code') .':</td><td>'; if (isset($_POST['DiscCat'])) { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'"></td> + echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'" /></td> <td>'._('OR') . '</td> <td></td> <td>'._('OR').'</td> </tr>'; } else { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2></td> + echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 /></td> <td>' ._('OR') . '</td> <td></td> <td>'._('OR') . '</td> @@ -123,17 +123,17 @@ $_POST['PartDesc']=''; } echo '<tr><td>'. _('Enter Stock Code') .':</td> - <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '"></td> + <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '" /></td> <td>'._('Partial code') . ':</td> - <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '"></td> + <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '" /></td> <td>' . _('Partial description') . ':</td> - <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10></td> - <td><input type="submit" name="search" value="' . _('Search') .'"></td> + <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10 /></td> + <td><input type="submit" name="search" value="' . _('Search') .'" /></td> </tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type="submit" name="submit" value="'. _('Update Item') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" name="submit" value="'. _('Update Item') .'" /></div>'; if (isset($_POST['search'])) { if ($_POST['PartID']!='' and $_POST['PartDesc']=='') @@ -169,7 +169,7 @@ echo '<option value="'.$myrow['categoryid'].'">'.$myrow['categorydescription'].'</option>'; } echo '</select></td></tr></table>'; - echo '<br /><div class="centre"><input type="submit" name="SubmitCategory" value="'. _('Update Items') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" name="SubmitCategory" value="'. _('Update Items') .'" /></div>'; } echo '</form>'; @@ -245,7 +245,7 @@ echo '</select></td></tr> </table> <br />'; - echo '<div class="centre"><input type="submit" name="selectchoice" value="'._('Select').'"></div>'; + echo '<div class="centre"><input type="submit" name="selectchoice" value="'._('Select').'" /></div>'; } include('includes/footer.inc'); Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/EDIMessageFormat.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -202,7 +202,7 @@ echo '<table class=selection>'; if ($myrow['messagetype']!='') { - echo '<tr><th colspan=2><font size=3>' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</font></th></tr>'; + echo '<tr><th colspan="2">' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</th></tr>'; } echo '<tr><td>' . _('Section') . ':</td>'; Modified: trunk/EmailConfirmation.php =================================================================== --- trunk/EmailConfirmation.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/EmailConfirmation.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -252,7 +252,7 @@ <title>Email Confirmation</title> </head> <body> -<Table width='60%'> +<table width='60%'> <tr> <td align='center' colspan='4'> <?php echo "<IMG src='" . $rootpath . '/' . $_SESSION['LogoFile'] . "' alt='Logo'" . "width='500' height='100' align='center' border='0'>" ?> Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FTP_RadioBeacon.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -44,7 +44,7 @@ /*show a table of the orders returned by the SQL */ -echo '<table cellpadding=2 colspan=7 WIDTH=100%>'; +echo '<table cellpadding="2" colspan="7" width="100%">'; $TableHeader = '<tr> <td class=tableheader>' . _('Modify') . '</td> <td class=tableheader>' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/Factors.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -275,7 +275,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type="hidden" name="New" value="No">'; + echo '<input type="hidden" name="New" value="No" />'; echo '<table class="selection"> <tr> <th>' . _('ID') . '</th> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FixedAssetItems.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -390,7 +390,7 @@ /*If the page was called without $AssetID passed to page then assume a new asset is to be entered other wise the form showing the fields with the existing entries against the asset will show for editing with a hidden AssetID field. New is set to flag that the page may have called itself and still be entering a new asset, in which case the page needs to know not to go looking up details for an existing asset*/ $New = 1; - echo '<input type="hidden" name="New" value="">'. "\n"; + echo '<input type="hidden" name="New" value="" /><br />'; $_POST['LongDescription'] = ''; $_POST['Description'] = ''; @@ -469,7 +469,7 @@ echo '<tr> <td>'. _('Image File (.jpg)') . ':</td> - <td><input type="file" id="ItemPicture" name="ItemPicture"></td>'; + <td><input type="file" id="ItemPicture" name="ItemPicture" /></td>'; if (function_exists('imagecreatefromjpg')){ $AssetImgLink = '<img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC'. @@ -480,7 +480,7 @@ '" >'; } else { if( isset($AssetID) and file_exists($_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg') ) { - $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" >'; + $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" />'; } else { $AssetImgLink = _('No Image'); } Modified: trunk/FixedAssetRegister.php =================================================================== --- trunk/FixedAssetRegister.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FixedAssetRegister.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -220,7 +220,7 @@ } else { echo '<input type="hidden" name="FromDate" value="' . $_POST['FromDate'] . '" />'; - echo '<input type="hidden" name="ToDate" value=' . $_POST['ToDate'] . '>'; + echo '<input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '" />'; echo '<input type="hidden" name="AssetCategory" value="' . $_POST['AssetCategory'] . '" />'; echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'] . '" />'; echo '<input type="hidden" name="AssetLocation" value="' . $_POST['AssetLocation'] . '" />'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FormDesigner.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -158,11 +158,11 @@ $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input name=FormName type="hidden" value="'.$_POST['FormName'].'">'; -echo '<table width=95% border=1>'; //Start of outer table -echo '<tr><th width=33%>'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'"></th>'; +echo '<input name="FormName" type="hidden" value="'.$_POST['FormName'].'" />'; +echo '<table width="95%" border="1">'; //Start of outer table +echo '<tr><th width="33%">'._('Form Name').'<input type="text" name="formname" value="'.$FormDesign['name'].'" /></th>'; /* Select the paper size/orientation */ -echo '<th width=33%>'._('Paper Size').'<select name="PaperSize">'; +echo '<th width="33%">'._('Paper Size').'<select name="PaperSize">'; foreach ($Papers as $Paper) { if (mb_substr($Paper,-8)=='Portrait') { $PaperValue=mb_substr($Paper,0,mb_strlen($Paper)-9); @@ -177,33 +177,33 @@ } echo '</select></th>'; /* and the standard line height for the form */ -echo '<th width=33%>'._('Line Height').'<input type="text" class="number" name="LineHeight" size=3 maxlength=3 value="'.$FormDesign->LineHeight.'"></th></tr><tr>'; +echo '<th width=33%>'._('Line Height').'<input type="text" class="number" name="LineHeight" size="3" maxlength="3" value="'.$FormDesign->LineHeight.'" /></th></tr><tr>'; $counter=1; // Count how many sub tables are in the row foreach ($FormDesign as $key) { switch ($key['type']) { case 'image': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=8>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'SimpleText': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'."\n"; SimpleTextLine($key); echo '</table></td>'; $counter=$counter+1; break; case 'MultiLineText': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=4>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="4">'.$key['name'].'</th></tr>'."\n"; MultiTextLine($key); echo '</table></td>'; $counter=$counter+1; break; case 'ElementArray': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=7>'.$key['name'].'</th></tr>'."\n"; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="7">'.$key['name'].'</th></tr>'."\n"; foreach ($key as $subkey) { if ($subkey['type']=='SimpleText') { echo '<tr>'; @@ -221,7 +221,7 @@ echo '<td>'.$subkey['name'].'</td>'; DataTextLine($subkey); } elseif ($subkey['type']=='StartLine') { - echo '<td colspan=3>'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size=4 maxlength=4 value="'.$key->y.'"></td>'; + echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'"></td>'; } echo '</tr>'; } @@ -230,30 +230,30 @@ $counter=$counter+1; break; case 'CurvedRectangle': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td></tr><tr>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; - echo '<td class=number>'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size=3 maxlength=3 value="'.$key->radius.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td></tr><tr>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Rectangle': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; - echo '<td class=number>'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size=4 maxlength=4 value="'.$key->y.'"></td></tr><tr>'; - echo '<td class=number>'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size=4 maxlength=4 value="'.$key->width.'"></td>'; - echo '<td class=number>'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size=4 maxlength=4 value="'.$key->height.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td></tr><tr>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Line': - echo '<td colspan=1 valign=top><table width=100% border=1><tr><th colspan=6>'.$key['name'].'</th></tr>'; - echo '<td class=number>'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size=4 maxlength=4 value="'.$key->startx.'"></td>'; - echo '<td class=number>'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size=4 maxlength=4 value="'.$key->starty.'"></td></tr><tr>'; - echo '<td class=number>'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size=4 maxlength=4 value="'.$key->endx.'"></td>'; - echo '<td class=number>'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size=4 maxlength=4 value="'.$key->endy.'"></td>'; + echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; + echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'"></td>'; + echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'"></td></tr><tr>'; + echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'"></td>'; + echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'"></td>'; echo '</table></td>'; $counter=$counter+1; break; Modified: trunk/FreightCosts.php =================================================================== --- trunk/FreightCosts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/FreightCosts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -56,7 +56,7 @@ echo '</select></td></tr> </table> - <br /><div class="centre"><input type="submit" value="' . _('Accept') . '" name="Accept"></div> + <br /><div class="centre"><input type="submit" value="' . _('Accept') . '" name="Accept" /></div> </form>'; } else { @@ -300,7 +300,7 @@ $_POST['FixedPrice'] = $myrow['fixedprice']; $_POST['MinimumChg'] = $myrow['minimumchg']; - echo '<input type="hidden" name="SelectedFreightCost" value="' . $SelectedFreightCost . '">'; + echo '<input type="hidden" name="SelectedFreightCost" value="' . $SelectedFreightCost . '" />'; } else { $_POST['FixedPrice'] = 0; @@ -317,26 +317,26 @@ if (!isset($_POST['MAXCub'])) {$_POST['MAXCub']='';} echo '<br /><table class=selection>'; - echo '<tr><th colspan=2><font size=4 color=blue>' . _('For Deliveries From') . ' ' . $LocationName . ' ' . _('using') . ' ' . - $ShipperName . '</font></th></tr>'; + echo '<tr><th colspan="2">' . _('For Deliveries From') . ' ' . $LocationName . ' ' . _('using') . ' ' . + $ShipperName . '</th></tr>'; echo'<tr><td>' . _('Destination') . ':</td> - <td><input type="text" maxlength=20 size=20 name="Destination" value="' . $_POST['Destination'] . '"></td></tr>'; + <td><input type="text" maxlength=20 size=20 name="Destination" value="' . $_POST['Destination'] . '" /></td></tr>'; echo '<tr><td>' . _('Rate per Cubic Metre') . ':</td> - <td><input type="text" name="CubRate" class="number" size=6 maxlength=5 value="' . $_POST['CubRate'] . '"></td></tr>'; + <td><input type="text" name="CubRate" class="number" size=6 maxlength=5 value="' . $_POST['CubRate'] . '" /></td></tr>'; echo '<tr><td>' . _('Rate Per KG') . ':</td> - <td><input type="text" name="KGRate" class="number" size=6 maxlength=5 value="' . $_POST['KGRate'] . '"></td></tr>'; + <td><input type="text" name="KGRate" class="number" size=6 maxlength=5 value="' . $_POST['KGRate'] . '" /></td></tr>'; echo '<tr><td>' . _('Maximum Weight Per Package (KGs)') . ':</a></td> - <td><input type="text" name="MAXKGs" class="number" size=8 maxlength=7 value="' . $_POST['MAXKGs'] . '"></td></tr>'; + <td><input type="text" name="MAXKGs" class="number" size=8 maxlength=7 value="' . $_POST['MAXKGs'] . '" /></td></tr>'; echo '<tr><td>' . _('Maximum Volume Per Package (cubic metres)') . ':</a></td> - <td><input type="text" name="MAXCub" class="number" size=8 maxlength=7 value="' . $_POST['MAXCub'] . '"></td></tr>'; + <td><input type="text" name="MAXCub" class="number" size=8 maxlength=7 value="' . $_POST['MAXCub'] . '" /></td></tr>'; echo '<tr><td>' . _('Fixed Price (zero if rate per KG or Cubic)') . ':</a></td> - <td><input type="text" name="FixedPrice" class="number" size=6 maxlength=5 value="' . $_POST['FixedPrice'] . '"></td></tr>'; + <td><input type="text" name="FixedPrice" class="number" size=6 maxlength=5 value="' . $_POST['FixedPrice'] . '" /></td></tr>'; echo '<tr><td>' . _('Minimum Charge (0 is N/A)') . ':</a></td> - <td><input type="text" name="MinimumChg" class="number" size=6 maxlength=5 value="' . $_POST['MinimumChg'] . '"></td></tr>'; + <td><input type="text" name="MinimumChg" class="number" size=6 maxlength=5 value="' . $_POST['MinimumChg'] . '" /></td></tr>'; echo '</table><br />'; - echo '<div class="centre"><input type="submit" name="submit" value="' . _('Enter Information') . '"></div>'; + echo '<div class="centre"><input type="submit" name="submit" value="' . _('Enter Information') . '" /></div>'; echo '</form>'; Modified: trunk/GLAccountCSV.php =================================================================== --- trunk/GLAccountCSV.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLAccountCSV.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -79,7 +79,7 @@ // End select tag echo '</table><p> - <div class="centre"><input type="submit" name="MakeCSV" value="'._('Make CSV File').'"></div> + <div class="centre"><input type="submit" name="MakeCSV" value="'._('Make CSV File').'" /></div> </form>'; /* End of the Form rest of script is what happens if the show button is hit*/ Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -222,8 +222,8 @@ $_POST['AccountName'] = $myrow['accountname']; $_POST['Group'] = $myrow['group_']; - echo '<input type="hidden" name="SelectedAccount" value="' . $SelectedAccount . '">'; - echo '<input type="hidden" name="AccountCode" VALUE="' . $_POST['AccountCode'] .'">'; + echo '<input type="hidden" name="SelectedAccount" value="' . $SelectedAccount . '" />'; + echo '<input type="hidden" name="AccountCode" VALUE="' . $_POST['AccountCode'] .'" />'; echo '<table class=selection> <tr><td>' . _('Account Code') . ':</td> <td>' . $_POST['AccountCode'] . '</td></tr>'; @@ -235,7 +235,7 @@ } if (!isset($_POST['AccountName'])) {$_POST['AccountName']='';} - echo '<tr><td>' . _('Account Name') . ":</td><td><input type='Text' size=51 maxlength=50 name='AccountName' value='" . $_POST['AccountName'] . "'></td></tr>"; + echo '<tr><td>' . _('Account Name') . ":</td><td><input type='Text' size=51 maxlength=50 name='AccountName' value='" . $_POST['AccountName'] . "' /></td></tr>"; $sql = 'SELECT groupname FROM accountgroups ORDER BY sequenceintb'; $result = DB_query($sql, $db); @@ -259,7 +259,7 @@ echo '</select></td></tr></table>'; - echo '<br /><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div>'; + echo '<br /><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '" /></div>'; echo '</form>'; Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLBalanceSheet.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -63,7 +63,7 @@ </div>'; echo '<br /> <div class="centre"> - <input type="submit" name="PrintPDF" value="'._('Produce PDF Report').'"> + <input type="submit" name="PrintPDF" value="'._('Produce PDF Report').'" /> </div> </form>'; @@ -364,7 +364,7 @@ echo '<div class="invoice"> <table class="selection"> <tr> - <th colspan=6> + <th colspan="6"> <div class="centre"><font size="4" color="blue"><b>' . _('Balance Sheet as at') . ' ' . $BalanceDate .'</b></font> </div> @@ -620,7 +620,7 @@ </tr>'; } else { echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr></td> <td></td> <td><hr></td> @@ -628,7 +628,7 @@ } printf('<tr> - <td colspan=3><font size=4>%s</font></td> + <td colspan="3">%s</td> <td class="number">%s</td> <td></td> <td class="number">%s</td> Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLBudgets.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -191,7 +191,7 @@ echo '<td><input type="text" class="number" size=14 name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod+($i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; - echo '<td><input type="text" class="number" size=14 name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; + echo '<td><input type="text" class="number" size=14 name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '</tr>'; $LastYearActual=$LastYearActual+$Actual[$CurrentYearEndPeriod-(24-$i)]; $LastYearBudget=$LastYearBudget+$Budget[$CurrentYearEndPeriod-(24-$i)]; @@ -231,7 +231,7 @@ echo '<script>defaultControl(document.form.1next);</script>'; echo '<br /> <div class="centre"> - <input type="submit" name=update value="' . _('Update') . '"> + <input type="submit" name=update value="' . _('Update') . '" /> </div> </form>'; Modified: trunk/GLProfit_Loss.php =================================================================== --- trunk/GLProfit_Loss.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLProfit_Loss.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -748,7 +748,7 @@ if ($Section==1) { /*Income*/ echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr /></td> <td></td> <td><hr /></td> @@ -757,7 +757,7 @@ </tr>'; printf('<tr> - <td colspan="2"><font size=4>%s</font></td> + <td colspan="2">%s</td> <td></td> <td class="number">%s</td> <td></td> @@ -875,7 +875,7 @@ $ActGrp = $myrow['groupname']; if ($_POST['Detail']=='Detailed'){ printf('<tr> - <th colspan=8><font size=3 color=BLUE><b>%s</b></font></th> + <th colspan="8"><b>%s</b></th> </tr>', $myrow['groupname']); echo $TableHeader; @@ -1051,7 +1051,7 @@ if ($Section==1) { /*Income*/ echo '<tr> - <td colspan=3></td> + <td colspan="3"></td> <td><hr /></td> <td></td> <td><hr /></td> Modified: trunk/GLTags.php =================================================================== --- trunk/GLTags.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLTags.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -57,8 +57,8 @@ <table> <tr> <td>'. _('Description') . '</td> - <td><input type="text" size="30" maxlength="30" name="Description" value="'.$Description.'"></td> - <td><input type="hidden" name="reference" value="'.$_GET['SelectedTag'].'">'; + <td><input type="text" size="30" maxlength="30" name="Description" value="'.$Description.'" /></td> + <td><input type="hidden" name="reference" value="'.$_GET['SelectedTag'].'" />'; if (isset($_GET['Action']) AND $_GET['Action']=='edit') { echo '<input type="submit" name="update" value="' . _('Update') . '" />'; Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2012-01-22 12:50:41 UTC (rev 4834) +++ trunk/GLTrialBalance.php 2012-01-22 22:17:50 UTC (rev 4835) @@ -436,8 +436,8 @@ Account Code , Account Name... [truncated message content] |
From: <vv...@us...> - 2012-01-23 22:18:53
|
Revision: 4836 http://web-erp.svn.sourceforge.net/web-erp/?rev=4836&view=rev Author: vvs2012 Date: 2012-01-23 22:18:42 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/AddCustomerTypeNotes.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerInquiry.php trunk/CustomerReceipt.php trunk/CustomerTypes.php trunk/Customers.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FTP_RadioBeacon.php trunk/Factors.php trunk/FixedAssetItems.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBudgets.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GeocodeSetup.php trunk/Locations.php trunk/MRP.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPShortages.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFPeriodStockTransListing.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesGLPostings.php trunk/SalesInquiry.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/Shipt_Select.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/StockCategories.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockLocMovements.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppFixedAssetChgs.php trunk/SuppInvGRNs.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInquiry.php trunk/SupplierInvoice.php trunk/SupplierTransInquiry.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxCategories.php trunk/TaxGroups.php trunk/UserSettings.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WhereUsedInquiry.php trunk/WorkOrderReceive.php trunk/Z_CheckAllocationsFrom.php trunk/Z_CheckDebtorsControl.php trunk/Z_CurrencyDebtorsBalances.php trunk/Z_DataExport.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_SalesIntegrityCheck.php trunk/doc/Change.log Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/AddCustomerTypeNotes.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -198,7 +198,7 @@ </tr> <tr> <td>'. _('Date').':</td> - <td><input type="text" name="date" class=date alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td> + <td><input type="text" name="date" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td> </tr> <tr> <td>'. _('Priority').':</td> Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Areas.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -213,7 +213,7 @@ echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> - <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3 /></td> + <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength="3"/></td> </tr>'; } Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/AuditTrail.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -39,9 +39,9 @@ echo '<table class="selection">'; echo '<tr><td>'. _('From Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td> - <td><input tabindex="1" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>'; + <td><input tabindex="1" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>'; echo '<tr><td>'. _('To Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td> - <td><input tabindex="2" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>'; + <td><input tabindex="2" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>'; // Show user selections echo '<tr><td>'. _('User ID'). '</td> @@ -159,7 +159,7 @@ } $result = DB_query($sql,$db); - echo '<table border=0 width="98%" class=selection>'; + echo '<table border="0" width="98%" class="selection">'; echo '<tr><th>' . _('Date/Time') . '</th> <th>' . _('User') . '</th> <th>' . _('Type') . '</th> @@ -206,7 +206,7 @@ echo '</tr>'; } } - echo '<tr bgcolor=black> <td colspan="6"></td> </tr>'; + echo '<tr bgcolor="black"> <td colspan="6"></td> </tr>'; } unset($_SESSION['SQLString']); } Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BOMs.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -418,7 +418,7 @@ break; } - echo '<br /><div class=centre><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, @@ -834,7 +834,7 @@ '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> - <tr><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> + <tr><td><font size="1">' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> <td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25" /></td> <td><font size="3"><b>' . _('OR') . '</b></font></td> <td><font size="1">' . _('Enter extract of the') . ' <b>' . _('Stock Code') . '</b>:</font></td> Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BankAccounts.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -213,7 +213,7 @@ } elseif ($myrow['invoice']==2) { $DefaultBankAccount=_('Currency Default'); } - printf('<td>%s<br /><font size=2>%s</font></td> + printf('<td>%s<br /><font size="2">%s</font></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -324,9 +324,9 @@ } echo '<tr><td>' . _('Bank Account Name') . ': </td> - <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50 /></td></tr> + <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Account Code') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50 /></td></tr> + <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Account Number') . ': </td> <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Address') . ': </td> Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BankMatching.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -82,7 +82,7 @@ echo '<div class="page_help_text">' . _('Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction.') . '</div><br />'; -echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; +echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="Type" value="' . $Type . '" />'; Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/COGSGLPostings.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -258,9 +258,9 @@ FROM areas"; $result = DB_query($sql,$db); -echo '<table class=selection> +echo '<table class="selection"> <tr><td>' . _('Area') . ':</td> - <td><select tabindex=1 name="Area"> + <td><select tabindex="1" name="Area"> <option value="AN">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { @@ -281,7 +281,7 @@ </tr> <tr> <td>' . _('Stock Category') . ':</td> - <td><select tabindex=2 name="StkCat"> + <td><select tabindex="2" name="StkCat"> <option value="ANY">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { @@ -303,7 +303,7 @@ </tr> <tr> <td>' . _('Sales Type') . ' / ' . _('Price List') . ':</td> - <td><select tabindex=3 name="SalesType"> + <td><select tabindex="3" name="SalesType"> <option value="AN">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CreditItemsControlled.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -75,7 +75,7 @@ echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; -echo '<br /><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; +echo '<br /><font size="2"<b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ $LocationOut = $_SESSION['CreditItems']->Location; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CreditStatus.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -248,7 +248,7 @@ echo '<td><input tabindex="3" type="checkbox" checked name="DisallowInvoices" /></td> </tr>'; } else { - echo '<td><input tabindex=3 type="checkbox" name="DisallowInvoices" /></td> + echo '<td><input tabindex="3" type="checkbox" name="DisallowInvoices" /></td> </tr>'; } echo '</table> Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Credit_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -262,9 +262,9 @@ echo '<table cellpadding="2" colspan="7" class="selection"><tr>'; echo '<tr><th colspan="13">'; - echo '<div class="centre"><font color=blue size=4><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b> - <b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b></font> - <font size=3 color=blue> - ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div></font>'; + echo '<div class="centre"><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b> + <b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b> + - ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div>'; echo '</th></tr>'; echo '<th>' . _('Item Code') . '</th> <th>' . _('Item Description') . '</th> @@ -315,19 +315,19 @@ if ($LnItm->Controlled==1){ - echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength=6 size=6 value=' . $LnItm->QtyDispatched . '></td>'; + echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '"></td>'; } $DisplayLineTotal = locale_number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $j++; - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength=12 size=6 value=' . $LnItm->Price . '></td> - <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength=3 size=3 value=' . ($LnItm->DiscountPercent * 100) . '></td> + echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '"></td> + <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '"></td> <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ @@ -355,7 +355,7 @@ } if (!isset($_POST['ProcessCredit'])) { echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . - '_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">'; + '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">'; } $i++; if ($Tax->TaxOnTax ==1){ @@ -380,7 +380,7 @@ <td class="number">' . $DisplayGrossLineTotal . '</td> <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; - echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols=100% rows=1>' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; + echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; } } /*end foreach loop displaying the invoice lines to credit */ @@ -875,7 +875,7 @@ $StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno'); /*Insert the StockSerialMovements and update the StockSerialItems for controlled items*/ - //echo "<div align=left><pre>"; var_dump($CreditLine); echo "</pre> </div>"; + //echo "<div align="left"><pre>"; var_dump($CreditLine); echo "</pre> </div>"; if ($CreditLine->Controlled ==1){ foreach($CreditLine->SerialItems as $Item){ /*We need to add the StockSerialItem record and The StockSerialMoves as well */ Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Currencies.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -231,7 +231,7 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow[1]==$FunctionalCurrency){ - echo '<tr bgcolor=#FFbbbb>'; + echo '<tr bgcolor="#FFbbbb">'; } elseif ($k==1){ echo '<tr class="EvenTableRows">'; $k=0; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustEDISetup.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -97,30 +97,30 @@ <td>' . $myrow['name'] . '</td> </tr>'; echo '<tr><td>'._('Enable Sending of EDI Invoices').':</td> - <td><select tabindex=1 name="EDIInvoices">'; + <td><select tabindex="1" name="EDIInvoices">'; if ($myrow['ediinvoices']==0){ - echo '<option selected value=0>'._('Disabled') . '</option>'; - echo '<option value=1>'._('Enabled'). '</option>'; + echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option value="1">'._('Enabled'). '</option>'; } else { - echo '<option value=0>'._('Disabled') . '</option>'; - echo '<option selected value=1>'._('Enabled') . '</option>'; + echo '<option value="0">'._('Disabled') . '</option>'; + echo '<option selected value="1">'._('Enabled') . '</option>'; } echo '</select><a href="' . $rootpath . '/EDIMessageFormat.php?MessageType=INVOIC&PartnerCode=' . $_SESSION['CustomerID'] . '">'._('Create') . '/' . _('Edit Invoice Message Format').'</a></td> </tr>'; echo '<tr><td>'._('Enable Receiving of EDI Orders') . ':</td> - <td><select tabindex=2 name="EDIOrders">'; + <td><select tabindex="2" name="EDIOrders">'; if ($myrow['ediorders']==0){ - echo '<option selected value=0>'._('Disabled') . '</option>'; - echo '<option value=1>'._('Enabled') . '</option>'; + echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option value="1">'._('Enabled') . '</option>'; } else { - echo '<option value=0>'._('Disabled') . '</option>'; - echo '<option selected value=1>'._('Enabled') . '</option>'; + echo '<option value="0">'._('Disabled') . '</option>'; + echo '<option selected value="1">'._('Enabled') . '</option>'; } echo '</select></td> @@ -128,10 +128,10 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size=20 maxlength=20 value="' . $myrow['edireference'] . '"></td></tr>'; + ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '"></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> - <td><select tabindex=4 name="EDITransport" >'; + <td><select tabindex="4" name="EDITransport" >'; if ($myrow['editransport']=='email'){ echo '<option selected value="email">'._('Email Attachments') . '</option>'; @@ -145,18 +145,18 @@ echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size=42 maxlength=40 value="' . $myrow['ediaddress'] . '"></td></tr>'; + ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '"></td></tr>'; if ($myrow['editransport']=='ftp'){ echo '<tr><td>'._('FTP Server User Name') . ':</td> - <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '" /></td></tr>'; + <td><input tabindex="6" type="text" name="EDIServerUser" size="20" maxlength="20" value="' . $myrow['ediserveruser'] . '" /></td></tr>'; echo '<tr><td>'._('FTP Server Password') . ':</td> - <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; + <td><input tabindex="7" type="text" name="EDIServerPwd" size="20" maxlength="20" value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; } echo '</table> - <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> + <br /><div class="centre"><input tabindex="8" type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> </form>'; include('includes/footer.inc'); Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerAllocations.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -336,7 +336,7 @@ if (isset($_POST['AllocTrans'])) { // Page called with trans number - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerBranches.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -659,14 +659,14 @@ if (!isset($_POST['EstDeliveryDays'])) { $_POST['EstDeliveryDays']=0; } - echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class=number name="EstDeliveryDays" size="4" maxlength="2" value='. $_POST['EstDeliveryDays'].' /></td> + echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class="number" name="EstDeliveryDays" size="4" maxlength="2" value="'. $_POST['EstDeliveryDays'].'" /></td> </tr> <tr> <td>'._('Forward Date After (day in month)').':</td>'; if (!isset($_POST['FwdDate'])) { $_POST['FwdDate']=0; } - echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class=number name="FwdDate" size="4" maxlength="2" value='. $_POST['FwdDate'].' /></td> + echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class="number" name="FwdDate" size="4" maxlength="2" value="'. $_POST['FwdDate'].'" /></td> </tr>'; @@ -814,11 +814,11 @@ <td>'._('Transactions on this branch') . ':</td> <td><select tabindex="20" name="DisableTrans">'; if ($_POST['DisableTrans']==0){ - echo '<option selected value=0>' . _('Enabled') . '</option> - <option value=1>' . _('Disabled') . '</option>'; + echo '<option selected value="0">' . _('Enabled') . '</option> + <option value="1">' . _('Disabled') . '</option>'; } else { - echo '<option selected value=1>' . _('Disabled') . '</option> - <option value=0>' . _('Enabled') . '</option>'; + echo '<option selected value="1">' . _('Disabled') . '</option> + <option value="0">' . _('Enabled') . '</option>'; } echo ' </select></td></tr>'; Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerInquiry.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -135,11 +135,11 @@ echo '<table class="selection" width="70%"> <tr> - <th width=20%>' . _('Total Balance') . '</th> - <th width=20%>' . _('Current') . '</th> - <th width=20%>' . _('Now Due') . '</th> - <th width=20%>' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th> - <th width=20%>' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>'; + <th width="20%">' . _('Total Balance') . '</th> + <th width="20%">' . _('Current') . '</th> + <th width="20%">' . _('Now Due') . '</th> + <th width="20%">' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th> + <th width="20%">' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>'; echo '<tr> <td class="number">' . locale_number_format($CustomerRecord['balance'],$CustomerRecord['decimalplaces']) . '</td> @@ -152,7 +152,7 @@ echo '<br /> <div class="centre"> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Show all transactions after') . ': <input tabindex="1" type="text" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" name="TransAfterDate" value="' . $_POST['TransAfterDate'] . '" maxlength="10" size="12" /> <input tabindex="2" type="submit" name="Refresh Inquiry" value="' . _('Refresh Inquiry') . '" /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerReceipt.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -1005,7 +1005,7 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); - echo '<option value=0></option>'; + echo '<option value="0"></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/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerTypes.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -180,7 +180,7 @@ $sql = "SELECT typeid, typename FROM debtortype"; $result = DB_query($sql,$db); - echo '<br /><table class=selection>'; + echo '<br /><table class="selection">'; echo '<tr> <th>' . _('Type ID') . '</th> <th>' . _('Type Name') . '</th> @@ -222,7 +222,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><table class=selection>'; //Main table + echo '<p><table class="selection">'; //Main table // The user wish to EDIT an existing type Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Customers.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -420,7 +420,7 @@ } if ($SetupErrors>0) { - echo '<br /><div class=centre><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; + echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; include('includes/footer.inc'); exit; } @@ -431,35 +431,35 @@ $DataError =0; - echo '<table class="selection" cellspacing=4> - <tr><td valign=top><table class="selection">'; + echo '<table class="selection" cellspacing="4"> + <tr><td valign="top"><table class="selection">'; /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ if ($_SESSION['AutoDebtorNo']==0) { - echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10 /></td></tr>'; + echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex="1" type="text" name="DebtorNo" size="11" maxlength="10" /></td></tr>'; } echo '<tr><td>' . _('Customer Name') . ':</td> - <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="CustName" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Telephone') . ':</td> - <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Phone" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Facsimile') . ':</td> - <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Fax" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Email Address') . ':</td> - <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Email" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> - <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="3" type="Text" name="Address1" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> - <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="4" type="Text" name="Address2" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td> - <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="5" type="Text" name="Address3" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 4 (Postal Code)') . ':</td> - <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="6" type="Text" name="Address4" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 5') . ':</td> - <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20 /></td></tr>'; + <td><input tabindex="7" type="Text" name="Address5" size="22" maxlength="20" /></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> - <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15 /></td></tr>'; + <td><input tabindex="8" type="Text" name="Address6" size="17" maxlength="15" /></td></tr>'; @@ -498,13 +498,13 @@ $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> - <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10 /></td></tr>'; + <td><input tabindex="10" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size="12" maxlength="10" /></td></tr>'; echo '</table></td> <td><table class="selection"> <tr> <td>' . _('Discount Percent') . ':</td> - <td><input tabindex="11" type="textbox" class="number" name="Discount" value=0 size="5" maxlength="4" /></td> + <td><input tabindex="11" type="textbox" class="number" name="Discount" value="0" size="5" maxlength="4" /></td> </tr> <tr> <td>' . _('Discount Code') . ':</td> @@ -531,7 +531,7 @@ echo '<tr> <td>' . _('Payment Terms') . ':</td> - <td><select tabindex=15 name="PaymentTerms">'; + <td><select tabindex="15" name="PaymentTerms">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; @@ -597,8 +597,8 @@ <tr> <td>' . _('Invoice Addressing') . ':</td> <td><select tabindex="19" name="AddrInvBranch"> - <option selected value=0>' . _('Address to HO') . '</option> - <option value=1>' . _('Address to Branch') . '</option> + <option selected value="0">' . _('Address to HO') . '</option> + <option value="1">' . _('Address to Branch') . '</option> </select> </td> </tr> @@ -946,11 +946,11 @@ <td>' . _('Require Customer PO Line on SO') . ':</td> <td><select name="CustomerPOLine">'; if ($_POST['CustomerPOLine']==0){ - echo '<option selected value=0>' . _('No') . '</option>'; - echo '<option value=1>' . _('Yes') . '</option>'; + echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option value=0>' . _('No') . '</option>'; - echo '<option selected value=1>' . _('Yes') . '</option>'; + echo '<option value="0">' . _('No') . '</option>'; + echo '<option selected value="1">' . _('Yes') . '</option>'; } echo '</select></td> </tr>'; @@ -1008,7 +1008,7 @@ ORDER BY contid"; $result = DB_query($sql,$db); - echo '<table class=selection>'; + echo '<table class="selection">'; if (isset($_GET['Modify'])) { echo '<tr> <th>' . _('Name') . '</th> Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DeliveryDetails.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -588,20 +588,20 @@ } else { /*link to print the quotation */ - echo '<br /><table class=selection> + 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> </tr> </table>'; - echo '<br /><table class=selection> + 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> </tr> </table>'; } - echo '<br /><table class=selection> + 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> @@ -807,7 +807,7 @@ echo '</b> ' . _('Customer Name') . ' :<b> ' . $_SESSION['Items'.$identifier]->CustomerName . '</b></p>'; -echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method=post>'; +echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -943,7 +943,7 @@ $DisplayVolume = number_format($_SESSION['Items'.$identifier]->totalVolume,2); $DisplayWeight = number_format($_SESSION['Items'.$identifier]->totalWeight,2); - echo '<table class=selection><tr> + echo '<table class="selection"><tr> <td>'. _('Total Weight') .':</td> <td>'. $DisplayWeight .'</td> <td>'. _('Total Volume') .':</td> @@ -996,7 +996,7 @@ // The estimated Dispatch date or Delivery date for this order echo '<tr> <td>'. _('Estimated Delivery Date') .':</td> - <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> + <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size="15" maxlength="14" name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> </tr>'; // The date when a quote was issued to the customer echo '<tr> @@ -1034,14 +1034,14 @@ </tr> <tr> <td>'. _('Contact Phone Number') .':</td> - <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> + <td><input type="text" size="25" maxlength="25" name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> </tr> <tr> - <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> + <td>' . _('Contact Email') . ':</td><td><input type="text" size="40" maxlength="38" name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> </tr> <tr> <td>'. _('Customer Reference') .':</td> - <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> + <td><input type="text" size="25" maxlength="25" name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> </tr> <tr> <td>'. _('Comments') .':</td> @@ -1068,11 +1068,11 @@ echo '<tr> <td>'. _('Reprint packing slip') .':</td> <td><select name="ReprintPackingSlip">'; - echo '<option value=0>' . _('Yes') . '</option>'; - echo '<option selected value=1>' . _('No') . '</option>'; + echo '<option value="0">' . _('Yes') . '</option>'; + echo '<option selected value="1">' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type="hidden" name="ReprintPackingSlip" value=0 />'; + echo '<input type="hidden" name="ReprintPackingSlip" value="0" />'; } echo '<tr> @@ -1111,11 +1111,11 @@ echo '<tr><td>'. _('Quotation Only') .':</td> <td><select name="Quotation">'; if ($_SESSION['Items'.$identifier]->Quotation==1){ - echo '<option selected value=1>' . _('Yes') . '</option>'; - echo '<option value=0>' . _('No') . '</option>'; + echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option value="0">' . _('No') . '</option>'; } else { - echo '<option value=1>' . _('Yes') . '</option>'; - echo '<option selected value=0>' . _('No') . '</option>'; + echo '<option value="1">' . _('Yes') . '</option>'; + echo '<option selected value="0">' . _('No') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DiscountCategories.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -71,7 +71,7 @@ $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; $result = DB_query($sql, $db); if (DB_num_rows($result) > 0) { - echo '<table class=selection><tr><td>'. _('Discount Category Code') .': </td>'; + echo '<table class="selection"><tr><td>'. _('Discount Category Code') .': </td>'; echo '<td><select name="DiscCat" onChange="ReloadForm(update.select)">'; @@ -100,13 +100,13 @@ echo '<table class="selection"><tr><td>'. _('Discount Category Code') .':</td><td>'; if (isset($_POST['DiscCat'])) { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'" /></td> + echo '<input type="text" name="DiscountCategory" maxlength="2" size="2" value="' . $_POST['DiscCat'] .'" /></td> <td>'._('OR') . '</td> <td></td> <td>'._('OR').'</td> </tr>'; } else { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 /></td> + echo '<input type="text" name="DiscountCategory" maxlength="2" size="2" /></td> <td>' ._('OR') . '</td> <td></td> <td>'._('OR') . '</td> @@ -123,11 +123,11 @@ $_POST['PartDesc']=''; } echo '<tr><td>'. _('Enter Stock Code') .':</td> - <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '" /></td> + <td><input type="text" name="StockID" size="20" maxlength="20" value="' . $_POST['StockID'] . '" /></td> <td>'._('Partial code') . ':</td> - <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '" /></td> + <td><input type="text" name="PartID" size="10" maxlength="10" value="' . $_POST['PartID'] . '" /></td> <td>' . _('Partial description') . ':</td> - <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10 /></td> + <td><input type="text" name="PartDesc" size="10" value="' . $_POST['PartDesc'] .'" maxlength="10" /></td> <td><input type="submit" name="search" value="' . _('Search') .'" /></td> </tr>'; @@ -155,10 +155,10 @@ } } } else { - echo '<table class=selection> + echo '<table class="selection"> <tr> <td>'._('Assign discount category').'</td>'; - echo '<td><input type="text" name="DiscountCategory" maxlength=2 size=2 /></td>'; + echo '<td><input type="text" name="DiscountCategory" maxlength="2" size="2" /></td>'; echo '<td>'._('to all items in stock category').'</td>'; $sql = "SELECT categoryid, categorydescription Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DiscountMatrix.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -95,7 +95,7 @@ echo '<tr><td>' . _('Customer Price List') . ' (' . _('Sales Type') . '):</td><td>'; -echo '<select tabindex=1 name="SalesType">'; +echo '<select tabindex="1" name="SalesType">'; while ($myrow = DB_fetch_array($result)){ if (isset($_POST['SalesType']) and $myrow['typeabbrev']==$_POST['SalesType']){ @@ -129,11 +129,11 @@ echo '<tr> <td>' . _('Quantity Break') . '</td> - <td><input class="number" tabindex=3 ' . (in_array('QuantityBreak',$Errors) ? 'class="inputerror"' : '') .' type="text" name="QuantityBreak" size="10" maxlength="10" /></td> + <td><input class="number" tabindex="3" ' . (in_array('QuantityBreak',$Errors) ? 'class="inputerror"' : '') .' type="text" name="QuantityBreak" size="10" maxlength="10" /></td> </tr> <tr> <td>' . _('Discount Rate') . ' (%):</td> - <td><input class="number" tabindex=4 ' . (in_array('DiscountRate',$Errors) ? 'class="inputerror"' : '') . 'type="text" name="DiscountRate" size="5" maxlength="5" /></td> + <td><input class="number" tabindex="4" ' . (in_array('DiscountRate',$Errors) ? 'class="inputerror"' : '') . 'type="text" name="DiscountRate" size="5" maxlength="5" /></td> </tr> </table> <br /> Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/EDIMessageFormat.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -100,7 +100,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<p><table border=0 width=100%> +echo '<p><table border="0" width="100%"> <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; @@ -124,7 +124,7 @@ $result = DB_query($sql,$db); echo '<table class="selection">'; - echo '<tr><th colspan="5"><font size=3>' . _('Definition of') . ' ' . $MessageType . ' ' . _('for') . ' ' . $PartnerCode.'</font></th></tr>'; + echo '<tr><th colspan="5"><font size="3">' . _('Definition of') . ' ' . $MessageType . ' ' . _('for') . ' ' . $PartnerCode.'</font></th></tr>'; $TableHeader = '<tr> <th>' . _('Section') . '</th> <th>' . _('Sequence') . '</th> @@ -145,7 +145,7 @@ printf('<td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> <td>%s</td> <td><a href="%s&SelectedMessageLine=%s">' . _('Edit') . '</a></td> <td><a href="%s&delete=%s">' . _('Delete') . '</a></td> @@ -162,7 +162,7 @@ echo '</table><p>'; if (DB_num_rows($result)==0){ echo '<div class="centre"> - <input tabindex=1 type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> + <input tabindex="1" type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> </div> <br />'; } @@ -199,7 +199,7 @@ echo '<input type="hidden" name="PartnerCode" value="' . $PartnerCode . '" />'; } -echo '<table class=selection>'; +echo '<table class="selection">'; if ($myrow['messagetype']!='') { echo '<tr><th colspan="2">' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</th></tr>'; @@ -207,7 +207,7 @@ echo '<tr><td>' . _('Section') . ':</td>'; echo '<td>'; -echo '<select tabindex=2 name="Section">'; +echo '<select tabindex="2" name="Section">'; if ($_POST['Section']=='Heading') { echo '<option selected value="Heading">' . _('Heading') . '</option>'; @@ -235,17 +235,17 @@ echo '</td></tr>'; echo '<tr><td>Sequence Number:</td>'; -echo '<td><input tabindex=3 type="text" name=SequenceNo size=3 maxlength=3 value='.$_POST['SequenceNo'].' />'; +echo '<td><input tabindex="3" type="text" name="SequenceNo" size="3" maxlength="3" value='.$_POST['SequenceNo'].' />'; echo '</td></tr>'; echo '<tr><td>' . _('Line Text') . ':' .'</td>'; echo '<td>'; -echo '<input tabindex=4 type="text" name="LineText" size=50 maxlength=50 value='.$_POST['LineText'] .' />'; +echo '<input tabindex="4" type="text" name="LineText" size="50" maxlength="50" value='.$_POST['LineText'] .' />'; echo '</td></tr>'; echo '</table><br />'; if (isset($_GET['SelectedMessageLine'])) { - echo '<div class="centre"><input tabindex=5 type="submit" name="update" value="'. _('Update Information'). '" /></div>'; + echo '<div class="centre"><input tabindex="5" type="submit" name="update" value="'. _('Update Information'). '" /></div>'; } else { - echo '<div class="centre"><input tabindex=5 type="submit" name="submit" value="'. _('Enter Information'). '" /></div>'; + echo '<div class="centre"><input tabindex="5" type="submit" name="submit" value="'. _('Enter Information'). '" /></div>'; } echo '</form>'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/EmailCustTrans.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -61,7 +61,7 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '" /></td> + <td><input type="text" name="EmailAddr" maxlength="60" size="60" value="' . $EmailAddress . '" /></td> </table>'; echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '" />'; Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/ExchangeRateTrend.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -21,7 +21,7 @@ // SHOW OUR MAIN INPUT FORM // ************************ - echo '<form method="post" name=update action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('View Currency Trend') . '" alt="" />' . ' ' . _('View Currency Trend') . '</p>'; Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FTP_RadioBeacon.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -46,16 +46,16 @@ echo '<table cellpadding="2" colspan="7" width="100%">'; $TableHeader = '<tr> - <td class=tableheader>' . _('Modify') . '</td> - <td class=tableheader>' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> - <td class=tableheader>' . _('Customer') . '</td> - <td class=tableheader>' . _('Branch') . '</td> - <td class=tableheader>' . _('Cust Order') . ' #</td> - <td class=tableheader>' . _('Order Date') . '</td> - <td class=tableheader>' . _('Req Del Date') . '</td> - <td class=tableheader>' . _('Delivery To') . '</td> - <td class=tableheader>' . _('Order Total') . '</td> - <td class=tableheader>' . _('Last Send') . '</td> + <td class="tableheader">' . _('Modify') . '</td> + <td class="tableheader">' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> + <td class="tableheader">' . _('Customer') . '</td> + <td class="tableheader">' . _('Branch') . '</td> + <td class="tableheader">' . _('Cust Order') . ' #</td> + <td class="tableheader">' . _('Order Date') . '</td> + <td class="tableheader">' . _('Req Del Date') . '</td> + <td class="tableheader">' . _('Delivery To') . '</td> + <td class="tableheader">' . _('Order Total') . '</td> + <td class="tableheader">' . _('Last Send') . '</td> </tr>'; echo $TableHeader; @@ -79,16 +79,16 @@ $ModifyPage = $rootpath . 'SelectOrderItems.php?' . SID . '&ModifyOrderNumber=' . $myrow['orderno']; if ($myrow['printedpackingslip'] ==1){ - printf('<td><font size=2><a href="%s">%s</a></font></td> - <td><font color=RED size=2>' . _('Already') . '<br />' . _('Sent') . '</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td class=number><font size=2>%s</font></td> - <td><font size=2>%s</font></td></tr>', + printf('<td><font size="2"><a href="%s">%s</a></font></td> + <td><font color=RED size="2">' . _('Already') . '<br />' . _('Sent') . '</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td class="number"><font size="2">%s</font></td> + <td><font size="2">%s</font></td></tr>', $ModifyPage, $myrow['orderno'], $myrow['name'], @@ -100,16 +100,16 @@ $FormatedOrderValue, $FormatedDateLastSent); } else { - printf('<td><font size=2><a href="%s">%s</a></font></td> - <td><font size=2><a href="%s">' . _('Send') . '</a></font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td class=number><font size=2>%s</font></td> - <td><font size=2>%s</font></td></tr>', + printf('<td><font size="2"><a href="%s">%s</a></font></td> + <td><font size="2"><a href="%s">' . _('Send') . '</a></font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td class="number"><font size="2">%s</font></td> + <td><font size="2">%s</font></td></tr>', $ModifyPage, $myrow['orderno'], $FTPDispatchNote, Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Factors.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -200,7 +200,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FactorID" value="' . $FactorID .'" /> - <table class=selection> + <table class="selection"> <input type="hidden" name="New" value="Yes" /> <tr> <td>' . _('Factor company Name') . ':</td> @@ -208,18 +208,18 @@ </tr> <tr> <td>' . _('Address Line 1') . ':</td> - <td><input tabindex=2 type="text" name="Address1" size="42" maxlength="40" value="' . $_POST['Address1'] .'" /></td> + <td><input tabindex="2" type="text" name="Address1" size="42" maxlength="40" value="' . $_POST['Address1'] .'" /></td> </tr> <tr><td>' . _('Address Line 2') . ':</td> - <td><input tabindex=3 type="text" name="Address2" size="42" maxlength="40" value="' . $_POST['Address2'] .'" /></td> + <td><input tabindex="3" type="text" name="Address2" size="42" maxlength="40" value="' . $_POST['Address2'] .'" /></td> </tr> <tr> <td>' . _('Address Line 3') . ':</td> - <td><input tabindex=4 type="text" name="Address3" size="42" maxlength="40" value="' .$_POST['Address3'] .'" /></td> + <td><input tabindex="4" type="text" name="Address3" size="42" maxlength="40" value="' .$_POST['Address3'] .'" /></td> </tr> <tr> <td>' . _('Address Line 4') . ':</td> - <td><input tabindex=5 type="text" name="Address4" size="42" maxlength="40" value="' . $_POST['Address4'].'" /></td> + <td><input tabindex="5" type="text" name="Address4" size="42" maxlength="40" value="' . $_POST['Address4'].'" /></td> </tr> <tr> <td>' . _('Address Line 5') . ':</td> @@ -239,11 +239,11 @@ </tr> <tr> <td>' . _('Fax') . ':</td> - <td><input tabindex="10" type="text" name="Fax" value=0 size="20" maxlength="25" value="' . $_POST['Fax'] .'" /></td> + <td><input tabindex="10" type="text" name="Fax" value="0" size="20" maxlength="25" value="' . $_POST['Fax'] .'" /></td> </tr> <tr> <td>' . _('Email') . ':</td> - <td><input tabindex="11" type="text" name="Email" size="55" maxlength=55 value="' . $_POST['Email'] . '" /></td> + <td><input tabindex="11" type="text" name="Email" size="55" maxlength="55" value="' . $_POST['Email'] . '" /></td> </tr> </table>'; } Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetItems.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -381,7 +381,7 @@ $result = DB_Txn_Commit($db); echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"> - <table class=selection>'; + <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/FixedAssetRegister.php =================================================================== --- trunk/FixedAssetRegister.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetRegister.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -77,7 +77,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre">' ._('From') . ':' . $_POST['FromDate'] . ' ' . _('to') . ' ' . $_POST['ToDate'] . '</div>'; echo '<br /> - <table width=80% cellspacing="1" class="selection"> + <table width="80%" cellspacing="1" class="selection"> <tr> <th>' . _('Asset ID') . '</th> <th>' . _('Description') . '</th> @@ -247,7 +247,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr> <th>' . _('Asset Category') . '</th> - <td><select name=AssetCategory> + <td><select name="AssetCategory"> <option value="%">' . _('ALL') . '</option>'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['AssetCategory']) and $myrow['categoryid'] == $_POST['AssetCategory']) { @@ -297,7 +297,7 @@ echo '<tr> <th>' . _(' From Date') . '</th> - <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength=10 size=11 value="' . $_POST['FromDate'] . '" /></td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" /></td> </tr> <tr> <th>' . _('To Date ') . '</th> @@ -308,7 +308,7 @@ <div class="centre"> <input type="submit" name="submit" value="' . _('Show Assets') . '" /> <input type="submit" name="pdf" value="' . _('Print as a pdf') . '" /> - <input type="Submit" name = "csv" value= "' . _('Print as CSV') . '" /> + <input type="Submit" name = "csv" value="' . _('Print as CSV') . '" /> </div> </form>'; } Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetTransfer.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -26,7 +26,7 @@ } else { $sql="SELECT categoryid, categorydescription FROM fixedassetcategories"; $result=DB_query($sql, $db); - echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p>'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FormDesigner.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -13,7 +13,7 @@ * given in the object $key */ $FontSizes=FontSizes(); - echo '<td class=number>'._('Font Size').' = '.'</td><td><select name="'.$key['id'].'FontSize">'; + echo '<td class="number">'._('Font Size').' = '.'</td><td><select name="'.$key['id'].'FontSize">'; foreach ($FontSizes as $FontSize) { if ($FontSize==$key->FontSize) { echo '<option selected value="'.$FontSize.'">'.$FontSize.'</option>'; @@ -23,9 +23,9 @@ } echo '</select></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; /* ... [truncated message content] |
From: <vv...@us...> - 2012-01-23 22:18:52
|
Revision: 4836 http://web-erp.svn.sourceforge.net/web-erp/?rev=4836&view=rev Author: vvs2012 Date: 2012-01-23 22:18:42 +0000 (Mon, 23 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/AddCustomerTypeNotes.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerInquiry.php trunk/CustomerReceipt.php trunk/CustomerTypes.php trunk/Customers.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FTP_RadioBeacon.php trunk/Factors.php trunk/FixedAssetItems.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBudgets.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GeocodeSetup.php trunk/Locations.php trunk/MRP.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPShortages.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFPeriodStockTransListing.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesGLPostings.php trunk/SalesInquiry.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/Shipt_Select.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/StockCategories.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockLocMovements.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppFixedAssetChgs.php trunk/SuppInvGRNs.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInquiry.php trunk/SupplierInvoice.php trunk/SupplierTransInquiry.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxCategories.php trunk/TaxGroups.php trunk/UserSettings.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WhereUsedInquiry.php trunk/WorkOrderReceive.php trunk/Z_CheckAllocationsFrom.php trunk/Z_CheckDebtorsControl.php trunk/Z_CurrencyDebtorsBalances.php trunk/Z_DataExport.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_SalesIntegrityCheck.php trunk/doc/Change.log Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/AddCustomerTypeNotes.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -198,7 +198,7 @@ </tr> <tr> <td>'. _('Date').':</td> - <td><input type="text" name="date" class=date alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td> + <td><input type="text" name="date" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td> </tr> <tr> <td>'. _('Priority').':</td> Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Areas.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -213,7 +213,7 @@ echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> - <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3 /></td> + <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength="3"/></td> </tr>'; } Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/AuditTrail.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -39,9 +39,9 @@ echo '<table class="selection">'; echo '<tr><td>'. _('From Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td> - <td><input tabindex="1" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>'; + <td><input tabindex="1" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>'; echo '<tr><td>'. _('To Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td> - <td><input tabindex="2" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>'; + <td><input tabindex="2" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>'; // Show user selections echo '<tr><td>'. _('User ID'). '</td> @@ -159,7 +159,7 @@ } $result = DB_query($sql,$db); - echo '<table border=0 width="98%" class=selection>'; + echo '<table border="0" width="98%" class="selection">'; echo '<tr><th>' . _('Date/Time') . '</th> <th>' . _('User') . '</th> <th>' . _('Type') . '</th> @@ -206,7 +206,7 @@ echo '</tr>'; } } - echo '<tr bgcolor=black> <td colspan="6"></td> </tr>'; + echo '<tr bgcolor="black"> <td colspan="6"></td> </tr>'; } unset($_SESSION['SQLString']); } Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BOMs.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -418,7 +418,7 @@ break; } - echo '<br /><div class=centre><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, @@ -834,7 +834,7 @@ '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> - <tr><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> + <tr><td><font size="1">' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> <td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25" /></td> <td><font size="3"><b>' . _('OR') . '</b></font></td> <td><font size="1">' . _('Enter extract of the') . ' <b>' . _('Stock Code') . '</b>:</font></td> Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BankAccounts.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -213,7 +213,7 @@ } elseif ($myrow['invoice']==2) { $DefaultBankAccount=_('Currency Default'); } - printf('<td>%s<br /><font size=2>%s</font></td> + printf('<td>%s<br /><font size="2">%s</font></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -324,9 +324,9 @@ } echo '<tr><td>' . _('Bank Account Name') . ': </td> - <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50 /></td></tr> + <td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Account Code') . ': </td> - <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50 /></td></tr> + <td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Account Number') . ': </td> <td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50" /></td></tr> <tr><td>' . _('Bank Address') . ': </td> Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/BankMatching.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -82,7 +82,7 @@ echo '<div class="page_help_text">' . _('Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction.') . '</div><br />'; -echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; +echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="Type" value="' . $Type . '" />'; Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/COGSGLPostings.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -258,9 +258,9 @@ FROM areas"; $result = DB_query($sql,$db); -echo '<table class=selection> +echo '<table class="selection"> <tr><td>' . _('Area') . ':</td> - <td><select tabindex=1 name="Area"> + <td><select tabindex="1" name="Area"> <option value="AN">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { @@ -281,7 +281,7 @@ </tr> <tr> <td>' . _('Stock Category') . ':</td> - <td><select tabindex=2 name="StkCat"> + <td><select tabindex="2" name="StkCat"> <option value="ANY">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { @@ -303,7 +303,7 @@ </tr> <tr> <td>' . _('Sales Type') . ' / ' . _('Price List') . ':</td> - <td><select tabindex=3 name="SalesType"> + <td><select tabindex="3" name="SalesType"> <option value="AN">' . _('Any Other') . '</option>'; while ($myrow = DB_fetch_array($result)) { Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CreditItemsControlled.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -75,7 +75,7 @@ echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; -echo '<br /><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; +echo '<br /><font size="2"<b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ $LocationOut = $_SESSION['CreditItems']->Location; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CreditStatus.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -248,7 +248,7 @@ echo '<td><input tabindex="3" type="checkbox" checked name="DisallowInvoices" /></td> </tr>'; } else { - echo '<td><input tabindex=3 type="checkbox" name="DisallowInvoices" /></td> + echo '<td><input tabindex="3" type="checkbox" name="DisallowInvoices" /></td> </tr>'; } echo '</table> Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Credit_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -262,9 +262,9 @@ echo '<table cellpadding="2" colspan="7" class="selection"><tr>'; echo '<tr><th colspan="13">'; - echo '<div class="centre"><font color=blue size=4><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b> - <b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b></font> - <font size=3 color=blue> - ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div></font>'; + echo '<div class="centre"><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b> + <b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b> + - ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div>'; echo '</th></tr>'; echo '<th>' . _('Item Code') . '</th> <th>' . _('Item Description') . '</th> @@ -315,19 +315,19 @@ if ($LnItm->Controlled==1){ - echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength=6 size=6 value=' . $LnItm->QtyDispatched . '></td>'; + echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '"></td>'; } $DisplayLineTotal = locale_number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $j++; - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength=12 size=6 value=' . $LnItm->Price . '></td> - <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength=3 size=3 value=' . ($LnItm->DiscountPercent * 100) . '></td> + echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '"></td> + <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '"></td> <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ @@ -355,7 +355,7 @@ } if (!isset($_POST['ProcessCredit'])) { echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . - '_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">'; + '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">'; } $i++; if ($Tax->TaxOnTax ==1){ @@ -380,7 +380,7 @@ <td class="number">' . $DisplayGrossLineTotal . '</td> <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; - echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols=100% rows=1>' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; + echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; } } /*end foreach loop displaying the invoice lines to credit */ @@ -875,7 +875,7 @@ $StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno'); /*Insert the StockSerialMovements and update the StockSerialItems for controlled items*/ - //echo "<div align=left><pre>"; var_dump($CreditLine); echo "</pre> </div>"; + //echo "<div align="left"><pre>"; var_dump($CreditLine); echo "</pre> </div>"; if ($CreditLine->Controlled ==1){ foreach($CreditLine->SerialItems as $Item){ /*We need to add the StockSerialItem record and The StockSerialMoves as well */ Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Currencies.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -231,7 +231,7 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow[1]==$FunctionalCurrency){ - echo '<tr bgcolor=#FFbbbb>'; + echo '<tr bgcolor="#FFbbbb">'; } elseif ($k==1){ echo '<tr class="EvenTableRows">'; $k=0; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustEDISetup.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -97,30 +97,30 @@ <td>' . $myrow['name'] . '</td> </tr>'; echo '<tr><td>'._('Enable Sending of EDI Invoices').':</td> - <td><select tabindex=1 name="EDIInvoices">'; + <td><select tabindex="1" name="EDIInvoices">'; if ($myrow['ediinvoices']==0){ - echo '<option selected value=0>'._('Disabled') . '</option>'; - echo '<option value=1>'._('Enabled'). '</option>'; + echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option value="1">'._('Enabled'). '</option>'; } else { - echo '<option value=0>'._('Disabled') . '</option>'; - echo '<option selected value=1>'._('Enabled') . '</option>'; + echo '<option value="0">'._('Disabled') . '</option>'; + echo '<option selected value="1">'._('Enabled') . '</option>'; } echo '</select><a href="' . $rootpath . '/EDIMessageFormat.php?MessageType=INVOIC&PartnerCode=' . $_SESSION['CustomerID'] . '">'._('Create') . '/' . _('Edit Invoice Message Format').'</a></td> </tr>'; echo '<tr><td>'._('Enable Receiving of EDI Orders') . ':</td> - <td><select tabindex=2 name="EDIOrders">'; + <td><select tabindex="2" name="EDIOrders">'; if ($myrow['ediorders']==0){ - echo '<option selected value=0>'._('Disabled') . '</option>'; - echo '<option value=1>'._('Enabled') . '</option>'; + echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option value="1">'._('Enabled') . '</option>'; } else { - echo '<option value=0>'._('Disabled') . '</option>'; - echo '<option selected value=1>'._('Enabled') . '</option>'; + echo '<option value="0">'._('Disabled') . '</option>'; + echo '<option selected value="1">'._('Enabled') . '</option>'; } echo '</select></td> @@ -128,10 +128,10 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size=20 maxlength=20 value="' . $myrow['edireference'] . '"></td></tr>'; + ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '"></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> - <td><select tabindex=4 name="EDITransport" >'; + <td><select tabindex="4" name="EDITransport" >'; if ($myrow['editransport']=='email'){ echo '<option selected value="email">'._('Email Attachments') . '</option>'; @@ -145,18 +145,18 @@ echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size=42 maxlength=40 value="' . $myrow['ediaddress'] . '"></td></tr>'; + ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '"></td></tr>'; if ($myrow['editransport']=='ftp'){ echo '<tr><td>'._('FTP Server User Name') . ':</td> - <td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '" /></td></tr>'; + <td><input tabindex="6" type="text" name="EDIServerUser" size="20" maxlength="20" value="' . $myrow['ediserveruser'] . '" /></td></tr>'; echo '<tr><td>'._('FTP Server Password') . ':</td> - <td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; + <td><input tabindex="7" type="text" name="EDIServerPwd" size="20" maxlength="20" value="' . $myrow['ediserverpwd'] . '" /></td></tr>'; } echo '</table> - <br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> + <br /><div class="centre"><input tabindex="8" type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div> </form>'; include('includes/footer.inc'); Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerAllocations.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -336,7 +336,7 @@ if (isset($_POST['AllocTrans'])) { // Page called with trans number - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerBranches.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -659,14 +659,14 @@ if (!isset($_POST['EstDeliveryDays'])) { $_POST['EstDeliveryDays']=0; } - echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class=number name="EstDeliveryDays" size="4" maxlength="2" value='. $_POST['EstDeliveryDays'].' /></td> + echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class="number" name="EstDeliveryDays" size="4" maxlength="2" value="'. $_POST['EstDeliveryDays'].'" /></td> </tr> <tr> <td>'._('Forward Date After (day in month)').':</td>'; if (!isset($_POST['FwdDate'])) { $_POST['FwdDate']=0; } - echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class=number name="FwdDate" size="4" maxlength="2" value='. $_POST['FwdDate'].' /></td> + echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class="number" name="FwdDate" size="4" maxlength="2" value="'. $_POST['FwdDate'].'" /></td> </tr>'; @@ -814,11 +814,11 @@ <td>'._('Transactions on this branch') . ':</td> <td><select tabindex="20" name="DisableTrans">'; if ($_POST['DisableTrans']==0){ - echo '<option selected value=0>' . _('Enabled') . '</option> - <option value=1>' . _('Disabled') . '</option>'; + echo '<option selected value="0">' . _('Enabled') . '</option> + <option value="1">' . _('Disabled') . '</option>'; } else { - echo '<option selected value=1>' . _('Disabled') . '</option> - <option value=0>' . _('Enabled') . '</option>'; + echo '<option selected value="1">' . _('Disabled') . '</option> + <option value="0">' . _('Enabled') . '</option>'; } echo ' </select></td></tr>'; Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerInquiry.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -135,11 +135,11 @@ echo '<table class="selection" width="70%"> <tr> - <th width=20%>' . _('Total Balance') . '</th> - <th width=20%>' . _('Current') . '</th> - <th width=20%>' . _('Now Due') . '</th> - <th width=20%>' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th> - <th width=20%>' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>'; + <th width="20%">' . _('Total Balance') . '</th> + <th width="20%">' . _('Current') . '</th> + <th width="20%">' . _('Now Due') . '</th> + <th width="20%">' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th> + <th width="20%">' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>'; echo '<tr> <td class="number">' . locale_number_format($CustomerRecord['balance'],$CustomerRecord['decimalplaces']) . '</td> @@ -152,7 +152,7 @@ echo '<br /> <div class="centre"> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Show all transactions after') . ': <input tabindex="1" type="text" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" name="TransAfterDate" value="' . $_POST['TransAfterDate'] . '" maxlength="10" size="12" /> <input tabindex="2" type="submit" name="Refresh Inquiry" value="' . _('Refresh Inquiry') . '" /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerReceipt.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -1005,7 +1005,7 @@ ORDER BY tagref"; $result=DB_query($SQL,$db); - echo '<option value=0></option>'; + echo '<option value="0"></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/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/CustomerTypes.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -180,7 +180,7 @@ $sql = "SELECT typeid, typename FROM debtortype"; $result = DB_query($sql,$db); - echo '<br /><table class=selection>'; + echo '<br /><table class="selection">'; echo '<tr> <th>' . _('Type ID') . '</th> <th>' . _('Type Name') . '</th> @@ -222,7 +222,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<p><table class=selection>'; //Main table + echo '<p><table class="selection">'; //Main table // The user wish to EDIT an existing type Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Customers.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -420,7 +420,7 @@ } if ($SetupErrors>0) { - echo '<br /><div class=centre><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; + echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; include('includes/footer.inc'); exit; } @@ -431,35 +431,35 @@ $DataError =0; - echo '<table class="selection" cellspacing=4> - <tr><td valign=top><table class="selection">'; + echo '<table class="selection" cellspacing="4"> + <tr><td valign="top"><table class="selection">'; /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ if ($_SESSION['AutoDebtorNo']==0) { - echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex=1 type="text" name="DebtorNo" size=11 maxlength=10 /></td></tr>'; + echo '<tr><td>' . _('Customer Code') . ':</td><td><input tabindex="1" type="text" name="DebtorNo" size="11" maxlength="10" /></td></tr>'; } echo '<tr><td>' . _('Customer Name') . ':</td> - <td><input tabindex=2 type="Text" name="CustName" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="CustName" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Telephone') . ':</td> - <td><input tabindex=2 type="Text" name="Phone" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Phone" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Facsimile') . ':</td> - <td><input tabindex=2 type="Text" name="Fax" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Fax" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Email Address') . ':</td> - <td><input tabindex=2 type="Text" name="Email" size=30 maxlength=40 /></td></tr>'; + <td><input tabindex="2" type="Text" name="Email" size="30" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> - <td><input tabindex=3 type="Text" name="Address1" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="3" type="Text" name="Address1" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> - <td><input tabindex=4 type="Text" name="Address2" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="4" type="Text" name="Address2" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td> - <td><input tabindex=5 type="Text" name="Address3" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="5" type="Text" name="Address3" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 4 (Postal Code)') . ':</td> - <td><input tabindex=6 type="Text" name="Address4" size=42 maxlength=40 /></td></tr>'; + <td><input tabindex="6" type="Text" name="Address4" size="42" maxlength="40" /></td></tr>'; echo '<tr><td>' . _('Address Line 5') . ':</td> - <td><input tabindex=7 type="Text" name="Address5" size=22 maxlength=20 /></td></tr>'; + <td><input tabindex="7" type="Text" name="Address5" size="22" maxlength="20" /></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> - <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15 /></td></tr>'; + <td><input tabindex="8" type="Text" name="Address6" size="17" maxlength="15" /></td></tr>'; @@ -498,13 +498,13 @@ $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> - <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10 /></td></tr>'; + <td><input tabindex="10" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size="12" maxlength="10" /></td></tr>'; echo '</table></td> <td><table class="selection"> <tr> <td>' . _('Discount Percent') . ':</td> - <td><input tabindex="11" type="textbox" class="number" name="Discount" value=0 size="5" maxlength="4" /></td> + <td><input tabindex="11" type="textbox" class="number" name="Discount" value="0" size="5" maxlength="4" /></td> </tr> <tr> <td>' . _('Discount Code') . ':</td> @@ -531,7 +531,7 @@ echo '<tr> <td>' . _('Payment Terms') . ':</td> - <td><select tabindex=15 name="PaymentTerms">'; + <td><select tabindex="15" name="PaymentTerms">'; while ($myrow = DB_fetch_array($result)) { echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; @@ -597,8 +597,8 @@ <tr> <td>' . _('Invoice Addressing') . ':</td> <td><select tabindex="19" name="AddrInvBranch"> - <option selected value=0>' . _('Address to HO') . '</option> - <option value=1>' . _('Address to Branch') . '</option> + <option selected value="0">' . _('Address to HO') . '</option> + <option value="1">' . _('Address to Branch') . '</option> </select> </td> </tr> @@ -946,11 +946,11 @@ <td>' . _('Require Customer PO Line on SO') . ':</td> <td><select name="CustomerPOLine">'; if ($_POST['CustomerPOLine']==0){ - echo '<option selected value=0>' . _('No') . '</option>'; - echo '<option value=1>' . _('Yes') . '</option>'; + echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option value=0>' . _('No') . '</option>'; - echo '<option selected value=1>' . _('Yes') . '</option>'; + echo '<option value="0">' . _('No') . '</option>'; + echo '<option selected value="1">' . _('Yes') . '</option>'; } echo '</select></td> </tr>'; @@ -1008,7 +1008,7 @@ ORDER BY contid"; $result = DB_query($sql,$db); - echo '<table class=selection>'; + echo '<table class="selection">'; if (isset($_GET['Modify'])) { echo '<tr> <th>' . _('Name') . '</th> Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DeliveryDetails.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -588,20 +588,20 @@ } else { /*link to print the quotation */ - echo '<br /><table class=selection> + 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> </tr> </table>'; - echo '<br /><table class=selection> + 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> </tr> </table>'; } - echo '<br /><table class=selection> + 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> @@ -807,7 +807,7 @@ echo '</b> ' . _('Customer Name') . ' :<b> ' . $_SESSION['Items'.$identifier]->CustomerName . '</b></p>'; -echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method=post>'; +echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -943,7 +943,7 @@ $DisplayVolume = number_format($_SESSION['Items'.$identifier]->totalVolume,2); $DisplayWeight = number_format($_SESSION['Items'.$identifier]->totalWeight,2); - echo '<table class=selection><tr> + echo '<table class="selection"><tr> <td>'. _('Total Weight') .':</td> <td>'. $DisplayWeight .'</td> <td>'. _('Total Volume') .':</td> @@ -996,7 +996,7 @@ // The estimated Dispatch date or Delivery date for this order echo '<tr> <td>'. _('Estimated Delivery Date') .':</td> - <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> + <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size="15" maxlength="14" name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td> </tr>'; // The date when a quote was issued to the customer echo '<tr> @@ -1034,14 +1034,14 @@ </tr> <tr> <td>'. _('Contact Phone Number') .':</td> - <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> + <td><input type="text" size="25" maxlength="25" name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td> </tr> <tr> - <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> + <td>' . _('Contact Email') . ':</td><td><input type="text" size="40" maxlength="38" name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td> </tr> <tr> <td>'. _('Customer Reference') .':</td> - <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> + <td><input type="text" size="25" maxlength="25" name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td> </tr> <tr> <td>'. _('Comments') .':</td> @@ -1068,11 +1068,11 @@ echo '<tr> <td>'. _('Reprint packing slip') .':</td> <td><select name="ReprintPackingSlip">'; - echo '<option value=0>' . _('Yes') . '</option>'; - echo '<option selected value=1>' . _('No') . '</option>'; + echo '<option value="0">' . _('Yes') . '</option>'; + echo '<option selected value="1">' . _('No') . '</option>'; echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>'; } else { - echo '<input type="hidden" name="ReprintPackingSlip" value=0 />'; + echo '<input type="hidden" name="ReprintPackingSlip" value="0" />'; } echo '<tr> @@ -1111,11 +1111,11 @@ echo '<tr><td>'. _('Quotation Only') .':</td> <td><select name="Quotation">'; if ($_SESSION['Items'.$identifier]->Quotation==1){ - echo '<option selected value=1>' . _('Yes') . '</option>'; - echo '<option value=0>' . _('No') . '</option>'; + echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option value="0">' . _('No') . '</option>'; } else { - echo '<option value=1>' . _('Yes') . '</option>'; - echo '<option selected value=0>' . _('No') . '</option>'; + echo '<option value="1">' . _('Yes') . '</option>'; + echo '<option selected value="0">' . _('No') . '</option>'; } echo '</select></td></tr>'; Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DiscountCategories.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -71,7 +71,7 @@ $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; $result = DB_query($sql, $db); if (DB_num_rows($result) > 0) { - echo '<table class=selection><tr><td>'. _('Discount Category Code') .': </td>'; + echo '<table class="selection"><tr><td>'. _('Discount Category Code') .': </td>'; echo '<td><select name="DiscCat" onChange="ReloadForm(update.select)">'; @@ -100,13 +100,13 @@ echo '<table class="selection"><tr><td>'. _('Discount Category Code') .':</td><td>'; if (isset($_POST['DiscCat'])) { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 value="' . $_POST['DiscCat'] .'" /></td> + echo '<input type="text" name="DiscountCategory" maxlength="2" size="2" value="' . $_POST['DiscCat'] .'" /></td> <td>'._('OR') . '</td> <td></td> <td>'._('OR').'</td> </tr>'; } else { - echo '<input type="text" name="DiscountCategory" maxlength=2 size=2 /></td> + echo '<input type="text" name="DiscountCategory" maxlength="2" size="2" /></td> <td>' ._('OR') . '</td> <td></td> <td>'._('OR') . '</td> @@ -123,11 +123,11 @@ $_POST['PartDesc']=''; } echo '<tr><td>'. _('Enter Stock Code') .':</td> - <td><input type="text" name="StockID" size=20 maxlength=20 value="' . $_POST['StockID'] . '" /></td> + <td><input type="text" name="StockID" size="20" maxlength="20" value="' . $_POST['StockID'] . '" /></td> <td>'._('Partial code') . ':</td> - <td><input type="text" name="PartID" size=10 maxlength=10 value="' . $_POST['PartID'] . '" /></td> + <td><input type="text" name="PartID" size="10" maxlength="10" value="' . $_POST['PartID'] . '" /></td> <td>' . _('Partial description') . ':</td> - <td><input type="text" name="PartDesc" size=10 value="' . $_POST['PartDesc'] .'" maxlength=10 /></td> + <td><input type="text" name="PartDesc" size="10" value="' . $_POST['PartDesc'] .'" maxlength="10" /></td> <td><input type="submit" name="search" value="' . _('Search') .'" /></td> </tr>'; @@ -155,10 +155,10 @@ } } } else { - echo '<table class=selection> + echo '<table class="selection"> <tr> <td>'._('Assign discount category').'</td>'; - echo '<td><input type="text" name="DiscountCategory" maxlength=2 size=2 /></td>'; + echo '<td><input type="text" name="DiscountCategory" maxlength="2" size="2" /></td>'; echo '<td>'._('to all items in stock category').'</td>'; $sql = "SELECT categoryid, categorydescription Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/DiscountMatrix.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -95,7 +95,7 @@ echo '<tr><td>' . _('Customer Price List') . ' (' . _('Sales Type') . '):</td><td>'; -echo '<select tabindex=1 name="SalesType">'; +echo '<select tabindex="1" name="SalesType">'; while ($myrow = DB_fetch_array($result)){ if (isset($_POST['SalesType']) and $myrow['typeabbrev']==$_POST['SalesType']){ @@ -129,11 +129,11 @@ echo '<tr> <td>' . _('Quantity Break') . '</td> - <td><input class="number" tabindex=3 ' . (in_array('QuantityBreak',$Errors) ? 'class="inputerror"' : '') .' type="text" name="QuantityBreak" size="10" maxlength="10" /></td> + <td><input class="number" tabindex="3" ' . (in_array('QuantityBreak',$Errors) ? 'class="inputerror"' : '') .' type="text" name="QuantityBreak" size="10" maxlength="10" /></td> </tr> <tr> <td>' . _('Discount Rate') . ' (%):</td> - <td><input class="number" tabindex=4 ' . (in_array('DiscountRate',$Errors) ? 'class="inputerror"' : '') . 'type="text" name="DiscountRate" size="5" maxlength="5" /></td> + <td><input class="number" tabindex="4" ' . (in_array('DiscountRate',$Errors) ? 'class="inputerror"' : '') . 'type="text" name="DiscountRate" size="5" maxlength="5" /></td> </tr> </table> <br /> Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/EDIMessageFormat.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -100,7 +100,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<p><table border=0 width=100%> +echo '<p><table border="0" width="100%"> <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; @@ -124,7 +124,7 @@ $result = DB_query($sql,$db); echo '<table class="selection">'; - echo '<tr><th colspan="5"><font size=3>' . _('Definition of') . ' ' . $MessageType . ' ' . _('for') . ' ' . $PartnerCode.'</font></th></tr>'; + echo '<tr><th colspan="5"><font size="3">' . _('Definition of') . ' ' . $MessageType . ' ' . _('for') . ' ' . $PartnerCode.'</font></th></tr>'; $TableHeader = '<tr> <th>' . _('Section') . '</th> <th>' . _('Sequence') . '</th> @@ -145,7 +145,7 @@ printf('<td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> <td>%s</td> <td><a href="%s&SelectedMessageLine=%s">' . _('Edit') . '</a></td> <td><a href="%s&delete=%s">' . _('Delete') . '</a></td> @@ -162,7 +162,7 @@ echo '</table><p>'; if (DB_num_rows($result)==0){ echo '<div class="centre"> - <input tabindex=1 type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> + <input tabindex="1" type="submit" name="NewEDIInvMsg" value="' . _('Create New EDI Invoice Message From Default Template') . '" /> </div> <br />'; } @@ -199,7 +199,7 @@ echo '<input type="hidden" name="PartnerCode" value="' . $PartnerCode . '" />'; } -echo '<table class=selection>'; +echo '<table class="selection">'; if ($myrow['messagetype']!='') { echo '<tr><th colspan="2">' . _('Definition of') . ' ' . $myrow['messagetype'] . ' ' . _('for') . ' ' . $myrow['partnercode'].'</th></tr>'; @@ -207,7 +207,7 @@ echo '<tr><td>' . _('Section') . ':</td>'; echo '<td>'; -echo '<select tabindex=2 name="Section">'; +echo '<select tabindex="2" name="Section">'; if ($_POST['Section']=='Heading') { echo '<option selected value="Heading">' . _('Heading') . '</option>'; @@ -235,17 +235,17 @@ echo '</td></tr>'; echo '<tr><td>Sequence Number:</td>'; -echo '<td><input tabindex=3 type="text" name=SequenceNo size=3 maxlength=3 value='.$_POST['SequenceNo'].' />'; +echo '<td><input tabindex="3" type="text" name="SequenceNo" size="3" maxlength="3" value='.$_POST['SequenceNo'].' />'; echo '</td></tr>'; echo '<tr><td>' . _('Line Text') . ':' .'</td>'; echo '<td>'; -echo '<input tabindex=4 type="text" name="LineText" size=50 maxlength=50 value='.$_POST['LineText'] .' />'; +echo '<input tabindex="4" type="text" name="LineText" size="50" maxlength="50" value='.$_POST['LineText'] .' />'; echo '</td></tr>'; echo '</table><br />'; if (isset($_GET['SelectedMessageLine'])) { - echo '<div class="centre"><input tabindex=5 type="submit" name="update" value="'. _('Update Information'). '" /></div>'; + echo '<div class="centre"><input tabindex="5" type="submit" name="update" value="'. _('Update Information'). '" /></div>'; } else { - echo '<div class="centre"><input tabindex=5 type="submit" name="submit" value="'. _('Enter Information'). '" /></div>'; + echo '<div class="centre"><input tabindex="5" type="submit" name="submit" value="'. _('Enter Information'). '" /></div>'; } echo '</form>'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/EmailCustTrans.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -61,7 +61,7 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '" /></td> + <td><input type="text" name="EmailAddr" maxlength="60" size="60" value="' . $EmailAddress . '" /></td> </table>'; echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '" />'; Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/ExchangeRateTrend.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -21,7 +21,7 @@ // SHOW OUR MAIN INPUT FORM // ************************ - echo '<form method="post" name=update action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('View Currency Trend') . '" alt="" />' . ' ' . _('View Currency Trend') . '</p>'; Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FTP_RadioBeacon.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -46,16 +46,16 @@ echo '<table cellpadding="2" colspan="7" width="100%">'; $TableHeader = '<tr> - <td class=tableheader>' . _('Modify') . '</td> - <td class=tableheader>' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> - <td class=tableheader>' . _('Customer') . '</td> - <td class=tableheader>' . _('Branch') . '</td> - <td class=tableheader>' . _('Cust Order') . ' #</td> - <td class=tableheader>' . _('Order Date') . '</td> - <td class=tableheader>' . _('Req Del Date') . '</td> - <td class=tableheader>' . _('Delivery To') . '</td> - <td class=tableheader>' . _('Order Total') . '</td> - <td class=tableheader>' . _('Last Send') . '</td> + <td class="tableheader">' . _('Modify') . '</td> + <td class="tableheader">' . _('Send to') . '<br />' . _('Radio Beacon') . '</td> + <td class="tableheader">' . _('Customer') . '</td> + <td class="tableheader">' . _('Branch') . '</td> + <td class="tableheader">' . _('Cust Order') . ' #</td> + <td class="tableheader">' . _('Order Date') . '</td> + <td class="tableheader">' . _('Req Del Date') . '</td> + <td class="tableheader">' . _('Delivery To') . '</td> + <td class="tableheader">' . _('Order Total') . '</td> + <td class="tableheader">' . _('Last Send') . '</td> </tr>'; echo $TableHeader; @@ -79,16 +79,16 @@ $ModifyPage = $rootpath . 'SelectOrderItems.php?' . SID . '&ModifyOrderNumber=' . $myrow['orderno']; if ($myrow['printedpackingslip'] ==1){ - printf('<td><font size=2><a href="%s">%s</a></font></td> - <td><font color=RED size=2>' . _('Already') . '<br />' . _('Sent') . '</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td class=number><font size=2>%s</font></td> - <td><font size=2>%s</font></td></tr>', + printf('<td><font size="2"><a href="%s">%s</a></font></td> + <td><font color=RED size="2">' . _('Already') . '<br />' . _('Sent') . '</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td class="number"><font size="2">%s</font></td> + <td><font size="2">%s</font></td></tr>', $ModifyPage, $myrow['orderno'], $myrow['name'], @@ -100,16 +100,16 @@ $FormatedOrderValue, $FormatedDateLastSent); } else { - printf('<td><font size=2><a href="%s">%s</a></font></td> - <td><font size=2><a href="%s">' . _('Send') . '</a></font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td><font size=2>%s</font></td> - <td class=number><font size=2>%s</font></td> - <td><font size=2>%s</font></td></tr>', + printf('<td><font size="2"><a href="%s">%s</a></font></td> + <td><font size="2"><a href="%s">' . _('Send') . '</a></font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td><font size="2">%s</font></td> + <td class="number"><font size="2">%s</font></td> + <td><font size="2">%s</font></td></tr>', $ModifyPage, $myrow['orderno'], $FTPDispatchNote, Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/Factors.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -200,7 +200,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FactorID" value="' . $FactorID .'" /> - <table class=selection> + <table class="selection"> <input type="hidden" name="New" value="Yes" /> <tr> <td>' . _('Factor company Name') . ':</td> @@ -208,18 +208,18 @@ </tr> <tr> <td>' . _('Address Line 1') . ':</td> - <td><input tabindex=2 type="text" name="Address1" size="42" maxlength="40" value="' . $_POST['Address1'] .'" /></td> + <td><input tabindex="2" type="text" name="Address1" size="42" maxlength="40" value="' . $_POST['Address1'] .'" /></td> </tr> <tr><td>' . _('Address Line 2') . ':</td> - <td><input tabindex=3 type="text" name="Address2" size="42" maxlength="40" value="' . $_POST['Address2'] .'" /></td> + <td><input tabindex="3" type="text" name="Address2" size="42" maxlength="40" value="' . $_POST['Address2'] .'" /></td> </tr> <tr> <td>' . _('Address Line 3') . ':</td> - <td><input tabindex=4 type="text" name="Address3" size="42" maxlength="40" value="' .$_POST['Address3'] .'" /></td> + <td><input tabindex="4" type="text" name="Address3" size="42" maxlength="40" value="' .$_POST['Address3'] .'" /></td> </tr> <tr> <td>' . _('Address Line 4') . ':</td> - <td><input tabindex=5 type="text" name="Address4" size="42" maxlength="40" value="' . $_POST['Address4'].'" /></td> + <td><input tabindex="5" type="text" name="Address4" size="42" maxlength="40" value="' . $_POST['Address4'].'" /></td> </tr> <tr> <td>' . _('Address Line 5') . ':</td> @@ -239,11 +239,11 @@ </tr> <tr> <td>' . _('Fax') . ':</td> - <td><input tabindex="10" type="text" name="Fax" value=0 size="20" maxlength="25" value="' . $_POST['Fax'] .'" /></td> + <td><input tabindex="10" type="text" name="Fax" value="0" size="20" maxlength="25" value="' . $_POST['Fax'] .'" /></td> </tr> <tr> <td>' . _('Email') . ':</td> - <td><input tabindex="11" type="text" name="Email" size="55" maxlength=55 value="' . $_POST['Email'] . '" /></td> + <td><input tabindex="11" type="text" name="Email" size="55" maxlength="55" value="' . $_POST['Email'] . '" /></td> </tr> </table>'; } Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetItems.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -381,7 +381,7 @@ $result = DB_Txn_Commit($db); echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"> - <table class=selection>'; + <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/FixedAssetRegister.php =================================================================== --- trunk/FixedAssetRegister.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetRegister.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -77,7 +77,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre">' ._('From') . ':' . $_POST['FromDate'] . ' ' . _('to') . ' ' . $_POST['ToDate'] . '</div>'; echo '<br /> - <table width=80% cellspacing="1" class="selection"> + <table width="80%" cellspacing="1" class="selection"> <tr> <th>' . _('Asset ID') . '</th> <th>' . _('Description') . '</th> @@ -247,7 +247,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr> <th>' . _('Asset Category') . '</th> - <td><select name=AssetCategory> + <td><select name="AssetCategory"> <option value="%">' . _('ALL') . '</option>'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['AssetCategory']) and $myrow['categoryid'] == $_POST['AssetCategory']) { @@ -297,7 +297,7 @@ echo '<tr> <th>' . _(' From Date') . '</th> - <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength=10 size=11 value="' . $_POST['FromDate'] . '" /></td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" /></td> </tr> <tr> <th>' . _('To Date ') . '</th> @@ -308,7 +308,7 @@ <div class="centre"> <input type="submit" name="submit" value="' . _('Show Assets') . '" /> <input type="submit" name="pdf" value="' . _('Print as a pdf') . '" /> - <input type="Submit" name = "csv" value= "' . _('Print as CSV') . '" /> + <input type="Submit" name = "csv" value="' . _('Print as CSV') . '" /> </div> </form>'; } Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FixedAssetTransfer.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -26,7 +26,7 @@ } else { $sql="SELECT categoryid, categorydescription FROM fixedassetcategories"; $result=DB_query($sql, $db); - echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p>'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-22 22:17:50 UTC (rev 4835) +++ trunk/FormDesigner.php 2012-01-23 22:18:42 UTC (rev 4836) @@ -13,7 +13,7 @@ * given in the object $key */ $FontSizes=FontSizes(); - echo '<td class=number>'._('Font Size').' = '.'</td><td><select name="'.$key['id'].'FontSize">'; + echo '<td class="number">'._('Font Size').' = '.'</td><td><select name="'.$key['id'].'FontSize">'; foreach ($FontSizes as $FontSize) { if ($FontSize==$key->FontSize) { echo '<option selected value="'.$FontSize.'">'.$FontSize.'</option>'; @@ -23,9 +23,9 @@ } echo '</select></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class=number>'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size=4 maxlength=4 value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; /* ... [truncated message content] |
From: <vv...@us...> - 2012-01-24 23:41:56
|
Revision: 4837 http://web-erp.svn.sourceforge.net/web-erp/?rev=4837&view=rev Author: vvs2012 Date: 2012-01-24 23:41:46 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added quotes to attributes in multiple files and changed option selected to selected="selected". Modified Paths: -------------- trunk/AccountGroups.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustWhereAlloc.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerReceipt.php trunk/CustomerTransInquiry.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/ExchangeRateTrend.php trunk/FixedAssetCategories.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLJournal.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GoodsReceivedControlled.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Locations.php trunk/MRPCreateDemands.php trunk/MRPDemands.php trunk/MRPPlannedPurchaseOrders.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/PDFChequeListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFStockCheckComparison.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PageSecurity.php trunk/PaymentMethods.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustOrder.php trunk/PrintCustOrder_generic.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectContract.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectRecurringSalesOrder.php trunk/SelectSalesOrder.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/Shipt_Select.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQties_csv.php trunk/StockQuantityByDate.php trunk/StockTransfers.php trunk/StockUsage.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppFixedAssetChgs.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SuppPriceList.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTenderCreate.php trunk/SupplierTenders.php trunk/SupplierTransInquiry.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TaxGroups.php trunk/UpgradeDatabase.php trunk/UserSettings.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_UploadForm.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poRebuildDefault.php trunk/doc/Change.log Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AccountGroups.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -339,7 +339,7 @@ $sql = "SELECT groupname FROM accountgroups"; $groupresult = DB_query($sql, $db,$ErrMsg,$DbgMsg); if (!isset($_POST['ParentGroupName'])){ - echo '<option selected value="">' ._('Top Level Group').'</option>'; + echo '<option selected="selected" value="">' ._('Top Level Group').'</option>'; } else { echo '<option value="">' ._('Top Level Group').'</option>'; } Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AgedDebtors.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -467,7 +467,7 @@ <tr> <td>' . _('All balances or overdues only') . ':' . '</td> <td><select tabindex="3" name="All_Or_Overdues"> - <option selected value="All">' . _('All customers with balances') . '</option> + <option selected="selected" value="All">' . _('All customers with balances') . '</option> <option value="OverduesOnly">' . _('Overdue accounts only') . '</option> <option value="HeldOnly">' . _('Held accounts only') . '</option> </select> @@ -495,7 +495,7 @@ $result=DB_query($sql,$db); while ($myrow=DB_fetch_array($result)){ if ($myrow['currabrev'] == $_SESSION['CompanyRecord']['currencydefault']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -505,7 +505,7 @@ <tr> <td>' . _('Summary or detailed report') . ':' . '</td> <td><select tabindex="6" name="DetailedReport"> - <option selected value="No">' . _('Summary Report') . '</option> + <option selected="selected" value="No">' . _('Summary Report') . '</option> <option value="Yes">' . _('Detailed Report') . '</option> </select> </td> Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AgedSuppliers.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -295,7 +295,7 @@ <tr> <td>' . _('All balances or overdues only') . ':' . '</td> <td><select tabindex="3" name="All_Or_Overdues"> - <option selected value="All">' . _('All suppliers with balances') . '</option> + <option selected="selected" value="All">' . _('All suppliers with balances') . '</option> <option value="OverduesOnly">' . _('Overdue accounts only') . '</option> </select></td> </tr> @@ -308,7 +308,7 @@ while ($myrow=DB_fetch_array($result)){ if ($myrow['currabrev'] == $_SESSION['CompanyRecord']['currencydefault']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -318,7 +318,7 @@ <tr> <td>' . _('Summary or Detailed Report') . ':' . '</td> <td><select tabindex="5" name="DetailedReport"> - <option selected value="No">' . _('Summary Report') . '</option> + <option selected="selected" value="No">' . _('Summary Report') . '</option> <option value="Yes">' . _('Detailed Report') . '</option> </select></td> </tr> Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Areas.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -224,7 +224,7 @@ echo '<tr> <td colspan="2"> <div class="centre"> - <input tabindex="3" type="submit" name="submit" value=' . _('Enter Information') .' /> + <input tabindex="3" type="submit" name="submit" value="' . _('Enter Information') .'" /> </div> </td> </tr> Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AuditTrail.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -49,7 +49,7 @@ echo '<option value="ALL">' . _('All') . '</option>'; while ($users = DB_fetch_row($UserResult)) { if (isset($_POST['SelectedUser']) and $users[0]==$_POST['SelectedUser']) { - echo '<option selected value="' . $users[0] . '">' . $users[0] . '</option>'; + echo '<option selected="selected" value="' . $users[0] . '">' . $users[0] . '</option>'; } else { echo '<option value="' . $users[0] . '">' . $users[0] . '</option>'; } @@ -62,9 +62,9 @@ echo '<option value="ALL">' . _('All') . '</option>'; while ($tables = DB_fetch_row($TableResult)) { if (isset($_POST['SelectedTable']) and $tables[0]==$_POST['SelectedTable']) { - echo '<option selected value=' . $tables[0] . '>' . $tables[0] . '</option>'; + echo '<option selected="selected" value="' . $tables[0] . '">' . $tables[0] . '</option>'; } else { - echo '<option value=' . $tables[0] . '>' . $tables[0] . '</option>'; + echo '<option value="' . $tables[0] . '">' . $tables[0] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMExtendedQty.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -276,14 +276,14 @@ <tr> <td>' . _('Selection Option') . ':</td> <td><select name="Select"> - <option selected value="All">' . _('Show All Parts') . '</option> + <option selected="selected" value="All">' . _('Show All Parts') . '</option> <option value="Shortages">' . _('Only Show Shortages') . '</option> </select></td> </tr> <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select></td> </tr> Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMIndented.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -257,7 +257,7 @@ <tr> <td>' . _('Levels') . ':</td> <td><select name="Levels"> - <option selected value="All">' . _('All Levels') . '</option> + <option selected="selected" value="All">' . _('All Levels') . '</option> <option value="One">' . _('One Level') . '</option> </select> </td> @@ -265,7 +265,7 @@ <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select> </td> Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMIndentedReverse.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -245,7 +245,7 @@ <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select></td> </tr> Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMs.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -666,7 +666,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['LocCode']) and $myrow['loccode']==$_POST['LocCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -694,7 +694,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['WorkCentreAdded']) and $myrow['code']==$_POST['WorkCentreAdded']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -742,10 +742,10 @@ $_POST['AutoIssue'] = $_SESSION['AutoIssue']; } if ($_POST['AutoIssue']==0) { - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankAccounts.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -298,7 +298,7 @@ $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { if (isset($_POST['AccountCode']) and $myrow['accountcode']==$_POST['AccountCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -343,7 +343,7 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow['currabrev']==$_POST['CurrCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -366,15 +366,15 @@ $db); while ($myrow = DB_fetch_array($result)) { if ($myrow['invoice']== 1) { - echo '<option selected value="1">'._('Fall Back Default').'</option> + echo '<option selected="selected" value="1">'._('Fall Back Default').'</option> <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; } elseif ($myrow['invoice']== 2) { echo '<option value="0">'._('No').'</option> - <option selected value="2">'._('Currency Default') . '</option> + <option selected="selected" value="2">'._('Currency Default') . '</option> <option value="1">'._('Fall Back Default').'</option>'; } else { - echo '<option selected value="0">'._('No').'</option> + echo '<option selected="selected" value="0">'._('No').'</option> <option value="2">'._('Currency Default') . '</option> <option value="1">'._('Fall Back Default').'</option>'; } Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankMatching.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -96,7 +96,7 @@ $resultBankActs = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultBankActs)){ if (isset($_POST['BankAccount']) and $myrow['accountcode']==$_POST['BankAccount']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } @@ -124,11 +124,11 @@ <td><select tabindex="4" name="Ostg_or_All">'; if ($_POST['Ostg_or_All']=='All'){ - echo '<option selected value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; + echo '<option selected="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') . '</option>'; - echo '<option selected value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; + echo '<option selected="selected" value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; } echo '</select></td> </tr>'; @@ -138,11 +138,11 @@ _('or all') . ' ' . $TypeName . ' ' . _('meeting the criteria') . ':</td> <td><select tabindex="5" name="First20_or_All">'; if ($_POST['First20_or_All']=='All'){ - echo '<option selected value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; + echo '<option selected="selected" value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; echo '<option value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; } else { echo '<option value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; - echo '<option selected value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; + echo '<option selected="selected" value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; } echo '</select></td> </tr>'; Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankReconciliation.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -115,7 +115,7 @@ while ($myrow=DB_fetch_array($AccountsResults)){ /*list the bank account names */ if (isset($_POST['BankAccount']) and $_POST['BankAccount']==$myrow['accountcode']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } @@ -342,13 +342,13 @@ </tr>'; if (isset($_POST['DoExchangeDifference'])){ - echo '<input type="hidden" name="DoExchangeDifference" value=' . $FXStatementBalance . ' />'; + echo '<input type="hidden" name="DoExchangeDifference" value="' . $FXStatementBalance . '" />'; if (!isset($_POST['BankStatementBalance'])){ $_POST['BankStatementBalance'] =0; } echo '<tr> <td colspan="6">' . _('Enter the actual bank statement balance') . ' (' . $CurrencyRow['currcode'] . ')</b></td> - <td class="number"><input type="text" name="BankStatementBalance" maxlength="15" size="15" value=' . locale_number_format($_POST['BankStatementBalance'],$CurrencyRow['currdecimalplaces']) . ' /><td> + <td class="number"><input type="text" name="BankStatementBalance" maxlength="15" size="15" value="' . locale_number_format($_POST['BankStatementBalance'],$CurrencyRow['currdecimalplaces']) . '" /><td> </tr> <tr> <td colspan="7" align="center"><input type="submit" name="PostExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" onclick="return confirm(\'' . _('This will create a general ledger journal to write off the exchange difference in the current balance of the account. It is important that the exchange rate above reflects the current value of the bank account currency') . ' - ' . _('Are You Sure?') . '\');" /></td> Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/COGSGLPostings.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -265,7 +265,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Area']) and $myrow['areacode']==$_POST['Area']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -286,7 +286,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['StkCat']) and $myrow['categoryid']==$_POST['StkCat']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -308,7 +308,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['SalesType']) and $myrow['typeabbrev']==$_POST['SalesType']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -336,7 +336,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['GLCode']) and $myrow['accountcode']==$_POST['GLCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CompanyPreferences.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -288,7 +288,7 @@ while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrencyDefault']==$myrow['currabrev']){ - echo '<option selected value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency']. '</option>'; } @@ -313,7 +313,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['DebtorsAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -330,7 +330,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['CreditorsAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="' . $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -347,7 +347,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PayrollAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -364,7 +364,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['GRNAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -380,7 +380,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['RetainedEarnings']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -405,7 +405,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['FreightAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -422,7 +422,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['ExchangeDiffAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -439,7 +439,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PurchasesExchangeDiffAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -456,7 +456,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PytDiscountAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -472,10 +472,10 @@ <td><select tabindex="23" name="GLLink_Debtors">'; if ($_POST['GLLink_Debtors']==0){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes'). '</option>'; } else { - echo '<option selected value="1">' . _('Yes'). '</option>'; + echo '<option selected="selected" value="1">' . _('Yes'). '</option>'; echo '<option value="0">' . _('No'). '</option>'; } @@ -487,10 +487,10 @@ <td><select tabindex="24" name="GLLink_Creditors">'; if ($_POST['GLLink_Creditors']==0){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } @@ -502,10 +502,10 @@ <td><select tabindex="25" name="GLLink_Stock">'; if ($_POST['GLLink_Stock']=='0'){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -1645,7 +1645,7 @@ $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><option value="CAN">'._('Cancel any quantities not delivered').'</option></select></td> + <td><select tabindex='.$j.' name="BOPolicy"><option selected="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/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/ContractBOM.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -296,10 +296,10 @@ <tr></tr> <tr><td><select name="StockCat">'; - echo '<option selected="true" value="All">' . _('All').'</option>'; + echo '<option selected="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>'; + echo '<option selected="selected" value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Contracts.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -852,7 +852,7 @@ while ($myrow=DB_fetch_array($result)){ if (!isset($_SESSION['Contract'.$identifier]->CategoryID) or $myrow['categoryid']==$_SESSION['Contract'.$identifier]->CategoryID){ - echo '<option selected="True" value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; + echo '<option selected="selected" value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; } @@ -869,7 +869,7 @@ <td><select name="LocCode" >'; while ($myrow=DB_fetch_array($result)){ if (!isset($_SESSION['Contract'.$identifier]->LocCode) or $myrow['loccode']==$_SESSION['Contract'.$identifier]->LocCode){ - echo '<option selected="True" value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CounterSales.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -871,7 +871,7 @@ echo '<tr><td>' . _('Payment Type') . ':</td><td><select name="PaymentMethod">'; while ($PaymentMethodRow = DB_fetch_array($PaymentMethodsResult)){ if (isset($_POST['PaymentMethod']) AND $_POST['PaymentMethod'] == $PaymentMethodRow['paymentid']){ - echo '<option selected="True" value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; + echo '<option selected="selected" value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; } else { echo '<option value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; } @@ -885,7 +885,7 @@ <td><select name="BankAccount">'; while ($BankAccountsRow = DB_fetch_array($BankAccountsResult)){ if (isset($_POST['BankAccount']) AND $_POST['BankAccount'] == $BankAccountsRow['accountcode']){ - echo '<option selected="True" value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; } @@ -2149,7 +2149,7 @@ echo '<table class="selection"><tr><td><b>' . _('Select a Stock Category') . ': </b><select tabindex="1" name="StockCat">'; if (!isset($_POST['StockCat'])){ - echo '<option selected="true" value="All">' . _('All').'</option>'; + echo '<option selected="selected" value="All">' . _('All').'</option>'; $_POST['StockCat'] ='All'; } else { echo '<option value="All">' . _('All').'</option>'; @@ -2162,7 +2162,7 @@ $result1 = DB_query($SQL,$db); while ($myrow1 = DB_fetch_array($result1)) { if ($_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="true" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CreditStatus.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> + ' tabindex=2 type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Credit_Invoice.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -1443,17 +1443,17 @@ <td><select tabindex=' . $j .' name="CreditType">'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ - echo '<option selected value="Return">' . _('Goods returned to store') . '</option>'; + echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option>'; echo '<option value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } elseif($_POST['CreditType']=='WriteOff') { - echo '<option selected value="WriteOff">' . _('Goods written off') . '</option>'; + echo '<option selected="selected" value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="Return">' . _('Goods returned to store') . '</option>'; echo '<option value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } else { echo '<option value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="Return">' . _('Goods returned to store') . '</option>'; - echo '<option selected value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; + echo '<option selected="selected" value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } echo '</select></td></tr>'; $j++; @@ -1473,7 +1473,7 @@ while ($myrow = DB_fetch_array($Result)) { if ($_POST['Location']==$myrow['loccode']){ - echo '<option selected value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } @@ -1497,9 +1497,9 @@ while ($myrow = DB_fetch_array($Result)) { if ($_POST['WriteOffGLCode']==$myrow['accountcode']){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountname']. '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['accountname']. '</option>'; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountname'] . '</option>'; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['accountname'] . '</option>'; } } echo '</select></td></tr>'; @@ -1509,7 +1509,7 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . ' /><br />'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value="' . _('Update') . '" /><br />'; $j++; echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Currencies.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -392,7 +392,7 @@ if (!isset($_POST['ExchangeRate'])) { $_POST['ExchangeRate']=''; } - echo '<input ' . (in_array('ExchangeRate',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="ExchangeRate" size="10" maxlength="9" value="'. $_POST['ExchangeRate'].'"></td> + echo '<input ' . (in_array('ExchangeRate',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="ExchangeRate" size="10" maxlength="9" value="'. $_POST['ExchangeRate'].'" /></td> </tr> </table>'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustEDISetup.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -101,11 +101,11 @@ if ($myrow['ediinvoices']==0){ - echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option selected="selected" value="0">'._('Disabled') . '</option>'; echo '<option value="1">'._('Enabled'). '</option>'; } else { echo '<option value="0">'._('Disabled') . '</option>'; - echo '<option selected value="1">'._('Enabled') . '</option>'; + echo '<option selected="selected" value="1">'._('Enabled') . '</option>'; } echo '</select><a href="' . $rootpath . '/EDIMessageFormat.php?MessageType=INVOIC&PartnerCode=' . $_SESSION['CustomerID'] . '">'._('Create') . '/' . _('Edit Invoice Message Format').'</a></td> @@ -116,11 +116,11 @@ if ($myrow['ediorders']==0){ - echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option selected="selected" value="0">'._('Disabled') . '</option>'; echo '<option value="1">'._('Enabled') . '</option>'; } else { echo '<option value="0">'._('Disabled') . '</option>'; - echo '<option selected value="1">'._('Enabled') . '</option>'; + echo '<option selected="selected" value="1">'._('Enabled') . '</option>'; } echo '</select></td> @@ -128,24 +128,24 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '"></td></tr>'; + ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> <td><select tabindex="4" name="EDITransport" >'; if ($myrow['editransport']=='email'){ - echo '<option selected value="email">'._('Email Attachments') . '</option>'; + echo '<option selected="selected" value="email">'._('Email Attachments') . '</option>'; echo '<option value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; } else { echo '<option value="email">'._('Email Attachments') . '</option>'; - echo '<option selected value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; + echo '<option selected="selected" value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '"></td></tr>'; + ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; if ($myrow['editransport']=='ftp'){ Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustLoginSetup.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -177,7 +177,7 @@ } if (isset($_POST['BranchCode']) and $myrow['branchcode'] == $_POST['BranchCode']){ - echo '<option selected value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; } else { echo '<option value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; } @@ -187,42 +187,42 @@ <td><select name="PageSize">'; if(isset($_POST['PageSize']) and $_POST['PageSize']=='A4'){ - echo '<option selected value="A4">' . _('A4') .'</option>'; + echo '<option selected="selected" value="A4">' . _('A4') .'</option>'; } else { echo '<option value="A4">' . _('A4') . '</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='A3'){ - echo '<option selected value="A3">' . _('A3') .'</option>'; + echo '<option selected="selected" value="A3">' . _('A3') .'</option>'; } else { echo '<option value="A3">' . _('A3') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='A3_landscape'){ - echo '<option selected value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='letter'){ - echo '<option selected value="letter">' . _('Letter') .'</option>'; + echo '<option selected="selected" value="letter">' . _('Letter') .'</option>'; } else { echo '<option value="letter">' . _('Letter') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='letter_landscape'){ - echo '<option selected value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='legal'){ - echo '<option selected value="legal">' . _('Legal') .'</option>'; + echo '<option selected="selected" value="legal">' . _('Legal') .'</option>'; } else { echo '<option value="legal">' . _('Legal') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='legal_landscape'){ - echo '<option selected value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; } @@ -240,9 +240,9 @@ if (is_dir('css/' . $ThemeName) AND $ThemeName != '.' AND $ThemeName != '..' AND $ThemeName != '.svn'){ if (isset($_POST['Theme']) and $_POST['Theme'] == $ThemeName){ - echo '<option selected value="' . $ThemeName . '">' . $ThemeName .'</option>'; + echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName .'</option>'; } else if (!isset($_POST['Theme']) and ($_SESSION['DefaultTheme']==$ThemeName)) { - echo '<option selected value="' . $ThemeName . '">' . $ThemeName .'</option>'; + echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName .'</option>'; } else { echo '<option value="' . $ThemeName . '">' . $ThemeName .'</option>'; } @@ -257,9 +257,9 @@ foreach ($LanguagesArray as $LanguageEntry => $LanguageName){ if (isset($_POST['UserLanguage']) and $_POST['UserLanguage'] == $LanguageEntry){ - echo '<option selected value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } elseif (!isset($_POST['UserLanguage']) AND $LanguageEntry == $DefaultLanguage) { - echo '<option selected value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } else { echo '<option value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustWhereAlloc.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -22,7 +22,7 @@ while ($myrow=DB_fetch_array($resultTypes)){ if (isset($_POST['TransType'])){ if ($myrow['typeid'] == $_POST['TransType']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerAllocations.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -401,7 +401,7 @@ echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { - echo ' value=' . True . ' />'; + echo ' value="' . True . '" />'; } else { echo ' />'; } Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerBranches.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -692,11 +692,11 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Salesman']) and $myrow['salesmancode']==$_POST['Salesman']) { - echo '<option selected value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['salesmancode'] . '>' . $myrow['salesmanname'] . '</option>'; + echo $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } //end while loop @@ -720,7 +720,7 @@ <td><select tabindex="14" name="Area">'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Area']) and $myrow['areacode']==$_POST['Area']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -750,7 +750,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['DefaultLocation']) and $myrow['loccode']==$_POST['DefaultLocation']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -800,7 +800,7 @@ while ($myrow = DB_fetch_array($TaxGroupResults)) { if (isset($_POST['TaxGroup']) and $myrow['taxgroupid']==$_POST['TaxGroup']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -814,10 +814,10 @@ <td>'._('Transactions on this branch') . ':</td> <td><select tabindex="20" name="DisableTrans">'; if ($_POST['DisableTrans']==0){ - echo '<option selected value="0">' . _('Enabled') . '</option> + echo '<option selected="selected" value="0">' . _('Enabled') . '</option> <option value="1">' . _('Disabled') . '</option>'; } else { - echo '<option selected value="1">' . _('Disabled') . '</option> + echo '<option selected="selected" value="1">' . _('Disabled') . '</option> <option value="0">' . _('Enabled') . '</option>'; } @@ -838,9 +838,9 @@ <td><select tabindex="21" name="DefaultShipVia">'; while ($myrow=DB_fetch_array($ShipperResults)){ if (isset($_POST['DefaultShipVia'])and $myrow['shipper_id']==$_POST['DefaultShipVia']){ - echo '<option selected value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['shipper_id'] . '">' . $myrow['shippername'] . '</option>'; }else { - echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; + echo '<option value="' . $myrow['shipper_id'] . '">' . $myrow['shippername'] . '</option>'; } } @@ -855,9 +855,9 @@ <td><select tabindex="22" name="DeliverBlind">'; if ($_POST['DeliverBlind']==2){ echo '<option value="1">' . _('Show company details and logo') . '</option> - <option selected value="2">' . _('Hide company details and logo') . '</option>'; + <option selected="selected" value="2">' . _('Hide company details and logo') . '</option>'; } else { - echo '<option selected value="1">' . _('Show company details and logo') . '</option> + echo '<option selected="selected" value="1">' . _('Show company details and logo') . '</option> <option value="2">' . _('Hide company details and logo') . '</option>'; } Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerReceipt.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -767,7 +767,7 @@ while ($myrow=DB_fetch_array($AccountsResults)){ /*list the bank account names */ if ($_SESSION['ReceiptBatch']->Account==$myrow['accountcode']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname']. ' - ' . $myrow['currcode'] . '</option>'; } @@ -801,7 +801,7 @@ } else { while ($myrow=DB_fetch_array($result)){ if ($_SESSION['ReceiptBatch']->Currency==$myrow['currabrev']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -860,7 +860,7 @@ foreach ($ReceiptTypes as $RcptType) { if (isset($_POST['ReceiptType']) and $_POST['ReceiptType']==$RcptType){ - echo '<option selected value="' . $RcptType . '">' . $RcptType .'</option>'; + echo '<option selected="selected" value="' . $RcptType . '">' . $RcptType .'</option>'; } else { echo '<option value="' .$RcptType . '">' . $RcptType .'</option>'; } @@ -1008,9 +1008,9 @@ echo '<option value="0"></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>'; + echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } } echo '</select></td> @@ -1031,9 +1031,9 @@ echo '<option value=""></option>'; while ($myrow=DB_fetch_array($result)){ if ($_POST['GLCode']==$myrow['accountcode']){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; } } echo '</select></td> Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerTransInquiry.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -32,7 +32,7 @@ while ($myrow=DB_fetch_array($resultTypes)){ if (isset($_POST['TransType'])){ if ($myrow['typeid'] == $_POST['TransType']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerTypes.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -240,7 +240,7 @@ $_POST['typename'] = $myrow['typename']; echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '" />'; - echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '" />'; + echo '<input type="hidden" name="typeid" value="' . $_POST['typeid'] . '" />'; echo '<table class="selection">'; // We dont allow the user to change an existing type code Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Customers.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -575,9 +575,9 @@ <td><select tabindex="17" name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrCode']==$myrow['currabrev']){ - echo '<option selected value='. $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { - echo '<option value='. $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } } //end while loop DB_data_seek($result,0); @@ -589,7 +589,7 @@ echo '<tr> <td>' . _('Customer PO Line on SO') . ':</td> <td><select tabindex="18" name="CustomerPOLine"> - <option selected value="0">' . _('No') . '</option> + <option selected="selected" value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select> </td> @@ -597,7 +597,7 @@ <tr> <td>' . _('Invoice Addressing') . ':</td> <td><select tabindex="19" name="AddrInvBranch"> - <option selected value="0">' . _('Address to HO') . '</option> + <option selected="selected" value="0">' . _('Address to HO') . '</option> <option value="1">' . _('Address to Branch') . '</option> </select> </td> @@ -767,7 +767,7 @@ <td><select name="SalesType">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['SalesType']==$myrow['typeabbrev']){ - echo '<option selected value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; } else { echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; } @@ -790,7 +790,7 @@ <td><select name="typeid">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['typeid']==$myrow['typeid']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } @@ -842,11 +842,11 @@ </tr> <tr> <td>' . _('Discount Code') . ':</td> - <td><input ' . (in_array('DiscountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DiscountCode" size="3" maxlength="2" value="' . $_POST['DiscountCode'] . '"></td> + <td><input ' . (in_array('DiscountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DiscountCode" size="3" maxlength="2" value="' . $_POST['DiscountCode'] . '" /></td> </tr> <tr> <td>' . _('Payment Discount Percent') . ':</td> - <td><input ' . (in_array('PymtDiscount',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="PymtDiscount" size="5" maxlength="4" value="' . $_POST['PymtDiscount'] . '"></td> + <td><input ' . (in_array('PymtDiscount',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="PymtDiscount" size="5" maxlength="4" value="' . $_POST['PymtDiscount'] . '" /></td> </tr> <tr> <td>' . _('Credit Limit') . ':</td> @@ -872,7 +872,7 @@ <td><select name="PaymentTerms">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['PaymentTerms']==$myrow['termsindicator']){ - echo '<option selected value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; } else { echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; } @@ -896,7 +896,7 @@ <td><select name="HoldReason">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['HoldReason']==$myrow['reasoncode']){ - echo '<option selected value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; } else { echo '<option value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; } @@ -919,7 +919,7 @@ <td><select name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrCode']==$myrow['currabrev']){ - echo '<option selected value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</o... [truncated message content] |
From: <vv...@us...> - 2012-01-24 23:41:57
|
Revision: 4837 http://web-erp.svn.sourceforge.net/web-erp/?rev=4837&view=rev Author: vvs2012 Date: 2012-01-24 23:41:46 +0000 (Tue, 24 Jan 2012) Log Message: ----------- Added quotes to attributes in multiple files and changed option selected to selected="selected". Modified Paths: -------------- trunk/AccountGroups.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustWhereAlloc.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerReceipt.php trunk/CustomerTransInquiry.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/ExchangeRateTrend.php trunk/FixedAssetCategories.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLJournal.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GoodsReceivedControlled.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Locations.php trunk/MRPCreateDemands.php trunk/MRPDemands.php trunk/MRPPlannedPurchaseOrders.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/PDFChequeListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFStockCheckComparison.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PageSecurity.php trunk/PaymentMethods.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustOrder.php trunk/PrintCustOrder_generic.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectContract.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectRecurringSalesOrder.php trunk/SelectSalesOrder.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/Shipt_Select.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQties_csv.php trunk/StockQuantityByDate.php trunk/StockTransfers.php trunk/StockUsage.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppFixedAssetChgs.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SuppPriceList.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTenderCreate.php trunk/SupplierTenders.php trunk/SupplierTransInquiry.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TaxGroups.php trunk/UpgradeDatabase.php trunk/UserSettings.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_UploadForm.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poRebuildDefault.php trunk/doc/Change.log Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AccountGroups.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -339,7 +339,7 @@ $sql = "SELECT groupname FROM accountgroups"; $groupresult = DB_query($sql, $db,$ErrMsg,$DbgMsg); if (!isset($_POST['ParentGroupName'])){ - echo '<option selected value="">' ._('Top Level Group').'</option>'; + echo '<option selected="selected" value="">' ._('Top Level Group').'</option>'; } else { echo '<option value="">' ._('Top Level Group').'</option>'; } Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AgedDebtors.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -467,7 +467,7 @@ <tr> <td>' . _('All balances or overdues only') . ':' . '</td> <td><select tabindex="3" name="All_Or_Overdues"> - <option selected value="All">' . _('All customers with balances') . '</option> + <option selected="selected" value="All">' . _('All customers with balances') . '</option> <option value="OverduesOnly">' . _('Overdue accounts only') . '</option> <option value="HeldOnly">' . _('Held accounts only') . '</option> </select> @@ -495,7 +495,7 @@ $result=DB_query($sql,$db); while ($myrow=DB_fetch_array($result)){ if ($myrow['currabrev'] == $_SESSION['CompanyRecord']['currencydefault']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -505,7 +505,7 @@ <tr> <td>' . _('Summary or detailed report') . ':' . '</td> <td><select tabindex="6" name="DetailedReport"> - <option selected value="No">' . _('Summary Report') . '</option> + <option selected="selected" value="No">' . _('Summary Report') . '</option> <option value="Yes">' . _('Detailed Report') . '</option> </select> </td> Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AgedSuppliers.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -295,7 +295,7 @@ <tr> <td>' . _('All balances or overdues only') . ':' . '</td> <td><select tabindex="3" name="All_Or_Overdues"> - <option selected value="All">' . _('All suppliers with balances') . '</option> + <option selected="selected" value="All">' . _('All suppliers with balances') . '</option> <option value="OverduesOnly">' . _('Overdue accounts only') . '</option> </select></td> </tr> @@ -308,7 +308,7 @@ while ($myrow=DB_fetch_array($result)){ if ($myrow['currabrev'] == $_SESSION['CompanyRecord']['currencydefault']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -318,7 +318,7 @@ <tr> <td>' . _('Summary or Detailed Report') . ':' . '</td> <td><select tabindex="5" name="DetailedReport"> - <option selected value="No">' . _('Summary Report') . '</option> + <option selected="selected" value="No">' . _('Summary Report') . '</option> <option value="Yes">' . _('Detailed Report') . '</option> </select></td> </tr> Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Areas.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -224,7 +224,7 @@ echo '<tr> <td colspan="2"> <div class="centre"> - <input tabindex="3" type="submit" name="submit" value=' . _('Enter Information') .' /> + <input tabindex="3" type="submit" name="submit" value="' . _('Enter Information') .'" /> </div> </td> </tr> Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/AuditTrail.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -49,7 +49,7 @@ echo '<option value="ALL">' . _('All') . '</option>'; while ($users = DB_fetch_row($UserResult)) { if (isset($_POST['SelectedUser']) and $users[0]==$_POST['SelectedUser']) { - echo '<option selected value="' . $users[0] . '">' . $users[0] . '</option>'; + echo '<option selected="selected" value="' . $users[0] . '">' . $users[0] . '</option>'; } else { echo '<option value="' . $users[0] . '">' . $users[0] . '</option>'; } @@ -62,9 +62,9 @@ echo '<option value="ALL">' . _('All') . '</option>'; while ($tables = DB_fetch_row($TableResult)) { if (isset($_POST['SelectedTable']) and $tables[0]==$_POST['SelectedTable']) { - echo '<option selected value=' . $tables[0] . '>' . $tables[0] . '</option>'; + echo '<option selected="selected" value="' . $tables[0] . '">' . $tables[0] . '</option>'; } else { - echo '<option value=' . $tables[0] . '>' . $tables[0] . '</option>'; + echo '<option value="' . $tables[0] . '">' . $tables[0] . '</option>'; } } echo '</select></td></tr>'; Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMExtendedQty.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -276,14 +276,14 @@ <tr> <td>' . _('Selection Option') . ':</td> <td><select name="Select"> - <option selected value="All">' . _('Show All Parts') . '</option> + <option selected="selected" value="All">' . _('Show All Parts') . '</option> <option value="Shortages">' . _('Only Show Shortages') . '</option> </select></td> </tr> <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select></td> </tr> Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMIndented.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -257,7 +257,7 @@ <tr> <td>' . _('Levels') . ':</td> <td><select name="Levels"> - <option selected value="All">' . _('All Levels') . '</option> + <option selected="selected" value="All">' . _('All Levels') . '</option> <option value="One">' . _('One Level') . '</option> </select> </td> @@ -265,7 +265,7 @@ <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select> </td> Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMIndentedReverse.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -245,7 +245,7 @@ <tr> <td>' . _('Print Option') . ':</td> <td><select name="Fill"> - <option selected value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> + <option selected="selected" value="yes">' . _('Print With Alternating Highlighted Lines') . '</option> <option value="no">' . _('Plain Print') . '</option> </select></td> </tr> Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BOMs.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -666,7 +666,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['LocCode']) and $myrow['loccode']==$_POST['LocCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -694,7 +694,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['WorkCentreAdded']) and $myrow['code']==$_POST['WorkCentreAdded']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -742,10 +742,10 @@ $_POST['AutoIssue'] = $_SESSION['AutoIssue']; } if ($_POST['AutoIssue']==0) { - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankAccounts.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -298,7 +298,7 @@ $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { if (isset($_POST['AccountCode']) and $myrow['accountcode']==$_POST['AccountCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -343,7 +343,7 @@ while ($myrow = DB_fetch_array($result)) { if ($myrow['currabrev']==$_POST['CurrCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -366,15 +366,15 @@ $db); while ($myrow = DB_fetch_array($result)) { if ($myrow['invoice']== 1) { - echo '<option selected value="1">'._('Fall Back Default').'</option> + echo '<option selected="selected" value="1">'._('Fall Back Default').'</option> <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; } elseif ($myrow['invoice']== 2) { echo '<option value="0">'._('No').'</option> - <option selected value="2">'._('Currency Default') . '</option> + <option selected="selected" value="2">'._('Currency Default') . '</option> <option value="1">'._('Fall Back Default').'</option>'; } else { - echo '<option selected value="0">'._('No').'</option> + echo '<option selected="selected" value="0">'._('No').'</option> <option value="2">'._('Currency Default') . '</option> <option value="1">'._('Fall Back Default').'</option>'; } Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankMatching.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -96,7 +96,7 @@ $resultBankActs = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultBankActs)){ if (isset($_POST['BankAccount']) and $myrow['accountcode']==$_POST['BankAccount']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } @@ -124,11 +124,11 @@ <td><select tabindex="4" name="Ostg_or_All">'; if ($_POST['Ostg_or_All']=='All'){ - echo '<option selected value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; + echo '<option selected="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') . '</option>'; - echo '<option selected value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; + echo '<option selected="selected" value="Ostdg">' . _('Show unmatched') . ' ' . $TypeName . ' ' . _('only') . '</option>'; } echo '</select></td> </tr>'; @@ -138,11 +138,11 @@ _('or all') . ' ' . $TypeName . ' ' . _('meeting the criteria') . ':</td> <td><select tabindex="5" name="First20_or_All">'; if ($_POST['First20_or_All']=='All'){ - echo '<option selected value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; + echo '<option selected="selected" value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; echo '<option value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; } else { echo '<option value="All">' . _('Show all') . ' ' . $TypeName . ' ' . _('in the date range') . '</option>'; - echo '<option selected value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; + echo '<option selected="selected" value="First20">' . _('Show only the first 20') . ' ' . $TypeName . '</option>'; } echo '</select></td> </tr>'; Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/BankReconciliation.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -115,7 +115,7 @@ while ($myrow=DB_fetch_array($AccountsResults)){ /*list the bank account names */ if (isset($_POST['BankAccount']) and $_POST['BankAccount']==$myrow['accountcode']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } @@ -342,13 +342,13 @@ </tr>'; if (isset($_POST['DoExchangeDifference'])){ - echo '<input type="hidden" name="DoExchangeDifference" value=' . $FXStatementBalance . ' />'; + echo '<input type="hidden" name="DoExchangeDifference" value="' . $FXStatementBalance . '" />'; if (!isset($_POST['BankStatementBalance'])){ $_POST['BankStatementBalance'] =0; } echo '<tr> <td colspan="6">' . _('Enter the actual bank statement balance') . ' (' . $CurrencyRow['currcode'] . ')</b></td> - <td class="number"><input type="text" name="BankStatementBalance" maxlength="15" size="15" value=' . locale_number_format($_POST['BankStatementBalance'],$CurrencyRow['currdecimalplaces']) . ' /><td> + <td class="number"><input type="text" name="BankStatementBalance" maxlength="15" size="15" value="' . locale_number_format($_POST['BankStatementBalance'],$CurrencyRow['currdecimalplaces']) . '" /><td> </tr> <tr> <td colspan="7" align="center"><input type="submit" name="PostExchangeDifference" value="' . _('Calculate and Post Exchange Difference') . '" onclick="return confirm(\'' . _('This will create a general ledger journal to write off the exchange difference in the current balance of the account. It is important that the exchange rate above reflects the current value of the bank account currency') . ' - ' . _('Are You Sure?') . '\');" /></td> Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/COGSGLPostings.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -265,7 +265,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Area']) and $myrow['areacode']==$_POST['Area']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -286,7 +286,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['StkCat']) and $myrow['categoryid']==$_POST['StkCat']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -308,7 +308,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['SalesType']) and $myrow['typeabbrev']==$_POST['SalesType']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -336,7 +336,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['GLCode']) and $myrow['accountcode']==$_POST['GLCode']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CompanyPreferences.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -288,7 +288,7 @@ while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrencyDefault']==$myrow['currabrev']){ - echo '<option selected value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency']. '</option>'; } @@ -313,7 +313,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['DebtorsAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -330,7 +330,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['CreditorsAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="' . $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -347,7 +347,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PayrollAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -364,7 +364,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['GRNAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -380,7 +380,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['RetainedEarnings']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -405,7 +405,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['FreightAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -422,7 +422,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['ExchangeDiffAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -439,7 +439,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PurchasesExchangeDiffAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -456,7 +456,7 @@ while ($myrow = DB_fetch_row($result)) { if ($_POST['PytDiscountAct']==$myrow[0]){ - echo '<option selected value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; + echo '<option selected="selected" value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } else { echo '<option value="'. $myrow[0] . '">' . $myrow[1] . ' ('.$myrow[0].')</option>'; } @@ -472,10 +472,10 @@ <td><select tabindex="23" name="GLLink_Debtors">'; if ($_POST['GLLink_Debtors']==0){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes'). '</option>'; } else { - echo '<option selected value="1">' . _('Yes'). '</option>'; + echo '<option selected="selected" value="1">' . _('Yes'). '</option>'; echo '<option value="0">' . _('No'). '</option>'; } @@ -487,10 +487,10 @@ <td><select tabindex="24" name="GLLink_Creditors">'; if ($_POST['GLLink_Creditors']==0){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } @@ -502,10 +502,10 @@ <td><select tabindex="25" name="GLLink_Stock">'; if ($_POST['GLLink_Stock']=='0'){ - echo '<option selected value="0">' . _('No') . '</option>'; + echo '<option selected="selected" value="0">' . _('No') . '</option>'; echo '<option value="1">' . _('Yes') . '</option>'; } else { - echo '<option selected value="1">' . _('Yes') . '</option>'; + echo '<option selected="selected" value="1">' . _('Yes') . '</option>'; echo '<option value="0">' . _('No') . '</option>'; } Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -1645,7 +1645,7 @@ $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><option value="CAN">'._('Cancel any quantities not delivered').'</option></select></td> + <td><select tabindex='.$j.' name="BOPolicy"><option selected="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/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/ContractBOM.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -296,10 +296,10 @@ <tr></tr> <tr><td><select name="StockCat">'; - echo '<option selected="true" value="All">' . _('All').'</option>'; + echo '<option selected="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>'; + echo '<option selected="selected" value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Contracts.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -852,7 +852,7 @@ while ($myrow=DB_fetch_array($result)){ if (!isset($_SESSION['Contract'.$identifier]->CategoryID) or $myrow['categoryid']==$_SESSION['Contract'.$identifier]->CategoryID){ - echo '<option selected="True" value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; + echo '<option selected="selected" value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow['categoryid'] . '">' . $myrow['categorydescription'].'</option>'; } @@ -869,7 +869,7 @@ <td><select name="LocCode" >'; while ($myrow=DB_fetch_array($result)){ if (!isset($_SESSION['Contract'.$identifier]->LocCode) or $myrow['loccode']==$_SESSION['Contract'.$identifier]->LocCode){ - echo '<option selected="True" value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="'. $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CounterSales.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -871,7 +871,7 @@ echo '<tr><td>' . _('Payment Type') . ':</td><td><select name="PaymentMethod">'; while ($PaymentMethodRow = DB_fetch_array($PaymentMethodsResult)){ if (isset($_POST['PaymentMethod']) AND $_POST['PaymentMethod'] == $PaymentMethodRow['paymentid']){ - echo '<option selected="True" value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; + echo '<option selected="selected" value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; } else { echo '<option value="' . $PaymentMethodRow['paymentid'] . '">' . $PaymentMethodRow['paymentname'] . '</option>'; } @@ -885,7 +885,7 @@ <td><select name="BankAccount">'; while ($BankAccountsRow = DB_fetch_array($BankAccountsResult)){ if (isset($_POST['BankAccount']) AND $_POST['BankAccount'] == $BankAccountsRow['accountcode']){ - echo '<option selected="True" value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; + echo '<option selected="selected" value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $BankAccountsRow['accountcode'] . '">' . $BankAccountsRow['bankaccountname'] . '</option>'; } @@ -2149,7 +2149,7 @@ echo '<table class="selection"><tr><td><b>' . _('Select a Stock Category') . ': </b><select tabindex="1" name="StockCat">'; if (!isset($_POST['StockCat'])){ - echo '<option selected="true" value="All">' . _('All').'</option>'; + echo '<option selected="selected" value="All">' . _('All').'</option>'; $_POST['StockCat'] ='All'; } else { echo '<option value="All">' . _('All').'</option>'; @@ -2162,7 +2162,7 @@ $result1 = DB_query($SQL,$db); while ($myrow1 = DB_fetch_array($result1)) { if ($_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="true" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } else { echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'].'</option>'; } Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CreditStatus.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> + ' tabindex=2 type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Credit_Invoice.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -1443,17 +1443,17 @@ <td><select tabindex=' . $j .' name="CreditType">'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ - echo '<option selected value="Return">' . _('Goods returned to store') . '</option>'; + echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option>'; echo '<option value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } elseif($_POST['CreditType']=='WriteOff') { - echo '<option selected value="WriteOff">' . _('Goods written off') . '</option>'; + echo '<option selected="selected" value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="Return">' . _('Goods returned to store') . '</option>'; echo '<option value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } else { echo '<option value="WriteOff">' . _('Goods written off') . '</option>'; echo '<option value="Return">' . _('Goods returned to store') . '</option>'; - echo '<option selected value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; + echo '<option selected="selected" value="ReverseOverCharge">' . _('Reverse overcharge') . '</option>'; } echo '</select></td></tr>'; $j++; @@ -1473,7 +1473,7 @@ while ($myrow = DB_fetch_array($Result)) { if ($_POST['Location']==$myrow['loccode']){ - echo '<option selected value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } @@ -1497,9 +1497,9 @@ while ($myrow = DB_fetch_array($Result)) { if ($_POST['WriteOffGLCode']==$myrow['accountcode']){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountname']. '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['accountname']. '</option>'; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountname'] . '</option>'; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['accountname'] . '</option>'; } } echo '</select></td></tr>'; @@ -1509,7 +1509,7 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value=' . _('Update') . ' /><br />'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value="' . _('Update') . '" /><br />'; $j++; echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Currencies.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -392,7 +392,7 @@ if (!isset($_POST['ExchangeRate'])) { $_POST['ExchangeRate']=''; } - echo '<input ' . (in_array('ExchangeRate',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="ExchangeRate" size="10" maxlength="9" value="'. $_POST['ExchangeRate'].'"></td> + echo '<input ' . (in_array('ExchangeRate',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="ExchangeRate" size="10" maxlength="9" value="'. $_POST['ExchangeRate'].'" /></td> </tr> </table>'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustEDISetup.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -101,11 +101,11 @@ if ($myrow['ediinvoices']==0){ - echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option selected="selected" value="0">'._('Disabled') . '</option>'; echo '<option value="1">'._('Enabled'). '</option>'; } else { echo '<option value="0">'._('Disabled') . '</option>'; - echo '<option selected value="1">'._('Enabled') . '</option>'; + echo '<option selected="selected" value="1">'._('Enabled') . '</option>'; } echo '</select><a href="' . $rootpath . '/EDIMessageFormat.php?MessageType=INVOIC&PartnerCode=' . $_SESSION['CustomerID'] . '">'._('Create') . '/' . _('Edit Invoice Message Format').'</a></td> @@ -116,11 +116,11 @@ if ($myrow['ediorders']==0){ - echo '<option selected value="0">'._('Disabled') . '</option>'; + echo '<option selected="selected" value="0">'._('Disabled') . '</option>'; echo '<option value="1">'._('Enabled') . '</option>'; } else { echo '<option value="0">'._('Disabled') . '</option>'; - echo '<option selected value="1">'._('Enabled') . '</option>'; + echo '<option selected="selected" value="1">'._('Enabled') . '</option>'; } echo '</select></td> @@ -128,24 +128,24 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '"></td></tr>'; + ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> <td><select tabindex="4" name="EDITransport" >'; if ($myrow['editransport']=='email'){ - echo '<option selected value="email">'._('Email Attachments') . '</option>'; + echo '<option selected="selected" value="email">'._('Email Attachments') . '</option>'; echo '<option value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; } else { echo '<option value="email">'._('Email Attachments') . '</option>'; - echo '<option selected value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; + echo '<option selected="selected" value="ftp">'._('File Transfer Protocol (FTP)') . '</option>'; } echo '</select></td></tr>'; echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '"></td></tr>'; + ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; if ($myrow['editransport']=='ftp'){ Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustLoginSetup.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -177,7 +177,7 @@ } if (isset($_POST['BranchCode']) and $myrow['branchcode'] == $_POST['BranchCode']){ - echo '<option selected value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; } else { echo '<option value="' . $myrow['branchcode'] . '">' . $myrow['branchcode'] . '</option>'; } @@ -187,42 +187,42 @@ <td><select name="PageSize">'; if(isset($_POST['PageSize']) and $_POST['PageSize']=='A4'){ - echo '<option selected value="A4">' . _('A4') .'</option>'; + echo '<option selected="selected" value="A4">' . _('A4') .'</option>'; } else { echo '<option value="A4">' . _('A4') . '</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='A3'){ - echo '<option selected value="A3">' . _('A3') .'</option>'; + echo '<option selected="selected" value="A3">' . _('A3') .'</option>'; } else { echo '<option value="A3">' . _('A3') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='A3_landscape'){ - echo '<option selected value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="A3_landscape">' . _('A3') . ' ' . _('landscape') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='letter'){ - echo '<option selected value="letter">' . _('Letter') .'</option>'; + echo '<option selected="selected" value="letter">' . _('Letter') .'</option>'; } else { echo '<option value="letter">' . _('Letter') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='letter_landscape'){ - echo '<option selected value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="letter_landscape">' . _('Letter') . ' ' . _('landscape') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='legal'){ - echo '<option selected value="legal">' . _('Legal') .'</option>'; + echo '<option selected="selected" value="legal">' . _('Legal') .'</option>'; } else { echo '<option value="legal">' . _('Legal') .'</option>'; } if(isset($_POST['PageSize']) and $_POST['PageSize']=='legal_landscape'){ - echo '<option selected value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; + echo '<option selected="selected" value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; } else { echo '<option value="legal_landscape">' . _('Legal') . ' ' . _('landscape') .'</option>'; } @@ -240,9 +240,9 @@ if (is_dir('css/' . $ThemeName) AND $ThemeName != '.' AND $ThemeName != '..' AND $ThemeName != '.svn'){ if (isset($_POST['Theme']) and $_POST['Theme'] == $ThemeName){ - echo '<option selected value="' . $ThemeName . '">' . $ThemeName .'</option>'; + echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName .'</option>'; } else if (!isset($_POST['Theme']) and ($_SESSION['DefaultTheme']==$ThemeName)) { - echo '<option selected value="' . $ThemeName . '">' . $ThemeName .'</option>'; + echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName .'</option>'; } else { echo '<option value="' . $ThemeName . '">' . $ThemeName .'</option>'; } @@ -257,9 +257,9 @@ foreach ($LanguagesArray as $LanguageEntry => $LanguageName){ if (isset($_POST['UserLanguage']) and $_POST['UserLanguage'] == $LanguageEntry){ - echo '<option selected value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } elseif (!isset($_POST['UserLanguage']) AND $LanguageEntry == $DefaultLanguage) { - echo '<option selected value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } else { echo '<option value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] .'</option>'; } Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustWhereAlloc.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -22,7 +22,7 @@ while ($myrow=DB_fetch_array($resultTypes)){ if (isset($_POST['TransType'])){ if ($myrow['typeid'] == $_POST['TransType']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerAllocations.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -401,7 +401,7 @@ echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { - echo ' value=' . True . ' />'; + echo ' value="' . True . '" />'; } else { echo ' />'; } Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerBranches.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -692,11 +692,11 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Salesman']) and $myrow['salesmancode']==$_POST['Salesman']) { - echo '<option selected value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['salesmancode'] . '>' . $myrow['salesmanname'] . '</option>'; + echo $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } //end while loop @@ -720,7 +720,7 @@ <td><select tabindex="14" name="Area">'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['Area']) and $myrow['areacode']==$_POST['Area']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -750,7 +750,7 @@ while ($myrow = DB_fetch_array($result)) { if (isset($_POST['DefaultLocation']) and $myrow['loccode']==$_POST['DefaultLocation']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -800,7 +800,7 @@ while ($myrow = DB_fetch_array($TaxGroupResults)) { if (isset($_POST['TaxGroup']) and $myrow['taxgroupid']==$_POST['TaxGroup']) { - echo '<option selected value="'; + echo '<option selected="selected" value="'; } else { echo '<option value="'; } @@ -814,10 +814,10 @@ <td>'._('Transactions on this branch') . ':</td> <td><select tabindex="20" name="DisableTrans">'; if ($_POST['DisableTrans']==0){ - echo '<option selected value="0">' . _('Enabled') . '</option> + echo '<option selected="selected" value="0">' . _('Enabled') . '</option> <option value="1">' . _('Disabled') . '</option>'; } else { - echo '<option selected value="1">' . _('Disabled') . '</option> + echo '<option selected="selected" value="1">' . _('Disabled') . '</option> <option value="0">' . _('Enabled') . '</option>'; } @@ -838,9 +838,9 @@ <td><select tabindex="21" name="DefaultShipVia">'; while ($myrow=DB_fetch_array($ShipperResults)){ if (isset($_POST['DefaultShipVia'])and $myrow['shipper_id']==$_POST['DefaultShipVia']){ - echo '<option selected value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['shipper_id'] . '">' . $myrow['shippername'] . '</option>'; }else { - echo '<option value=' . $myrow['shipper_id'] . '>' . $myrow['shippername'] . '</option>'; + echo '<option value="' . $myrow['shipper_id'] . '">' . $myrow['shippername'] . '</option>'; } } @@ -855,9 +855,9 @@ <td><select tabindex="22" name="DeliverBlind">'; if ($_POST['DeliverBlind']==2){ echo '<option value="1">' . _('Show company details and logo') . '</option> - <option selected value="2">' . _('Hide company details and logo') . '</option>'; + <option selected="selected" value="2">' . _('Hide company details and logo') . '</option>'; } else { - echo '<option selected value="1">' . _('Show company details and logo') . '</option> + echo '<option selected="selected" value="1">' . _('Show company details and logo') . '</option> <option value="2">' . _('Hide company details and logo') . '</option>'; } Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerReceipt.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -767,7 +767,7 @@ while ($myrow=DB_fetch_array($AccountsResults)){ /*list the bank account names */ if ($_SESSION['ReceiptBatch']->Account==$myrow['accountcode']){ - echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . ' - ' . $myrow['currcode'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname']. ' - ' . $myrow['currcode'] . '</option>'; } @@ -801,7 +801,7 @@ } else { while ($myrow=DB_fetch_array($result)){ if ($_SESSION['ReceiptBatch']->Currency==$myrow['currabrev']){ - echo '<option selected value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } @@ -860,7 +860,7 @@ foreach ($ReceiptTypes as $RcptType) { if (isset($_POST['ReceiptType']) and $_POST['ReceiptType']==$RcptType){ - echo '<option selected value="' . $RcptType . '">' . $RcptType .'</option>'; + echo '<option selected="selected" value="' . $RcptType . '">' . $RcptType .'</option>'; } else { echo '<option value="' .$RcptType . '">' . $RcptType .'</option>'; } @@ -1008,9 +1008,9 @@ echo '<option value="0"></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>'; + echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } } echo '</select></td> @@ -1031,9 +1031,9 @@ echo '<option value=""></option>'; while ($myrow=DB_fetch_array($result)){ if ($_POST['GLCode']==$myrow['accountcode']){ - echo '<option selected value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; } else { - echo '<option value=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' - ' . $myrow['accountname'] . '</option>'; } } echo '</select></td> Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerTransInquiry.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -32,7 +32,7 @@ while ($myrow=DB_fetch_array($resultTypes)){ if (isset($_POST['TransType'])){ if ($myrow['typeid'] == $_POST['TransType']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/CustomerTypes.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -240,7 +240,7 @@ $_POST['typename'] = $myrow['typename']; echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '" />'; - echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '" />'; + echo '<input type="hidden" name="typeid" value="' . $_POST['typeid'] . '" />'; echo '<table class="selection">'; // We dont allow the user to change an existing type code Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-01-23 22:18:42 UTC (rev 4836) +++ trunk/Customers.php 2012-01-24 23:41:46 UTC (rev 4837) @@ -575,9 +575,9 @@ <td><select tabindex="17" name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrCode']==$myrow['currabrev']){ - echo '<option selected value='. $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { - echo '<option value='. $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } } //end while loop DB_data_seek($result,0); @@ -589,7 +589,7 @@ echo '<tr> <td>' . _('Customer PO Line on SO') . ':</td> <td><select tabindex="18" name="CustomerPOLine"> - <option selected value="0">' . _('No') . '</option> + <option selected="selected" value="0">' . _('No') . '</option> <option value="1">' . _('Yes') . '</option> </select> </td> @@ -597,7 +597,7 @@ <tr> <td>' . _('Invoice Addressing') . ':</td> <td><select tabindex="19" name="AddrInvBranch"> - <option selected value="0">' . _('Address to HO') . '</option> + <option selected="selected" value="0">' . _('Address to HO') . '</option> <option value="1">' . _('Address to Branch') . '</option> </select> </td> @@ -767,7 +767,7 @@ <td><select name="SalesType">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['SalesType']==$myrow['typeabbrev']){ - echo '<option selected value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; } else { echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; } @@ -790,7 +790,7 @@ <td><select name="typeid">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['typeid']==$myrow['typeid']){ - echo '<option selected value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } else { echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } @@ -842,11 +842,11 @@ </tr> <tr> <td>' . _('Discount Code') . ':</td> - <td><input ' . (in_array('DiscountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DiscountCode" size="3" maxlength="2" value="' . $_POST['DiscountCode'] . '"></td> + <td><input ' . (in_array('DiscountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DiscountCode" size="3" maxlength="2" value="' . $_POST['DiscountCode'] . '" /></td> </tr> <tr> <td>' . _('Payment Discount Percent') . ':</td> - <td><input ' . (in_array('PymtDiscount',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="PymtDiscount" size="5" maxlength="4" value="' . $_POST['PymtDiscount'] . '"></td> + <td><input ' . (in_array('PymtDiscount',$Errors) ? 'class="inputerror"' : '' ) .' type="text" class="number" name="PymtDiscount" size="5" maxlength="4" value="' . $_POST['PymtDiscount'] . '" /></td> </tr> <tr> <td>' . _('Credit Limit') . ':</td> @@ -872,7 +872,7 @@ <td><select name="PaymentTerms">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['PaymentTerms']==$myrow['termsindicator']){ - echo '<option selected value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; } else { echo '<option value="'. $myrow['termsindicator'] . '">' . $myrow['terms'] . '</option>'; } @@ -896,7 +896,7 @@ <td><select name="HoldReason">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['HoldReason']==$myrow['reasoncode']){ - echo '<option selected value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; } else { echo '<option value="'. $myrow['reasoncode'] . '">' . $myrow['reasondescription'] . '</option>'; } @@ -919,7 +919,7 @@ <td><select name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrCode']==$myrow['currabrev']){ - echo '<option selected value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { echo '<option value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</o... [truncated message content] |
From: <vv...@us...> - 2012-01-25 23:03:14
|
Revision: 4839 http://web-erp.svn.sourceforge.net/web-erp/?rev=4839&view=rev Author: vvs2012 Date: 2012-01-25 23:03:03 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Added quotes and missing closing tags in multiple files Modified Paths: -------------- trunk/ConfirmDispatch_Invoice.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/FixedAssetItems.php trunk/FormDesigner.php trunk/GLBudgets.php trunk/GeocodeSetup.php trunk/MRP.php trunk/MRPReport.php trunk/PDFDIFOT.php trunk/PDFOrdersInvoiced.php trunk/PO_Items.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PurchData.php trunk/ReorderLevelLocation.php trunk/SalesCategories.php trunk/SalesGraph.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSupplier.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCostUpdate.php trunk/StockLocTransferReceive.php trunk/StockTransfers.php trunk/Stocks.php trunk/SuppCreditGRNs.php trunk/SuppInvGRNs.php trunk/SuppShiptChgs.php trunk/SupplierAllocations.php trunk/SupplierCredit.php trunk/SupplierTenderCreate.php trunk/Suppliers.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TopItems.php trunk/UnitsOfMeasure.php trunk/UserSettings.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/Z_ReApplyCostToSA.php trunk/Z_UpdateChartDetailsBFwd.php trunk/doc/Change.log trunk/install/index.php Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -476,14 +476,14 @@ OR $_POST['ChargeFreightCost']==0)) { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td> - <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; + <td><input tabindex="'.$j.'" type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; $_SESSION['Items'.$identifier]->FreightCost=0; } else { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td>'; if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" /></td>'; + echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" /></td>'; } $_POST['ChargeFreightCost'] = locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces); } @@ -1635,17 +1635,17 @@ echo '<table class="selection"> <tr> <td>' ._('Date On Invoice'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> + <td><input tabindex="'.$j.'" type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> </tr>'; $j++; echo '<tr> <td>' . _('Consignment Note Ref'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> + <td><input tabindex="'.$j.'" type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> </tr>'; $j++; echo '<tr> <td>'._('Action For Balance'). ':</td> - <td><select tabindex='.$j.' name="BOPolicy"><option selected="selected" value="BO">'._('Automatically put balance on back order').'</option><option value="CAN">'._('Cancel any quantities not delivered').'</option></select></td> + <td><select tabindex="'.$j.'" name="BOPolicy"><option selected="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/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CounterSales.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -2137,7 +2137,7 @@ #end of page full new headings if } #end of while loop for Frequently Ordered Items - echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+8).' type="submit" value="'._('Add to Sale').'" /></td>'; + echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+8).'" type="submit" value="'._('Add to Sale').'" /></td>'; echo '</table>'; } //end of if Frequently Ordered Items > 0 if (isset($msg)){ Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CreditStatus.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> + ' tabindex="2" type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/Credit_Invoice.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -315,19 +315,19 @@ if ($LnItm->Controlled==1){ - echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '" /><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '"></td>'; + echo '<td><input tabindex="' . $j . '" type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '" /></td>'; } $DisplayLineTotal = locale_number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $j++; - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '"></td> - <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '"></td> + echo '<td><input tabindex="' . $j . '" type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '" /></td> + <td><input tabindex="' . $j . '" type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '" /></td> <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ @@ -355,7 +355,7 @@ } if (!isset($_POST['ProcessCredit'])) { echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . - '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">'; + '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '" />'; } $i++; if ($Tax->TaxOnTax ==1){ @@ -380,7 +380,7 @@ <td class="number">' . $DisplayGrossLineTotal . '</td> <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; - echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; + echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex="' . $j .'" name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; } } /*end foreach loop displaying the invoice lines to credit */ @@ -395,7 +395,7 @@ <td class="number">' . locale_number_format($_SESSION['Old_FreightCost'],$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> <td></td> <td colspan="2" class="number">' . _('Credit Freight Cost') . '</td> - <td><input tabindex='.$j.' type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '"></td>'; + <td><input tabindex="'.$j.'" type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '" /></td>'; echo '<td>'; echo '</td><td>'; @@ -1440,7 +1440,7 @@ echo '<br /><table class="selection">'; echo '<tr><td>' . _('Credit Note Type') . '</td> - <td><select tabindex=' . $j .' name="CreditType">'; + <td><select tabindex="' . $j .'" name="CreditType">'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option>'; @@ -1462,7 +1462,7 @@ /*if the credit note is a return of goods then need to know which location to receive them into */ - echo '<tr><td>' . _('Goods returned to location') . '</td><td><select tabindex='.$j.' name=Location>'; + echo '<tr><td>' . _('Goods returned to location') . '</td><td><select tabindex="'.$j.'" name="Location">'; $SQL="SELECT loccode, locationname FROM locations"; $Result = DB_query($SQL,$db); @@ -1483,7 +1483,7 @@ } elseif($_POST['CreditType']=='WriteOff') { /* the goods are to be written off to somewhere */ - echo '<tr><td>' . _('Write off the cost of the goods to') . '</td><td><select tabindex=' . $j .' name="WriteOffGLCode">'; + echo '<tr><td>' . _('Write off the cost of the goods to') . '</td><td><select tabindex="' . $j .'" name="WriteOffGLCode">'; $SQL="SELECT accountcode, accountname @@ -1508,10 +1508,10 @@ $_POST['CreditText'] = ''; } $j++; - echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value="' . _('Update') . '" /><br />'; + echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex="' . $j . '" name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; + echo '</table><br /><div class="centre"><input tabindex="' . $j . '" type="submit" name="Update" value="' . _('Update') . '" /><br />'; $j++; - echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; + echo '<input type="submit" tabindex="'.$j++.'" name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } echo '</form>'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CustEDISetup.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -128,7 +128,7 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; + ' tabindex="3" type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> <td><select tabindex="4" name="EDITransport" >'; @@ -145,7 +145,7 @@ echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; + ' tabindex="5" type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; if ($myrow['editransport']=='ftp'){ Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CustomerAllocations.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -401,7 +401,7 @@ echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { - echo ' value="' . True . '" />'; + echo ' checked="checked" />'; } else { echo ' />'; } @@ -421,7 +421,7 @@ <td class="number"><b><u>' . locale_number_format($TotalAllocated,$_SESSION['Alloc']->CurrDecimalPlaces) . '</u></b></td>'; $j++; echo '<td colspan="2"> - <input tabindex='.$j.' type="submit" name="RefreshAllocTotal" value="' . _('Recalculate Total To Allocate') . '" /></td> + <input tabindex="'.$j.'" type="submit" name="RefreshAllocTotal" value="' . _('Recalculate Total To Allocate') . '" /></td> <tr> <td colspan="5" class="number"><b>'._('Left to allocate').'</b></td> <td class="number"><b>' . locale_number_format(-$_SESSION['Alloc']->TransAmt-$TotalAllocated,$_SESSION['Alloc']->CurrDecimalPlaces).'</b></td> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/FixedAssetItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -477,7 +477,7 @@ '&text='. '&width=64'. '&height=64'. - '" >'; + '" />'; } else { if( isset($AssetID) and file_exists($_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg') ) { $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" />'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/FormDesigner.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -23,9 +23,9 @@ } echo '</select></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; /* Display the Y co-ordinate (mm from the top of the page) */ - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } function MultiTextLine($key) { /* Displays a table row containing the attributes for a @@ -43,11 +43,11 @@ } echo '</select></td>'; /* Display the length of the field in mm */ - echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'"></td></tr><tr>'; + echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'" /></td></tr><tr>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; /* Display the Y co-ordinate (mm from the top of the page) */ - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } function DataTextLine($key) { /* Displays a table row containing the attributes for a @@ -65,9 +65,9 @@ } echo '</select></td>'; /* Display the length of the field in mm */ - echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'"></td>'; + echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'" /></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; } /* If the user has chosen to either preview the form, or * save it then we first have to get the POST values into a @@ -183,10 +183,10 @@ switch ($key['type']) { case 'image': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; @@ -221,7 +221,7 @@ echo '<td>'.$subkey['name'].'</td>'; DataTextLine($subkey); } elseif ($subkey['type']=='StartLine') { - echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } echo '</tr>'; } @@ -231,29 +231,29 @@ break; case 'CurvedRectangle': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td></tr><tr>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; - echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td></tr><tr>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; + echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Rectangle': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td></tr><tr>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td></tr><tr>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Line': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'"></td>'; - echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'"></td></tr><tr>'; - echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'"></td>'; - echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'"></td>'; + echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'" /></td>'; + echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'" /></td></tr><tr>'; + echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'" /></td>'; + echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/GLBudgets.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -188,7 +188,7 @@ echo '<td><input type="text" class="number" size="14" name="'.$i.'last" value="'.locale_number_format($Budget[$CurrentYearEndPeriod-(24-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod-(12-$i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; - echo '<td><input type="text" class="number" size="14" name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; + echo '<td><input type="text" class="number" size="14" name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod+($i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; echo '<td><input type="text" class="number" size="14" name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; Modified: trunk/GeocodeSetup.php =================================================================== --- trunk/GeocodeSetup.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/GeocodeSetup.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -239,7 +239,7 @@ // <tr> // <td>'. _('Geocode Code') .":</td> // <td><input " . (in_array('GeoCodeID',$Errors) ? 'class="inputerror"' : '' ) . -// " tabindex=1 type='Text' name='GeoCodeID' value='". $_POST['GeoCodeID'] ."' size="3" maxlength="2"></td> +// " tabindex="1" type='Text' name='GeoCodeID' value='". $_POST['GeoCodeID'] ."' size="3" maxlength="2"></td> // </tr>"; } @@ -249,7 +249,7 @@ echo '<br /><tr> <td>'. _('Geocode Key') .':</td> <td><input ' . (in_array('GeoCode_Key',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="GeoCode_Key" value="'. $_POST['GeoCode_Key'] .'" size="28" maxlength="300" /> + ' tabindex="2" type="text" name="GeoCode_Key" value="'. $_POST['GeoCode_Key'] .'" size="28" maxlength="300" /> </td></tr> <tr><td>'. _('Geocode Center Long') . '</td> Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/MRP.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -582,7 +582,7 @@ <tr> <td>' . _('Location') . '</td> <td><select name="location[]" multiple> - <option value="All" selected>' . _('All') . '</option>'; + <option value="All" selected="selected">' . _('All') . '</option>'; $sql = "SELECT loccode, locationname FROM locations"; Modified: trunk/MRPReport.php =================================================================== --- trunk/MRPReport.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/MRPReport.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -726,7 +726,7 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value="' . $ListPage . '" selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } Modified: trunk/PDFDIFOT.php =================================================================== --- trunk/PDFDIFOT.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PDFDIFOT.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -29,7 +29,7 @@ echo '<table class="selection"> <tr> <td>' . _('Enter the date from which variances between orders and deliveries are to be listed') . ':</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m')-1,0,Date('y'))) . '"></td> + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m')-1,0,Date('y'))) . '" /></td> </tr>'; echo '<tr> <td>' . _('Enter the date to which variances between orders and deliveries are to be listed') . ':</td> Modified: trunk/PDFOrdersInvoiced.php =================================================================== --- trunk/PDFOrdersInvoiced.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PDFOrdersInvoiced.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -38,7 +38,7 @@ echo '<table class="selection"> <tr> <td>' . _('Enter the date from which orders are to be listed') . ':</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] .'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '"></td> + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] .'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which orders are to be listed') . ':</td> <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td></tr>'; Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PO_Items.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -697,12 +697,12 @@ <td class="number">' . locale_number_format($POLine->Quantity,$POLine->DecimalPlaces) . '</td> <td>' . $POLine->Units . '</td> <td class="number">' . $DisplayPrice . '</td> - <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '"></td> - <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . locale_number_format(round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces),$POLine->DecimalPlaces) . '"></td> + <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '" /></td> + <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . locale_number_format(round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces),$POLine->DecimalPlaces) . '" /></td> <td>' . $POLine->SuppliersUnit . '</td> - <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . locale_number_format(round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> + <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . locale_number_format(round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'" /></td> <td class="number">' . $DisplayLineTotal . '</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'"></td>'; + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'" /></td>'; if ($POLine->QtyReceived !=0 AND $POLine->Completed!=1){ echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier .'&Complete=' . $POLine->LineNo . '">' . _('Complete') . '</a></td>'; } elseif ($POLine->QtyReceived ==0) { Modified: trunk/PricesByCost.php =================================================================== --- trunk/PricesByCost.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PricesByCost.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -162,11 +162,11 @@ $k = 0; //row colour counter echo '<form action="' .htmlspecialchars($_SERVER['PHP_SELF']) .'" method="POST" name="update">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo'<input type="hidden" value=' . $_POST['StockCat'] . ' name="StockCat" /> - <input type="hidden" value=' . $_POST['Margin'] . ' name="Margin" /> - <input type="hidden" value=' . $_POST['CurrCode'] . ' name="CurrCode" /> - <input type="hidden" value=' . $_POST['Comparator'] . ' name="Comparator" /> - <input type="hidden" value=' . $_POST['SalesType'] . ' name="SalesType" />'; + echo'<input type="hidden" value="' . $_POST['StockCat'] . '" name="StockCat" /> + <input type="hidden" value="' . $_POST['Margin'] . '" name="Margin" /> + <input type="hidden" value="' . $_POST['CurrCode'] . '" name="CurrCode" /> + <input type="hidden" value="' . $_POST['Comparator'] . '" name="Comparator" /> + <input type="hidden" value="' . $_POST['SalesType'] . '" name="SalesType" />'; $PriceCounter =0; while ($myrow = DB_fetch_array($result)) { @@ -186,11 +186,11 @@ } /*end of else Cost */ //variables for update - echo '<input type="hidden" value=' . $myrow['stockid'] . ' name="StockID_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['debtorno'] . ' name="DebtorNo_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['branchcode'] . ' name="BranchCode_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['startdate'] . ' name="StartDate_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['enddate'] . ' name="EndDate_' . $PriceCounter .'" />'; + echo '<input type="hidden" value="' . $myrow['stockid'] . '" name="StockID_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['debtorno'] . '" name="DebtorNo_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['branchcode'] . '" name="BranchCode_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['startdate'] . '" name="StartDate_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['enddate'] . '" name="EndDate_' . $PriceCounter .'" />'; //variable for current margin if ($myrow['price'] != 0){ $CurrentGP = (($myrow['price']/$myrow['rate'])-$Cost)*100 / ($myrow['price']/$myrow['rate']); @@ -218,7 +218,7 @@ $PriceCounter++; } //end of looping echo '<tr> - <td style="text-align:right" colspan="4"><input type="submit" name="submit" value=' . _('Update') . ' onclick="return confirm(\'' . _('If the prices above do not have a commencement date as today, this will create new prices with commencement date of today at the entered figures and update the existing prices with historical start dates to have an end date of yesterday. Are You Sure?') . '\');" /></td> + <td style="text-align:right" colspan="4"><input type="submit" name="submit" value="' . _('Update') . '" onclick="return confirm(\'' . _('If the prices above do not have a commencement date as today, this will create new prices with commencement date of today at the entered figures and update the existing prices with historical start dates to have an end date of yesterday. Are You Sure?') . '\');" /></td> <td style="text-align:left" colspan="3"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"><input type="submit" value="' . _('Back') . '" /></a></td> </tr></form>'; } else { @@ -257,7 +257,7 @@ if (!isset($_POST['Margin'])){ $_POST['Margin']=1; } - echo '<td><input type="text" class="number" name="Margin" maxlength="8" size="8" value=' .$_POST['Margin'] . ' /></td></tr>'; + echo '<td><input type="text" class="number" name="Margin" maxlength="8" size="8" value="' .$_POST['Margin'] . '" /></td></tr>'; $result = DB_query("SELECT typeabbrev, sales_type FROM salestypes", $db); echo '<tr><td>' . _('Sales Type') . '/' . _('Price List') . ':</td> <td><select name="SalesType">'; @@ -275,9 +275,9 @@ <td><select name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['CurrCode']) and $_POST['CurrCode'] == $myrow['currabrev']) { - echo '<option selected="selected" value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { - echo '<option value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } } //end while loop DB_data_seek($result, 0); Modified: trunk/Prices_Customer.php =================================================================== --- trunk/Prices_Customer.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/Prices_Customer.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -331,9 +331,9 @@ while ($myrow=DB_fetch_array($result)) { if ($myrow['branchcode']==$_POST['branch']) { - echo '<option selected="selected" value='.$myrow['branchcode'].'>'.$myrow['brname'].'</option>'; + echo '<option selected="selected" value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } else { - echo '<option value='.$myrow['branchcode'].'>'.$myrow['brname'].'</option>'; + echo '<option value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } } echo '</select></td></tr>'; Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PurchData.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -481,7 +481,7 @@ echo '<tr><td>' . _('Currency') . ':</td> <td><input type="hidden" name="CurrCode" . value="' . $CurrCode . '" />' . $CurrCode . '</td></tr>'; echo '<tr><td>' . _('Price') . ' (' . _('in Supplier Currency') . '):</td> - <td><input type="text" class="number" name="Price" maxlength="12" size="12" value=' . $_POST['Price'] . ' /></td></tr>'; + <td><input type="text" class="number" name="Price" maxlength="12" size="12" value="' . $_POST['Price'] . '" /></td></tr>'; echo '<tr><td>' . _('Date Updated') . ':</td> <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveFrom" maxlength="10" size="11" value="' . $_POST['EffectiveFrom'] . '" /></td></tr>'; echo '<tr><td>' . _('Our Unit of Measure') . ':</td>'; Modified: trunk/ReorderLevelLocation.php =================================================================== --- trunk/ReorderLevelLocation.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/ReorderLevelLocation.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -88,7 +88,7 @@ //variable for update data - echo'<input type="hidden" value=' . $_POST['order'] . ' name='. _('order').' /> + echo'<input type="hidden" value="' . $_POST['order'] . '" name='. _('order').' /> <input type="hidden" value="' . $_POST['StockLocation'] . '" name="StockLocation" /> <input type="hidden" value="' . $_POST['StockCat'] . '" name="StockCat" /> <input type="hidden" value="' . locale_number_format($_POST['NumberOfDays'],0) . '" name="NumberOfDays" />'; @@ -145,7 +145,7 @@ $i++; } //end of looping echo'<tr> - <td style="text-align:center" colspan="7"><input type="submit" name="submit" value=' . _('Update') . ' /></td> + <td style="text-align:center" colspan="7"><input type="submit" name="submit" value="' . _('Update') . '" /></td> </tr> </form>'; Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SalesCategories.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -240,7 +240,7 @@ '&text='. '&width=32'. '&height=32'. - '" >'; + '" />'; } else { if( file_exists($_SESSION['part_pics_dir'] . '/' .'cat_'.$myrow['salescatid'].'.jpg') ) { $CatImgLink = '<img src="'.$rootpath . '/' . $_SESSION['part_pics_dir'] . '/' . Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SalesGraph.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -179,8 +179,8 @@ <input type="radio"" name="GraphOn" value="All" CHECKED />' . _('All') . '<br /> <input type="radio"" name="GraphOn" value="Customer" />' . _('Customer') . '<br /> <input type="radio"" name="GraphOn" value="StockID" />' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value=' . $_POST['ValueFrom'] . ' /></td> - <td>' . _('To:') . ' <input type="text" name="ValueTo" value=' . $_POST['ValueTo'] . ' /></td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value="' . $_POST['ValueFrom'] . '" /></td> + <td>' . _('To:') . ' <input type="text" name="ValueTo" value="' . $_POST['ValueTo'] . '" /></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> <input type="radio"" name="GraphValue" value="Net" CHECKED />' . _('Net Sales Value') . '<br /> Modified: trunk/SelectAsset.php =================================================================== --- trunk/SelectAsset.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectAsset.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -233,9 +233,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectCreditItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -261,7 +261,7 @@ } else { echo '<td></td>'; } - echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> + echo '<td><input tabindex="'.($j+5).'" type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'" /> <input type="hidden" name="SelectedBranch' . $j .'" value="'. $myrow['branchcode'].'" /> <td>'.$myrow['contactname'].'</td> @@ -953,9 +953,9 @@ echo '<option selected="selected" value="All">' . _('All') . '</option>'; while ($myrow1 = DB_fetch_array($result1)) { if (isset($_POST['StockCat']) and $_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="selected" value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } else { - echo '<option value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } } Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectCustomer.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -396,9 +396,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } @@ -480,9 +480,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectGLAccount.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -100,7 +100,7 @@ <br />'; echo '<div class="centre"> - <input type="submit" name="Search" value=' . _('Search Now') . '" /> + <input type="submit" name="Search" value="' . _('Search Now') . '" /> <input type="submit" action=reset value="' . _('Reset') .'" /> </div>'; Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectOrderItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -1405,7 +1405,7 @@ $_SESSION['Items'.$identifier]->LineItems[$OrderLine->LineNumber]->ItemDue= $LineDueDate; } - echo '<td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ItemDue_' . $OrderLine->LineNumber . '" size="10" maxlength="10" value=' . $LineDueDate . '></td>'; + echo '<td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ItemDue_' . $OrderLine->LineNumber . '" size="10" maxlength="10" value="' . $LineDueDate . '" /></td>'; echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . $RemTxt . '</a></td></tr>'; @@ -1579,7 +1579,7 @@ <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td><font size="1"><input class="number" tabindex='. strval($j+7).' type="textbox" size="6" name="OrderQty' . $i . '" value="0" /> + <td><font size="1"><input class="number" tabindex="'. strval($j+7).'" type="textbox" size="6" name="OrderQty' . $i . '" value="0" /> <input type="hidden" name="StockID' . $i . '" value="' . $myrow['stockid'] . '" /> </td> </tr>', @@ -1598,7 +1598,7 @@ #end of page full new headings if } #end of while loop for Frequently Ordered Items - echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+8).' type="submit" value="'._('Add to Sales Order').'" /></td>'; + echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+8).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '</table>'; } //end of if Frequently Ordered Items > 0 echo '<p><div class="centre"><b><p>' . $msg . '</b></p>'; @@ -1622,9 +1622,9 @@ $result1 = DB_query($SQL,$db); while ($myrow1 = DB_fetch_array($result1)) { if ($_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="selected" value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } else { - echo '<option value='. $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } } @@ -1664,7 +1664,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="table1">'; echo '<tr><td colspan="1"><input type="hidden" name="previous" value="'.strval($Offset-1).'" /><input tabindex="'.strval($j+8).'" type="submit" name="Prev" value="'._('Prev').'" /></td>'; - echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+9).' type="submit" value="'._('Add to Sales Order').'" /></td>'; + echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+9).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '<td colspan="1"><input type="hidden" name="nextlist" value="'.strval($Offset+1).'" /><input tabindex="'.strval($j+10).'" type="submit" name="Next" value="'._('Next').'" /></td></tr>'; $TableHeader = '<tr> <th>' . _('Code') . '</th> @@ -1764,7 +1764,7 @@ <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td><font size="1"><input class="number" tabindex='.strval($j+7).' type="textbox" size="6" name="OrderQty'. $i . '" value="0" /> + <td><font size="1"><input class="number" tabindex="'.strval($j+7).'" type="textbox" size="6" name="OrderQty'. $i . '" value="0" /> <input type="hidden" name="StockID'. $i . '" value="' . $myrow['stockid']. '" /> </td> </tr>', @@ -1783,7 +1783,7 @@ #end of page full new headings if } #end of while loop - echo '<tr><td><input type="hidden" name="previous" value='. strval($Offset-1).'><input tabindex='. strval($j+7).' type="submit" name="Prev" value="'._('Prev').'" /></td>'; + echo '<tr><td><input type="hidden" name="previous" value="'. strval($Offset-1).'"><input tabindex="'. strval($j+7).'" type="submit" name="Prev" value="'._('Prev').'" /></td>'; echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'. strval($j+8).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '<td><input type="hidden" name="nextlist" value="'.strval($Offset+1).'" /><input tabindex="'.strval($j+9).'" type="submit" name="Next" value="'._('Next').'" /></td></tr>'; echo '</table></form>'; Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectProduct.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -715,9 +715,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectSupplier.php =================================================================== --- trunk/SelectSupplier.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectSupplier.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -237,9 +237,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } @@ -299,9 +299,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockAdjustments.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -443,9 +443,9 @@ echo '<option value="0">0 - ' . _('None') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_SESSION['Adjustment']->tag) AND $_SESSION['Adjustment']->tag==$myrow['tagref']){ - echo '<option selected="selected" value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; + echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; } } echo '</select></td>'; Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockCategories.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -392,11 +392,11 @@ while ($myrow = DB_fetch_array($Result)){ if (isset($_POST['StockAct']) and $myrow['accountcode']==$_POST['StockAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); DB_data_seek($BSAccountsResult,0); @@ -407,11 +407,11 @@ while ($myrow = DB_fetch_array($BSAccountsResult)) { if (isset($_POST['WIPAct']) and $myrow['accountcode']==$_POST['WIPAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop echo '</select></td></tr>'; @@ -423,11 +423,11 @@ while ($myrow = DB_fetch_array($PnLAccountsResult)) { if (isset($_POST['AdjGLAct']) and $myrow['accountcode']==$_POST['AdjGLAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); @@ -438,11 +438,11 @@ while ($myrow = DB_fetch_array($PnLAccountsResult)) { if (isset($_POST['PurchPriceVarAct']) and $myrow['accountcode']==$_POST['PurchPriceVarAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); Modified: trunk/StockCostUpdate.php =================================================================== --- trunk/StockCostUpdate.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockCostUpdate.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -158,7 +158,7 @@ } else { if ($myrow['mbflag']=='M'){ - echo '<input type="hidden" name="MaterialCost" value=' . $myrow['materialcost'] . ' />'; + echo '<input type="hidden" name="MaterialCost" value="' . $myrow['materialcost'] . '" />'; echo '<tr><td>' . _('Standard Material Cost Per Unit') .':</td> <td class="number">' . locale_number_format($myrow['materialcost'],4) . '</td> </tr>'; Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockLocTransferReceive.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -466,7 +466,7 @@ echo '<td class="number">' . locale_number_format($TrfLine->PrevRecvQty, $TrfLine->DecimalPlaces) . '</td>'; if ($TrfLine->Controlled==1){ - echo '<td class="number"><input type="hidden" name="Qty' . $i . '" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /><a href="' . $rootpath .'/StockTransferControlled.php?TransferItem=' . $i . '">' . $Qty . '</a></td>'; + echo '<td class="number"><input type="hidden" name="Qty' . $i . '" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /><a href="' . $rootpath .'/StockTransferControlled.php?TransferItem=' . $i . '" />' . $Qty . '</a></td>'; } else { echo '<td><input type="text" class="number" name="Qty' . $i . '" maxlength="10" class="number" size="auto" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /></td>'; } Modified: trunk/StockTransfers.php =================================================================== --- trunk/StockTransfers.php 2012-01-2... [truncated message content] |
From: <vv...@us...> - 2012-01-25 23:03:13
|
Revision: 4839 http://web-erp.svn.sourceforge.net/web-erp/?rev=4839&view=rev Author: vvs2012 Date: 2012-01-25 23:03:03 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Added quotes and missing closing tags in multiple files Modified Paths: -------------- trunk/ConfirmDispatch_Invoice.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/CustEDISetup.php trunk/CustomerAllocations.php trunk/FixedAssetItems.php trunk/FormDesigner.php trunk/GLBudgets.php trunk/GeocodeSetup.php trunk/MRP.php trunk/MRPReport.php trunk/PDFDIFOT.php trunk/PDFOrdersInvoiced.php trunk/PO_Items.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PurchData.php trunk/ReorderLevelLocation.php trunk/SalesCategories.php trunk/SalesGraph.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSupplier.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCostUpdate.php trunk/StockLocTransferReceive.php trunk/StockTransfers.php trunk/Stocks.php trunk/SuppCreditGRNs.php trunk/SuppInvGRNs.php trunk/SuppShiptChgs.php trunk/SupplierAllocations.php trunk/SupplierCredit.php trunk/SupplierTenderCreate.php trunk/Suppliers.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TopItems.php trunk/UnitsOfMeasure.php trunk/UserSettings.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/Z_ReApplyCostToSA.php trunk/Z_UpdateChartDetailsBFwd.php trunk/doc/Change.log trunk/install/index.php Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -476,14 +476,14 @@ OR $_POST['ChargeFreightCost']==0)) { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td> - <td><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; + <td><input tabindex="'.$j.'" type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="0" /></td>'; $_SESSION['Items'.$identifier]->FreightCost=0; } else { echo '<td colspan="2" class="number">'. _('Charge Freight Cost inc Tax').'</td>'; if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input tabindex='.$j.' type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" /></td>'; + echo '<td class="number"><input tabindex="'.$j.'" type="text" class="number" size="10" maxlength="12" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" /></td>'; } $_POST['ChargeFreightCost'] = locale_number_format($_SESSION['Items'.$identifier]->FreightCost,$_SESSION['Items'.$identifier]->CurrDecimalPlaces); } @@ -1635,17 +1635,17 @@ echo '<table class="selection"> <tr> <td>' ._('Date On Invoice'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> + <td><input tabindex="'.$j.'" type="text" maxlength="10" size="15" name="DispatchDate" value="'.$DefaultDispatchDate.'" id="datepicker" alt="'.$_SESSION['DefaultDateFormat'].'" class="date" /></td> </tr>'; $j++; echo '<tr> <td>' . _('Consignment Note Ref'). ':</td> - <td><input tabindex='.$j.' type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> + <td><input tabindex="'.$j.'" type="text" maxlength="15" size="15" name="Consignment" value="' . $_POST['Consignment'] . '" /></td> </tr>'; $j++; echo '<tr> <td>'._('Action For Balance'). ':</td> - <td><select tabindex='.$j.' name="BOPolicy"><option selected="selected" value="BO">'._('Automatically put balance on back order').'</option><option value="CAN">'._('Cancel any quantities not delivered').'</option></select></td> + <td><select tabindex="'.$j.'" name="BOPolicy"><option selected="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/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CounterSales.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -2137,7 +2137,7 @@ #end of page full new headings if } #end of while loop for Frequently Ordered Items - echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+8).' type="submit" value="'._('Add to Sale').'" /></td>'; + echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+8).'" type="submit" value="'._('Add to Sale').'" /></td>'; echo '</table>'; } //end of if Frequently Ordered Items > 0 if (isset($msg)){ Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CreditStatus.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -240,7 +240,7 @@ echo '<tr> <td>'. _('Description') .':</td> <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> + ' tabindex="2" type="text" name="ReasonDescription" value="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30" /></td> </tr> <tr> <td>'. _('Disallow Invoices') . '</td>'; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/Credit_Invoice.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -315,19 +315,19 @@ if ($LnItm->Controlled==1){ - echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; + echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '" /><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>'; } else { - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '"></td>'; + echo '<td><input tabindex="' . $j . '" type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '" /></td>'; } $DisplayLineTotal = locale_number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $j++; - echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '"></td> - <td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '"></td> + echo '<td><input tabindex="' . $j . '" type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '" /></td> + <td><input tabindex="' . $j . '" type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '" /></td> <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ @@ -355,7 +355,7 @@ } if (!isset($_POST['ProcessCredit'])) { echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . - '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">'; + '_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '" />'; } $i++; if ($Tax->TaxOnTax ==1){ @@ -380,7 +380,7 @@ <td class="number">' . $DisplayGrossLineTotal . '</td> <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; - echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; + echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex="' . $j .'" name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; } } /*end foreach loop displaying the invoice lines to credit */ @@ -395,7 +395,7 @@ <td class="number">' . locale_number_format($_SESSION['Old_FreightCost'],$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> <td></td> <td colspan="2" class="number">' . _('Credit Freight Cost') . '</td> - <td><input tabindex='.$j.' type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '"></td>'; + <td><input tabindex="'.$j.'" type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '" /></td>'; echo '<td>'; echo '</td><td>'; @@ -1440,7 +1440,7 @@ echo '<br /><table class="selection">'; echo '<tr><td>' . _('Credit Note Type') . '</td> - <td><select tabindex=' . $j .' name="CreditType">'; + <td><select tabindex="' . $j .'" name="CreditType">'; if (!isset($_POST['CreditType']) OR $_POST['CreditType']=='Return'){ echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option>'; @@ -1462,7 +1462,7 @@ /*if the credit note is a return of goods then need to know which location to receive them into */ - echo '<tr><td>' . _('Goods returned to location') . '</td><td><select tabindex='.$j.' name=Location>'; + echo '<tr><td>' . _('Goods returned to location') . '</td><td><select tabindex="'.$j.'" name="Location">'; $SQL="SELECT loccode, locationname FROM locations"; $Result = DB_query($SQL,$db); @@ -1483,7 +1483,7 @@ } elseif($_POST['CreditType']=='WriteOff') { /* the goods are to be written off to somewhere */ - echo '<tr><td>' . _('Write off the cost of the goods to') . '</td><td><select tabindex=' . $j .' name="WriteOffGLCode">'; + echo '<tr><td>' . _('Write off the cost of the goods to') . '</td><td><select tabindex="' . $j .'" name="WriteOffGLCode">'; $SQL="SELECT accountcode, accountname @@ -1508,10 +1508,10 @@ $_POST['CreditText'] = ''; } $j++; - echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type="submit" name="Update" value="' . _('Update') . '" /><br />'; + echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex="' . $j . '" name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td></tr>'; + echo '</table><br /><div class="centre"><input tabindex="' . $j . '" type="submit" name="Update" value="' . _('Update') . '" /><br />'; $j++; - echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; + echo '<input type="submit" tabindex="'.$j++.'" name="ProcessCredit" Value="' . _('Process Credit') .'" /></div>'; } echo '</form>'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CustEDISetup.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -128,7 +128,7 @@ echo '<tr><td>'._('Customer EDI Reference') . ':</td> <td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; + ' tabindex="3" type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /></td></tr>'; echo '<tr><td>'._('EDI Communication Method') . ':</td> <td><select tabindex="4" name="EDITransport" >'; @@ -145,7 +145,7 @@ echo '<tr><td>'._('FTP Server or Email Address') . ':</td> <td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; + ' tabindex="5" type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /></td></tr>'; if ($myrow['editransport']=='ftp'){ Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/CustomerAllocations.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -401,7 +401,7 @@ echo '<td class="number"><input tabindex="' . $j .'" type="checkbox" name="All' . $Counter . '"'; if (ABS($AllocnItem->AllocAmt-$YetToAlloc) < 0.01) { - echo ' value="' . True . '" />'; + echo ' checked="checked" />'; } else { echo ' />'; } @@ -421,7 +421,7 @@ <td class="number"><b><u>' . locale_number_format($TotalAllocated,$_SESSION['Alloc']->CurrDecimalPlaces) . '</u></b></td>'; $j++; echo '<td colspan="2"> - <input tabindex='.$j.' type="submit" name="RefreshAllocTotal" value="' . _('Recalculate Total To Allocate') . '" /></td> + <input tabindex="'.$j.'" type="submit" name="RefreshAllocTotal" value="' . _('Recalculate Total To Allocate') . '" /></td> <tr> <td colspan="5" class="number"><b>'._('Left to allocate').'</b></td> <td class="number"><b>' . locale_number_format(-$_SESSION['Alloc']->TransAmt-$TotalAllocated,$_SESSION['Alloc']->CurrDecimalPlaces).'</b></td> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/FixedAssetItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -477,7 +477,7 @@ '&text='. '&width=64'. '&height=64'. - '" >'; + '" />'; } else { if( isset($AssetID) and file_exists($_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg') ) { $AssetImgLink = '<img src="' . $_SESSION['part_pics_dir'] . '/ASSET_' .$AssetID.'.jpg" />'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/FormDesigner.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -23,9 +23,9 @@ } echo '</select></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; /* Display the Y co-ordinate (mm from the top of the page) */ - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } function MultiTextLine($key) { /* Displays a table row containing the attributes for a @@ -43,11 +43,11 @@ } echo '</select></td>'; /* Display the length of the field in mm */ - echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'"></td></tr><tr>'; + echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'" /></td></tr><tr>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; /* Display the Y co-ordinate (mm from the top of the page) */ - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } function DataTextLine($key) { /* Displays a table row containing the attributes for a @@ -65,9 +65,9 @@ } echo '</select></td>'; /* Display the length of the field in mm */ - echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'"></td>'; + echo '<td class="number">'._('Length').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'Length" size="4" maxlength="4" value="'.$key->Length.'" /></td>'; /* Display the X co-ordinate (mm from the left hand side of page) */ - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; } /* If the user has chosen to either preview the form, or * save it then we first have to get the POST values into a @@ -183,10 +183,10 @@ switch ($key['type']) { case 'image': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="8">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; @@ -221,7 +221,7 @@ echo '<td>'.$subkey['name'].'</td>'; DataTextLine($subkey); } elseif ($subkey['type']=='StartLine') { - echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'"></td>'; + echo '<td colspan="3">'.$subkey['name'].' = '.'</td><td><input type="text" class="number" name="StartLine" size="4" maxlength="4" value="'.$key->y.'" /></td>'; } echo '</tr>'; } @@ -231,29 +231,29 @@ break; case 'CurvedRectangle': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td></tr><tr>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; - echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td></tr><tr>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; + echo '<td class="number">'._('Radius').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'radius" size="3" maxlength="3" value="'.$key->radius.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Rectangle': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'"></td>'; - echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'"></td></tr><tr>'; - echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'"></td>'; - echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'"></td>'; + echo '<td class="number">'._('x').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'x" size="4" maxlength="4" value="'.$key->x.'" /></td>'; + echo '<td class="number">'._('y').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'y" size="4" maxlength="4" value="'.$key->y.'" /></td></tr><tr>'; + echo '<td class="number">'._('Width').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'width" size="4" maxlength="4" value="'.$key->width.'" /></td>'; + echo '<td class="number">'._('Height').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'height" size="4" maxlength="4" value="'.$key->height.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; case 'Line': echo '<td colspan="1" valign="top"><table width="100%" border="1"><tr><th colspan="6">'.$key['name'].'</th></tr>'; - echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'"></td>'; - echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'"></td></tr><tr>'; - echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'"></td>'; - echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'"></td>'; + echo '<td class="number">'._('Start x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'startx" size="4" maxlength="4" value="'.$key->startx.'" /></td>'; + echo '<td class="number">'._('Start y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'starty" size="4" maxlength="4" value="'.$key->starty.'" /></td></tr><tr>'; + echo '<td class="number">'._('End x co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endx" size="4" maxlength="4" value="'.$key->endx.'" /></td>'; + echo '<td class="number">'._('End y co-ordinate').' = '.'</td><td><input type="text" class="number" name="'.$key['id'].'endy" size="4" maxlength="4" value="'.$key->endy.'" /></td>'; echo '</table></td>'; $counter=$counter+1; break; Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/GLBudgets.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -188,7 +188,7 @@ echo '<td><input type="text" class="number" size="14" name="'.$i.'last" value="'.locale_number_format($Budget[$CurrentYearEndPeriod-(24-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod-(12-$i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; - echo '<td><input type="text" class="number" size="14" name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'"></td>'; + echo '<td><input type="text" class="number" size="14" name="'.$i.'this" value="'. locale_number_format($Budget[$CurrentYearEndPeriod-(12-$i)],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod+($i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.locale_number_format($Actual[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']).'</td>'; echo '<td><input type="text" class="number" size="14" name="'.$i.'next" value="'. locale_number_format($Budget[$CurrentYearEndPeriod+$i],$_SESSION['CompanyRecord']['decimalplaces']) .'" /></td>'; Modified: trunk/GeocodeSetup.php =================================================================== --- trunk/GeocodeSetup.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/GeocodeSetup.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -239,7 +239,7 @@ // <tr> // <td>'. _('Geocode Code') .":</td> // <td><input " . (in_array('GeoCodeID',$Errors) ? 'class="inputerror"' : '' ) . -// " tabindex=1 type='Text' name='GeoCodeID' value='". $_POST['GeoCodeID'] ."' size="3" maxlength="2"></td> +// " tabindex="1" type='Text' name='GeoCodeID' value='". $_POST['GeoCodeID'] ."' size="3" maxlength="2"></td> // </tr>"; } @@ -249,7 +249,7 @@ echo '<br /><tr> <td>'. _('Geocode Key') .':</td> <td><input ' . (in_array('GeoCode_Key',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="GeoCode_Key" value="'. $_POST['GeoCode_Key'] .'" size="28" maxlength="300" /> + ' tabindex="2" type="text" name="GeoCode_Key" value="'. $_POST['GeoCode_Key'] .'" size="28" maxlength="300" /> </td></tr> <tr><td>'. _('Geocode Center Long') . '</td> Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/MRP.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -582,7 +582,7 @@ <tr> <td>' . _('Location') . '</td> <td><select name="location[]" multiple> - <option value="All" selected>' . _('All') . '</option>'; + <option value="All" selected="selected">' . _('All') . '</option>'; $sql = "SELECT loccode, locationname FROM locations"; Modified: trunk/MRPReport.php =================================================================== --- trunk/MRPReport.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/MRPReport.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -726,7 +726,7 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value="' . $ListPage . '" selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } Modified: trunk/PDFDIFOT.php =================================================================== --- trunk/PDFDIFOT.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PDFDIFOT.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -29,7 +29,7 @@ echo '<table class="selection"> <tr> <td>' . _('Enter the date from which variances between orders and deliveries are to be listed') . ':</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m')-1,0,Date('y'))) . '"></td> + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m')-1,0,Date('y'))) . '" /></td> </tr>'; echo '<tr> <td>' . _('Enter the date to which variances between orders and deliveries are to be listed') . ':</td> Modified: trunk/PDFOrdersInvoiced.php =================================================================== --- trunk/PDFOrdersInvoiced.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PDFOrdersInvoiced.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -38,7 +38,7 @@ echo '<table class="selection"> <tr> <td>' . _('Enter the date from which orders are to be listed') . ':</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] .'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '"></td> + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] .'" name="FromDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '" /></td> </tr>'; echo '<tr><td>' . _('Enter the date to which orders are to be listed') . ':</td> <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength="10" size="10" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td></tr>'; Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PO_Items.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -697,12 +697,12 @@ <td class="number">' . locale_number_format($POLine->Quantity,$POLine->DecimalPlaces) . '</td> <td>' . $POLine->Units . '</td> <td class="number">' . $DisplayPrice . '</td> - <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '"></td> - <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . locale_number_format(round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces),$POLine->DecimalPlaces) . '"></td> + <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '" /></td> + <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . locale_number_format(round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces),$POLine->DecimalPlaces) . '" /></td> <td>' . $POLine->SuppliersUnit . '</td> - <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . locale_number_format(round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> + <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . locale_number_format(round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'" /></td> <td class="number">' . $DisplayLineTotal . '</td> - <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'"></td>'; + <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'" /></td>'; if ($POLine->QtyReceived !=0 AND $POLine->Completed!=1){ echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier .'&Complete=' . $POLine->LineNo . '">' . _('Complete') . '</a></td>'; } elseif ($POLine->QtyReceived ==0) { Modified: trunk/PricesByCost.php =================================================================== --- trunk/PricesByCost.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PricesByCost.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -162,11 +162,11 @@ $k = 0; //row colour counter echo '<form action="' .htmlspecialchars($_SERVER['PHP_SELF']) .'" method="POST" name="update">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo'<input type="hidden" value=' . $_POST['StockCat'] . ' name="StockCat" /> - <input type="hidden" value=' . $_POST['Margin'] . ' name="Margin" /> - <input type="hidden" value=' . $_POST['CurrCode'] . ' name="CurrCode" /> - <input type="hidden" value=' . $_POST['Comparator'] . ' name="Comparator" /> - <input type="hidden" value=' . $_POST['SalesType'] . ' name="SalesType" />'; + echo'<input type="hidden" value="' . $_POST['StockCat'] . '" name="StockCat" /> + <input type="hidden" value="' . $_POST['Margin'] . '" name="Margin" /> + <input type="hidden" value="' . $_POST['CurrCode'] . '" name="CurrCode" /> + <input type="hidden" value="' . $_POST['Comparator'] . '" name="Comparator" /> + <input type="hidden" value="' . $_POST['SalesType'] . '" name="SalesType" />'; $PriceCounter =0; while ($myrow = DB_fetch_array($result)) { @@ -186,11 +186,11 @@ } /*end of else Cost */ //variables for update - echo '<input type="hidden" value=' . $myrow['stockid'] . ' name="StockID_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['debtorno'] . ' name="DebtorNo_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['branchcode'] . ' name="BranchCode_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['startdate'] . ' name="StartDate_' . $PriceCounter .'" /> - <input type="hidden" value=' . $myrow['enddate'] . ' name="EndDate_' . $PriceCounter .'" />'; + echo '<input type="hidden" value="' . $myrow['stockid'] . '" name="StockID_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['debtorno'] . '" name="DebtorNo_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['branchcode'] . '" name="BranchCode_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['startdate'] . '" name="StartDate_' . $PriceCounter .'" /> + <input type="hidden" value="' . $myrow['enddate'] . '" name="EndDate_' . $PriceCounter .'" />'; //variable for current margin if ($myrow['price'] != 0){ $CurrentGP = (($myrow['price']/$myrow['rate'])-$Cost)*100 / ($myrow['price']/$myrow['rate']); @@ -218,7 +218,7 @@ $PriceCounter++; } //end of looping echo '<tr> - <td style="text-align:right" colspan="4"><input type="submit" name="submit" value=' . _('Update') . ' onclick="return confirm(\'' . _('If the prices above do not have a commencement date as today, this will create new prices with commencement date of today at the entered figures and update the existing prices with historical start dates to have an end date of yesterday. Are You Sure?') . '\');" /></td> + <td style="text-align:right" colspan="4"><input type="submit" name="submit" value="' . _('Update') . '" onclick="return confirm(\'' . _('If the prices above do not have a commencement date as today, this will create new prices with commencement date of today at the entered figures and update the existing prices with historical start dates to have an end date of yesterday. Are You Sure?') . '\');" /></td> <td style="text-align:left" colspan="3"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"><input type="submit" value="' . _('Back') . '" /></a></td> </tr></form>'; } else { @@ -257,7 +257,7 @@ if (!isset($_POST['Margin'])){ $_POST['Margin']=1; } - echo '<td><input type="text" class="number" name="Margin" maxlength="8" size="8" value=' .$_POST['Margin'] . ' /></td></tr>'; + echo '<td><input type="text" class="number" name="Margin" maxlength="8" size="8" value="' .$_POST['Margin'] . '" /></td></tr>'; $result = DB_query("SELECT typeabbrev, sales_type FROM salestypes", $db); echo '<tr><td>' . _('Sales Type') . '/' . _('Price List') . ':</td> <td><select name="SalesType">'; @@ -275,9 +275,9 @@ <td><select name="CurrCode">'; while ($myrow = DB_fetch_array($result)) { if (isset($_POST['CurrCode']) and $_POST['CurrCode'] == $myrow['currabrev']) { - echo '<option selected="selected" value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } else { - echo '<option value=' . $myrow['currabrev'] . '>' . $myrow['currency'] . '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; } } //end while loop DB_data_seek($result, 0); Modified: trunk/Prices_Customer.php =================================================================== --- trunk/Prices_Customer.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/Prices_Customer.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -331,9 +331,9 @@ while ($myrow=DB_fetch_array($result)) { if ($myrow['branchcode']==$_POST['branch']) { - echo '<option selected="selected" value='.$myrow['branchcode'].'>'.$myrow['brname'].'</option>'; + echo '<option selected="selected" value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } else { - echo '<option value='.$myrow['branchcode'].'>'.$myrow['brname'].'</option>'; + echo '<option value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } } echo '</select></td></tr>'; Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/PurchData.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -481,7 +481,7 @@ echo '<tr><td>' . _('Currency') . ':</td> <td><input type="hidden" name="CurrCode" . value="' . $CurrCode . '" />' . $CurrCode . '</td></tr>'; echo '<tr><td>' . _('Price') . ' (' . _('in Supplier Currency') . '):</td> - <td><input type="text" class="number" name="Price" maxlength="12" size="12" value=' . $_POST['Price'] . ' /></td></tr>'; + <td><input type="text" class="number" name="Price" maxlength="12" size="12" value="' . $_POST['Price'] . '" /></td></tr>'; echo '<tr><td>' . _('Date Updated') . ':</td> <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveFrom" maxlength="10" size="11" value="' . $_POST['EffectiveFrom'] . '" /></td></tr>'; echo '<tr><td>' . _('Our Unit of Measure') . ':</td>'; Modified: trunk/ReorderLevelLocation.php =================================================================== --- trunk/ReorderLevelLocation.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/ReorderLevelLocation.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -88,7 +88,7 @@ //variable for update data - echo'<input type="hidden" value=' . $_POST['order'] . ' name='. _('order').' /> + echo'<input type="hidden" value="' . $_POST['order'] . '" name='. _('order').' /> <input type="hidden" value="' . $_POST['StockLocation'] . '" name="StockLocation" /> <input type="hidden" value="' . $_POST['StockCat'] . '" name="StockCat" /> <input type="hidden" value="' . locale_number_format($_POST['NumberOfDays'],0) . '" name="NumberOfDays" />'; @@ -145,7 +145,7 @@ $i++; } //end of looping echo'<tr> - <td style="text-align:center" colspan="7"><input type="submit" name="submit" value=' . _('Update') . ' /></td> + <td style="text-align:center" colspan="7"><input type="submit" name="submit" value="' . _('Update') . '" /></td> </tr> </form>'; Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SalesCategories.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -240,7 +240,7 @@ '&text='. '&width=32'. '&height=32'. - '" >'; + '" />'; } else { if( file_exists($_SESSION['part_pics_dir'] . '/' .'cat_'.$myrow['salescatid'].'.jpg') ) { $CatImgLink = '<img src="'.$rootpath . '/' . $_SESSION['part_pics_dir'] . '/' . Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SalesGraph.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -179,8 +179,8 @@ <input type="radio"" name="GraphOn" value="All" CHECKED />' . _('All') . '<br /> <input type="radio"" name="GraphOn" value="Customer" />' . _('Customer') . '<br /> <input type="radio"" name="GraphOn" value="StockID" />' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value=' . $_POST['ValueFrom'] . ' /></td> - <td>' . _('To:') . ' <input type="text" name="ValueTo" value=' . $_POST['ValueTo'] . ' /></td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type="text" name="ValueFrom" value="' . $_POST['ValueFrom'] . '" /></td> + <td>' . _('To:') . ' <input type="text" name="ValueTo" value="' . $_POST['ValueTo'] . '" /></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> <input type="radio"" name="GraphValue" value="Net" CHECKED />' . _('Net Sales Value') . '<br /> Modified: trunk/SelectAsset.php =================================================================== --- trunk/SelectAsset.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectAsset.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -233,9 +233,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectCreditItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -261,7 +261,7 @@ } else { echo '<td></td>'; } - echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> + echo '<td><input tabindex="'.($j+5).'" type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td> <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'" /> <input type="hidden" name="SelectedBranch' . $j .'" value="'. $myrow['branchcode'].'" /> <td>'.$myrow['contactname'].'</td> @@ -953,9 +953,9 @@ echo '<option selected="selected" value="All">' . _('All') . '</option>'; while ($myrow1 = DB_fetch_array($result1)) { if (isset($_POST['StockCat']) and $_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="selected" value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } else { - echo '<option value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } } Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectCustomer.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -396,9 +396,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } @@ -480,9 +480,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectGLAccount.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -100,7 +100,7 @@ <br />'; echo '<div class="centre"> - <input type="submit" name="Search" value=' . _('Search Now') . '" /> + <input type="submit" name="Search" value="' . _('Search Now') . '" /> <input type="submit" action=reset value="' . _('Reset') .'" /> </div>'; Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectOrderItems.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -1405,7 +1405,7 @@ $_SESSION['Items'.$identifier]->LineItems[$OrderLine->LineNumber]->ItemDue= $LineDueDate; } - echo '<td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ItemDue_' . $OrderLine->LineNumber . '" size="10" maxlength="10" value=' . $LineDueDate . '></td>'; + echo '<td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ItemDue_' . $OrderLine->LineNumber . '" size="10" maxlength="10" value="' . $LineDueDate . '" /></td>'; echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . $RemTxt . '</a></td></tr>'; @@ -1579,7 +1579,7 @@ <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td><font size="1"><input class="number" tabindex='. strval($j+7).' type="textbox" size="6" name="OrderQty' . $i . '" value="0" /> + <td><font size="1"><input class="number" tabindex="'. strval($j+7).'" type="textbox" size="6" name="OrderQty' . $i . '" value="0" /> <input type="hidden" name="StockID' . $i . '" value="' . $myrow['stockid'] . '" /> </td> </tr>', @@ -1598,7 +1598,7 @@ #end of page full new headings if } #end of while loop for Frequently Ordered Items - echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+8).' type="submit" value="'._('Add to Sales Order').'" /></td>'; + echo '<td style="text-align:center" colspan="8"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+8).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '</table>'; } //end of if Frequently Ordered Items > 0 echo '<p><div class="centre"><b><p>' . $msg . '</b></p>'; @@ -1622,9 +1622,9 @@ $result1 = DB_query($SQL,$db); while ($myrow1 = DB_fetch_array($result1)) { if ($_POST['StockCat']==$myrow1['categoryid']){ - echo '<option selected="selected" value=' . $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } else { - echo '<option value='. $myrow1['categoryid'] . '>' . $myrow1['categorydescription'] . '</option>'; + echo '<option value="'. $myrow1['categoryid'] . '">' . $myrow1['categorydescription'] . '</option>'; } } @@ -1664,7 +1664,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="table1">'; echo '<tr><td colspan="1"><input type="hidden" name="previous" value="'.strval($Offset-1).'" /><input tabindex="'.strval($j+8).'" type="submit" name="Prev" value="'._('Prev').'" /></td>'; - echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex='.strval($j+9).' type="submit" value="'._('Add to Sales Order').'" /></td>'; + echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'.strval($j+9).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '<td colspan="1"><input type="hidden" name="nextlist" value="'.strval($Offset+1).'" /><input tabindex="'.strval($j+10).'" type="submit" name="Next" value="'._('Next').'" /></td></tr>'; $TableHeader = '<tr> <th>' . _('Code') . '</th> @@ -1764,7 +1764,7 @@ <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td><font size="1"><input class="number" tabindex='.strval($j+7).' type="textbox" size="6" name="OrderQty'. $i . '" value="0" /> + <td><font size="1"><input class="number" tabindex="'.strval($j+7).'" type="textbox" size="6" name="OrderQty'. $i . '" value="0" /> <input type="hidden" name="StockID'. $i . '" value="' . $myrow['stockid']. '" /> </td> </tr>', @@ -1783,7 +1783,7 @@ #end of page full new headings if } #end of while loop - echo '<tr><td><input type="hidden" name="previous" value='. strval($Offset-1).'><input tabindex='. strval($j+7).' type="submit" name="Prev" value="'._('Prev').'" /></td>'; + echo '<tr><td><input type="hidden" name="previous" value="'. strval($Offset-1).'"><input tabindex="'. strval($j+7).'" type="submit" name="Prev" value="'._('Prev').'" /></td>'; echo '<td style="text-align:center" colspan="6"><input type="hidden" name="SelectingOrderItems" value="1" /><input tabindex="'. strval($j+8).'" type="submit" value="'._('Add to Sales Order').'" /></td>'; echo '<td><input type="hidden" name="nextlist" value="'.strval($Offset+1).'" /><input tabindex="'.strval($j+9).'" type="submit" name="Next" value="'._('Next').'" /></td></tr>'; echo '</table></form>'; Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectProduct.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -715,9 +715,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/SelectSupplier.php =================================================================== --- trunk/SelectSupplier.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/SelectSupplier.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -237,9 +237,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } @@ -299,9 +299,9 @@ $ListPage = 1; while ($ListPage <= $ListPageMax) { if ($ListPage == $_POST['PageOffset']) { - echo '<option value=' . $ListPage . ' selected>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '" selected="selected">' . $ListPage . '</option>'; } else { - echo '<option value=' . $ListPage . '>' . $ListPage . '</option>'; + echo '<option value="' . $ListPage . '">' . $ListPage . '</option>'; } $ListPage++; } Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockAdjustments.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -443,9 +443,9 @@ echo '<option value="0">0 - ' . _('None') . '</option>'; while ($myrow=DB_fetch_array($result)){ if (isset($_SESSION['Adjustment']->tag) AND $_SESSION['Adjustment']->tag==$myrow['tagref']){ - echo '<option selected="selected" value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; + echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; } } echo '</select></td>'; Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockCategories.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -392,11 +392,11 @@ while ($myrow = DB_fetch_array($Result)){ if (isset($_POST['StockAct']) and $myrow['accountcode']==$_POST['StockAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); DB_data_seek($BSAccountsResult,0); @@ -407,11 +407,11 @@ while ($myrow = DB_fetch_array($BSAccountsResult)) { if (isset($_POST['WIPAct']) and $myrow['accountcode']==$_POST['WIPAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop echo '</select></td></tr>'; @@ -423,11 +423,11 @@ while ($myrow = DB_fetch_array($PnLAccountsResult)) { if (isset($_POST['AdjGLAct']) and $myrow['accountcode']==$_POST['AdjGLAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); @@ -438,11 +438,11 @@ while ($myrow = DB_fetch_array($PnLAccountsResult)) { if (isset($_POST['PurchPriceVarAct']) and $myrow['accountcode']==$_POST['PurchPriceVarAct']) { - echo '<option selected="selected" value='; + echo '<option selected="selected" value="'; } else { - echo '<option value='; + echo '<option value="'; } - echo $myrow['accountcode'] . '>' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; + echo $myrow['accountcode'] . '">' . $myrow['accountname'] . ' ('.$myrow['accountcode'].')</option>'; } //end while loop DB_data_seek($PnLAccountsResult,0); Modified: trunk/StockCostUpdate.php =================================================================== --- trunk/StockCostUpdate.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockCostUpdate.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -158,7 +158,7 @@ } else { if ($myrow['mbflag']=='M'){ - echo '<input type="hidden" name="MaterialCost" value=' . $myrow['materialcost'] . ' />'; + echo '<input type="hidden" name="MaterialCost" value="' . $myrow['materialcost'] . '" />'; echo '<tr><td>' . _('Standard Material Cost Per Unit') .':</td> <td class="number">' . locale_number_format($myrow['materialcost'],4) . '</td> </tr>'; Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2012-01-25 18:39:35 UTC (rev 4838) +++ trunk/StockLocTransferReceive.php 2012-01-25 23:03:03 UTC (rev 4839) @@ -466,7 +466,7 @@ echo '<td class="number">' . locale_number_format($TrfLine->PrevRecvQty, $TrfLine->DecimalPlaces) . '</td>'; if ($TrfLine->Controlled==1){ - echo '<td class="number"><input type="hidden" name="Qty' . $i . '" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /><a href="' . $rootpath .'/StockTransferControlled.php?TransferItem=' . $i . '">' . $Qty . '</a></td>'; + echo '<td class="number"><input type="hidden" name="Qty' . $i . '" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /><a href="' . $rootpath .'/StockTransferControlled.php?TransferItem=' . $i . '" />' . $Qty . '</a></td>'; } else { echo '<td><input type="text" class="number" name="Qty' . $i . '" maxlength="10" class="number" size="auto" value="' . locale_number_format($Qty,$TrfLine->DecimalPlaces) . '" /></td>'; } Modified: trunk/StockTransfers.php =================================================================== --- trunk/StockTransfers.php 2012-01-2... [truncated message content] |
From: <vv...@us...> - 2012-01-25 23:23:20
|
Revision: 4840 http://web-erp.svn.sourceforge.net/web-erp/?rev=4840&view=rev Author: vvs2012 Date: 2012-01-25 23:23:13 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/BOMs.php trunk/CustomerReceipt.php trunk/DeliveryDetails.php trunk/FormDesigner.php trunk/GeocodeSetup.php trunk/PDFPeriodStockTransListing.php trunk/PO_Header.php trunk/PO_SelectOSPurchOrder.php trunk/PrintCustTrans.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/StockTransferControlled.php Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/BOMs.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -829,7 +829,7 @@ if (!isset($SelectedParent)) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p>'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">' . '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/CustomerReceipt.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -950,7 +950,7 @@ AND isset($_SESSION['ReceiptBatch'])){ /*a customer is selected */ - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . $_SESSION['CustomerRecord']['name'] . ' - (' . _('All amounts stated in') . ' ' . $_SESSION['CustomerRecord']['currency'] . ')' . _('Terms') . ': ' . $_SESSION['CustomerRecord']['terms'] . '<br/>' . _('Credit Limit') . ': ' . locale_number_format($_SESSION['CustomerRecord']['creditlimit'],0) . ' ' . _('Credit Status') . ': ' . $_SESSION['CustomerRecord']['reasondescription']; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . $_SESSION['CustomerRecord']['name'] . ' - (' . _('All amounts stated in') . ' ' . $_SESSION['CustomerRecord']['currency'] . ')' . _('Terms') . ': ' . $_SESSION['CustomerRecord']['terms'] . '<br/>' . _('Credit Limit') . ': ' . locale_number_format($_SESSION['CustomerRecord']['creditlimit'],0) . ' ' . _('Credit Status') . ': ' . $_SESSION['CustomerRecord']['reasondescription']; if ($_SESSION['CustomerRecord']['dissallowinvoices']!=0){ echo '<br /> Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/DeliveryDetails.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -571,16 +571,16 @@ echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt=""></td> + <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> </tr>'; @@ -596,14 +596,14 @@ </table>'; echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Order') . '" alt=""></td> + <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> </tr> </table>'; } echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt=""></td> + <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> </tr> </table>'; @@ -778,18 +778,18 @@ echo '<br /> <table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td><td><a href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip - pre-printed stationery') .'</a></td> + <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td><td><a 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><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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt=""></td> + <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt="" /></td> <td><a href="' . $rootpath .'/SelectSalesOrder.php?identifier='.$identifier . '">'. _('Select A Different Order') .'</a></td> </tr> </table>'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/FormDesigner.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -153,7 +153,7 @@ if (empty($_POST['preview'])) { $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); } -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="">' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="" />' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br />'; $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; Modified: trunk/GeocodeSetup.php =================================================================== --- trunk/GeocodeSetup.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/GeocodeSetup.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -226,7 +226,7 @@ echo '<input type="hidden" name="SelectedParam" value="' . $SelectedParam . '" />'; echo '<input type="hidden" name="GeoCodeID" value="' . $_POST['GeoCodeID'] . '" />'; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Geocode Setup') . '" alt="">'. _('Setup configuration for Geocoding of Customers and Suppliers') .'</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Geocode Setup') . '" alt="" />'. _('Setup configuration for Geocoding of Customers and Suppliers') .'</p>'; echo '<table> <tr><td>'. _('Geocode Code') .':</td> <td>' . $_POST['GeoCodeID'] . '</td></tr>'; Modified: trunk/PDFPeriodStockTransListing.php =================================================================== --- trunk/PDFPeriodStockTransListing.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PDFPeriodStockTransListing.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -17,7 +17,7 @@ include ('includes/header.inc'); echo '<div class="centre"> - <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="">' . ' '. _('Stock Transaction Listing').'</img></p> + <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' '. _('Stock Transaction Listing').'</img></p> </div>'; if ($InputError==1){ Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PO_Header.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -600,7 +600,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Purchase Order') . '" alt=""> + <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Purchase Order') . '" alt="" /> ' . $_SESSION['PO'.$identifier]->SupplierName . ' - ' . _('All amounts stated in') . ' ' . $_SESSION['PO'.$identifier]->CurrCode . '<br />'; Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PO_SelectOSPurchOrder.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -136,7 +136,7 @@ } else { echo '<a href="' . $rootpath . '/PO_Header.php?NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; } - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; echo '<table class="selection"> <tr> <td>'._('Order Number') . ': <input type="text" name="OrderNumber" maxlength="8" size="9" /> ' . _('Into Stock Location') . ': Modified: trunk/PrintCustTrans.php =================================================================== --- trunk/PrintCustTrans.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PrintCustTrans.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -504,7 +504,7 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . _('Print Invoices or Credit Notes (Landscape Mode)') . '</div>'; + echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Print Invoices or Credit Notes (Landscape Mode)') . '</div>'; echo '<table class="table1"> <tr><td>' . _('Print Invoices or Credit Notes') . '</td><td><select name=InvOrCredit>'; if ($InvOrCredit=='Invoice' OR !isset($InvOrCredit)) { Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectCreditItems.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -1006,7 +1006,7 @@ printf('<td><font size="1"><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size="1">%s</font></td> <td><font size="1">%s</font></td> - <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120"></td></tr>', + <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120" /></td></tr>', $myrow['stockid'], $myrow['description'], $myrow['units'], Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectCustomer.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -639,7 +639,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != "") { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/group_add.png" title="' . _('Customer Contacts') . '" alt=""><a href="AddCustomerContacts.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Contact') . '</a></div>'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/group_add.png" title="' . _('Customer Contacts') . '" alt="" /><a href="AddCustomerContacts.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Contact') . '</a></div>'; } } // Customer Notes @@ -649,7 +649,7 @@ ORDER BY date DESC"; $result = DB_query($sql, $db); if (DB_num_rows($result) <> 0) { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="">' . ' ' . _('Customer Notes') . '</div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="" />' . ' ' . _('Customer Notes') . '</div><br />'; echo '<table width="45%">'; echo '<tr> <th>' . _('date') . '</th> @@ -680,7 +680,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != "") { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt=""><a href="AddCustomerNotes.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Note for this Customer') . '</a></div>'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="" /><a href="AddCustomerNotes.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Note for this Customer') . '</a></div>'; } } // Custome Type Notes @@ -690,7 +690,7 @@ ORDER BY date DESC"; $result = DB_query($sql, $db); if (DB_num_rows($result) <> 0) { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Type (Group) Notes') . '" alt="">' . ' ' . _('Customer Type (Group) Notes for:' . '<b> ' . $CustomerTypeName . '</b>') . '</div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Type (Group) Notes') . '" alt="" />' . ' ' . _('Customer Type (Group) Notes for:' . '<b> ' . $CustomerTypeName . '</b>') . '</div><br />'; echo '<table width="45%">'; echo '<tr> <th>' . _('date') . '</th> @@ -721,7 +721,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != '') { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Group Notes') . '" alt=""><a href="AddCustomerTypeNotes.php?DebtorType=' . $CustomerType . '">' . ' ' . _('Add New Group Note') . '</a></div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Group Notes') . '" alt="" /><a href="AddCustomerTypeNotes.php?DebtorType=' . $CustomerType . '">' . ' ' . _('Add New Group Note') . '</a></div><br />'; } } } Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectProduct.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -428,7 +428,7 @@ echo '<a href="' . $rootpath . '/StockTransfers.php?StockID=' . $StockID . '">' . _('Location Transfers') . '</a><br />'; //show the item image if it has been uploaded if( isset($StockID) AND file_exists($_SESSION['part_pics_dir'] . '/' .$StockID.'.jpg') ) { - echo '<div class="centre"><img src="' . $rootpath . '/GetStockImage.php?automake=1&textcolor=FFFFF0&bgcolor=007F00&StockID=' . $StockID . '&text=' . $StockID . '&width=120&height=120">'; + echo '<div class="centre"><img src="' . $rootpath . '/GetStockImage.php?automake=1&textcolor=FFFFF0&bgcolor=007F00&StockID=' . $StockID . '&text=' . $StockID . '&width=120&height=120" />'; } if (($myrow['mbflag'] == 'B') AND (in_array($SuppliersSecurity, $_SESSION['AllowedPageSecurityTokens'])) Modified: trunk/SelectSalesOrder.php =================================================================== --- trunk/SelectSalesOrder.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectSalesOrder.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -899,7 +899,7 @@ if ($AuthRow['cancreate']==0 AND $myrow['poplaced']==0){ //cancreate==0 if the user can create POs and not already placed printf('<td><a href="%s">%s</a></td> <td><a href="%s">' . _('Invoice') . '</a></td> - <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath.'/css/'.$theme.'/images/pdf.png" title="' . _('Click for PDF') . '"></a></td> + <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath.'/css/'.$theme.'/images/pdf.png" title="' . _('Click for PDF') . '" /></a></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -926,7 +926,7 @@ } else { /*User is not authorised to create POs so don't even show the option */ printf('<td><a href="%s">%s</a></td> <td><a href="%s">' . _('Invoice') . '</a></td> - <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath . '/css/' . $theme .'/images/pdf.png" title="' . _('Click for PDF') . '"></a></td> + <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath . '/css/' . $theme .'/images/pdf.png" title="' . _('Click for PDF') . '" /></a></td> <td>%s</td> <td>%s</td> <td>%s</td> Modified: trunk/StockTransferControlled.php =================================================================== --- trunk/StockTransferControlled.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/StockTransferControlled.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -11,7 +11,7 @@ include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt=""><b>' . $title . '</b></p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . $title . '</b></p>'; if (!isset($_SESSION['Transfer'])) { /* This page can only be called when a stock Transfer is pending */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vv...@us...> - 2012-01-25 23:23:20
|
Revision: 4840 http://web-erp.svn.sourceforge.net/web-erp/?rev=4840&view=rev Author: vvs2012 Date: 2012-01-25 23:23:13 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Modified Paths: -------------- trunk/BOMs.php trunk/CustomerReceipt.php trunk/DeliveryDetails.php trunk/FormDesigner.php trunk/GeocodeSetup.php trunk/PDFPeriodStockTransListing.php trunk/PO_Header.php trunk/PO_SelectOSPurchOrder.php trunk/PrintCustTrans.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/StockTransferControlled.php Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/BOMs.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -829,7 +829,7 @@ if (!isset($SelectedParent)) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title . '</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p>'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">' . '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/CustomerReceipt.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -950,7 +950,7 @@ AND isset($_SESSION['ReceiptBatch'])){ /*a customer is selected */ - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . $_SESSION['CustomerRecord']['name'] . ' - (' . _('All amounts stated in') . ' ' . $_SESSION['CustomerRecord']['currency'] . ')' . _('Terms') . ': ' . $_SESSION['CustomerRecord']['terms'] . '<br/>' . _('Credit Limit') . ': ' . locale_number_format($_SESSION['CustomerRecord']['creditlimit'],0) . ' ' . _('Credit Status') . ': ' . $_SESSION['CustomerRecord']['reasondescription']; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . $_SESSION['CustomerRecord']['name'] . ' - (' . _('All amounts stated in') . ' ' . $_SESSION['CustomerRecord']['currency'] . ')' . _('Terms') . ': ' . $_SESSION['CustomerRecord']['terms'] . '<br/>' . _('Credit Limit') . ': ' . locale_number_format($_SESSION['CustomerRecord']['creditlimit'],0) . ' ' . _('Credit Status') . ': ' . $_SESSION['CustomerRecord']['reasondescription']; if ($_SESSION['CustomerRecord']['dissallowinvoices']!=0){ echo '<br /> Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/DeliveryDetails.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -571,16 +571,16 @@ echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt=""></td> + <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> </tr>'; @@ -596,14 +596,14 @@ </table>'; echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Order') . '" alt=""></td> + <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> </tr> </table>'; } echo '<br /><table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt=""></td> + <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> </tr> </table>'; @@ -778,18 +778,18 @@ echo '<br /> <table class="selection"> <tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt=""></td><td><a href="' . $rootpath . '/PrintCustOrder.php?identifier='.$identifier . '&TransNo=' . $_SESSION['ExistingOrder'.$identifier] . '">'. _('Print packing slip - pre-printed stationery') .'</a></td> + <td><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" /></td><td><a 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><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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Invoice') . '" alt=""></td> + <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> </tr>'; echo '<tr> - <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt=""></td> + <td><img src="'.$rootpath.'/css/'.$theme.'/images/sales.png" title="' . _('Order') . '" alt="" /></td> <td><a href="' . $rootpath .'/SelectSalesOrder.php?identifier='.$identifier . '">'. _('Select A Different Order') .'</a></td> </tr> </table>'; Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/FormDesigner.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -153,7 +153,7 @@ if (empty($_POST['preview'])) { $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); } -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="">' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="" />' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br />'; $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">'; Modified: trunk/GeocodeSetup.php =================================================================== --- trunk/GeocodeSetup.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/GeocodeSetup.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -226,7 +226,7 @@ echo '<input type="hidden" name="SelectedParam" value="' . $SelectedParam . '" />'; echo '<input type="hidden" name="GeoCodeID" value="' . $_POST['GeoCodeID'] . '" />'; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Geocode Setup') . '" alt="">'. _('Setup configuration for Geocoding of Customers and Suppliers') .'</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Geocode Setup') . '" alt="" />'. _('Setup configuration for Geocoding of Customers and Suppliers') .'</p>'; echo '<table> <tr><td>'. _('Geocode Code') .':</td> <td>' . $_POST['GeoCodeID'] . '</td></tr>'; Modified: trunk/PDFPeriodStockTransListing.php =================================================================== --- trunk/PDFPeriodStockTransListing.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PDFPeriodStockTransListing.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -17,7 +17,7 @@ include ('includes/header.inc'); echo '<div class="centre"> - <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="">' . ' '. _('Stock Transaction Listing').'</img></p> + <p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' '. _('Stock Transaction Listing').'</img></p> </div>'; if ($InputError==1){ Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PO_Header.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -600,7 +600,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Purchase Order') . '" alt=""> + <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Purchase Order') . '" alt="" /> ' . $_SESSION['PO'.$identifier]->SupplierName . ' - ' . _('All amounts stated in') . ' ' . $_SESSION['PO'.$identifier]->CurrCode . '<br />'; Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PO_SelectOSPurchOrder.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -136,7 +136,7 @@ } else { echo '<a href="' . $rootpath . '/PO_Header.php?NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; } - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'</p>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; echo '<table class="selection"> <tr> <td>'._('Order Number') . ': <input type="text" name="OrderNumber" maxlength="8" size="9" /> ' . _('Into Stock Location') . ': Modified: trunk/PrintCustTrans.php =================================================================== --- trunk/PrintCustTrans.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/PrintCustTrans.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -504,7 +504,7 @@ echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="">' . ' ' . _('Print Invoices or Credit Notes (Landscape Mode)') . '</div>'; + echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Print Invoices or Credit Notes (Landscape Mode)') . '</div>'; echo '<table class="table1"> <tr><td>' . _('Print Invoices or Credit Notes') . '</td><td><select name=InvOrCredit>'; if ($InvOrCredit=='Invoice' OR !isset($InvOrCredit)) { Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectCreditItems.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -1006,7 +1006,7 @@ printf('<td><font size="1"><input type="submit" name="NewItem" value="%s" /></font></td> <td><font size="1">%s</font></td> <td><font size="1">%s</font></td> - <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120"></td></tr>', + <td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120" /></td></tr>', $myrow['stockid'], $myrow['description'], $myrow['units'], Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectCustomer.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -639,7 +639,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != "") { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/group_add.png" title="' . _('Customer Contacts') . '" alt=""><a href="AddCustomerContacts.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Contact') . '</a></div>'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/group_add.png" title="' . _('Customer Contacts') . '" alt="" /><a href="AddCustomerContacts.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Contact') . '</a></div>'; } } // Customer Notes @@ -649,7 +649,7 @@ ORDER BY date DESC"; $result = DB_query($sql, $db); if (DB_num_rows($result) <> 0) { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="">' . ' ' . _('Customer Notes') . '</div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="" />' . ' ' . _('Customer Notes') . '</div><br />'; echo '<table width="45%">'; echo '<tr> <th>' . _('date') . '</th> @@ -680,7 +680,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != "") { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt=""><a href="AddCustomerNotes.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Note for this Customer') . '</a></div>'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/note_add.png" title="' . _('Customer Notes') . '" alt="" /><a href="AddCustomerNotes.php?DebtorNo=' . $_SESSION['CustomerID'] . '">' . ' ' . _('Add New Note for this Customer') . '</a></div>'; } } // Custome Type Notes @@ -690,7 +690,7 @@ ORDER BY date DESC"; $result = DB_query($sql, $db); if (DB_num_rows($result) <> 0) { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Type (Group) Notes') . '" alt="">' . ' ' . _('Customer Type (Group) Notes for:' . '<b> ' . $CustomerTypeName . '</b>') . '</div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Type (Group) Notes') . '" alt="" />' . ' ' . _('Customer Type (Group) Notes for:' . '<b> ' . $CustomerTypeName . '</b>') . '</div><br />'; echo '<table width="45%">'; echo '<tr> <th>' . _('date') . '</th> @@ -721,7 +721,7 @@ echo '</table>'; } else { if ($_SESSION['CustomerID'] != '') { - echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Group Notes') . '" alt=""><a href="AddCustomerTypeNotes.php?DebtorType=' . $CustomerType . '">' . ' ' . _('Add New Group Note') . '</a></div><br />'; + echo '<br /><div class="centre"><img src="' . $rootpath . '/css/' . $theme . '/images/folder_add.png" title="' . _('Customer Group Notes') . '" alt="" /><a href="AddCustomerTypeNotes.php?DebtorType=' . $CustomerType . '">' . ' ' . _('Add New Group Note') . '</a></div><br />'; } } } Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectProduct.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -428,7 +428,7 @@ echo '<a href="' . $rootpath . '/StockTransfers.php?StockID=' . $StockID . '">' . _('Location Transfers') . '</a><br />'; //show the item image if it has been uploaded if( isset($StockID) AND file_exists($_SESSION['part_pics_dir'] . '/' .$StockID.'.jpg') ) { - echo '<div class="centre"><img src="' . $rootpath . '/GetStockImage.php?automake=1&textcolor=FFFFF0&bgcolor=007F00&StockID=' . $StockID . '&text=' . $StockID . '&width=120&height=120">'; + echo '<div class="centre"><img src="' . $rootpath . '/GetStockImage.php?automake=1&textcolor=FFFFF0&bgcolor=007F00&StockID=' . $StockID . '&text=' . $StockID . '&width=120&height=120" />'; } if (($myrow['mbflag'] == 'B') AND (in_array($SuppliersSecurity, $_SESSION['AllowedPageSecurityTokens'])) Modified: trunk/SelectSalesOrder.php =================================================================== --- trunk/SelectSalesOrder.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/SelectSalesOrder.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -899,7 +899,7 @@ if ($AuthRow['cancreate']==0 AND $myrow['poplaced']==0){ //cancreate==0 if the user can create POs and not already placed printf('<td><a href="%s">%s</a></td> <td><a href="%s">' . _('Invoice') . '</a></td> - <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath.'/css/'.$theme.'/images/pdf.png" title="' . _('Click for PDF') . '"></a></td> + <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath.'/css/'.$theme.'/images/pdf.png" title="' . _('Click for PDF') . '" /></a></td> <td>%s</td> <td>%s</td> <td>%s</td> @@ -926,7 +926,7 @@ } else { /*User is not authorised to create POs so don't even show the option */ printf('<td><a href="%s">%s</a></td> <td><a href="%s">' . _('Invoice') . '</a></td> - <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath . '/css/' . $theme .'/images/pdf.png" title="' . _('Click for PDF') . '"></a></td> + <td><a target="_blank" href="%s">' . $PrintText . ' <img src="' .$rootpath . '/css/' . $theme .'/images/pdf.png" title="' . _('Click for PDF') . '" /></a></td> <td>%s</td> <td>%s</td> <td>%s</td> Modified: trunk/StockTransferControlled.php =================================================================== --- trunk/StockTransferControlled.php 2012-01-25 23:03:03 UTC (rev 4839) +++ trunk/StockTransferControlled.php 2012-01-25 23:23:13 UTC (rev 4840) @@ -11,7 +11,7 @@ include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt=""><b>' . $title . '</b></p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . $title . '</b></p>'; if (!isset($_SESSION['Transfer'])) { /* This page can only be called when a stock Transfer is pending */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 10:12:37
|
Revision: 4841 http://web-erp.svn.sourceforge.net/web-erp/?rev=4841&view=rev Author: daintree Date: 2012-01-27 10:12:31 +0000 (Fri, 27 Jan 2012) Log Message: ----------- fixed html display from StatusComments POST using htmlentities Modified Paths: -------------- trunk/GLJournal.php trunk/PO_AuthoriseMyOrders.php trunk/doc/Change.log Modified: trunk/GLJournal.php =================================================================== --- trunk/GLJournal.php 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/GLJournal.php 2012-01-27 10:12:31 UTC (rev 4841) @@ -318,9 +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 Modified: trunk/PO_AuthoriseMyOrders.php =================================================================== --- trunk/PO_AuthoriseMyOrders.php 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/PO_AuthoriseMyOrders.php 2012-01-27 10:12:31 UTC (rev 4841) @@ -20,8 +20,7 @@ if (mb_substr($key,0,6)=='status') { $OrderNo=mb_substr($key,6); $Status=$_POST['status'.$OrderNo]; - $Comment=date($_SESSION['DefaultDateFormat']).' - '._('Authorised by').' <a href="mailto:' . $EmailRow['email'].'">'.$_SESSION['UserID'].'</a> - <br />' . $_POST['comment']; + $Comment=date($_SESSION['DefaultDateFormat']).' - '._('Authorised by').' <a href="mailto:' . $EmailRow['email'].'">'.$_SESSION['UserID'].'</a><br />' . $_POST['comment']; $sql="UPDATE purchorders SET status='".$Status."', stat_comment='".$Comment."', @@ -88,14 +87,14 @@ <td>'.ConvertSQLDate($myrow['orddate']).'</td> <td><a href="mailto:'.$myrow['email'].'">'.$myrow['realname'].'</td> <td>'.ConvertSQLDate($myrow['deliverydate']).'</td> - <td><select name=status'.$myrow['orderno'].'> + <td><select name="status'.$myrow['orderno'].'"> <option selected="selected" value="Pending">'._('Pending').'</option> <option value="Authorised">'._('Authorised').'</option> <option value="Rejected">'._('Rejected').'</option> <option value="Cancelled">'._('Cancelled').'</option> </select></td> </tr>'; - echo '<input type="hidden" name="comment" value="' . $myrow['stat_comment'] . '" />'; + echo '<input type="hidden" name="comment" value="' . htmlentities($myrow['stat_comment'], ENT_QUOTES,'UTF-8') . '" />'; $LineSQL="SELECT purchorderdetails.*, stockmaster.description, stockmaster.decimalplaces @@ -131,10 +130,16 @@ <td class="number">'.locale_number_format($LineRow['unitprice']*$LineRow['quantityord'],$myrow['currdecimalplaces']).'</td> </tr>'; } // end while order line detail - echo '</table></td></tr>'; + echo '</table> + </td> + </tr>'; } } //end while header loop echo '</table>'; -echo '<br /><div class="centre"><input type="submit" name="UpdateAll" value="' . _('Update'). '" /></form>'; +echo '<br /> + <div class="centre"> + <input type="submit" name="UpdateAll" value="' . _('Update'). '" /> + </div> + </form>'; include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/doc/Change.log 2012-01-27 10:12:31 UTC (rev 4841) @@ -1,5 +1,6 @@ webERP Change Log +27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) 25/1/12 Vitaly: Added quotes and missing closing tags in multiple files 24/1/12 Vitaly: Added quotes to attributes in multiple files and changed option selected to selected="selected". 23/1/12 Vitaly: Added quotes to attributes in multiple files. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 10:12:40
|
Revision: 4841 http://web-erp.svn.sourceforge.net/web-erp/?rev=4841&view=rev Author: daintree Date: 2012-01-27 10:12:31 +0000 (Fri, 27 Jan 2012) Log Message: ----------- fixed html display from StatusComments POST using htmlentities Modified Paths: -------------- trunk/GLJournal.php trunk/PO_AuthoriseMyOrders.php trunk/doc/Change.log Modified: trunk/GLJournal.php =================================================================== --- trunk/GLJournal.php 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/GLJournal.php 2012-01-27 10:12:31 UTC (rev 4841) @@ -318,9 +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 Modified: trunk/PO_AuthoriseMyOrders.php =================================================================== --- trunk/PO_AuthoriseMyOrders.php 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/PO_AuthoriseMyOrders.php 2012-01-27 10:12:31 UTC (rev 4841) @@ -20,8 +20,7 @@ if (mb_substr($key,0,6)=='status') { $OrderNo=mb_substr($key,6); $Status=$_POST['status'.$OrderNo]; - $Comment=date($_SESSION['DefaultDateFormat']).' - '._('Authorised by').' <a href="mailto:' . $EmailRow['email'].'">'.$_SESSION['UserID'].'</a> - <br />' . $_POST['comment']; + $Comment=date($_SESSION['DefaultDateFormat']).' - '._('Authorised by').' <a href="mailto:' . $EmailRow['email'].'">'.$_SESSION['UserID'].'</a><br />' . $_POST['comment']; $sql="UPDATE purchorders SET status='".$Status."', stat_comment='".$Comment."', @@ -88,14 +87,14 @@ <td>'.ConvertSQLDate($myrow['orddate']).'</td> <td><a href="mailto:'.$myrow['email'].'">'.$myrow['realname'].'</td> <td>'.ConvertSQLDate($myrow['deliverydate']).'</td> - <td><select name=status'.$myrow['orderno'].'> + <td><select name="status'.$myrow['orderno'].'"> <option selected="selected" value="Pending">'._('Pending').'</option> <option value="Authorised">'._('Authorised').'</option> <option value="Rejected">'._('Rejected').'</option> <option value="Cancelled">'._('Cancelled').'</option> </select></td> </tr>'; - echo '<input type="hidden" name="comment" value="' . $myrow['stat_comment'] . '" />'; + echo '<input type="hidden" name="comment" value="' . htmlentities($myrow['stat_comment'], ENT_QUOTES,'UTF-8') . '" />'; $LineSQL="SELECT purchorderdetails.*, stockmaster.description, stockmaster.decimalplaces @@ -131,10 +130,16 @@ <td class="number">'.locale_number_format($LineRow['unitprice']*$LineRow['quantityord'],$myrow['currdecimalplaces']).'</td> </tr>'; } // end while order line detail - echo '</table></td></tr>'; + echo '</table> + </td> + </tr>'; } } //end while header loop echo '</table>'; -echo '<br /><div class="centre"><input type="submit" name="UpdateAll" value="' . _('Update'). '" /></form>'; +echo '<br /> + <div class="centre"> + <input type="submit" name="UpdateAll" value="' . _('Update'). '" /> + </div> + </form>'; include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-25 23:23:13 UTC (rev 4840) +++ trunk/doc/Change.log 2012-01-27 10:12:31 UTC (rev 4841) @@ -1,5 +1,6 @@ webERP Change Log +27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) 25/1/12 Vitaly: Added quotes and missing closing tags in multiple files 24/1/12 Vitaly: Added quotes to attributes in multiple files and changed option selected to selected="selected". 23/1/12 Vitaly: Added quotes to attributes in multiple files. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 23:11:35
|
Revision: 4844 http://web-erp.svn.sourceforge.net/web-erp/?rev=4844&view=rev Author: daintree Date: 2012-01-27 23:11:28 +0000 (Fri, 27 Jan 2012) Log Message: ----------- fix link for controlled invoice lines Modified Paths: -------------- trunk/ConfirmDispatch_Invoice.php trunk/doc/Change.log trunk/includes/DefineSpecialOrderClass.php Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-27 23:11:28 UTC (rev 4844) @@ -395,7 +395,7 @@ if ($LnItm->Controlled==1){ if (!isset($_POST['ProcessInvoice'])) { - echo '<td><a href="' . $rootpath . '/ConfirmDispatchControlled_Invoice.php?LineNo='. $LnItm->LineNumber.'">'; + echo '<td><a href="' . $rootpath . '/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">'; if ($LnItm->Serialised==1){ echo _('Enter Serial Numbers'); } else { /*Just batch/roll/lot control */ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/doc/Change.log 2012-01-27 23:11:28 UTC (rev 4844) @@ -1,5 +1,7 @@ webERP Change Log +28/1/12 Phil: ConfirmDispatch_Invoice.php corrected link to ConfirmDispatchControlled_Invoice.php to send $identifier to get the correct session variable containing the order to invoice +28/1/12 Tim: SpecialOrder.php added $identifier to session class variable to avoid overlapping sessions in multiple tabs. 27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) 25/1/12 Vitaly: Added quotes and missing closing tags in multiple files 24/1/12 Vitaly: Added quotes to attributes in multiple files and changed option selected to selected="selected". Modified: trunk/includes/DefineSpecialOrderClass.php =================================================================== --- trunk/includes/DefineSpecialOrderClass.php 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/includes/DefineSpecialOrderClass.php 2012-01-27 23:11:28 UTC (rev 4844) @@ -37,7 +37,7 @@ } function add_to_order($LineNo, $Qty, $ItemDescr, $Price, $Cost, $StkCat, $ReqDelDate){ - if ($Qty!=0 && isset($Qty)){ + if ($Qty!=0 AND isset($Qty)){ $this->LineItems[$LineNo] = new LineDetails($LineNo, $Qty, $ItemDescr, $Price, $Cost, $StkCat, $ReqDelDate); $this->LinesOnOrder++; Return 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 23:11:35
|
Revision: 4844 http://web-erp.svn.sourceforge.net/web-erp/?rev=4844&view=rev Author: daintree Date: 2012-01-27 23:11:28 +0000 (Fri, 27 Jan 2012) Log Message: ----------- fix link for controlled invoice lines Modified Paths: -------------- trunk/ConfirmDispatch_Invoice.php trunk/doc/Change.log trunk/includes/DefineSpecialOrderClass.php Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/ConfirmDispatch_Invoice.php 2012-01-27 23:11:28 UTC (rev 4844) @@ -395,7 +395,7 @@ if ($LnItm->Controlled==1){ if (!isset($_POST['ProcessInvoice'])) { - echo '<td><a href="' . $rootpath . '/ConfirmDispatchControlled_Invoice.php?LineNo='. $LnItm->LineNumber.'">'; + echo '<td><a href="' . $rootpath . '/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">'; if ($LnItm->Serialised==1){ echo _('Enter Serial Numbers'); } else { /*Just batch/roll/lot control */ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/doc/Change.log 2012-01-27 23:11:28 UTC (rev 4844) @@ -1,5 +1,7 @@ webERP Change Log +28/1/12 Phil: ConfirmDispatch_Invoice.php corrected link to ConfirmDispatchControlled_Invoice.php to send $identifier to get the correct session variable containing the order to invoice +28/1/12 Tim: SpecialOrder.php added $identifier to session class variable to avoid overlapping sessions in multiple tabs. 27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) 25/1/12 Vitaly: Added quotes and missing closing tags in multiple files 24/1/12 Vitaly: Added quotes to attributes in multiple files and changed option selected to selected="selected". Modified: trunk/includes/DefineSpecialOrderClass.php =================================================================== --- trunk/includes/DefineSpecialOrderClass.php 2012-01-27 16:37:31 UTC (rev 4843) +++ trunk/includes/DefineSpecialOrderClass.php 2012-01-27 23:11:28 UTC (rev 4844) @@ -37,7 +37,7 @@ } function add_to_order($LineNo, $Qty, $ItemDescr, $Price, $Cost, $StkCat, $ReqDelDate){ - if ($Qty!=0 && isset($Qty)){ + if ($Qty!=0 AND isset($Qty)){ $this->LineItems[$LineNo] = new LineDetails($LineNo, $Qty, $ItemDescr, $Price, $Cost, $StkCat, $ReqDelDate); $this->LinesOnOrder++; Return 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 23:22:33
|
Revision: 4845 http://web-erp.svn.sourceforge.net/web-erp/?rev=4845&view=rev Author: daintree Date: 2012-01-27 23:22:26 +0000 (Fri, 27 Jan 2012) Log Message: ----------- Ahmed.Fawzy: StockCategories.php fixes for numericvalue not displaying and errored with "minimum value is not numeric" Modified Paths: -------------- trunk/StockCategories.php trunk/doc/Change.log Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-01-27 23:11:28 UTC (rev 4844) +++ trunk/StockCategories.php 2012-01-27 23:22:26 UTC (rev 4845) @@ -485,7 +485,8 @@ defaultvalue, reqatsalesorder, minimumvalue, - maximumvalue + maximumvalue, + numericvalue FROM stockcatproperties WHERE categoryid='" . $SelectedCategory . "' ORDER BY stkcatpropid"; @@ -566,7 +567,7 @@ </select></td> <td><input type="textbox" name="PropDefault' . $PropertyCounter . '" /></td> <td><input type="checkbox" name="PropNumeric' . $PropertyCounter . '" /></td> - <td><input type="textbox" class="number" "name="PropMinimum' . $PropertyCounter . '" /></td> + <td><input type="textbox" class="number" name="PropMinimum' . $PropertyCounter . '" /></td> <td><input type="textbox" class="number" name="PropMaximum' . $PropertyCounter . '" /></td> <td align="center"><input type="checkbox" name="PropReqSO' . $PropertyCounter .'" /></td> </tr>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-27 23:11:28 UTC (rev 4844) +++ trunk/doc/Change.log 2012-01-27 23:22:26 UTC (rev 4845) @@ -1,5 +1,6 @@ webERP Change Log +28/1/12 Ahmed.Fawzy: StockCategories.php fixes for numericvalue not displaying and errored with "minimum value is not numeric" 28/1/12 Phil: ConfirmDispatch_Invoice.php corrected link to ConfirmDispatchControlled_Invoice.php to send $identifier to get the correct session variable containing the order to invoice 28/1/12 Tim: SpecialOrder.php added $identifier to session class variable to avoid overlapping sessions in multiple tabs. 27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-27 23:22:33
|
Revision: 4845 http://web-erp.svn.sourceforge.net/web-erp/?rev=4845&view=rev Author: daintree Date: 2012-01-27 23:22:26 +0000 (Fri, 27 Jan 2012) Log Message: ----------- Ahmed.Fawzy: StockCategories.php fixes for numericvalue not displaying and errored with "minimum value is not numeric" Modified Paths: -------------- trunk/StockCategories.php trunk/doc/Change.log Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2012-01-27 23:11:28 UTC (rev 4844) +++ trunk/StockCategories.php 2012-01-27 23:22:26 UTC (rev 4845) @@ -485,7 +485,8 @@ defaultvalue, reqatsalesorder, minimumvalue, - maximumvalue + maximumvalue, + numericvalue FROM stockcatproperties WHERE categoryid='" . $SelectedCategory . "' ORDER BY stkcatpropid"; @@ -566,7 +567,7 @@ </select></td> <td><input type="textbox" name="PropDefault' . $PropertyCounter . '" /></td> <td><input type="checkbox" name="PropNumeric' . $PropertyCounter . '" /></td> - <td><input type="textbox" class="number" "name="PropMinimum' . $PropertyCounter . '" /></td> + <td><input type="textbox" class="number" name="PropMinimum' . $PropertyCounter . '" /></td> <td><input type="textbox" class="number" name="PropMaximum' . $PropertyCounter . '" /></td> <td align="center"><input type="checkbox" name="PropReqSO' . $PropertyCounter .'" /></td> </tr>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-01-27 23:11:28 UTC (rev 4844) +++ trunk/doc/Change.log 2012-01-27 23:22:26 UTC (rev 4845) @@ -1,5 +1,6 @@ webERP Change Log +28/1/12 Ahmed.Fawzy: StockCategories.php fixes for numericvalue not displaying and errored with "minimum value is not numeric" 28/1/12 Phil: ConfirmDispatch_Invoice.php corrected link to ConfirmDispatchControlled_Invoice.php to send $identifier to get the correct session variable containing the order to invoice 28/1/12 Tim: SpecialOrder.php added $identifier to session class variable to avoid overlapping sessions in multiple tabs. 27/1/12 Phil: PO_AuthoriseMyOrders.php fixed html in hidden $_POST['StatusComments'] by using htmlentities($_POST['StatusComments']) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-29 03:10:16
|
Revision: 4847 http://web-erp.svn.sourceforge.net/web-erp/?rev=4847&view=rev Author: daintree Date: 2012-01-29 03:10:08 +0000 (Sun, 29 Jan 2012) Log Message: ----------- start on API Invoice Order method Modified Paths: -------------- trunk/api/api_php.php trunk/api/api_salesorders.php trunk/api/api_session.inc trunk/api/api_webERPsettings.php trunk/api/api_xml-rpc.php trunk/includes/DateFunctions.inc trunk/includes/GetSalesTransGLCodes.inc trunk/includes/UserLogin.php Modified: trunk/api/api_php.php =================================================================== --- trunk/api/api_php.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_php.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -12,7 +12,9 @@ include('api_errorcodes.php'); /* Include SQL_CommonFunctions.inc, to use GetNextTransNo().*/ - include($PathPrefix.'includes/SQL_CommonFunctions.inc'); + include($PathPrefix . 'includes/SQL_CommonFunctions.inc'); + /* Required for creating invoices/credits */ + include($PathPrefix . 'includes/GetSalesTransGLCode.inc'); /* Get weberp authentication, and return a valid database connection */ Modified: trunk/api/api_salesorders.php =================================================================== --- trunk/api/api_salesorders.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_salesorders.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -340,13 +340,19 @@ $OrderHeader['orderno'] = GetNextTransNo(30,$db); foreach ($OrderHeader as $key => $value) { $FieldNames.=$key.', '; - if (in_array($key, $SOH_DateFields) ) + if (in_array($key, $SOH_DateFields) ) { $value = FormatDateforSQL($value); // Fix dates - $FieldValues.='"'.$value.'", '; + } + $FieldValues.="'".$value."', "; } $sql = 'INSERT INTO salesorders ('.mb_substr($FieldNames,0,-2).") - VALUES ('" . mb_substr($FieldValues,0,-2). "')"; + VALUES (" . mb_substr($FieldValues,0,-2). ")"; if (sizeof($Errors)==0) { + + /*debug info to file + $fp = fopen( '/root/Web-Server/apidebug/api-sql.sql', "w"); + fputs($fp, $sql); + */ $result = api_DB_Query($sql, $db); if (DB_error_no($db) != 0) { $Errors[0] = DatabaseUpdateFailed; @@ -436,8 +442,9 @@ global $SOH_DateFields; $sql='UPDATE salesorders SET '; foreach ($OrderHeader as $key => $value) { - if (in_array($key, $SOH_DateFields) ) + if (in_array($key, $SOH_DateFields) ) { $value = FormatDateforSQL($value); // Fix dates + } $sql .= $key.'="'.$value.'", '; } $sql = mb_substr($sql,0,-2). " WHERE orderno='" . $OrderHeader['orderno']. "'"; @@ -495,12 +502,13 @@ $FieldNames.=$key.', '; if ($key == 'actualdispatchdate') { $value = FormatDateWithTimeForSQL($value); - } elseif ($key == 'itemdue') + } elseif ($key == 'itemdue') { $value = FormatDateForSQL($value); - $FieldValues.='"'.$value.'", '; + } + $FieldValues.= "'" . $value . "', "; } - $sql = 'INSERT INTO salesorderdetails (' . mb_substr($FieldNames,0,-2) . ") - VALUES ('" . mb_substr($FieldValues,0,-2) . "')"; + $sql = "INSERT INTO salesorderdetails (" . mb_substr($FieldNames,0,-2) . ") + VALUES (" . mb_substr($FieldValues,0,-2) . ")"; if (sizeof($Errors)==0) { $result = api_DB_Query($sql, $db); if (DB_error_no($db) != 0) { @@ -620,4 +628,609 @@ return $Errors; } } + + + function InvoiceSalesOrder($OrderNo, $User, $Password) { + $Errors = array(); + $db = db($user, $password); + if (gettype($db)=='integer') { + $Errors[0]=NoAuthorisation; + return $Errors; + } + $Errors=VerifyOrderHeaderExists($OrderNo, sizeof($Errors), $Errors, $db); + if (sizeof($Errors)!=0) { + return $Errors; + } + /*Does not deal with assembly items or serialise/lot track items - for use by POS */ + /*Get Company Defaults */ + $ReadCoyResult = api_DB_query("SELECT debtorsact, + freightact, + gllink_debtors, + gllink_stock + FROM companies + WHERE coycode=1";,$db); + + $CompanyRecord = DB_fetch_array($ReadCoyResult); + + $OrderHeaderSQL = "SELECT salesorders.debtorno, + debtorsmaster.name, + salesorders.branchcode, + salesorders.customerref, + salesorders.orddate, + salesorders.ordertype, + salesorders.shipvia, + custbranch.area, + custbranch.taxgroupid, + debtorsmaster.currcode, + currencies.rate, + salesorders.fromstkloc, + custbranch.salesman + FROM salesorders + INNER JOIN debtorsmaster + ON salesorders.debtorno = debtorsmaster.debtorno + INNER JOIN custbranch + ON salesorders.debtorno = custbranch.debtorno + AND salesorders.branchcode = custbranch.branchcode + INNER JOIN locations + ON locations.loccode=salesorders.fromstkloc + INNER JOIN currencies + ON debtorsmaster.currcode=currencies.currabrev + WHERE salesorders.orderno = '" . $OrderNumber . "'"; + + $OrderHeaderResult = api_DB_query($OrderHeaderSQL,$db); + $OrderHeader = DB_fetch_array($OrderHeaderResult); + + $TaxProvResult = api_DB_query("SELECT taxprovinceid FROM locations WHERE loccode='" . $OrderHeader['fromstkloc'] ."'",$db); + $Result = api_DB_query($SQL,$db); + $myrow = DB_fetch_row($Result); + $DispTaxProvinceID = $myrow[0]; + + + + $LineItemsSQL = "SELECT stkcode, + unitprice, + quantity, + discountpercent, + taxcatid + FROM salesorderdetails INNER JOIN stockmaster + ON salesorderdetails.stkcode = stockmaster.stockid + WHERE orderno ='" . $OrderNo . "'"; + + $LineItemsResult = api_DB_query($LineItemsSQL,$db); + + /*Start an SQL transaction */ + $result = DB_Txn_Begin($db); + /*Now Get the next invoice number - function in SQL_CommonFunctions*/ + $InvoiceNo = GetNextTransNo(10, $db); + $PeriodNo = GetCurrentPeriod($db); + + $TotalFXNetInvoice = 0; + $TotalFXTax = 0; + $LineCounter =0; + + while ($OrderLineRow = DB_fetch_array($LineItemsResult)) { + + $LineNetAmount = $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] *(1- floatval($OrderLineRow['discountpercent'])); + + /*Gets the Taxes and rates applicable to this line from the TaxGroup of the branch and TaxCategory of the item + and the taxprovince of the dispatch location */ + + $SQL = "SELECT taxgrouptaxes.calculationorder, + taxauthorities.description, + taxgrouptaxes.taxauthid, + taxauthorities.taxglcode, + taxgrouptaxes.taxontax, + taxauthrates.taxrate + FROM taxauthrates INNER JOIN taxgrouptaxes ON + taxauthrates.taxauthority=taxgrouptaxes.taxauthid + INNER JOIN taxauthorities ON + taxauthrates.taxauthority=taxauthorities.taxid + WHERE taxgrouptaxes.taxgroupid='" . $OrderHeader['taxgroupid'] . "' + AND taxauthrates.dispatchtaxprovince='" . $DispTaxProvinceID . "' + AND taxauthrates.taxcatid = '" . $OrderLineRow['taxcatid'] . "' + ORDER BY taxgrouptaxes.calculationorder"; + + $GetTaxRatesResult = api_DB_query($SQL,$db,'','',true); + + $LineTaxAmount = 0; + $TaxTotals =array(); + + while ($myrow = DB_fetch_array($GetTaxRatesResult)){ + if (!isset($TaxTotals[$myrow['taxauthid']]['FXAmount'])) { + $TaxTotals[$myrow['taxauthid']]['FXAmount']=0; + } + $TaxAuthID=$myrow['taxauthid']; + $TaxTotals[$myrow['taxauthid']]['GLCode'] = $myrow['taxglcode']; + $TaxTotals[$myrow['taxauthid']]['TaxRate'] = $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['TaxAuthDescription'] = $myrow['description']; + + if ($myrow['taxontax'] ==1){ + $TaxAuthAmount = ($LineNetAmount+$LineTaxAmount) * $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['FXAmount'] += ($LineNetAmount+$LineTaxAmount) * $myrow['taxrate']; + } else { + $TaxAuthAmount = $LineNetAmount * $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['FXAmount'] += $LineNetAmount * $myrow['taxrate']; + } + + /*Make an array of the taxes and amounts including GLcodes for later posting - need debtortransid + so can only post once the debtor trans is posted - can only post debtor trans when all tax is calculated */ + $LineTaxes[$LineCounter][$myrow['calculationorder']] = array('TaxCalculationOrder' =>$myrow['calculationorder'], + 'TaxAuthID' =>$myrow['taxauthid'], + 'TaxAuthDescription'=>$myrow['description'], + 'TaxRate'=>$myrow['taxrate'], + 'TaxOnTax'=>$myrow['taxontax'], + 'TaxAuthAmount'=>$TaxAuthAmount); + $LineTaxAmount += $TaxAuthAmount; + + } + + $LineNetAmount = $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] *(1- floatval($OrderLineRow['discountpercent'])); + + $TotalFXNetInvoice += $LineNetAmount; + $TotalFXTax += $LineTaxAmount; + + /*Now update SalesOrderDetails for the quantity invoiced and the actual dispatch dates. */ + $SQL = "UPDATE salesorderdetails + SET qtyinvoiced = qtyinvoiced + " . $OrderLineRow['quantity'] . ", + actualdispatchdate = '" . $OrderHeader['orddate']. "', + completed='1' + WHERE orderno = '" . $OrderNo . "' + AND stkcode = '" . $OrderLineRow['stkcode'] . "'"; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The sales order detail record could not be updated because'); + $DbgMsg = _('The following SQL to update the sales order detail record was used'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + + // Insert stock movements - with unit cost + $LocalCurrencyPrice= ($OrderLineRow['unitprice'] *(1- floatval($OrderLineRow['discountpercent'])))/ $OrderHeader['rate']; + + + +/*Can't assume dummy/service items need the cogs stuff here too */ + + + + // its a dummy item dummies always have nil stock (by definition so new qty on hand will be nil + $SQL = "INSERT INTO stockmoves ( + stockid, + type, + transno, + loccode, + trandate, + debtorno, + branchcode, + price, + prd, + reference, + qty, + discountpercent, + standardcost) + VALUES ( + '" . $OrderLineRow['stkcode'] . "', + '10', + '" . $InvoiceNo . "', + '" . $OrderHeader['fromstkloc'] . "', + '" . $OrderHeader['orddate'] . "', + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $LocalCurrencyPrice . "', + '" . $PeriodNo . "', + '" . $OrderNo . "', + '" . -$OrderLineRow['quantity'] . "', + '" . $OrderLineRow['discountpercent'] . "', + '0')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + /*Get the ID of the StockMove... */ + $StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno'); + + /*Insert the taxes that applied to this line */ + foreach ($LineTaxes[$LineCounter] as $Tax) { + + $SQL = "INSERT INTO stockmovestaxes (stkmoveno, + taxauthid, + taxrate, + taxcalculationorder, + taxontax) + VALUES ('" . $StkMoveNo . "', + '" . $Tax['TaxAuthID'] . "', + '" . $Tax['TaxRate'] . "', + '" . $Tax['TaxCalculationOrder'] . "', + '" . $Tax['TaxOnTax'] . "')"; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Taxes and rates applicable to this invoice line item could not be inserted because'); + $DbgMsg = _('The following SQL to insert the stock movement tax detail records was used'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + } + /*Insert Sales Analysis records */ + + $SQL="SELECT COUNT(*), + salesanalysis.stkcategory, + salesanalysis.area, + salesanalysis.salesperson, + salesanalysis.periodno, + salesanalysis.typeabbrev, + salesanalysis.cust, + salesanalysis.custbranch, + salesanalysis.stockid + FROM salesanalysis, + custbranch, + stockmaster + WHERE salesanalysis.stkcategory=stockmaster.categoryid + AND salesanalysis.stockid=stockmaster.stockid + AND salesanalysis.cust=custbranch.debtorno + AND salesanalysis.custbranch=custbranch.branchcode + AND salesanalysis.area=custbranch.area + AND salesanalysis.salesperson=custbranch.salesman + AND salesanalysis.typeabbrev ='" . $OrderHeader['ordertype'] . "' + AND salesanalysis.periodno='" . $PeriodNo . "' + AND salesanalysis.cust " . LIKE . " '" . $OrderHeader['debtorno'] . "' + AND salesanalysis.custbranch " . LIKE . " '" . $OrderHeader['branchcode'] . "' + AND salesanalysis.stockid " . LIKE . " '" . $OrderLineRow['stkcode'] . "' + AND salesanalysis.budgetoractual='1' + GROUP BY salesanalysis.stockid, + salesanalysis.stkcategory, + salesanalysis.cust, + salesanalysis.custbranch, + salesanalysis.area, + salesanalysis.periodno, + salesanalysis.typeabbrev, + salesanalysis.salesperson"; + + $ErrMsg = _('The count of existing Sales analysis records could not run because'); + $DbgMsg = _('SQL to count the no of sales analysis records'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + + $myrow = DB_fetch_row($Result); + + if ($myrow[0]>0){ /*Update the existing record that already exists */ + + $SQL = "UPDATE salesanalysis + SET amt=amt+" . filter_number_format($OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate']) . ", + qty=qty +" . $OrderLineRow['quantity'] . ", + disc=disc+" . filter_number_format($OrderLineRow['discountpercent'] * $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate']) . " + WHERE salesanalysis.area='" . $myrow[2] . "' + AND salesanalysis.salesperson='" . $myrow[3] . "' + AND typeabbrev ='" . $OrderHeader['ordertype'] . "' + AND periodno = '" . $PeriodNo . "' + AND cust " . LIKE . " '" . $OrderHeader['debtorno'] . "' + AND custbranch " . LIKE . " '" . $OrderHeader['branchcode'] . "' + AND stockid " . LIKE . " '" . $OrderLineRow['stkcode'] . "' + AND salesanalysis.stkcategory ='" . $myrow[1] . "' + AND budgetoractual='1'"; + + } else { /* insert a new sales analysis record */ + + $SQL = "INSERT INTO salesanalysis ( typeabbrev, + periodno, + amt, + cost, + cust, + custbranch, + qty, + disc, + stockid, + area, + budgetoractual, + salesperson, + stkcategory ) + SELECT '" . $OrderHeader['ordertype']. "', + '" . $PeriodNo . "', + '" . $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate'] . "', + 0, + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $OrderLineRow['quantity'] . "', + '" . $OrderLineRow['discountpercent'] * $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate'] . "', + '" . $OrderLineRow['stkcode'] . "', + custbranch.area, + 1, + custbranch.salesman, + stockmaster.categoryid + FROM stockmaster, custbranch + WHERE stockmaster.stockid = '" . $OrderLineRow['stkcode'] . "' + AND custbranch.debtorno = '" . $OrderHeader['debtorno'] . "' + AND custbranch.branchcode='" . $OrderHeader['branchcode'] . "'"; + } + + $Result = api_DB_query($SQL,$db,'','',true); + + if ($CompanyRecord['gllink_debtors']==1 AND $OrderLineRow['unitprice'] !=0){ + + //Post sales transaction to GL credit sales + $SalesGLAccounts = GetSalesGLAccount($Area, $OrderLineRow['stkcode'], $OrderHeader['ordertype'], $db); + + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount ) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $SalesGLAccounts['salesglcode'] . "', + '" . $OrderHeader['debtorno'] . " - " . $OrderLineRow['stkcode'] . " x " . $OrderLineRow['quantity'] . " @ " . $OrderLineRow['unitprice'] . "', + '" . -$OrderLineRow['unitprice'] * $OrderLineRow['quantity']/$OrderHeader['rate'] . "' + )"; + $Result = api_DB_query($SQL,$db,'','',true); + + /* We also need the COGS stuff in here */ + + + + + + + + + + + + + + + + + + + + + + if ($OrderLineRow['discountpercent'] !=0){ + + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $SalesGLAccounts['discountglcode'] . "', + '" . $OrderHeader['debtorno'] . " - " . $OrderLineRow['stkcode'] . ' @ ' . ($OrderLineRow['discountpercent'] * 100) . "%', + '" . $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] * $OrderLineRow['discountpercent']/$OrderHeader['rate'] . "' )"; + + $Result = api_DB_query($SQL,$db,'','',true); + + } /*end of if discount !=0 */ + + } /*end of if sales integrated with gl */ + + $LineCounter++; + } /*end of OrderLine loop */ + + $TotalInvLocalCurr = ($TotalFXNetInvoice + $TotalFXTax)/$OrderHeader['rate']; + + if ($CompanyRecord['gllink_debtors']==1){ + + /*Now post the tax to the GL at local currency equivalent */ + if ($CompanyRecord['gllink_debtors']==1 AND $TaxAuthAmount !=0) { + + + /*Loop through the tax authorities array to post each total to the taxauth glcode */ + foreach ($TaxTotals as $Tax){ + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount ) + VALUES (10, + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate']. "', + '" . $PeriodNo . "', + '" . $Tax['GLCode'] . "', + '" . $OrderHeader['debtorno'] . "-" . $Tax['TaxAuthDescription'] . "', + '" . -$Tax['FXAmount']/$OrderHeader['rate'] . "' )"; + + $Result = api_DB_query($SQL,$db,'','',true); + } + } + + /*Post debtors transaction to GL debit debtors, credit freight re-charged and credit sales */ + if (($TotalInvLocalCurr) !=0) { + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $CompanyRecord['debtorsact'] . "', + '" . $OrderHeader['debtorno'] . "', + '" . $TotalInvLocalCurr . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + } + + + } /*end of if Sales and GL integrated */ + + /*Update order header for invoice charged on */ + $SQL = "UPDATE salesorders SET comments = CONCAT(comments,' Inv ','" . $InvoiceNo . "') WHERE orderno= '" . $OrderNo . "'"; + $Result = api_DB_query($SQL,$db,'','',true); + + /*Now insert the DebtorTrans */ + + $SQL = "INSERT INTO debtortrans (transno, + type, + debtorno, + branchcode, + trandate, + inputdate, + prd, + reference, + tpe, + order_, + ovamount, + ovgst, + rate, + shipvia) + VALUES ( + '". $InvoiceNo . "', + 10, + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $OrderHeader['orddate'] . "', + '" . date('Y-m-d H-i-s') . "', + '" . $PeriodNo . "', + '" . $OrderHeader['customerref'] . "', + '" . $OrderHeader['sales_type'] . "', + '" . $OrderNo . "', + '" . $TotalFXNetInvoice . "', + '" . $TotalFXTax . "', + '" . $OrderHeader['rate'] . "', + '" . $OrderHeader['shipvia'] . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + $DebtorTransID = DB_Last_Insert_ID($db,'debtortrans','id'); + + /*for each Tax - need to insert into debtortranstaxes */ + + + + $SQL = "INSERT INTO debtortranstaxes (debtortransid, + taxauthid, + taxamount) + VALUES ('" . $DebtorTransID . "', + '" . $TaxAuthID . "', + '" . $Tax['FXAmount']/$OrderHeader['rate'] . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + $Result = DB_Txn_Commit($db); + + if (sizeof($Errors)==0) { + $Errors[0]=0; + $Errors[1]=$InvoiceNo; + } + return $Errors; + + + + } + + + function GetCurrentPeriod (&$db) { + + $TransDate = mktime(); //The current date to find the period for + /* Find the unix timestamp of the last period end date in periods table */ + $sql = "SELECT MAX(lastdate_in_period), MAX(periodno) from periods"; + $result = DB_query($sql, $db); + $myrow=DB_fetch_row($result); + + if (is_null($myrow[0])){ + $InsertFirstPeriodResult = api_DB_query("INSERT INTO periods VALUES (0,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+1,0,Date('Y'))) . "')",$db); + $InsertFirstPeriodResult = api_DB_query("INSERT INTO periods VALUES (1,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+2,0,Date('Y'))) . "')",$db); + $LastPeriod=1; + $LastPeriodEnd = mktime(0,0,0,Date('m')+2,0,Date('Y')); + } else { + $Date_Array = explode('-', $myrow[0]); + $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+1,0,(int)$Date_Array[0]); + $LastPeriod = $myrow[1]; + } + /* Find the unix timestamp of the first period end date in periods table */ + $sql = "SELECT MIN(lastdate_in_period), MIN(periodno) from periods"; + $result = api_DB_query($sql, $db); + $myrow=DB_fetch_row($result); + $Date_Array = explode('-', $myrow[0]); + $FirstPeriodEnd = mktime(0,0,0,$Date_Array[1],0,(int)$Date_Array[0]); + $FirstPeriod = $myrow[1]; + + /* If the period number doesn't exist */ + if (!PeriodExists($TransDate, $db)) { + /* if the transaction is after the last period */ + if ($TransDate > $LastPeriodEnd) { + + $PeriodEnd = mktime(0,0,0,Date('m', $TransDate)+1, 0, Date('Y', $TransDate)); + + while ($PeriodEnd >= $LastPeriodEnd) { + if (Date('m', $LastPeriodEnd)<=13) { + $LastPeriodEnd = mktime(0,0,0,Date('m', $LastPeriodEnd)+2, 0, Date('Y', $LastPeriodEnd)); + } else { + $LastPeriodEnd = mktime(0,0,0,2, 0, Date('Y', $LastPeriodEnd)+1); + } + $LastPeriod++; + CreatePeriod($LastPeriod, $LastPeriodEnd, $db); + } + } else { + /* The transaction is before the first period */ + $PeriodEnd = mktime(0,0,0,Date('m', $TransDate), 0, Date('Y', $TransDate)); + $Period = $FirstPeriod - 1; + while ($FirstPeriodEnd > $PeriodEnd) { + CreatePeriod($Period, $FirstPeriodEnd, $db); + $Period--; + if (Date('m', $FirstPeriodEnd)>0) { + $FirstPeriodEnd = mktime(0,0,0,Date('m', $FirstPeriodEnd), 0, Date('Y', $FirstPeriodEnd)); + } else { + $FirstPeriodEnd = mktime(0,0,0,13, 0, Date('Y', $FirstPeriodEnd)); + } + } + } + } else if (!PeriodExists(mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)), $db)) { + /* Make sure the following months period exists */ + $sql = "SELECT MAX(lastdate_in_period), MAX(periodno) from periods"; + $result = DB_query($sql, $db); + $myrow=DB_fetch_row($result); + $Date_Array = explode('-', $myrow[0]); + $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+2,0,(int)$Date_Array[0]); + $LastPeriod = $myrow[1]; + CreatePeriod($LastPeriod+1, $LastPeriodEnd, $db); + } + + /* Now return the period number of the transaction */ + + $MonthAfterTransDate = Mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)); + $GetPrdSQL = "SELECT periodno + FROM periods + WHERE lastdate_in_period < '" . Date('Y-m-d', $MonthAfterTransDate) . "' + AND lastdate_in_period >= '" . Date('Y-m-d', $TransDate) . "'"; + + $ErrMsg = _('An error occurred in retrieving the period number'); + $GetPrdResult = DB_query($GetPrdSQL,$db,$ErrMsg); + $myrow = DB_fetch_row($GetPrdResult); + + return $myrow[0]; + } + + function PeriodExists($TransDate, &$db) { + + /* Find the date a month on */ + $MonthAfterTransDate = Mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)); + + $GetPrdSQL = "SELECT periodno FROM periods WHERE lastdate_in_period < '" . Date('Y/m/d', $MonthAfterTransDate) . "' AND lastdate_in_period >= '" . Date('Y/m/d', $TransDate) . "'"; + + $GetPrdResult = api_DB_query($GetPrdSQL,$db,$ErrMsg); + + if (DB_num_rows($GetPrdResult)==0) { + return false; + } else { + return true; + } + + } + + function CreatePeriod($PeriodNo, $PeriodEnd, &$db) { + $InsertPrdSQL = "INSERT INTO periods (periodno, + lastdate_in_period) + VALUES ('" . $PeriodNo . "', + '" . Date('Y-m-d', $PeriodEnd) . "')"; + + $InsertPrdResult = api_DB_query($InsertPrdSQL, $db); + } + + ?> \ No newline at end of file Modified: trunk/api/api_session.inc =================================================================== --- trunk/api/api_session.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_session.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -4,13 +4,7 @@ if (!isset($PathPrefix)) { $PathPrefix=''; } -if (!file_exists($PathPrefix . 'config.php')){ - $rootpath = dirname(htmlspecialchars($_SERVER['PHP_SELF'])); - if ($rootpath == '/' OR $rootpath == "\\") { - $rootpath = ''; - } - header('Location:' . $rootpath . '/install/index.php'); -} + include($PathPrefix . 'config.php'); if (isset($SessionSavePath)){ @@ -51,41 +45,7 @@ // value must be set in the script before header.inc is included. $SecurityGroups is an array of // arrays defining access for each group of users. These definitions can be modified by a system admin under setup -if (isset($_SESSION['AllowedPageSecurityTokens']) AND !is_array($_SESSION['AllowedPageSecurityTokens']) AND !isset($AllowAnyone)) { -/* NO HTML output - but may need an XMLRPC style error message here. - Lindsay: 12Jan10 - $title = _('Account Error Report'); - include($PathPrefix . 'includes/header.inc'); - echo '<br /><br /><br />'; - prnMsg(_('Security settings have not been defined for your user account. Please advise your system administrator. It could also be that there is a session problem with your PHP web server'),'error'); - include($PathPrefix . 'includes/footer.inc'); - */ - exit; -} -if (!isset($AllowAnyone)){ - if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { -/* NO HTML output - but need to return an appropriate error message - Lindsay: 12Jan10 - $title = _('Security Permissions Problem'); - include($PathPrefix . 'includes/header.inc'); - echo '<tr> - <td class="menu_group_items"> - <table width="100%" class="table_index"> - <tr><td class="menu_group_item">'; - echo '<b><font style="size:+1; text-align:center;">' . _('The security settings on your account do not permit you to access this function') . '</font></b>'; - - echo '</td> - </tr> - </table> - </td>'; - - include($PathPrefix . 'includes/footer.inc'); - */ - exit; - } - } - function CryptPass( $Password ) { global $CryptFunction; if ( $CryptFunction == 'sha1' ) { @@ -105,13 +65,11 @@ // data. $result = DB_query($sql, $db, $Emsg, $Dmsg, $Transaction, $TrapErrors); - if (DB_error_no($db) != 0) - { - $_SESSION['db_err_msg'] = "SQL: " . $sql . "\nDB error message: " . - DB_error_msg($db) . "\n"; - } - else - $_SESSION['db_err_msg'] = ''; + if (DB_error_no($db) != 0) { + $_SESSION['db_err_msg'] = "SQL: " . $sql . "\nDB error message: " . DB_error_msg($db) . "\n"; + } else { + $_SESSION['db_err_msg'] = ''; + } return $result; } Modified: trunk/api/api_webERPsettings.php =================================================================== --- trunk/api/api_webERPsettings.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_webERPsettings.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -73,4 +73,22 @@ return $ReturnValue; } +/* This function returns the default shipper in webERP. + */ + + function GetDefaultShipper($user, $password) { + $Errors = array(); + $db = db($user, $password); + if (gettype($db)=='integer') { + $Errors[0]=NoAuthorisation; + return $Errors; + } + $sql = "SELECT confvalue from config WHERE confname='Default_Shipper'"; + $result = DB_query($sql, $db); + $answer=DB_fetch_array($result); + $ReturnValue[0]=0; + $ReturnValue[1]=$answer; + return $ReturnValue; + } + ?> Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_xml-rpc.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -2718,7 +2718,7 @@ /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); /*x*/ } else { -/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat( '', ''))); +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat( '', ''))); /*x*/ } ob_end_flush(); return $rtn; @@ -2728,6 +2728,37 @@ unset($Parameter); unset($ReturnValue); + $Description = _('Returns the webERP default shipper'); + $Parameter[0]['name'] = _('User name'); + $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); + $Parameter[1]['name'] = _('User password'); + $Parameter[1]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('If successful this function returns an array of two elements the first should contain an integer of zero for successful and the second an associative arrat containing the key of confvalue the value of which is the Default_Shipper.') + ._('Otherwise an array of error codes is returned. '); + +/*E*/$GetDefaultShipper_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetDefaultShipper_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetDefaultShipper($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultShipper($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultShipper( '', ''))); +/*x*/ } + ob_end_flush(); + return $rtn; + } + + unset($Description); + unset($Parameter); + unset($ReturnValue); + + + $Description = _('Returns the webERP default location'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -3199,6 +3230,10 @@ "function" => "xmlrpc_GetDefaultDateFormat", "signature" => $GetDefaultDateFormat_sig, "docstring" => $GetDefaultDateFormat_doc), + "weberp.xmlrpc_GetDefaultShipper" => array( + "function" => "xmlrpc_GetDefaultShipper", + "signature" => $GetDefaultShipper_sig, + "docstring" => $GetDefaultShipper_doc), "weberp.xmlrpc_GetDefaultCurrency" => array( "function" => "xmlrpc_GetDefaultCurrency", "signature" => $GetDefaultCurrency_sig, Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/DateFunctions.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -821,19 +821,6 @@ $ErrMsg = _('An error occurred in adding a new period number'); $GetPrdResult = DB_query($GetPrdSQL, $db, $ErrMsg); -/*I don't think this is necessary since GLPostings.inc handles this - * - $sql = "INSERT INTO chartdetails (accountcode, period) - SELECT chartmaster.accountcode, periods.periodno - FROM chartmaster - CROSS JOIN periods - WHERE ( chartmaster.accountcode, periods.periodno ) NOT - IN ( SELECT chartdetails.accountcode, chartdetails.period FROM chartdetails )"; - -//dont trap errors - chart details records created only as required - duplicate messages ignored - $InsNewChartDetails = DB_query($sql,$db,'','','',false); -*/ - } function PeriodExists($TransDate, &$db) { Modified: trunk/includes/GetSalesTransGLCodes.inc =================================================================== --- trunk/includes/GetSalesTransGLCodes.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/GetSalesTransGLCodes.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -167,11 +167,11 @@ */ $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = '" . $StockCategory . "' - AND salestype = '". $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = '" . $StockCategory . "' + AND salestype = '". $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); Modified: trunk/includes/UserLogin.php =================================================================== --- trunk/includes/UserLogin.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/UserLogin.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -37,10 +37,10 @@ return UL_SHOWLOGIN; } $sql = "SELECT * - FROM www_users - WHERE www_users.userid='" . $Name . "' - AND (www_users.password='" . CryptPass($Password) . "' - OR www_users.password='" . $Password . "')"; + FROM www_users + WHERE www_users.userid='" . $Name . "' + AND (www_users.password='" . CryptPass($Password) . "' + OR www_users.password='" . $Password . "')"; $ErrMsg = _('Could not retrieve user details on login because'); $debug =1; $Auth_Result = DB_query($sql, $db,$ErrMsg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-01-29 03:10:16
|
Revision: 4847 http://web-erp.svn.sourceforge.net/web-erp/?rev=4847&view=rev Author: daintree Date: 2012-01-29 03:10:08 +0000 (Sun, 29 Jan 2012) Log Message: ----------- start on API Invoice Order method Modified Paths: -------------- trunk/api/api_php.php trunk/api/api_salesorders.php trunk/api/api_session.inc trunk/api/api_webERPsettings.php trunk/api/api_xml-rpc.php trunk/includes/DateFunctions.inc trunk/includes/GetSalesTransGLCodes.inc trunk/includes/UserLogin.php Modified: trunk/api/api_php.php =================================================================== --- trunk/api/api_php.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_php.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -12,7 +12,9 @@ include('api_errorcodes.php'); /* Include SQL_CommonFunctions.inc, to use GetNextTransNo().*/ - include($PathPrefix.'includes/SQL_CommonFunctions.inc'); + include($PathPrefix . 'includes/SQL_CommonFunctions.inc'); + /* Required for creating invoices/credits */ + include($PathPrefix . 'includes/GetSalesTransGLCode.inc'); /* Get weberp authentication, and return a valid database connection */ Modified: trunk/api/api_salesorders.php =================================================================== --- trunk/api/api_salesorders.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_salesorders.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -340,13 +340,19 @@ $OrderHeader['orderno'] = GetNextTransNo(30,$db); foreach ($OrderHeader as $key => $value) { $FieldNames.=$key.', '; - if (in_array($key, $SOH_DateFields) ) + if (in_array($key, $SOH_DateFields) ) { $value = FormatDateforSQL($value); // Fix dates - $FieldValues.='"'.$value.'", '; + } + $FieldValues.="'".$value."', "; } $sql = 'INSERT INTO salesorders ('.mb_substr($FieldNames,0,-2).") - VALUES ('" . mb_substr($FieldValues,0,-2). "')"; + VALUES (" . mb_substr($FieldValues,0,-2). ")"; if (sizeof($Errors)==0) { + + /*debug info to file + $fp = fopen( '/root/Web-Server/apidebug/api-sql.sql', "w"); + fputs($fp, $sql); + */ $result = api_DB_Query($sql, $db); if (DB_error_no($db) != 0) { $Errors[0] = DatabaseUpdateFailed; @@ -436,8 +442,9 @@ global $SOH_DateFields; $sql='UPDATE salesorders SET '; foreach ($OrderHeader as $key => $value) { - if (in_array($key, $SOH_DateFields) ) + if (in_array($key, $SOH_DateFields) ) { $value = FormatDateforSQL($value); // Fix dates + } $sql .= $key.'="'.$value.'", '; } $sql = mb_substr($sql,0,-2). " WHERE orderno='" . $OrderHeader['orderno']. "'"; @@ -495,12 +502,13 @@ $FieldNames.=$key.', '; if ($key == 'actualdispatchdate') { $value = FormatDateWithTimeForSQL($value); - } elseif ($key == 'itemdue') + } elseif ($key == 'itemdue') { $value = FormatDateForSQL($value); - $FieldValues.='"'.$value.'", '; + } + $FieldValues.= "'" . $value . "', "; } - $sql = 'INSERT INTO salesorderdetails (' . mb_substr($FieldNames,0,-2) . ") - VALUES ('" . mb_substr($FieldValues,0,-2) . "')"; + $sql = "INSERT INTO salesorderdetails (" . mb_substr($FieldNames,0,-2) . ") + VALUES (" . mb_substr($FieldValues,0,-2) . ")"; if (sizeof($Errors)==0) { $result = api_DB_Query($sql, $db); if (DB_error_no($db) != 0) { @@ -620,4 +628,609 @@ return $Errors; } } + + + function InvoiceSalesOrder($OrderNo, $User, $Password) { + $Errors = array(); + $db = db($user, $password); + if (gettype($db)=='integer') { + $Errors[0]=NoAuthorisation; + return $Errors; + } + $Errors=VerifyOrderHeaderExists($OrderNo, sizeof($Errors), $Errors, $db); + if (sizeof($Errors)!=0) { + return $Errors; + } + /*Does not deal with assembly items or serialise/lot track items - for use by POS */ + /*Get Company Defaults */ + $ReadCoyResult = api_DB_query("SELECT debtorsact, + freightact, + gllink_debtors, + gllink_stock + FROM companies + WHERE coycode=1";,$db); + + $CompanyRecord = DB_fetch_array($ReadCoyResult); + + $OrderHeaderSQL = "SELECT salesorders.debtorno, + debtorsmaster.name, + salesorders.branchcode, + salesorders.customerref, + salesorders.orddate, + salesorders.ordertype, + salesorders.shipvia, + custbranch.area, + custbranch.taxgroupid, + debtorsmaster.currcode, + currencies.rate, + salesorders.fromstkloc, + custbranch.salesman + FROM salesorders + INNER JOIN debtorsmaster + ON salesorders.debtorno = debtorsmaster.debtorno + INNER JOIN custbranch + ON salesorders.debtorno = custbranch.debtorno + AND salesorders.branchcode = custbranch.branchcode + INNER JOIN locations + ON locations.loccode=salesorders.fromstkloc + INNER JOIN currencies + ON debtorsmaster.currcode=currencies.currabrev + WHERE salesorders.orderno = '" . $OrderNumber . "'"; + + $OrderHeaderResult = api_DB_query($OrderHeaderSQL,$db); + $OrderHeader = DB_fetch_array($OrderHeaderResult); + + $TaxProvResult = api_DB_query("SELECT taxprovinceid FROM locations WHERE loccode='" . $OrderHeader['fromstkloc'] ."'",$db); + $Result = api_DB_query($SQL,$db); + $myrow = DB_fetch_row($Result); + $DispTaxProvinceID = $myrow[0]; + + + + $LineItemsSQL = "SELECT stkcode, + unitprice, + quantity, + discountpercent, + taxcatid + FROM salesorderdetails INNER JOIN stockmaster + ON salesorderdetails.stkcode = stockmaster.stockid + WHERE orderno ='" . $OrderNo . "'"; + + $LineItemsResult = api_DB_query($LineItemsSQL,$db); + + /*Start an SQL transaction */ + $result = DB_Txn_Begin($db); + /*Now Get the next invoice number - function in SQL_CommonFunctions*/ + $InvoiceNo = GetNextTransNo(10, $db); + $PeriodNo = GetCurrentPeriod($db); + + $TotalFXNetInvoice = 0; + $TotalFXTax = 0; + $LineCounter =0; + + while ($OrderLineRow = DB_fetch_array($LineItemsResult)) { + + $LineNetAmount = $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] *(1- floatval($OrderLineRow['discountpercent'])); + + /*Gets the Taxes and rates applicable to this line from the TaxGroup of the branch and TaxCategory of the item + and the taxprovince of the dispatch location */ + + $SQL = "SELECT taxgrouptaxes.calculationorder, + taxauthorities.description, + taxgrouptaxes.taxauthid, + taxauthorities.taxglcode, + taxgrouptaxes.taxontax, + taxauthrates.taxrate + FROM taxauthrates INNER JOIN taxgrouptaxes ON + taxauthrates.taxauthority=taxgrouptaxes.taxauthid + INNER JOIN taxauthorities ON + taxauthrates.taxauthority=taxauthorities.taxid + WHERE taxgrouptaxes.taxgroupid='" . $OrderHeader['taxgroupid'] . "' + AND taxauthrates.dispatchtaxprovince='" . $DispTaxProvinceID . "' + AND taxauthrates.taxcatid = '" . $OrderLineRow['taxcatid'] . "' + ORDER BY taxgrouptaxes.calculationorder"; + + $GetTaxRatesResult = api_DB_query($SQL,$db,'','',true); + + $LineTaxAmount = 0; + $TaxTotals =array(); + + while ($myrow = DB_fetch_array($GetTaxRatesResult)){ + if (!isset($TaxTotals[$myrow['taxauthid']]['FXAmount'])) { + $TaxTotals[$myrow['taxauthid']]['FXAmount']=0; + } + $TaxAuthID=$myrow['taxauthid']; + $TaxTotals[$myrow['taxauthid']]['GLCode'] = $myrow['taxglcode']; + $TaxTotals[$myrow['taxauthid']]['TaxRate'] = $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['TaxAuthDescription'] = $myrow['description']; + + if ($myrow['taxontax'] ==1){ + $TaxAuthAmount = ($LineNetAmount+$LineTaxAmount) * $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['FXAmount'] += ($LineNetAmount+$LineTaxAmount) * $myrow['taxrate']; + } else { + $TaxAuthAmount = $LineNetAmount * $myrow['taxrate']; + $TaxTotals[$myrow['taxauthid']]['FXAmount'] += $LineNetAmount * $myrow['taxrate']; + } + + /*Make an array of the taxes and amounts including GLcodes for later posting - need debtortransid + so can only post once the debtor trans is posted - can only post debtor trans when all tax is calculated */ + $LineTaxes[$LineCounter][$myrow['calculationorder']] = array('TaxCalculationOrder' =>$myrow['calculationorder'], + 'TaxAuthID' =>$myrow['taxauthid'], + 'TaxAuthDescription'=>$myrow['description'], + 'TaxRate'=>$myrow['taxrate'], + 'TaxOnTax'=>$myrow['taxontax'], + 'TaxAuthAmount'=>$TaxAuthAmount); + $LineTaxAmount += $TaxAuthAmount; + + } + + $LineNetAmount = $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] *(1- floatval($OrderLineRow['discountpercent'])); + + $TotalFXNetInvoice += $LineNetAmount; + $TotalFXTax += $LineTaxAmount; + + /*Now update SalesOrderDetails for the quantity invoiced and the actual dispatch dates. */ + $SQL = "UPDATE salesorderdetails + SET qtyinvoiced = qtyinvoiced + " . $OrderLineRow['quantity'] . ", + actualdispatchdate = '" . $OrderHeader['orddate']. "', + completed='1' + WHERE orderno = '" . $OrderNo . "' + AND stkcode = '" . $OrderLineRow['stkcode'] . "'"; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The sales order detail record could not be updated because'); + $DbgMsg = _('The following SQL to update the sales order detail record was used'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + + // Insert stock movements - with unit cost + $LocalCurrencyPrice= ($OrderLineRow['unitprice'] *(1- floatval($OrderLineRow['discountpercent'])))/ $OrderHeader['rate']; + + + +/*Can't assume dummy/service items need the cogs stuff here too */ + + + + // its a dummy item dummies always have nil stock (by definition so new qty on hand will be nil + $SQL = "INSERT INTO stockmoves ( + stockid, + type, + transno, + loccode, + trandate, + debtorno, + branchcode, + price, + prd, + reference, + qty, + discountpercent, + standardcost) + VALUES ( + '" . $OrderLineRow['stkcode'] . "', + '10', + '" . $InvoiceNo . "', + '" . $OrderHeader['fromstkloc'] . "', + '" . $OrderHeader['orddate'] . "', + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $LocalCurrencyPrice . "', + '" . $PeriodNo . "', + '" . $OrderNo . "', + '" . -$OrderLineRow['quantity'] . "', + '" . $OrderLineRow['discountpercent'] . "', + '0')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + /*Get the ID of the StockMove... */ + $StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno'); + + /*Insert the taxes that applied to this line */ + foreach ($LineTaxes[$LineCounter] as $Tax) { + + $SQL = "INSERT INTO stockmovestaxes (stkmoveno, + taxauthid, + taxrate, + taxcalculationorder, + taxontax) + VALUES ('" . $StkMoveNo . "', + '" . $Tax['TaxAuthID'] . "', + '" . $Tax['TaxRate'] . "', + '" . $Tax['TaxCalculationOrder'] . "', + '" . $Tax['TaxOnTax'] . "')"; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Taxes and rates applicable to this invoice line item could not be inserted because'); + $DbgMsg = _('The following SQL to insert the stock movement tax detail records was used'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + } + /*Insert Sales Analysis records */ + + $SQL="SELECT COUNT(*), + salesanalysis.stkcategory, + salesanalysis.area, + salesanalysis.salesperson, + salesanalysis.periodno, + salesanalysis.typeabbrev, + salesanalysis.cust, + salesanalysis.custbranch, + salesanalysis.stockid + FROM salesanalysis, + custbranch, + stockmaster + WHERE salesanalysis.stkcategory=stockmaster.categoryid + AND salesanalysis.stockid=stockmaster.stockid + AND salesanalysis.cust=custbranch.debtorno + AND salesanalysis.custbranch=custbranch.branchcode + AND salesanalysis.area=custbranch.area + AND salesanalysis.salesperson=custbranch.salesman + AND salesanalysis.typeabbrev ='" . $OrderHeader['ordertype'] . "' + AND salesanalysis.periodno='" . $PeriodNo . "' + AND salesanalysis.cust " . LIKE . " '" . $OrderHeader['debtorno'] . "' + AND salesanalysis.custbranch " . LIKE . " '" . $OrderHeader['branchcode'] . "' + AND salesanalysis.stockid " . LIKE . " '" . $OrderLineRow['stkcode'] . "' + AND salesanalysis.budgetoractual='1' + GROUP BY salesanalysis.stockid, + salesanalysis.stkcategory, + salesanalysis.cust, + salesanalysis.custbranch, + salesanalysis.area, + salesanalysis.periodno, + salesanalysis.typeabbrev, + salesanalysis.salesperson"; + + $ErrMsg = _('The count of existing Sales analysis records could not run because'); + $DbgMsg = _('SQL to count the no of sales analysis records'); + $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + + $myrow = DB_fetch_row($Result); + + if ($myrow[0]>0){ /*Update the existing record that already exists */ + + $SQL = "UPDATE salesanalysis + SET amt=amt+" . filter_number_format($OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate']) . ", + qty=qty +" . $OrderLineRow['quantity'] . ", + disc=disc+" . filter_number_format($OrderLineRow['discountpercent'] * $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate']) . " + WHERE salesanalysis.area='" . $myrow[2] . "' + AND salesanalysis.salesperson='" . $myrow[3] . "' + AND typeabbrev ='" . $OrderHeader['ordertype'] . "' + AND periodno = '" . $PeriodNo . "' + AND cust " . LIKE . " '" . $OrderHeader['debtorno'] . "' + AND custbranch " . LIKE . " '" . $OrderHeader['branchcode'] . "' + AND stockid " . LIKE . " '" . $OrderLineRow['stkcode'] . "' + AND salesanalysis.stkcategory ='" . $myrow[1] . "' + AND budgetoractual='1'"; + + } else { /* insert a new sales analysis record */ + + $SQL = "INSERT INTO salesanalysis ( typeabbrev, + periodno, + amt, + cost, + cust, + custbranch, + qty, + disc, + stockid, + area, + budgetoractual, + salesperson, + stkcategory ) + SELECT '" . $OrderHeader['ordertype']. "', + '" . $PeriodNo . "', + '" . $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate'] . "', + 0, + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $OrderLineRow['quantity'] . "', + '" . $OrderLineRow['discountpercent'] * $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] / $OrderHeader['rate'] . "', + '" . $OrderLineRow['stkcode'] . "', + custbranch.area, + 1, + custbranch.salesman, + stockmaster.categoryid + FROM stockmaster, custbranch + WHERE stockmaster.stockid = '" . $OrderLineRow['stkcode'] . "' + AND custbranch.debtorno = '" . $OrderHeader['debtorno'] . "' + AND custbranch.branchcode='" . $OrderHeader['branchcode'] . "'"; + } + + $Result = api_DB_query($SQL,$db,'','',true); + + if ($CompanyRecord['gllink_debtors']==1 AND $OrderLineRow['unitprice'] !=0){ + + //Post sales transaction to GL credit sales + $SalesGLAccounts = GetSalesGLAccount($Area, $OrderLineRow['stkcode'], $OrderHeader['ordertype'], $db); + + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount ) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $SalesGLAccounts['salesglcode'] . "', + '" . $OrderHeader['debtorno'] . " - " . $OrderLineRow['stkcode'] . " x " . $OrderLineRow['quantity'] . " @ " . $OrderLineRow['unitprice'] . "', + '" . -$OrderLineRow['unitprice'] * $OrderLineRow['quantity']/$OrderHeader['rate'] . "' + )"; + $Result = api_DB_query($SQL,$db,'','',true); + + /* We also need the COGS stuff in here */ + + + + + + + + + + + + + + + + + + + + + + if ($OrderLineRow['discountpercent'] !=0){ + + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $SalesGLAccounts['discountglcode'] . "', + '" . $OrderHeader['debtorno'] . " - " . $OrderLineRow['stkcode'] . ' @ ' . ($OrderLineRow['discountpercent'] * 100) . "%', + '" . $OrderLineRow['unitprice'] * $OrderLineRow['quantity'] * $OrderLineRow['discountpercent']/$OrderHeader['rate'] . "' )"; + + $Result = api_DB_query($SQL,$db,'','',true); + + } /*end of if discount !=0 */ + + } /*end of if sales integrated with gl */ + + $LineCounter++; + } /*end of OrderLine loop */ + + $TotalInvLocalCurr = ($TotalFXNetInvoice + $TotalFXTax)/$OrderHeader['rate']; + + if ($CompanyRecord['gllink_debtors']==1){ + + /*Now post the tax to the GL at local currency equivalent */ + if ($CompanyRecord['gllink_debtors']==1 AND $TaxAuthAmount !=0) { + + + /*Loop through the tax authorities array to post each total to the taxauth glcode */ + foreach ($TaxTotals as $Tax){ + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount ) + VALUES (10, + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate']. "', + '" . $PeriodNo . "', + '" . $Tax['GLCode'] . "', + '" . $OrderHeader['debtorno'] . "-" . $Tax['TaxAuthDescription'] . "', + '" . -$Tax['FXAmount']/$OrderHeader['rate'] . "' )"; + + $Result = api_DB_query($SQL,$db,'','',true); + } + } + + /*Post debtors transaction to GL debit debtors, credit freight re-charged and credit sales */ + if (($TotalInvLocalCurr) !=0) { + $SQL = "INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES ('10', + '" . $InvoiceNo . "', + '" . $OrderHeader['orddate'] . "', + '" . $PeriodNo . "', + '" . $CompanyRecord['debtorsact'] . "', + '" . $OrderHeader['debtorno'] . "', + '" . $TotalInvLocalCurr . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + } + + + } /*end of if Sales and GL integrated */ + + /*Update order header for invoice charged on */ + $SQL = "UPDATE salesorders SET comments = CONCAT(comments,' Inv ','" . $InvoiceNo . "') WHERE orderno= '" . $OrderNo . "'"; + $Result = api_DB_query($SQL,$db,'','',true); + + /*Now insert the DebtorTrans */ + + $SQL = "INSERT INTO debtortrans (transno, + type, + debtorno, + branchcode, + trandate, + inputdate, + prd, + reference, + tpe, + order_, + ovamount, + ovgst, + rate, + shipvia) + VALUES ( + '". $InvoiceNo . "', + 10, + '" . $OrderHeader['debtorno'] . "', + '" . $OrderHeader['branchcode'] . "', + '" . $OrderHeader['orddate'] . "', + '" . date('Y-m-d H-i-s') . "', + '" . $PeriodNo . "', + '" . $OrderHeader['customerref'] . "', + '" . $OrderHeader['sales_type'] . "', + '" . $OrderNo . "', + '" . $TotalFXNetInvoice . "', + '" . $TotalFXTax . "', + '" . $OrderHeader['rate'] . "', + '" . $OrderHeader['shipvia'] . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + $DebtorTransID = DB_Last_Insert_ID($db,'debtortrans','id'); + + /*for each Tax - need to insert into debtortranstaxes */ + + + + $SQL = "INSERT INTO debtortranstaxes (debtortransid, + taxauthid, + taxamount) + VALUES ('" . $DebtorTransID . "', + '" . $TaxAuthID . "', + '" . $Tax['FXAmount']/$OrderHeader['rate'] . "')"; + + $Result = api_DB_query($SQL,$db,'','',true); + + $Result = DB_Txn_Commit($db); + + if (sizeof($Errors)==0) { + $Errors[0]=0; + $Errors[1]=$InvoiceNo; + } + return $Errors; + + + + } + + + function GetCurrentPeriod (&$db) { + + $TransDate = mktime(); //The current date to find the period for + /* Find the unix timestamp of the last period end date in periods table */ + $sql = "SELECT MAX(lastdate_in_period), MAX(periodno) from periods"; + $result = DB_query($sql, $db); + $myrow=DB_fetch_row($result); + + if (is_null($myrow[0])){ + $InsertFirstPeriodResult = api_DB_query("INSERT INTO periods VALUES (0,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+1,0,Date('Y'))) . "')",$db); + $InsertFirstPeriodResult = api_DB_query("INSERT INTO periods VALUES (1,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+2,0,Date('Y'))) . "')",$db); + $LastPeriod=1; + $LastPeriodEnd = mktime(0,0,0,Date('m')+2,0,Date('Y')); + } else { + $Date_Array = explode('-', $myrow[0]); + $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+1,0,(int)$Date_Array[0]); + $LastPeriod = $myrow[1]; + } + /* Find the unix timestamp of the first period end date in periods table */ + $sql = "SELECT MIN(lastdate_in_period), MIN(periodno) from periods"; + $result = api_DB_query($sql, $db); + $myrow=DB_fetch_row($result); + $Date_Array = explode('-', $myrow[0]); + $FirstPeriodEnd = mktime(0,0,0,$Date_Array[1],0,(int)$Date_Array[0]); + $FirstPeriod = $myrow[1]; + + /* If the period number doesn't exist */ + if (!PeriodExists($TransDate, $db)) { + /* if the transaction is after the last period */ + if ($TransDate > $LastPeriodEnd) { + + $PeriodEnd = mktime(0,0,0,Date('m', $TransDate)+1, 0, Date('Y', $TransDate)); + + while ($PeriodEnd >= $LastPeriodEnd) { + if (Date('m', $LastPeriodEnd)<=13) { + $LastPeriodEnd = mktime(0,0,0,Date('m', $LastPeriodEnd)+2, 0, Date('Y', $LastPeriodEnd)); + } else { + $LastPeriodEnd = mktime(0,0,0,2, 0, Date('Y', $LastPeriodEnd)+1); + } + $LastPeriod++; + CreatePeriod($LastPeriod, $LastPeriodEnd, $db); + } + } else { + /* The transaction is before the first period */ + $PeriodEnd = mktime(0,0,0,Date('m', $TransDate), 0, Date('Y', $TransDate)); + $Period = $FirstPeriod - 1; + while ($FirstPeriodEnd > $PeriodEnd) { + CreatePeriod($Period, $FirstPeriodEnd, $db); + $Period--; + if (Date('m', $FirstPeriodEnd)>0) { + $FirstPeriodEnd = mktime(0,0,0,Date('m', $FirstPeriodEnd), 0, Date('Y', $FirstPeriodEnd)); + } else { + $FirstPeriodEnd = mktime(0,0,0,13, 0, Date('Y', $FirstPeriodEnd)); + } + } + } + } else if (!PeriodExists(mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)), $db)) { + /* Make sure the following months period exists */ + $sql = "SELECT MAX(lastdate_in_period), MAX(periodno) from periods"; + $result = DB_query($sql, $db); + $myrow=DB_fetch_row($result); + $Date_Array = explode('-', $myrow[0]); + $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+2,0,(int)$Date_Array[0]); + $LastPeriod = $myrow[1]; + CreatePeriod($LastPeriod+1, $LastPeriodEnd, $db); + } + + /* Now return the period number of the transaction */ + + $MonthAfterTransDate = Mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)); + $GetPrdSQL = "SELECT periodno + FROM periods + WHERE lastdate_in_period < '" . Date('Y-m-d', $MonthAfterTransDate) . "' + AND lastdate_in_period >= '" . Date('Y-m-d', $TransDate) . "'"; + + $ErrMsg = _('An error occurred in retrieving the period number'); + $GetPrdResult = DB_query($GetPrdSQL,$db,$ErrMsg); + $myrow = DB_fetch_row($GetPrdResult); + + return $myrow[0]; + } + + function PeriodExists($TransDate, &$db) { + + /* Find the date a month on */ + $MonthAfterTransDate = Mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)); + + $GetPrdSQL = "SELECT periodno FROM periods WHERE lastdate_in_period < '" . Date('Y/m/d', $MonthAfterTransDate) . "' AND lastdate_in_period >= '" . Date('Y/m/d', $TransDate) . "'"; + + $GetPrdResult = api_DB_query($GetPrdSQL,$db,$ErrMsg); + + if (DB_num_rows($GetPrdResult)==0) { + return false; + } else { + return true; + } + + } + + function CreatePeriod($PeriodNo, $PeriodEnd, &$db) { + $InsertPrdSQL = "INSERT INTO periods (periodno, + lastdate_in_period) + VALUES ('" . $PeriodNo . "', + '" . Date('Y-m-d', $PeriodEnd) . "')"; + + $InsertPrdResult = api_DB_query($InsertPrdSQL, $db); + } + + ?> \ No newline at end of file Modified: trunk/api/api_session.inc =================================================================== --- trunk/api/api_session.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_session.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -4,13 +4,7 @@ if (!isset($PathPrefix)) { $PathPrefix=''; } -if (!file_exists($PathPrefix . 'config.php')){ - $rootpath = dirname(htmlspecialchars($_SERVER['PHP_SELF'])); - if ($rootpath == '/' OR $rootpath == "\\") { - $rootpath = ''; - } - header('Location:' . $rootpath . '/install/index.php'); -} + include($PathPrefix . 'config.php'); if (isset($SessionSavePath)){ @@ -51,41 +45,7 @@ // value must be set in the script before header.inc is included. $SecurityGroups is an array of // arrays defining access for each group of users. These definitions can be modified by a system admin under setup -if (isset($_SESSION['AllowedPageSecurityTokens']) AND !is_array($_SESSION['AllowedPageSecurityTokens']) AND !isset($AllowAnyone)) { -/* NO HTML output - but may need an XMLRPC style error message here. - Lindsay: 12Jan10 - $title = _('Account Error Report'); - include($PathPrefix . 'includes/header.inc'); - echo '<br /><br /><br />'; - prnMsg(_('Security settings have not been defined for your user account. Please advise your system administrator. It could also be that there is a session problem with your PHP web server'),'error'); - include($PathPrefix . 'includes/footer.inc'); - */ - exit; -} -if (!isset($AllowAnyone)){ - if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { -/* NO HTML output - but need to return an appropriate error message - Lindsay: 12Jan10 - $title = _('Security Permissions Problem'); - include($PathPrefix . 'includes/header.inc'); - echo '<tr> - <td class="menu_group_items"> - <table width="100%" class="table_index"> - <tr><td class="menu_group_item">'; - echo '<b><font style="size:+1; text-align:center;">' . _('The security settings on your account do not permit you to access this function') . '</font></b>'; - - echo '</td> - </tr> - </table> - </td>'; - - include($PathPrefix . 'includes/footer.inc'); - */ - exit; - } - } - function CryptPass( $Password ) { global $CryptFunction; if ( $CryptFunction == 'sha1' ) { @@ -105,13 +65,11 @@ // data. $result = DB_query($sql, $db, $Emsg, $Dmsg, $Transaction, $TrapErrors); - if (DB_error_no($db) != 0) - { - $_SESSION['db_err_msg'] = "SQL: " . $sql . "\nDB error message: " . - DB_error_msg($db) . "\n"; - } - else - $_SESSION['db_err_msg'] = ''; + if (DB_error_no($db) != 0) { + $_SESSION['db_err_msg'] = "SQL: " . $sql . "\nDB error message: " . DB_error_msg($db) . "\n"; + } else { + $_SESSION['db_err_msg'] = ''; + } return $result; } Modified: trunk/api/api_webERPsettings.php =================================================================== --- trunk/api/api_webERPsettings.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_webERPsettings.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -73,4 +73,22 @@ return $ReturnValue; } +/* This function returns the default shipper in webERP. + */ + + function GetDefaultShipper($user, $password) { + $Errors = array(); + $db = db($user, $password); + if (gettype($db)=='integer') { + $Errors[0]=NoAuthorisation; + return $Errors; + } + $sql = "SELECT confvalue from config WHERE confname='Default_Shipper'"; + $result = DB_query($sql, $db); + $answer=DB_fetch_array($result); + $ReturnValue[0]=0; + $ReturnValue[1]=$answer; + return $ReturnValue; + } + ?> Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/api/api_xml-rpc.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -2718,7 +2718,7 @@ /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); /*x*/ } else { -/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat( '', ''))); +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultDateFormat( '', ''))); /*x*/ } ob_end_flush(); return $rtn; @@ -2728,6 +2728,37 @@ unset($Parameter); unset($ReturnValue); + $Description = _('Returns the webERP default shipper'); + $Parameter[0]['name'] = _('User name'); + $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); + $Parameter[1]['name'] = _('User password'); + $Parameter[1]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('If successful this function returns an array of two elements the first should contain an integer of zero for successful and the second an associative arrat containing the key of confvalue the value of which is the Default_Shipper.') + ._('Otherwise an array of error codes is returned. '); + +/*E*/$GetDefaultShipper_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetDefaultShipper_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetDefaultShipper($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultShipper($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetDefaultShipper( '', ''))); +/*x*/ } + ob_end_flush(); + return $rtn; + } + + unset($Description); + unset($Parameter); + unset($ReturnValue); + + + $Description = _('Returns the webERP default location'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -3199,6 +3230,10 @@ "function" => "xmlrpc_GetDefaultDateFormat", "signature" => $GetDefaultDateFormat_sig, "docstring" => $GetDefaultDateFormat_doc), + "weberp.xmlrpc_GetDefaultShipper" => array( + "function" => "xmlrpc_GetDefaultShipper", + "signature" => $GetDefaultShipper_sig, + "docstring" => $GetDefaultShipper_doc), "weberp.xmlrpc_GetDefaultCurrency" => array( "function" => "xmlrpc_GetDefaultCurrency", "signature" => $GetDefaultCurrency_sig, Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/DateFunctions.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -821,19 +821,6 @@ $ErrMsg = _('An error occurred in adding a new period number'); $GetPrdResult = DB_query($GetPrdSQL, $db, $ErrMsg); -/*I don't think this is necessary since GLPostings.inc handles this - * - $sql = "INSERT INTO chartdetails (accountcode, period) - SELECT chartmaster.accountcode, periods.periodno - FROM chartmaster - CROSS JOIN periods - WHERE ( chartmaster.accountcode, periods.periodno ) NOT - IN ( SELECT chartdetails.accountcode, chartdetails.period FROM chartdetails )"; - -//dont trap errors - chart details records created only as required - duplicate messages ignored - $InsNewChartDetails = DB_query($sql,$db,'','','',false); -*/ - } function PeriodExists($TransDate, &$db) { Modified: trunk/includes/GetSalesTransGLCodes.inc =================================================================== --- trunk/includes/GetSalesTransGLCodes.inc 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/GetSalesTransGLCodes.inc 2012-01-29 03:10:08 UTC (rev 4847) @@ -167,11 +167,11 @@ */ $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = '" . $StockCategory . "' - AND salestype = '". $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = '" . $StockCategory . "' + AND salestype = '". $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); Modified: trunk/includes/UserLogin.php =================================================================== --- trunk/includes/UserLogin.php 2012-01-28 01:24:40 UTC (rev 4846) +++ trunk/includes/UserLogin.php 2012-01-29 03:10:08 UTC (rev 4847) @@ -37,10 +37,10 @@ return UL_SHOWLOGIN; } $sql = "SELECT * - FROM www_users - WHERE www_users.userid='" . $Name . "' - AND (www_users.password='" . CryptPass($Password) . "' - OR www_users.password='" . $Password . "')"; + FROM www_users + WHERE www_users.userid='" . $Name . "' + AND (www_users.password='" . CryptPass($Password) . "' + OR www_users.password='" . $Password . "')"; $ErrMsg = _('Could not retrieve user details on login because'); $debug =1; $Auth_Result = DB_query($sql, $db,$ErrMsg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |