From: <tim...@us...> - 2009-12-09 22:29:26
|
Revision: 3146 http://web-erp.svn.sourceforge.net/web-erp/?rev=3146&view=rev Author: tim_schofield Date: 2009-12-09 22:28:33 +0000 (Wed, 09 Dec 2009) Log Message: ----------- Correctly align numbers in tables. Modified Paths: -------------- trunk/BOMInquiry.php trunk/BankReconciliation.php trunk/ConfirmDispatch_Invoice.php trunk/DeliveryDetails.php trunk/FTP_RadioBeacon.php trunk/FixedAssetCategories.php trunk/FixedAssetJournal.php trunk/GLAccountInquiry.php trunk/GLJournal.php trunk/OrderDetails.php trunk/PO_Items.php trunk/PO_SelectOSPurchOrder.php trunk/Payments.php trunk/Prices.php trunk/Prices_Customer.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/ReverseGRN.php trunk/SalesAnalRepts.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectRecurringSalesOrder.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/Shipt_Select.php trunk/SpecialOrder.php trunk/StockCategories.php trunk/StockLocMovements.php trunk/StockLocTransferReceive.php trunk/StockQuantityByDate.php trunk/StockSerialItemResearch.php trunk/StockSerialItems.php trunk/StockStatus.php trunk/StockTransfers.php trunk/StockUsage.php trunk/SuppCreditGRNs.php trunk/SuppInvGLAnalysis.php trunk/SuppInvGRNs.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierAllocations.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTransInquiry.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/WorkOrderStatus.php trunk/Z_CheckAllocationsFrom.php trunk/Z_CheckAllocs.php trunk/Z_CheckDebtorsControl.php trunk/Z_CheckGLTransBalance.php trunk/Z_CurrencyDebtorsBalances.php trunk/Z_CurrencySuppliersBalances.php trunk/doc/Change.log.html Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/BOMInquiry.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -122,7 +122,7 @@ $tabindex=$j+4; printf("<td><input tabindex='".$tabindex."' type=submit name='StockID' VALUE='%s'</td> <td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> <td>%s</td></tr>", $myrow['stockid'], $myrow['description'], Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/BankReconciliation.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -154,7 +154,7 @@ echo ' (' . $BankCurrCode . ' @ ' . $ExRate .')'; } echo '</b></td> - <td valign=bottom align=right><b>' . number_format($Balance/$ExRate,2) . '</b></td></tr>'; + <td valign=bottom class=number><b>' . number_format($Balance/$ExRate,2) . '</b></td></tr>'; $SQL = 'SELECT amount/exrate AS amt, amountcleared, @@ -205,8 +205,8 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%01.2f</td> - <td align=right>%01.2f</td> + <td class=number>%01.2f</td> + <td class=number>%01.2f</td> </tr>', ConvertSQLDate($myrow['transdate']), $myrow['typename'], @@ -225,7 +225,7 @@ } //end of while loop echo '<tr></tr> - <tr><td colspan=6>' . _('Total of all unpresented cheques') . '</td><td align=right>' . number_format($TotalUnpresentedCheques,2) . '</td></tr>'; + <tr><td colspan=6>' . _('Total of all unpresented cheques') . '</td><td class=number>' . number_format($TotalUnpresentedCheques,2) . '</td></tr>'; $SQL = 'SELECT amount/exrate AS amt, amountcleared, @@ -277,8 +277,8 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%01.2f</td> - <td align=right>%01.2f</td> + <td class=number>%01.2f</td> + <td class=number>%01.2f</td> </tr>', ConvertSQLDate($myrow['transdate']), $myrow['typename'], @@ -297,14 +297,14 @@ } } //end of while loop - echo '<tr></tr><tr><td colspan=6>' . _('Total of all uncleared deposits') . '</td><td align=right>' . number_format($TotalUnclearedDeposits,2) . '</td></tr>'; + echo '<tr></tr><tr><td colspan=6>' . _('Total of all uncleared deposits') . '</td><td class=number>' . number_format($TotalUnclearedDeposits,2) . '</td></tr>'; $FXStatementBalance = ($Balance/$ExRate) - $TotalUnpresentedCheques -$TotalUnclearedDeposits; - echo '<tr></tr><tr><td colspan=6><b>' . _('Bank statement balance should be') . ' (' . $BankCurrCode . ')</b></td><td align=right>' . number_format($FXStatementBalance,2) . '</td></tr>'; + echo '<tr></tr><tr><td colspan=6><b>' . _('Bank statement balance should be') . ' (' . $BankCurrCode . ')</b></td><td class=number>' . number_format($FXStatementBalance,2) . '</td></tr>'; if (isset($_POST['DoExchangeDifference'])){ echo '<input type="hidden" name="DoExchangeDifference" value=' . $FXStatementBalance . '>'; echo '<tr><td colspan=6>' . _('Enter the actual bank statement balance') . ' (' . $BankCurrCode . ')</b></td> - <td align=right><input type="text" name="BankStatmentBalance" maxlength=15 size=15 value=' . $_POST['BankStatmentBalance'] . '><td></tr>'; + <td class=number><input type="text" name="BankStatmentBalance" maxlength=15 size=15 value=' . $_POST['BankStatmentBalance'] . '><td></tr>'; echo '<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></tr>'; } Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/ConfirmDispatch_Invoice.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -441,11 +441,11 @@ $j++; if ($_SESSION['Items']->Any_Already_Delivered()==1 and (!isset($_SESSION['Items']->FreightCost) or $_POST['ChargeFreightCost']==0)) { - echo '<td colspan=2 align=right>'. _('Charge Freight Cost inc Tax').'</td> + 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>'; $_SESSION['Items']->FreightCost=0; } else { - echo '<td colspan=2 align=right>'. _('Charge Freight Cost inc Tax').'</td> + 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="' . $_SESSION['Items']->FreightCost . '"></td>'; $_POST['ChargeFreightCost'] = $_SESSION['Items']->FreightCost; } Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/DeliveryDetails.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -751,7 +751,7 @@ $DisplayTotal = number_format($_SESSION['Items'.$identifier]->total,2); echo '<tr> - <td colspan=6 align=right><b>'. _('TOTAL Excl Tax/Freight') .'</b></td> + <td colspan=6 class=number><b>'. _('TOTAL Excl Tax/Freight') .'</b></td> <td class=number>'.$DisplayTotal.'</td> </tr></table>'; Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/FTP_RadioBeacon.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -87,7 +87,7 @@ <td><font size=2>%s</font></td> <td><font size=2>%s</font></td> <td><font size=2>%s</font></td> - <td align=right><font size=2>%s</font></td> + <td class=number><font size=2>%s</font></td> <td><font size=2>%s</font></td></tr>", $ModifyPage, $myrow['orderno'], @@ -108,7 +108,7 @@ <td><font size=2>%s</font></td> <td><font size=2>%s</font></td> <td><font size=2>%s</font></td> - <td align=right><font size=2>%s</font></td> + <td class=number><font size=2>%s</font></td> <td><font size=2>%s</font></td></tr>", $ModifyPage, $myrow['orderno'], Modified: trunk/FixedAssetCategories.php =================================================================== --- trunk/FixedAssetCategories.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/FixedAssetCategories.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -227,10 +227,10 @@ printf("<td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td><a href=\"%sSelectedCategory=%s\">" . _('Edit') . "</td> <td><a href=\"%sSelectedCategory=%s&delete=yes\" onclick=\"return confirm('" . _('Are you sure you wish to delete this asset category? Additional checks will be performed before actual deletion to ensure data integrity is not compromised.') . "');\">" . _('Delete') . "</td> </tr>", Modified: trunk/FixedAssetJournal.php =================================================================== --- trunk/FixedAssetJournal.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/FixedAssetJournal.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -393,9 +393,9 @@ } echo '<tr class="EvenTableRows"><td></td> - <td align=right><b> Total </b></td> - <td align=right class="number"><b>' . number_format($debittotal,2) . '</b></td> - <td align=right class="number"><b>' . number_format($credittotal,2) . '</b></td>'; + <td class=number><b> Total </b></td> + <td class=number class="number"><b>' . number_format($debittotal,2) . '</b></td> + <td class=number class="number"><b>' . number_format($credittotal,2) . '</b></td>'; if ($debittotal!=$credittotal) { echo '<td align=center style="background-color: #fddbdb"><b>Required to balance - ' . number_format(abs($debittotal-$credittotal),2); Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/GLAccountInquiry.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -294,9 +294,9 @@ echo '</b></td>'; if ($RunningTotal >0){ - echo '<td align=right><b>' . number_format(($RunningTotal),2) . '</b></td><td colspan=2></td></tr>'; + echo '<td class=number><b>' . number_format(($RunningTotal),2) . '</b></td><td colspan=2></td></tr>'; }else { - echo '<td></td><td align=right><b>' . number_format((-$RunningTotal),2) . '</b></td><td colspan=2></td></tr>'; + echo '<td></td><td class=number><b>' . number_format((-$RunningTotal),2) . '</b></td><td colspan=2></td></tr>'; } echo '</table>'; } /* end of if Show button hit */ Modified: trunk/GLJournal.php =================================================================== --- trunk/GLJournal.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/GLJournal.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -395,9 +395,9 @@ } echo '<tr class="EvenTableRows"><td></td> - <td align=right><b> Total </b></td> - <td align=right class="number"><b>' . number_format($debittotal,2) . '</b></td> - <td align=right class="number"><b>' . number_format($credittotal,2) . '</b></td>'; + <td class=number><b> Total </b></td> + <td class=number class="number"><b>' . number_format($debittotal,2) . '</b></td> + <td class=number class="number"><b>' . number_format($credittotal,2) . '</b></td>'; if ($debittotal!=$credittotal) { echo '<td align=center style="background-color: #fddbdb"><b>Required to balance - ' . number_format(abs($debittotal-$credittotal),2); Modified: trunk/OrderDetails.php =================================================================== --- trunk/OrderDetails.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/OrderDetails.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -173,12 +173,12 @@ echo '<td>' . $myrow['stkcode'] . '</td> <td>' . $myrow['description'] . '</td> - <td align=right>' . $myrow['quantity'] . '</td> + <td class=number>' . $myrow['quantity'] . '</td> <td>' . $myrow['units'] . '</td> - <td align=right>' . number_format($myrow['unitprice'],2) . '</td> - <td align=right>' . number_format(($myrow['discountpercent'] * 100),2) . '%' . '</td> - <td align=right>' . number_format($myrow['quantity'] * $myrow['unitprice'] * (1 - $myrow['discountpercent']),2) . '</td> - <td align=right>' . number_format($myrow['qtyinvoiced'],2) . '</td> + <td class=number>' . number_format($myrow['unitprice'],2) . '</td> + <td class=number>' . number_format(($myrow['discountpercent'] * 100),2) . '%' . '</td> + <td class=number>' . number_format($myrow['quantity'] * $myrow['unitprice'] * (1 - $myrow['discountpercent']),2) . '</td> + <td class=number>' . number_format($myrow['qtyinvoiced'],2) . '</td> <td>' . $DisplayActualDeliveryDate . '</td> </tr>'; @@ -192,8 +192,8 @@ $DisplayWeight = number_format($OrderTotalWeight,2); echo '<tr> - <td colspan=5 align=right><b>' . _('TOTAL Excl Tax/Freight') . '</b></td> - <td colspan=2 align=right>' . $DisplayTotal . '</td> + <td colspan=5 class=number><b>' . _('TOTAL Excl Tax/Freight') . '</b></td> + <td colspan=2 class=number>' . $DisplayTotal . '</td> </tr> </table>'; Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/PO_Items.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -948,7 +948,7 @@ } else { $uom=$POLine->Units; } - // echo "<td>$POLine->StockID</td><td>$POLine->ItemDescription</td>td> align=right>$DisplayQuantity</td><td>$POLine->Units</td><td>$POLine->ReqDelDate</td>td> align=right>$DisplayPrice</td>td> align=right>$DisplayLineTotal</font></td><td><a href='" . $_SERVER['PHP_SELF'] . "?" . SID . "&Edit=" . $POLine->LineNo . "'>" . _('Select') . "</a></td></tr>"; + // echo "<td>$POLine->StockID</td><td>$POLine->ItemDescription</td>td> class=number>$DisplayQuantity</td><td>$POLine->Units</td><td>$POLine->ReqDelDate</td>td> class=number>$DisplayPrice</td>td> class=number>$DisplayLineTotal</font></td><td><a href='" . $_SERVER['PHP_SELF'] . "?" . SID . "&Edit=" . $POLine->LineNo . "'>" . _('Select') . "</a></td></tr>"; echo "<td>$POLine->StockID</td> <td>".$POLine->ItemDescription."</td> <td><input type=text class=number name=Qty$POLine->LineNo size=11 value=".$DisplayQuantity."></td> @@ -963,7 +963,7 @@ } $DisplayTotal = number_format($_SESSION['PO'.$identifier]->total,2); - echo '<tr><td colspan=6 align=right>' . _('TOTAL') . _(' excluding Tax') . '</td><td class=number><b>' . $DisplayTotal . '</b></td></tr></table>'; + echo '<tr><td colspan=6 class=number>' . _('TOTAL') . _(' excluding Tax') . '</td><td class=number><b>' . $DisplayTotal . '</b></td></tr></table>'; echo '<br><div class="centre"><input type="submit" name="UpdateLines" value="Update Order Lines">'; echo '<br><input type="submit" name="Commit" value="Process Order">'; if (!isset($_POST['NewItem']) and isset($_GET['Edit'])) { Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/PO_SelectOSPurchOrder.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -218,8 +218,8 @@ printf("<td><input type=submit name='SelectedStockItem' VALUE='%s'</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td>%s</td></tr>", $myrow['stockid'], $myrow['description'], @@ -460,7 +460,7 @@ // the tailed two column // <td>%s</font></td> -// <td align=right>%s</font></td> +// <td class=number>%s</font></td> // $myrow['requisitionno'], // $myrow['initiator']); // '</td><td class="tableheader">' . _('Requisition') . Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/Payments.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -853,7 +853,7 @@ } echo '<tr> <td align=left>' . $PaymentItem->cheque . '</td> - <td align=right>' . number_format($PaymentItem->Amount,2) . '</td> + <td class=number>' . number_format($PaymentItem->Amount,2) . '</td> <td>' . $PaymentItem->GLCode . ' - ' . $PaymentItem->GLActName . '</td> <td>' . $PaymentItem->Narrative . '</td> <td>' . $PaymentItem->tag . ' - ' . $tagname . '</td> @@ -862,7 +862,7 @@ $PaymentTotal += $PaymentItem->Amount; } - echo '<tr><td></td><td align=right><b>' . number_format($PaymentTotal,2) . '</b></td><td></td><td></td><td></td></tr></table>'; + echo '<tr><td></td><td class=number><b>' . number_format($PaymentTotal,2) . '</b></td><td></td><td></td><td></td></tr></table>'; echo '<br><font size=3 color=BLUE><div class="centre">' . _('General Ledger Payment Analysis Entry') . '</div></font><br><table>'; Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/Prices.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -174,7 +174,7 @@ printf("<td>%s</td> <td>%s</td> - <td align=right>%0.2f</td> + <td class=number>%0.2f</td> <td><a href='%s?%s&Item=%s&TypeAbbrev=%s&CurrAbrev=%s&Price=%s&Edit=1'>" . _('Edit') . "</td> <td><a href='%s?%s&Item=%s&TypeAbbrev=%s&CurrAbrev=%s&delete=yes' onclick=\"return confirm('" . _('Are you sure you wish to delete this price?') . "');\">" . _('Delete') . '</td></tr>', $myrow['currency'], @@ -194,7 +194,7 @@ } else { printf("<td>%s</td> <td>%s</td> - <td align=right>%0.2f</td></tr>", + <td class=number>%0.2f</td></tr>", $myrow['currency'], $myrow['sales_type'], $myrow['price']); Modified: trunk/Prices_Customer.php =================================================================== --- trunk/Prices_Customer.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/Prices_Customer.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -154,7 +154,7 @@ } else { echo '<tr><th>' . _('Normal Price') . '</th></tr>'; while ($myrow = DB_fetch_array($result)) { - printf('<tr class="EvenTableRows"><td align=right>%0.2f</td></tr>', $myrow['price']); + printf('<tr class="EvenTableRows"><td class=number>%0.2f</td></tr>', $myrow['price']); } } @@ -195,7 +195,7 @@ } printf("<tr bgcolor='#CCCCCC'> - <td align=right>%0.2f</td> + <td class=number>%0.2f</td> <td>%s</td> <td><a href='%s?Item=%s&Price=%s&Branch=%s&Edit=1'>" . _('Edit') . "</td> <td><a href='%s?Item=%s&Branch=%s&delete=yes'>" . _('Delete') . "</td></tr>", Modified: trunk/PrintCustTrans.php =================================================================== --- trunk/PrintCustTrans.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/PrintCustTrans.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -774,7 +774,7 @@ echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td WIDTH=50% align=right>'; + echo '</td><td WIDTH=50% class=number>'; /*Now the customer charged to details in a sub table within a cell of the main table*/ @@ -916,11 +916,11 @@ printf ('<td>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> </tr>', $myrow2['stockid'], $myrow2['description'], @@ -963,7 +963,7 @@ echo _('Telephone') . ': ' . $_SESSION['CompanyRecord']['telephone'] . '<br>'; echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td align=right>' . _('Page') . ": $PageNumber</td></tr></table>"; + echo '</td><td class=number>' . _('Page') . ": $PageNumber</td></tr></table>"; echo "<table class='table1'><tr> <th>" . _('Item Code') . "</th> <th>" . _('Item Description') . "</th> @@ -1008,7 +1008,7 @@ echo _('Telephone') . ': ' . $_SESSION['CompanyRecord']['telephone'] . '<br>'; echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td align=right>' . _('Page') . ": $PageNumber</td></tr></table>"; + echo '</td><td class=number>' . _('Page') . ": $PageNumber</td></tr></table>"; echo "<table class='table1'><tr> <th>" . _('Item Code') . "</th> <th>" . _('Item Description') . "</th> @@ -1047,18 +1047,18 @@ } /*Print out the invoice text entered */ echo '<table class=table1><tr> - <td align=right>' . _('Sub Total') . "</td> - <td align=right bgcolor='#EEEEEE' WIDTH=15%>$DisplaySubTot</td></tr>"; - echo '<tr><td align=right>' . _('Freight') . "</td> - <td align=right bgcolor='#EEEEEE'>$DisplayFreight</td></tr>"; - echo '<tr><td align=right>' . _('Tax') . "</td> - <td align=right bgcolor='#EEEEEE'>$DisplayTax</td></tr>"; + <td class=number>' . _('Sub Total') . "</td> + <td class=number bgcolor='#EEEEEE' WIDTH=15%>$DisplaySubTot</td></tr>"; + echo '<tr><td class=number>' . _('Freight') . "</td> + <td class=number bgcolor='#EEEEEE'>$DisplayFreight</td></tr>"; + echo '<tr><td class=number>' . _('Tax') . "</td> + <td class=number bgcolor='#EEEEEE'>$DisplayTax</td></tr>"; if ($InvOrCredit=='Invoice'){ - echo '<tr><td Align=RIGHT><b>' . _('TOTAL INVOICE') . "</b></td> - <td align=right bgcolor='#EEEEEE'><U><b>$DisplayTotal</b></U></td></tr>"; + echo '<tr><td class=number><b>' . _('TOTAL INVOICE') . "</b></td> + <td class=number bgcolor='#EEEEEE'><U><b>$DisplayTotal</b></U></td></tr>"; } else { - echo '<tr><td Align=RIGHT><font color=RED><b>' . _('TOTAL CREDIT') . "</b></font></td> - <td align=right bgcolor='#EEEEEE'><font color=RED><U><b>$DisplayTotal</b></U></font></td></tr>"; + echo '<tr><td class=number><font color=RED><b>' . _('TOTAL CREDIT') . "</b></font></td> + <td class=number bgcolor='#EEEEEE'><font color=RED><U><b>$DisplayTotal</b></U></font></td></tr>"; } echo '</table>'; } /* end of check to see that there was an invoice record to print */ Modified: trunk/PrintCustTransPortrait.php =================================================================== --- trunk/PrintCustTransPortrait.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/PrintCustTransPortrait.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -819,7 +819,7 @@ echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td WIDTH=50% align=right>'; + echo '</td><td WIDTH=50% class=number>'; /*Now the customer charged to details in a sub table within a cell of the main table*/ @@ -963,11 +963,11 @@ printf ('<td>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> </tr>', $myrow2['stockid'], $myrow2['description'], @@ -1009,7 +1009,7 @@ echo _('Telephone') . ': ' . $_SESSION['CompanyRecord']['telephone'] . '<br>'; echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td align=right>' . _('Page') . ": $PageNumber</td></tr></table>"; + echo '</td><td class=number>' . _('Page') . ": $PageNumber</td></tr></table>"; echo "<table WIDTH=100% cellpadding=5><tr> <th>" . _('Item Code') . "</th> <th>" . _('Item Description') . "</th> @@ -1053,7 +1053,7 @@ echo _('Telephone') . ': ' . $_SESSION['CompanyRecord']['telephone'] . '<br>'; echo _('Facsimile') . ': ' . $_SESSION['CompanyRecord']['fax'] . '<br>'; echo _('Email') . ': ' . $_SESSION['CompanyRecord']['email'] . '<br>'; - echo '</td><td align=right>' . _('Page') . ": $PageNumber</td></tr></table>"; + echo '</td><td class=number>' . _('Page') . ": $PageNumber</td></tr></table>"; echo "<table WIDTH=100% cellpadding=5><tr> <th>" . _('Item Code') . "</th> <th>" . _('Item Description') . "</th> @@ -1092,18 +1092,18 @@ } /*Print out the invoice text entered */ echo '<table WIDTH=100%><tr> - <td align=right>' . _('Sub Total') . "</td> - <td align=right bgcolor='#EEEEEE' WIDTH='15%'>$DisplaySubTot</td></tr>"; - echo '<tr><td align=right>' . _('Freight') . "</td> - <td align=right bgcolor='#EEEEEE'>$DisplayFreight</td></tr>"; - echo '<tr><td align=right>' . _('Tax') . "</td> - <td align=right bgcolor='#EEEEEE'>$DisplayTax</td></tr>"; + <td class=number>' . _('Sub Total') . "</td> + <td class=number bgcolor='#EEEEEE' WIDTH='15%'>$DisplaySubTot</td></tr>"; + echo '<tr><td class=number>' . _('Freight') . "</td> + <td class=number bgcolor='#EEEEEE'>$DisplayFreight</td></tr>"; + echo '<tr><td class=number>' . _('Tax') . "</td> + <td class=number bgcolor='#EEEEEE'>$DisplayTax</td></tr>"; if ($InvOrCredit=='Invoice'){ - echo '<tr><td Align=RIGHT><b>' . _('TOTAL INVOICE') . "</b></td> - <td align=right bgcolor='#EEEEEE'><U><b>$DisplayTotal</b></U></td></tr>"; + echo '<tr><td class=number><b>' . _('TOTAL INVOICE') . "</b></td> + <td class=number bgcolor='#EEEEEE'><U><b>$DisplayTotal</b></U></td></tr>"; } else { - echo '<tr><td Align=RIGHT><font color=RED><b>' . _('TOTAL CREDIT') . "</b></font></td> - <td align=right bgcolor='#EEEEEE'><font color=RED><U><b>$DisplayTotal</b></U></font></td></tr>"; + echo '<tr><td class=number><font color=RED><b>' . _('TOTAL CREDIT') . "</b></font></td> + <td class=number bgcolor='#EEEEEE'><font color=RED><U><b>$DisplayTotal</b></U></font></td></tr>"; } echo '</table>'; } /* end of check to see that there was an invoice record to print */ Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/PurchData.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -180,11 +180,11 @@ $DisplayPreferred = _('No'); } printf("<td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s " . _('days') . "</td> + <td class=number>%s " . _('days') . "</td> <td>%s</td> <td><a href='%s?%s&StockID=%s&SupplierID=%s&Edit=1&EffectiveFrom=%s'>" . _('Edit') . "</a></td> <td><a href='%s?%s&StockID=%s&SupplierID=%s&Delete=1&EffectiveFrom=%s' onclick=\"return confirm('" . _('Are you sure you wish to delete this suppliers price?') . "');\">" . _('Delete') . "</a></td> Modified: trunk/ReverseGRN.php =================================================================== --- trunk/ReverseGRN.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/ReverseGRN.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -357,9 +357,9 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td>%s</td> </tr>", $myrow['grnno'], Modified: trunk/SalesAnalRepts.php =================================================================== --- trunk/SalesAnalRepts.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SalesAnalRepts.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -391,7 +391,7 @@ if (!isset($_POST['ReportHeading'])) { $_POST['ReportHeading']=''; } - echo '<table WIDTH=100% colspan=4><tr><td align=right>' . _('Report Heading') . ":</td><td colspan=2><input type='TEXT' size=80 maxlength=80 name=ReportHeading value='" . $_POST['ReportHeading'] . "'></td></tr>"; + echo '<table WIDTH=100% colspan=4><tr><td class=number>' . _('Report Heading') . ":</td><td colspan=2><input type='TEXT' size=80 maxlength=80 name=ReportHeading value='" . $_POST['ReportHeading'] . "'></td></tr>"; echo '<tr><td>' . _('Group By 1') . ': <select name=GroupByData1>'; Modified: trunk/SelectCompletedOrder.php =================================================================== --- trunk/SelectCompletedOrder.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectCompletedOrder.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -486,9 +486,9 @@ printf("<td><font size=1><input type='submit' name='SelectedStockItem' value='%s'</font></td> <td><font size=1>%s</font></td> - <td align=right><font size=1>%s</font></td> - <td align=right><font size=1>%s</font></td> - <td align=right><font size=1>%s</font></td> + <td class=number><font size=1>%s</font></td> + <td class=number><font size=1>%s</font></td> + <td class=number><font size=1>%s</font></td> <td><font size=1>%s</font></td></tr>", $myrow['stockid'], $myrow['description'], @@ -548,7 +548,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> </tr>", $ViewPage, $myrow['orderno'], Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectCreditItems.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -708,7 +708,7 @@ if ($LineItem->Controlled==0){ echo '<td><input type=TEXT class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength=6 size=6 VALUE=' . $LineItem->Quantity . '></td>'; } else { - echo '<td align=right><a href="' . $rootpath . '/CreditItemsControlled.php?' . SID . '&LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> + echo '<td class=number><a href="' . $rootpath . '/CreditItemsControlled.php?' . SID . '&LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> <input type=hidden name="Quantity_' . $LineItem->LineNumber . '" VALUE=' . $LineItem->Quantity . '></td>'; } @@ -780,7 +780,7 @@ <td colspan=5></td>'; - echo '<td colspan=2 align=right>'. _('Credit Freight').'</td> + echo '<td colspan=2 class=number>'. _('Credit Freight').'</td> <td><input type=TEXT class="number" size=6 maxlength=6 name=ChargeFreightCost VALUE=' . $_SESSION['CreditItems']->FreightCost . '></td>'; $FreightTaxTotal =0; //initialise tax total @@ -827,7 +827,7 @@ echo '<tr> - <td colspan=7 align=right>' . _('Credit Totals') . "</td> + <td colspan=7 class=number>' . _('Credit Totals') . "</td> <td class=number><hr><b>$DisplayTotal</b><hr></td> <td colspan=2></td> <td class=number><hr><b>" . number_format($TaxTotal,2) . "<hr></td> Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectOrderItems.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -1276,7 +1276,7 @@ <td><input class="number" onKeyPress="return restrictToNumbers(this, event)" type=text name="Discount_' . $OrderLine->LineNumber . '" size=5 maxlength=4 value=' . ($OrderLine->DiscountPercent * 100) . '></td> <td><input class="number" onKeyPress="return restrictToNumbers(this, event)" type=text name="GPPercent_' . $OrderLine->LineNumber . '" size=3 maxlength=40 value=' . $OrderLine->GPPercent . '></td>'; } else { - echo '<td align=right>' . $OrderLine->Price . '</td><td></td>'; + echo '<td class=number>' . $OrderLine->Price . '</td><td></td>'; echo '<input type=hidden name="Price_' . $OrderLine->LineNumber . '" value=' . $OrderLine->Price . '>'; } if ($_SESSION['Items'.$identifier]->Some_Already_Delivered($OrderLine->LineNumber)){ Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectProduct.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -423,7 +423,7 @@ echo '<tr><td width="40%" valign="top"> <table>'; //nested table - echo '<tr><th align=right>' . _('Item Type:') . '</th><td colspan=2>'; + echo '<tr><th class=number>' . _('Item Type:') . '</th><td colspan=2>'; switch ($myrow['mbflag']) { case 'A': @@ -450,7 +450,7 @@ echo _('Manufactured Item'); break; } - echo '</td><th align=right>' . _('Control Level:') .'</th><td>'; + echo '</td><th class=number>' . _('Control Level:') .'</th><td>'; if ($myrow['serialised'] == 1) { echo _('serialised'); } elseif ($myrow['controlled'] == 1) { @@ -458,10 +458,10 @@ } else { echo _('N/A'); } - echo '</td><th align=right>' . _('Units') . ':</th><td>' . $myrow['units'] . '</td></tr>'; - echo '<tr><th align=right>' . _('Volume') . ':</th><td align=right colspan=2>' . number_format($myrow['volume'], 3) . '</td> - <th align=right>' . _('Weight') . ':</th><td align=right>' . number_format($myrow['kgs'], 3) . '</td> - <th align=right>' . _('EOQ') . ':</th><td align=right>' . number_format($myrow['eoq'],$myrow['decimalplaces']) . '</td></tr>'; + echo '</td><th class=number>' . _('Units') . ':</th><td>' . $myrow['units'] . '</td></tr>'; + echo '<tr><th class=number>' . _('Volume') . ':</th><td class=number colspan=2>' . number_format($myrow['volume'], 3) . '</td> + <th class=number>' . _('Weight') . ':</th><td class=number>' . number_format($myrow['kgs'], 3) . '</td> + <th class=number>' . _('EOQ') . ':</th><td class=number>' . number_format($myrow['eoq'],$myrow['decimalplaces']) . '</td></tr>'; if (in_array($PricesSecurity,$_SESSION['AllowedPageSecurityTokens']) OR !isset($PricesSecurity)){ echo '<tr><th colspan=2>' . _('Sell Price') . ':</th><td>'; @@ -506,8 +506,8 @@ echo '</td></tr>'; while ($PriceRow = DB_fetch_row($PriceResult)) { $Price = $PriceRow[1]; - echo '<tr><td></td><th>' . $PriceRow[0] . '</th><td align=right>' . number_format($Price,2) . '</td> - <th align=right>' . _('Gross Profit') . '</th><td align=right>'; + echo '<tr><td></td><th>' . $PriceRow[0] . '</th><td class=number>' . number_format($Price,2) . '</td> + <th class=number>' . _('Gross Profit') . '</th><td class=number>'; if ($Price > 0) { $GP = number_format(($Price - $Cost) * 100 / $Price, 2); } else { @@ -532,7 +532,7 @@ } else { $Cost = $myrow['cost']; } - echo '<th align=right>' . _('Cost') . '</th><td align=right>' . number_format($Cost,3) . '</td>'; + echo '<th class=number>' . _('Cost') . '</th><td class=number>' . number_format($Cost,3) . '</td>'; } //end of if PricesSecuirty allows viewing of prices echo '</table>'; //end of first nested table // Item Category Property mod: display the item properties @@ -570,7 +570,7 @@ . ':</th>'; switch ($PropertyRow['controltype']) { case 0; //textbox - echo '<td align=right width=60><input type="text" name="PropValue' . + echo '<td class=number width=60><input type="text" name="PropValue' . $PropertyCounter . '" value="'. $PropertyValue.'">'; break; case 1; //select box @@ -693,9 +693,9 @@ $Demand += $DemandRow[0]; } - echo '<tr><th align=right width="15%">' . _('Quantity On Hand') . ':</th><td width="17%" align=right>' . $QOH . '</td></tr>'; - echo '<tr><th align=right width="15%">' . _('Quantity Demand') . ':</th><td width="17%" align=right>' . number_format($Demand,$myrow['decimalplaces']) . '</td></tr>'; - echo '<tr><th align=right width="15%">' . _('Quantity On Order') . ':</th><td width="17%" align=right>' . $QOO . '</td></tr> + echo '<tr><th class=number width="15%">' . _('Quantity On Hand') . ':</th><td width="17%" class=number>' . $QOH . '</td></tr>'; + echo '<tr><th class=number width="15%">' . _('Quantity Demand') . ':</th><td width="17%" class=number>' . number_format($Demand,$myrow['decimalplaces']) . '</td></tr>'; + echo '<tr><th class=number width="15%">' . _('Quantity On Order') . ':</th><td width="17%" class=number>' . $QOO . '</td></tr> </table>';//end of nested table echo '</td>'; //end cell of master table @@ -722,7 +722,7 @@ $db); while ($SuppRow = DB_fetch_array($SuppResult)) { echo '<tr><td>' . $SuppRow['suppname'] . '</td> - <td align=right>' . number_format($SuppRow['price']/$SuppRow['conversionfactor'],2) . '</td> + <td class=number>' . number_format($SuppRow['price']/$SuppRow['conversionfactor'],2) . '</td> <td>' . $SuppRow['currcode'] . '</td> <td>' . ConvertSQLDate($SuppRow['effectivefrom']) . '</td> <td>' . $SuppRow['leadtime'] . '</td>'; Modified: trunk/SelectRecurringSalesOrder.php =================================================================== --- trunk/SelectRecurringSalesOrder.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectRecurringSalesOrder.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -110,7 +110,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> </tr>", $ModifyPage, $myrow['recurrorderno'], Modified: trunk/SelectWorkOrder.php =================================================================== --- trunk/SelectWorkOrder.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SelectWorkOrder.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -212,7 +212,7 @@ printf("<td><input type=submit name='SelectedStockItem' VALUE='%s'</td> <td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> <td>%s</td> </tr>", $myrow['stockid'], @@ -344,9 +344,9 @@ <td><a href='%s'>" . _('Issue To') . "</a></td> <td><a href='%s'>" . _('Costing') . "</a></td> <td>%s - %s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td>%s</td> </tr>", $ModifyPage, Modified: trunk/ShipmentCosting.php =================================================================== --- trunk/ShipmentCosting.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/ShipmentCosting.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -438,22 +438,22 @@ /* Item / Qty Inv/ FX price/ Local Val/ Portion of chgs/ Shipt Cost/ Std Cost/ Variance/ Var % */ echo '<td>' . $myrow['itemcode'] . ' - ' . $myrow['itemdescription'] . '</td> - <td align=right>' . number_format($myrow['totqtyinvoiced']) . '</td> - <td align=right>' . number_format($myrow['totqtyrecd']) . '</td> - <td align=right>' . number_format($ItemCharges) . '</td> - <td align=right>' . number_format($PortionOfCharges) . '</td> - <td align=right>' . number_format($ItemShipmentCost,2) . '</td> - <td align=right>' . number_format($StdCostUnit,2) . '</td> - <td align=right>' . number_format($Variance,2) . '</td> - <td align=right>' . $VariancePercentage . '%</td></tr>'; + <td class=number>' . number_format($myrow['totqtyinvoiced']) . '</td> + <td class=number>' . number_format($myrow['totqtyrecd']) . '</td> + <td class=number>' . number_format($ItemCharges) . '</td> + <td class=number>' . number_format($PortionOfCharges) . '</td> + <td class=number>' . number_format($ItemShipmentCost,2) . '</td> + <td class=number>' . number_format($StdCostUnit,2) . '</td> + <td class=number>' . number_format($Variance,2) . '</td> + <td class=number>' . $VariancePercentage . '%</td></tr>'; } } -echo '<tr><td colspan=3 align=right><font color=BLUE><b>'. _('Total Shipment Charges'). '</b></font></td> - <td align=right>' . number_format($TotalInvoiceValueOfShipment) . '</td> - <td align=right>' . number_format($TotalCostsToApportion) .'</td></tr>'; +echo '<tr><td colspan=3 class=number><font color=BLUE><b>'. _('Total Shipment Charges'). '</b></font></td> + <td class=number>' . number_format($TotalInvoiceValueOfShipment) . '</td> + <td class=number>' . number_format($TotalCostsToApportion) .'</td></tr>'; -echo '<tr><td colspan=6 align=right>' . _('Total Value of all variances on this shipment') . '</td> - <td align=right>' . number_format($TotalShiptVariance,2) . '</td></tr>'; +echo '<tr><td colspan=6 class=number>' . _('Total Value of all variances on this shipment') . '</td> + <td class=number>' . number_format($TotalShiptVariance,2) . '</td></tr>'; echo '</table><hr>'; @@ -519,13 +519,13 @@ <td>' . $myrow['suppreference'] . '</td> <td>' . ConvertSQLDate($myrow['trandate']) . '</td> <td>' . $myrow['stockid'] . '</td> - <td align=right>' . number_format($myrow['value']) . '</td></tr>'; + <td class=number>' . number_format($myrow['value']) . '</td></tr>'; $TotalItemShipmentChgs += $myrow['value']; } -echo '<tr><td colspan=5 align=right><font color=BLUE><b>'. _('Total Charges Against Shipment Items'). ':</b></font></td> - <td align=right>' . number_format($TotalItemShipmentChgs) . '</td></tr>'; +echo '<tr><td colspan=5 class=number><font color=BLUE><b>'. _('Total Charges Against Shipment Items'). ':</b></font></td> + <td class=number>' . number_format($TotalItemShipmentChgs) . '</td></tr>'; echo '</table>'; @@ -587,15 +587,15 @@ <td>' .$myrow['typename'] . '</td> <td>' . $myrow['suppreference'] . '</td> <td>' . ConvertSQLDate($myrow['trandate']) . '</td> - <td align=right>' . number_format($myrow['value']) . '</td></tr>'; + <td class=number>' . number_format($myrow['value']) . '</td></tr>'; $TotalGeneralShipmentChgs += $myrow['value']; } echo '<tr> - <td align=right colspan=4><font color=BLUE><b>'. _('Total General Shipment Charges'). ':</b></font></td> - <td align=right>' . number_format($TotalGeneralShipmentChgs) . '</td></tr>'; + <td class=number colspan=4><font color=BLUE><b>'. _('Total General Shipment Charges'). ':</b></font></td> + <td class=number>' . number_format($TotalGeneralShipmentChgs) . '</td></tr>'; echo '</table>'; Modified: trunk/Shipments.php =================================================================== --- trunk/Shipments.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/Shipments.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -413,12 +413,12 @@ echo '<td>'.$LnItm->OrderNo.'</td> - <td>'. $LnItm->StockID .' - '. $LnItm->ItemDescription. '</td><td align=right>' . number_format($LnItm->QuantityOrd,2) . '</td> + <td>'. $LnItm->StockID .' - '. $LnItm->ItemDescription. '</td><td class=number>' . number_format($LnItm->QuantityOrd,2) . '</td> <td>'. $LnItm->UOM .'</td> - <td align=right>' . number_format($LnItm->QuantityRecd,2) . '</td> - <td align=right>' . number_format($LnItm->QtyInvoiced,2) . '</td> - <td align=right>' . number_format($LnItm->UnitPrice,2) . '</td> - <td align=right>' . number_format($LnItm->StdCostUnit,2) . '</td> + <td class=number>' . number_format($LnItm->QuantityRecd,2) . '</td> + <td class=number>' . number_format($LnItm->QtyInvoiced,2) . '</td> + <td class=number>' . number_format($LnItm->UnitPrice,2) . '</td> + <td class=number>' . number_format($LnItm->StdCostUnit,2) . '</td> <td><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . 'Delete=' . $LnItm->PODetailItem . '">'. _('Delete'). '</a></td> </tr>'; }//for each line on the shipment @@ -488,10 +488,10 @@ echo '<td>' . $myrow['orderno'] . '</td> <td>' . $myrow['itemcode'] . ' - ' . $myrow['itemdescription'] . '</td> - <td align=right>' . number_format($myrow['quantityord'],2) . '</td> + <td class=number>' . number_format($myrow['quantityord'],2) . '</td> <td>' . $myrow['units'] . '</td> - <td align=right>' . number_format($myrow['quantityrecd'],2) . '</td> - <td align=right>' . ConvertSQLDate($myrow['deliverydate']) . '</td> + <td class=number>' . number_format($myrow['quantityrecd'],2) . '</td> + <td class=number>' . ConvertSQLDate($myrow['deliverydate']) . '</td> <td><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '&Add=' . $myrow['podetailitem'] . '">'. _('Add').'</a></td> </tr>'; Modified: trunk/Shipt_Select.php =================================================================== --- trunk/Shipt_Select.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/Shipt_Select.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -212,8 +212,8 @@ Code Description On Hand Orders Ostdg Units Code Description On Hand Orders Ostdg Units */ printf('<td><input type=submit name="SelectedStockItem" VALUE="%s"</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td>%s</td></tr>', $myrow['stockid'], $myrow['description'], $myrow['qoh'], $myrow['qord'],$myrow['units']); Modified: trunk/SpecialOrder.php =================================================================== --- trunk/SpecialOrder.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SpecialOrder.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -578,13 +578,13 @@ } echo '<td>' . $SPLLine->ItemDescription . '</td> <td>' . $SPLLine->ReqDelDate . "</td> - <td align=right>$DisplayQuantity</td> - <td align=right>$DisplayCost</td> - <td align=right>$DisplayPrice</td> - <td align=right>$DisplayLineCostTotal</td> - <td align=right>$DisplayLineTotal</td> - <td align=right>$DisplayLineCostTotalCurr</td> - <td align=right>$DisplayLineTotalCurr</td> + <td class=number>$DisplayQuantity</td> + <td class=number>$DisplayCost</td> + <td class=number>$DisplayPrice</td> + <td class=number>$DisplayLineCostTotal</td> + <td class=number>$DisplayLineTotal</td> + <td class=number>$DisplayLineCostTotalCurr</td> + <td class=number>$DisplayLineTotalCurr</td> <td><a href='" . $_SERVER['PHP_SELF'] . "?" . SID .'&Delete=' . $SPLLine->LineNo . "'>" . _('Delete') . '</a></td></tr>'; $_SESSION['SPL']->total = $_SESSION['SPL']->total + $DisplayLineTotalCurr; @@ -592,8 +592,8 @@ $DisplayTotal = number_format($_SESSION['SPL']->total,2); echo '<tr> - <td colspan=8 align=right>' . _('TOTAL Excl Tax') . "</td> - <td align=right><b>$DisplayTotal</b></td> + <td colspan=8 class=number>' . _('TOTAL Excl Tax') . "</td> + <td class=number><b>$DisplayTotal</b></td> </tr></table>"; } Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockCategories.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -207,11 +207,11 @@ printf("<td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td><a href=\"%sSelectedCategory=%s\">" . _('Edit') . "</td> <td><a href=\"%sSelectedCategory=%s&delete=yes\" onclick=\"return confirm('" . _('Are you sure you wish to delete this stock category? Additional checks will be performed before actual deletion to ensure data integrity is not compromised.') . "');\">" . _('Delete') . "</td> </tr>", Modified: trunk/StockLocMovements.php =================================================================== --- trunk/StockLocMovements.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockLocMovements.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -106,10 +106,10 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> <td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> </tr>", strtoupper($myrow['stockid']), strtoupper($myrow['stockid']), Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockLocTransferReceive.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -435,7 +435,7 @@ <td>' . $TrfLine->StockID . '</td> <td>' . $TrfLine->ItemDescription . '</td>'; - echo '<td align=right>' . number_format($TrfLine->ShipQty, $TrfLine->DecimalPlaces) . '</td>'; + echo '<td class=number>' . number_format($TrfLine->ShipQty, $TrfLine->DecimalPlaces) . '</td>'; if (isset($_POST['Qty' . $i]) and is_numeric($_POST['Qty' . $i])){ $_SESSION['Transfer']->TransferItem[$i]->Quantity= $_POST['Qty' . $i]; $Qty = $_POST['Qty' . $i]; @@ -513,7 +513,7 @@ while ($myrow=DB_fetch_array($TrfResult)){ - echo '<tr><td align=right>' . $myrow['reference'] . '</td> + echo '<tr><td class=number>' . $myrow['reference'] . '</td> <td>' . $myrow['trffromloc'] . '</td> <td>' . ConvertSQLDate($myrow['shipdate']) . '</td> <td><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '&Trf_ID=' . $myrow['reference'] . '">'. _('Receive'). '</a></td></tr>'; Modified: trunk/StockQuantityByDate.php =================================================================== --- trunk/StockQuantityByDate.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockQuantityByDate.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -122,7 +122,7 @@ if($NumRows == 0){ printf("<td><a TARGET='_blank' href='StockStatus.php?%s'>%s</td> <td>%s</td> - <td align=right>%s</td>", + <td class=number>%s</td>", SID . '&StockID=' . strtoupper($myrows['stockid']), strtoupper($myrows['stockid']), $myrows['description'], @@ -130,7 +130,7 @@ } else { printf("<td><a TARGET='_blank' href='StockStatus.php?%s'>%s</td> <td>%s</td> - <td align=right>%s</td>", + <td class=number>%s</td>", SID . '&StockID=' . strtoupper($myrows['stockid']), strtoupper($myrows['stockid']), $myrows['description'], Modified: trunk/StockSerialItemResearch.php =================================================================== --- trunk/StockSerialItemResearch.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockSerialItemResearch.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -80,16 +80,16 @@ while ($myrow=DB_fetch_row($result)) { printf("<tr> <td>%s<br>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> <td>%s (%s)</td> - <td align=right>%s</td> + <td class=number>%s</td> <td>%s - %s</td> <td>%s </td> <td>%s </td> <td>%s </td> <td>%s </td> - <td align=right>%s</td> + <td class=number>%s</td> </tr>", $myrow[1], $myrow[0], Modified: trunk/StockSerialItems.php =================================================================== --- trunk/StockSerialItems.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockSerialItems.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -112,7 +112,7 @@ ); } else { printf("<td>%s</td> - <td align=right>%s</td>", + <td class=number>%s</td>", $myrow['serialno'], number_format($myrow['quantity'],$DecimalPlaces) ); Modified: trunk/StockStatus.php =================================================================== --- trunk/StockStatus.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockStatus.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -202,11 +202,11 @@ echo '<td>' . $myrow['locationname'] . '</td>'; - printf("<td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s</td>", + printf("<td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s</td>", number_format($myrow['quantity'], $DecimalPlaces), number_format($myrow['reorderlevel'], $DecimalPlaces), number_format($DemandQty, $DecimalPlaces), @@ -225,7 +225,7 @@ /* It must be a dummy, assembly or kitset part */ printf("<td>%s</td> - <td align=right>%s</td> + <td class=number>%s</td> </tr>", $myrow['locationname'], number_format($DemandQty, $DecimalPlaces) @@ -322,9 +322,9 @@ } printf("<td>%s</td> - <td align=right>%s</td> - <td align=right>%s</td> - <td align=right>%s%%</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td class=number>%s%%</td> </tr>", $ph[0], number_format($ph[1],$DecimalPlaces), Modified: trunk/StockTransfers.php =================================================================== --- trunk/StockTransfers.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockTransfers.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -478,7 +478,7 @@ } if ($_SESSION['Transfer']->TransferItem[0]->Controlled==1){ - echo '<td align=right><input type=hidden name="Quantity" VALUE=' . $_SESSION['Transfer']->TransferItem[0]->Quantity . '><a href="' . $rootpath .'/StockTransferControlled.php?' . SID . '">' . $_SESSION['Transfer']->TransferItem[0]->Quantity . '</a></td></tr>'; + echo '<td class=number><input type=hidden name="Quantity" VALUE=' . $_SESSION['Transfer']->TransferItem[0]->Quantity . '><a href="' . $rootpath .'/StockTransferControlled.php?' . SID . '">' . $_SESSION['Transfer']->TransferItem[0]->Quantity . '</a></td></tr>'; } else { echo '<td><input type=text class="number" name="Quantity" size=12 maxlength=12 Value=' . $_SESSION['Transfer']->TransferItem[0]->Quantity . '></td></tr>'; } Modified: trunk/StockUsage.php =================================================================== --- trunk/StockUsage.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/StockUsage.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -150,7 +150,7 @@ $TotalUsage += $myrow['qtyused']; $PeriodsCounter++; - printf('<td>%s</td><td align=right>%s</td></tr>', $DisplayDate, number_format($myrow['qtyused'],$DecimalPlaces)); + printf('<td>%s</td><td class=number>%s</td></tr>', $DisplayDate, number_format($myrow['qtyused'],$DecimalPlaces)); //end of page full new headings if } Modified: trunk/SuppCreditGRNs.php =================================================================== --- trunk/SuppCreditGRNs.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SuppCreditGRNs.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -83,9 +83,9 @@ echo '<tr><td>' . $EnteredGRN->GRNNo . '</td> <td>' . $EnteredGRN->ItemCode . '</td> <td>' . $EnteredGRN->ItemDescription . '</td> - <td align=right>' . number_format($EnteredGRN->This_QuantityInv,2) . '</td> - <td align=right>' . number_format($EnteredGRN->ChgPrice,2) . '</td> - <td align=right>' . number_format($EnteredGRN->ChgPrice * $EnteredGRN->This_QuantityInv,2) . '</td> + <td class=number>' . number_format($EnteredGRN->This_QuantityInv,2) . '</td> + <td class=number>' . number_format($EnteredGRN->ChgPrice,2) . '</td> + <td class=number>' . number_format($EnteredGRN->ChgPrice * $EnteredGRN->This_QuantityInv,2) . '</td> <td><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . 'Delete=' . $EnteredGRN->GRNNo . '">' . _('Delete') . '</a></td></tr>'; $TotalValueCharged = $TotalValueCharged + ($EnteredGRN->ChgPrice * $EnteredGRN->This_QuantityInv); @@ -97,8 +97,8 @@ } } -echo '<tr><td colspan=5 align=right><font size=4 color=BLUE>' . _('Total Value Credited Against Goods') . ':</font></td> - <td align=right><font size=4 color=BLUE><U>' . number_format($TotalValueCharged,2) . '</U></font></td></tr>'; +echo '<tr><td colspan=5 class=number><font size=4 color=BLUE>' . _('Total Value Credited Against Goods') . ':</font></td> + <td class=number><font size=4 color=BLUE><U>' . number_format($TotalValueCharged,2) . '</U></font></td></tr>'; echo '</table><br><a href="' . $rootpath . '/SupplierCredit.php?' . SID . '">' . _('Back to Credit Note Entry') . '</a><hr>'; /* Now get all the GRNs for this supplier from the database @@ -168,11 +168,11 @@ <td>' . $myrow['itemcode'] . '</td> <td>' . $myrow['itemdescription'] . '</td> <td>' . ConvertSQLDate($myrow['deliverydate']) . '</td> - <td align=right>' . number_format($myrow['qtyrecd'],2) . '</td> - <td align=right>' . number_format($myrow['quantityinv'],2) . '</td> - <td align=right>' . number_format($myrow['qtyrecd'] - $myrow['quantityinv'],2) . '</td> - <td align=right>' . number_format($myrow['unitprice'],2) . '</td> - <td align=right>' . number_format($myrow['unitprice']*($myrow['qtyrecd'] - $myrow['quantityinv']),2) . '</td> + <td class=number>' . number_format($myrow['qtyrecd'],2) . '</td> + <td class=number>' . number_format($myrow['quantityinv'],2) . '</td> + <td class=number>' . number_format($myrow['qtyrecd'] - $myrow['quantityinv'],2) . '</td> + <td class=number>' . number_format($myrow['unitprice'],2) . '</td> + <td class=number>' . number_format($myrow['unitprice']*($myrow['qtyrecd'] - $myrow['quantityinv']),2) . '</td> </tr>'; $i++; if ($i>15){ @@ -221,9 +221,9 @@ echo '<tr><td>' . $_POST['GRNNo'] . '</td> <td>' . $myrow['itemcode'] . ' ' . $myrow['itemdescription'] . '</td> - <td align=right>' . number_format($myrow['qtyostdg'],2) . '</td> + <td class=number>' . number_format($myrow['qtyostdg'],2) . '</td> <td><input type=Text Name="This_QuantityCredited" Value=' . $myrow['qtyostdg'] . ' size=11 maxlength=10></td> - <td align=right>' . $myrow['unitprice'] . '</td> + <td class=number>' . $myrow['unitprice'] . '</td> <td><input type=Text Name="ChgPrice" Value=' . $myrow['unitprice'] . ' size=11 maxlength=10></td> </tr>'; echo '</table>'; Modified: trunk/SuppInvGLAnalysis.php =================================================================== --- trunk/SuppInvGLAnalysis.php 2009-12-09 12:01:59 UTC (rev 3145) +++ trunk/SuppInvGLAnalysis.php 2009-12-09 22:28:33 UTC (rev 3146) @@ -58,7 +58,7 @@ echo '<tr><td>' . $EnteredGLCode->GLCode . '</td> <td>' . $EnteredGLCode->GLActName . '</td> - <td align=right>' . number_format($EnteredGLCode->Amount,2) . '</td> + <td class=number>' . number_format($EnteredGLCode->Amount,2) . '</td> <td>' . $EnteredGLCode->ShiptRef . '</td> <td>' .$EnteredGLCode->JobRef . '</td> <td>' . $EnteredGLCode->Narrative . '</td> @@ -78,8 +78,8 @@ } } -echo '<tr><td colspan=2 align=right><font size=4 color=BLUE>' . _('Total') . ':</font></td> - <td align=right><font size=4 color=BLUE><U>' . number_format($TotalGLValue,2) . '</U></font></td></tr>'; +echo '<tr><td colspan=2 class=number><font size=4 color=BLUE>'... [truncated message content] |