<tr> <td> <table border="0" cellspacing="0" cellpadding="0" style="margin-bottom: 20px; margin-top: 10px; font-size: 11px"> <td width="310" style="padding-left: 20px;"> <b>Shipping Address</b><br> ' . $cart->order_shipping_first_name . '<br> ' . $cart->order_shipping_last_name . '<br> ' . $cart->order_shipping_phone . '<br> ' . preg_replace("/\n/", "\n<br>", $cart->order_shipping_address) . '<br> ' . $cart->order_shipping_city . '<br> ' . $cart->order_shipping_province . '<br> ' . $cart->order_shipping_country . '<br> ' . $cart->order_shipping_postal_code . '<br> </td> <td width="300" valign="top"> <b>Order Date</b> ' . format_date_min($cart->order_date) . '<br> <b>Order No.</b> ' . $cart->order_number . '<br> <b>Payment Method</b> Bank Transfer via ' . $cart->order_confirm_bank . '<br> <b>Shipping Method</b> ' . $cart->shipping_method . '<br> </td> </table> </td> </tr> <tr> <td> <table width="540" border="0" cellspacing="0" cellpadding="0" align="center" style="font-size: 11px; border:"> <thead> <tr style="text-align: left;"> <th style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding-left: 5px" width="345">Items</th> <th style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc;" width="120">Price</th> <th style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; text-align: center" width="60">Qty.</th>
} else { $days_left = $duration->left_days . " day(s)"; } } ?> <div id="ajax_remove_wrapper_<?php echo $promotions->promo_item_id; ?> "> <b><?php echo $suffix; ?> OFF</b> <p style="color: #999"><?php echo format_date_min($promotions->promo_start_datetime) . " - " . format_date_min($promotions->promo_end_datetime); ?> </p> <p style="color: #cc0000"><?php echo $days_left; ?> </p> <div class="btn btn-danger btn-sm" style="position: absolute; right: 5px; top: 20px" onclick="ajxRemoveSale('<?php echo $promotions->promo_item_id; ?> ')" id="btn_remove_<?php echo $promotions->promo_item_id; ?> ">Remove</div> </div>
} else { $days_left = $duration['left_days'] . " day(s)"; } } ?> <div id="ajax_remove_wrapper_<?php echo $promotions['promo_item_id']; ?> "> <b><?php echo $suffix; ?> OFF</b> <p style="color: #999"><?php echo format_date_min($promotions['promo_start_datetime']) . " - " . format_date_min($promotions['promo_end_datetime']); ?> </p> <p style="color: #cc0000"><?php echo $days_left; ?> </p> <div class="btn btn-danger btn-sm" style="position: absolute; right: 5px; top: 20px" onclick="ajxRemoveSale(<?php echo $promotions['promo_item_id']; ?> )">Remove</div> </div> <?php
} else { $days_left = $duration->left_days . " day(s)"; } } ?> <div id="ajax_remove_wrapper_<?php echo $sale->type_id; ?> "> <b class="hidden"><?php echo $suffix; ?> OFF</b> <p style="color: #999"><?php echo format_date_min($promotions->new_start) . " - " . format_date_min($promotions->new_end); ?> </p> <p style="color: #cc0000"><?php echo $days_left; ?> </p> <div class="btn btn-danger btn-sm" style="position: absolute; right: 5px; top: 15px" onclick="ajxRemoveSale('<?php echo $sale->type_id; ?> ')">Remove</div> </div> <?php } ?>
} }else{ if($last->left_days > 0){ $days_left = $left->left_days. " day(s) more"; }else{ $days_left = $duration->left_days. " day(s)"; } } ?> <div id="ajax_remove_wrapper_<?php echo $sale->type_id;?>"> <b class="hidden"><?php echo $suffix;?> OFF</b> <p style="color: #999"><?php echo format_date_min($promotions->new_start)." - ".format_date_min($promotions->new_end);?></p> <p style="color: #cc0000"><?php echo $days_left;?></p> <div class="btn btn-danger btn-sm" style="position: absolute; right: 5px; top: 15px" onclick="ajxRemoveSale('<?php echo $sale->type_id;?>')">Remove</div> </div> <?php } ?> </td> </tr> <?php $record++; $row++; }