Exemplo n.º 1
0
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;
    if (isset($deliveryMode->dm_type)) {
        if ($deliveryMode->dm_amount == 0) {
            # Display LGA And Charge
            if (isset($_POST['lga_id'])) {
                $lga = LGA::find_by_id($_POST['lga_id']);
                $post_amount = $lga->lga_amount;
            }
            if (isset($_POST['city_id'])) {
                # Display City And Charge
                $city = City::find_by_id($_POST['city_id']);
                $post_amount = $city->amount;
            }
        } else {
            $post_amount = $deliveryMode->dm_amount;
Exemplo n.º 2
0
?>
</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;
?>
</span></td>
                            </tr>
                            <tr>
                                  <td><i class="">&#8358</i> Amount :  </td>
                                  <td colspan="2"><span class="label label-success">&#8358 <?php 
echo $amount->amount;
?>
</span></td>
                            </tr>
                            <tr>