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.ph... [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.ph... [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>'; ... [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>'; ... [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 Summa... [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 Summa... [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="... [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="... [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="'. $m... [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="'. $m... [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 @@... [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 @@... [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($xm... [truncated message content] |
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($xm... [truncated message content] |