From: <tim...@us...> - 2010-07-17 20:19:56
|
Revision: 3632 http://web-erp.svn.sourceforge.net/web-erp/?rev=3632&view=rev Author: tim_schofield Date: 2010-07-17 20:19:50 +0000 (Sat, 17 Jul 2010) Log Message: ----------- SQL quoting and layout changes Modified Paths: -------------- trunk/PaymentAllocations.php trunk/doc/Change.log.html Modified: trunk/PaymentAllocations.php =================================================================== --- trunk/PaymentAllocations.php 2010-07-17 20:19:27 UTC (rev 3631) +++ trunk/PaymentAllocations.php 2010-07-17 20:19:50 UTC (rev 3632) @@ -18,8 +18,8 @@ if (!isset($_GET['SuppID'])){ prnMsg( _('Supplier ID Number is not Set, can not display result'),'warn'); - include('includes/footer.inc'); - exit; + include('includes/footer.inc'); + exit; } if (!isset($_GET['InvID'])){ @@ -70,7 +70,7 @@ exit; } -echo '<table cellpadding=2 colspan=7 width=100% border=0>'; +echo '<table cellpadding=2 colspan=7 width=80% class=selection>'; $TableHeader = "<tr> <th>" . _('Supplier Number') . '<br>' . _('Reference') . "</th> <th>" . _('Payment') .'<br>' . _('Reference') . "</th> @@ -90,21 +90,17 @@ $k++; } - printf('<td>%s</td> - <td>%s</td> - <td>%s</td> - <td>%s</td> - </tr>', - $myrow['supplierno'], - $myrow['suppreference'], - ConvertSQLDate($myrow['trandate']), - $myrow['alloc'] ); + echo '<td>'.$myrow['supplierno'].'</td> + <td>'.$myrow['suppreference'].'</td> + <td>'.ConvertSQLDate($myrow['trandate']).'</td> + <td class=number>'.number_format($myrow['alloc'],2).'</td> + </tr>'; $j++; - If ($j == 18){ - $j=1; - echo $TableHeader; - } + if ($j == 18){ + $j=1; + echo $TableHeader; + } } echo '</table>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-17 20:19:27 UTC (rev 3631) +++ trunk/doc/Change.log.html 2010-07-17 20:19:50 UTC (rev 3632) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>17/07/10 Tim: PaymentAllocations.php - SQL quoting and layout changes</p> <p>17/07/10 Tim: OutstandingGRNs.php - SQL quoting and layout changes</p> <p>17/07/10 Tim: SelectCompletedOrder.php - SQL quoting and layout changes</p> <p>17/07/10 Tim: OrderDetails.php - SQL quoting and layout changes</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |