Subversion Repositories SmartDukaan

Rev

Rev 19311 | Rev 19358 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19311 Rev 19342
Line 10... Line 10...
10
tr{width:100%;}
10
tr{width:100%;}
11
    table{
11
    table{
12
    	font-size: 12px;
12
    	font-size: 12px;
13
    }
13
    }
14
</style>
14
</style>
15
 
-
 
-
 
15
<?php if(isset($response) && !empty($response)):?>
16
<div class="container">
16
<div class="container">
17
	<div class="row-fluid">	
17
	<div class="row-fluid">	
18
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
18
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
19
		
19
		
20
			<h4 class="text-center"></h4>
20
			<h4 class="text-center"></h4>
Line 23... Line 23...
23
			<div id="foreng">
23
			<div id="foreng">
24
				
24
				
25
			    <div style="margin:5px 0;">Buy accessories in April and get upto <?php echo $maxpercentage."% cashback.";?> </div>
25
			    <div style="margin:5px 0;">Buy accessories in April and get upto <?php echo $maxpercentage."% cashback.";?> </div>
26
			   	
26
			   	
27
				<div style="margin:5px 0;">
27
				<div style="margin:5px 0;">
28
<!-- 					<div class="bgreen"> -->
-
 
-
 
28
 
29
					<table cellpadding="1" cellspacing="1" width="100%">
29
					<table cellpadding="1" cellspacing="1" width="100%">
30
						<tr><td><b>Purchase</b></td><td><b>Cashback</b></td></tr>
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'])):?>
31
						<?php if(isset($response['target1'])&& isset($response['target1_cash_back_percetage'])):?>
32
							<tr>
32
							<tr>
33
								<td>Above &#8377; <?php echo $response['target1'];?></td>
33
								<td>Above &#8377; <?php echo $response['target1'];?></td>
Line 39... Line 39...
39
								<td>Above &#8377; <?php echo $response['target2'];?></td>
39
								<td>Above &#8377; <?php echo $response['target2'];?></td>
40
								<td><?php echo $response['target2_cash_back_percetage']?>%</td>
40
								<td><?php echo $response['target2_cash_back_percetage']?>%</td>
41
							</tr>
41
							</tr>
42
						<?php endif;?>
42
						<?php endif;?>
43
					</table>
43
					</table>
44
<!-- 					</div> -->
-
 
-
 
44
 
45
				</div>
45
				</div>
46
				
46
				
47
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
47
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
48
					<b>*</b> Max cashback will be &#8377; <?php echo $response['maxCashBack'];?>.<br>
48
					<b>*</b> Max cashback will be &#8377; <?php echo $response['maxCashBack'];?>.<br>
49
					<b>*</b> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).<br>
49
					<b>*</b> Above scheme is applicable only to you (<b><?php echo $user_email;?></b>).<br>
Line 58... Line 58...
58
// 						}
58
// 						}
59
					//}
59
					//}
60
					?>
60
					?>
61
					
61
					
62
				</div>
62
				</div>
-
 
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.";}
63
			    
88
					?>
-
 
89
					</div>
-
 
90
				</div>
-
 
91
			    <?php endif;?>
64
			</div>
92
			</div>
65
			
93
			
66
			
94
			
67
		</div>
95
		</div>
68
	</div>
96
	</div>
69
</div>
-
 
70
97
</div>
-
 
98
<?php else:?>
-
 
99
	<div class="well text-center emptyCart">
-
 
100
			No offer available for you.		
-
 
101
	</div>
-
 
102
 
-
 
103
<?php endif;?>
-
 
104
71
105