Posted by Man-wai Chang on 04/02/07 10:21
in the php:
$total=0.00;
for (...) {
$total=$total+round(....,2);
}
$theclass = new Template();
$theclass->assign('po_total', $total);
in the template:
<td width="8%" class="textbox1"><input readonly class="textbox1"
type="textbox" name="txtPoTotal" id="txtPoTotal" align="right"
value={$po_total|string_format:"%2.f"} maxlength=10 size=10>
The webpage shows "15.000000", rather than "15.00".
--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Navigation:
[Reply to this message]
|