Example #1
0
        ?>
			</td>
		</tr>
		<?php 
        if (isset($po->total)) {
            ?>
			<?php 
            $grand_total += $po->total;
            ?>
		<?php 
        }
        ?>
		<?php 
    }
    ?>
		<?php 
}
?>
	</tbody>
	<tfoot>
		<tr>
			<th colspan=6></th>
			<th>
				<?php 
echo get_as_price($grand_total);
?>
			</th>
		</tr>
	</tfoot>

</table>
Example #2
0
<?php

$item_count = get_value($item, 'item_count', 0);
$price = get_value($item, 'price', 0);
$total = get_as_price(strval($item_count) * strval($price));
?>
<form id="item_editor" class="form-horizontal" action="<?php 
echo site_url("item/{$action}");
?>
" method="post" name="item_editor">
	<input type="hidden" name="id" id="id" value="<?php 
echo get_value($item, 'id');
?>
"/>
	<input type="hidden" name="po_id" id="po_id" value="<?php 
echo get_value($item, 'po_id', $po_id);
?>
"/>
	<div class="form-group">
		<label class="col-sm-4 control-label" for="po">PO:&nbsp;<?php 
echo $po;
?>
&nbsp;</label>
		<div class="col-sm-8"><input type="text" class="form-control" name="po" id="po" required style="width: 4em" value="<?php 
echo get_value($item, 'po', $po);
?>
"/>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-4 control-label" for="item_count">Count: </label>