<?php
$arrPaymentMethods = array(1 => 'cash', 2 => 'cheque', 3 => 'credit card', 4 => 'online banking');
$arrCurrency = array(1 => "SGD", 2 => 'USD');
/**
 * Created by PhpStorm.
 * User: neosoft
 * Date: 27/10/14
 * Time: 1:13 PM
 */ ?>
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/cust_paginition.css" type="text/css" />
<div id="addMagezine">
    <div class="modal-dialog" style="width: 900px">
        <div class="modal-content">
            <!-- Modal heading -->
            <!-- // Modal heading END -->
            <!-- Modal body -->
            <div class="modal-body">
            <?php //echo "<pre>";print_r($arrData);exit; ?>
                <div class="innerAll">
                    <div class="innerLR">

                        <div id="print_div">
                            <div class="navbar-header">
                                <img src="<?php echo base_url(); ?>assets/images/logo/sub-logo.jpg" />
                            </div>

                            <div style="clear: both"></div>

                            <div class="modal-header">
                                <h4 class="modal-title" align="center">RECEIPT VOUCHER</h4>
                            </div>
                            <div>
                                <p style="margin-top: 10px;margin-bottom: 10px"><b>Sub: Confirmation of your Subscription Order</b></p>
                                <p>Dear <b><?php echo ucwords($arrData[0]['sub_name']); ?></b>,</p>
                                <p>Thank you for your subscription.</p>

                                <br>
                                <p><b>Name of Subscriber:</b> &nbsp; <?php echo $arrData[0]['sub_name'] ?></p>
                                <p><b>Transaction Date: &nbsp;</b> <?php echo $arrData[0]['transaction_date'] ?></p>
                                <p><b>Transaction Id: &nbsp;</b> <?php echo $arrData[0]['transaction_id'] ?></p>
                                <!--<p><b>Promotional Code: &nbsp;</b> <?php echo $strCampCode ?></p>-->
                            </div>
                            <div style="clear: both"></div>

                            <div>
                                <p>Your Subscription summary:</p>
                                <table class="table table-white table-vertical-center margin-none table-striped footable" border="1">
                                    <col width="120">
                                    <col width="120">
                                    <col width="120">
                                    <col width="100">
                                    <col width="160">
                                    <col width="160">
                                    <tr>
                                        <th data-class="highlight" class="text-center">Magazine Code</th>
                                        <th data-class="highlight" class="text-center">Subscribed On</th>
                                        <th data-class="highlight" class="text-center">Start Issue</th>
                                        <th data-class="highlight" class="text-center">End Issue</th>
                                        <th data-class="highlight" class="text-center">Total Issues</th>
                                        <th data-class="highlight" class="text-center">No. of Copies</th>
                                        <th data-class="highlight" class="text-center">Amount</th>
                                    </tr>
                                    <?php
                                    $intTotalAmount = 0;
                                    foreach($arrData as $details) {?>
                                        <tr>
                                            <td  class="text-center"><?php echo $details['magezine_id']; ?></td>
                                            <td  class="text-center"><?php echo date("Y-m-d", strtotime($details['subscribed_on'])); ?></td>
                                            <td  class="text-center"><?php echo $details['start_issue']; ?></td>
                                            <td  class="text-center"><?php echo $details['end_issue']; ?></td>
                                            <td  class="text-center"><?php echo $details['no_of_issue']; ?></td>
                                            <td  class="text-center"><?php echo $details['totalNCopies']; ?></td>
                                            <td  class="text-center"><?php echo $details['total_amount']; ?></td>
                                        </tr>
                                        <?php $intTotalAmount = $intTotalAmount + $details['total_amount']; } ?>
                                </table>
                            </div>
                            <div style="clear: both"></div>
                            <div align="right" style="margin-right: 85px"><br><b><u>TOTAL AMOUNT : <?php echo $intTotalAmount." ".$arrCurrency[$arrData['currency_of_payment']]; ?></u></b></div>
                            <div style="margin-top: 40px">
                                <ul style="list-style-type:disc">
                                    <li><i>Please keep this for your reference.</i></li>
                                    <li><i>Processing time for subscription is about 2 to 4 weeks. </i></li>
                                    <li><i>This is an auto-generated email, so please do not reply to this email as it will not be monitored.</i></li>
                                </ul>
                                <small></small></p>
                                <br>
                                <p>Thank You,</p>
                                <br>
                                <p>Magazine Fulfilment Department</p>
                                <p>Nurture Craft International Pte Ltd</p>
                                <p>Office Phone: +65 62586236</p>

                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>