Subversion Repositories SmartDukaan

Rev

Rev 19311 | Rev 19358 | 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;}
3
h4{font-weight: bold;}
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{
12
    	font-size: 12px;
13
    }
14
</style>
19342 naman 15
<?php if(isset($response) && !empty($response)):?>
19307 naman 16
<div class="container">
17
	<div class="row-fluid">	
18
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
19
 
20
			<h4 class="text-center"></h4>
21
 
22
 
23
			<div id="foreng">
24
 
25
			    <div style="margin:5px 0;">Buy accessories in April and get upto <?php echo $maxpercentage."% cashback.";?> </div>
26
 
27
				<div style="margin:5px 0;">
19342 naman 28
 
19307 naman 29
					<table cellpadding="1" cellspacing="1" width="100%">
30
						<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
31
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
32
							<tr>
33
								<td>Above &#8377; <?php echo $response['target1'];?></td>
34
								<td><?php echo $response['target1_cash_back_percetage']?>%</td>
35
							</tr>
36
						<?php endif;?>
37
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
38
							<tr>
39
								<td>Above &#8377; <?php echo $response['target2'];?></td>
40
								<td><?php echo $response['target2_cash_back_percetage']?>%</td>
41
							</tr>
42
						<?php endif;?>
43
					</table>
19342 naman 44
 
19307 naman 45
				</div>
46
 
47
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
48
					<b>*</b> Max cashback will be &#8377; <?php echo $response['maxCashBack'];?>.<br>
19311 naman 49
					<b>*</b> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).<br>
50
					<b>*</b> Cashback is not applicable on memory card and pendrive.
19307 naman 51
					<?php
19311 naman 52
// 						$gocount =0;
53
// 						foreach($response['sub_categories_not_applicable'] as $rkey){
54
// 						echo $subcat[$rkey];
55
// 						$gocount = $gocount +1;
56
// 						if(count($response['sub_categories_not_applicable'])>1 && count($response['sub_categories_not_applicable'])!= $gocount){
57
// 							echo ", ";
58
// 						}
59
					//}
60
					?>
19307 naman 61
 
62
				</div>
19342 naman 63
				<?php  if(isset($response['delivered_order_value']) && $response['delivered_order_value'] != 0):?>
64
				<div style="margin:15px 0 10px;">
65
					Actual order value till date.
66
					<table cellpadding="1" cellspacing="1" width="100%">
67
 
68
						<?php if(isset($response['delivered_order_value'])):?>
69
							<tr>
70
								<td>Delivered Orders</td>
71
								<td> &#8377; <?php echo $response['delivered_order_value']?></td>
72
							</tr>
73
						<?php endif;?>
74
						<?php if(isset($response['pending_order_value'])):?>
75
							<tr>
76
								<td>Pending Orders </td>
77
								<td> &#8377; <?php echo $response['pending_order_value']?></td>
78
							</tr>
79
						<?php endif;?>
80
						<tr>
81
								<td><b>Total</b></td>
82
								<td> &#8377; <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></td>
83
						</tr>
84
					</table>
85
					<div style="padding:10px 0 0px;">
86
					<?php if(isset($needtoachieveval) && $needtoachieveval >0){
87
						echo "Buy &#8377; ". $needtoachieveval ." more to get ". $needtoachieveper."% cashback.";}
88
					?>
89
					</div>
90
				</div>
91
			    <?php endif;?>
19307 naman 92
			</div>
93
 
94
 
95
		</div>
96
	</div>
19342 naman 97
</div>
98
<?php else:?>
99
	<div class="well text-center emptyCart">
100
			No offer available for you.		
101
	</div>
102
 
103
<?php endif;?>