Subversion Repositories SmartDukaan

Rev

Rev 19358 | Rev 19364 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19307 naman 1
<style type="text/css">
2
h5{font-weight: bold;text-decoration: underline;}
19358 naman 3
h4{font-weight: bold;text-decoration: underline;}
19307 naman 4
 
5
	td:first-child { ; border:1px solid  #e6e6e6;}
6
	td{
7
	padding:2px;
8
    border:1px solid #e6e6e6;
9
}
10
tr{width:100%;}
11
    table{
19358 naman 12
    	font-size: 13px;
19307 naman 13
    }
19358 naman 14
.redcolor {
15
	color:red;
16
}
19307 naman 17
</style>
19342 naman 18
<?php if(isset($response) && !empty($response)):?>
19307 naman 19
<div class="container">
20
	<div class="row-fluid">	
21
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
22
 
19358 naman 23
			<h4 class="text-center">Accessories cashback scheme for April</h4>
19307 naman 24
 
25
 
26
			<div id="foreng">
19358 naman 27
				<h5>Exclusive offer only for you (<?php echo $user_email?>)</h5>
28
			    <div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div>
19307 naman 29
 
30
				<div style="margin:5px 0;">
19342 naman 31
 
19307 naman 32
					<table cellpadding="1" cellspacing="1" width="100%">
33
						<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
34
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
35
							<tr>
19358 naman 36
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target1']);?>*</span></td>
37
								<td class="redcolor"><?php echo $response['target1_cash_back_percetage']?>%</td>
19307 naman 38
							</tr>
39
						<?php endif;?>
40
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
41
							<tr>
19358 naman 42
								<td>Above <span class="redcolor">&#8377; <?php echo number_format($response['target2']);?>*</span></td>
43
								<td class="redcolor"><?php echo $response['target2_cash_back_percetage']?>%</td>
19307 naman 44
							</tr>
45
						<?php endif;?>
46
					</table>
19342 naman 47
 
19307 naman 48
				</div>
49
 
50
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
19358 naman 51
					<b><u>Terms and condtions:</u></b><br>
52
					<ul>
53
					<li> Max cashback will be <span class="redcolor">&#8377; <?php echo number_format($response['maxCashBack']);?></span>.</li>
54
					<li> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).</li>
55
					<li> <span class="redcolor">*Memory card</span> and <span class="redcolor">pendrive</span> do not qualify in the above scheme.</li>
56
					<li> Cashback available only on orders billed and fulfilled by <b>saholic.com</b>.</li>
57
					<li> Cashback available only on delivered orders.</li>
58
					<li> Cashback will be credited to your account by 20th May 2016.</li>
59
					<li> <b>ProfitMandi</b> shall have final discretion on matters relating to cashback.</li>
60
					</ul>
19307 naman 61
					<?php
19311 naman 62
// 						$gocount =0;
63
// 						foreach($response['sub_categories_not_applicable'] as $rkey){
64
// 						echo $subcat[$rkey];
65
// 						$gocount = $gocount +1;
66
// 						if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){
67
// 							echo ", ";
68
// 						}
69
					//}
70
					?>
19307 naman 71
 
72
				</div>
19358 naman 73
				<?php  //if(isset($needtoachieveval)):?>
19360 naman 74
				<hr style="border-top: 2px solid #eee;;">
19342 naman 75
				<div style="margin:15px 0 10px;">
19358 naman 76
					Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
19342 naman 77
					<table cellpadding="1" cellspacing="1" width="100%">
78
 
79
						<?php if(isset($response['delivered_order_value'])):?>
80
							<tr>
81
								<td>Delivered Orders</td>
19360 naman 82
								<td> &#8377; <?php echo number_format($response['delivered_order_value']);?></td>
19342 naman 83
							</tr>
84
						<?php endif;?>
85
						<?php if(isset($response['pending_order_value'])):?>
86
							<tr>
19358 naman 87
								<td>In process Orders </td>
19360 naman 88
								<td> &#8377; <?php echo number_format($response['pending_order_value']);?></td>
19342 naman 89
							</tr>
90
						<?php endif;?>
91
						<tr>
92
								<td><b>Total</b></td>
19360 naman 93
								<td> <b>&#8377; <?php echo number_format($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
19342 naman 94
						</tr>
95
					</table>
96
					<div style="padding:10px 0 0px;">
19358 naman 97
					<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
98
						$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
99
 
100
						if($totalval< $response['target2']){
101
							if($totalval< $response['target1']){
102
								echo "* Buy <span class='redcolor'>&#8377; ". number_format($response['target1'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback.<br>";
103
 
104
							}
105
 
106
						echo "* Buy <span class='redcolor'>&#8377; ". number_format($response['target2'] - $totalval) ."</span> more to get <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback.";}
107
						else{
108
							echo "You have achieved your target.";
109
						}
19342 naman 110
					?>
111
					</div>
112
				</div>
19358 naman 113
 
114
			    <?php //endif;?>
19307 naman 115
			</div>
116
 
117
 
118
		</div>
119
	</div>
19342 naman 120
</div>
121
<?php else:?>
122
	<div class="well text-center emptyCart">
123
			No offer available for you.		
124
	</div>
125
 
126
<?php endif;?>