Exemple #1
0
            <tr>
              <th>Item Description</th>
              <th>Cost ( &#8358; )</th>
            </tr>
        </thead>
        <tbody>
            <?php 
# Transcript Form Charges
$charge1 = "Processing Fee";
$charge2 = "Postage Charge";
$charge3 = "Transaction Charge";
$payment_breakdown = array();
$total_amount = 0;
# Display Delivery Type And Charge
if (isset($_POST['dt_id'])) {
    $deliveryType = DeliveryType::find_by_id($_POST['dt_id']);
    if (isset($deliveryType->dt_name)) {
        echo '
                          <tr>
                            <td>' . $charge1 . '</td>
                            <td>&#8358;' . $deliveryType->dt_amount . '</td>
                          </tr>
                        ';
        $total_amount += $deliveryType->dt_amount;
        $payment_breakdown[$charge1] = $deliveryType->dt_amount;
    }
}
# Display Delivery Mode And Charge
if (isset($_POST['dm_id'])) {
    $deliveryMode = DeliveryMode::find_by_id($_POST['dm_id']);
    $post_amount;
            </div><!--/span-->
            <div class="span9">
                <div class="hero-unit">
                    <h4> <p class="label label-info">Application Details </p> </h4>
                    <table class="table table-hover table-striped table-bordered">
                        <tbody>
                            <tr>   
                                  <td><i class="iconic-hash"> </i> Application Number : </td>
                                  <td colspan="2"><span class="label label-success"><?php 
echo $label;
?>
</span></td>
                            </tr>
                            <tr>   
                                  <?php 
$type = DeliveryType::find_by_id($myapp->type_id);
?>
                                  <td><i class="icon-tasks"> </i> Service Type : </td>
                                  <td colspan="2"><span class="label label-success"><?php 
echo $type->dt_name;
?>
 </span></td>
                            </tr>
                            <tr>
                                  <?php 
$mode = DeliveryMode::find_by_id($myapp->mode_id);
?>
                                  <td><i class="icon-road"></i> Delivery Mode : </td>
                                  <td colspan="2"><span class="label label-success"><?php 
echo $mode->dm_type;
?>