Subversion Repositories SmartDukaan

Rev

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

Rev 19439 Rev 19664
Line 1... Line 1...
1
<style type="text/css">
1
<style type="text/css">
2
h5{font-weight: bold;text-decoration: underline;}
2
h5{font-weight: bold;text-decoration: underline;}
3
h4{font-weight: bold;text-decoration: underline;}
3
h4{font-weight: bold;text-decoration: underline;}
4
 
4
 
5
	td:first-child { ; border:1px solid  #e6e6e6;}
5
	td:first-child {border:1px solid  #e6e6e6;}
6
	td{
6
	td{
7
	padding:2px;
7
	padding:2px;
8
    border:1px solid #e6e6e6;
8
    border:1px solid #e6e6e6;
9
}
9
}
10
tr{width:100%;}
10
tr{width:100%;}
Line 22... Line 22...
22
		
22
		
23
			<h4 class="text-center">Accessories cashback scheme for April</h4>
23
			<h4 class="text-center">Accessories cashback scheme for April</h4>
24
			
24
			
25
			
25
			
26
			<div id="foreng">
26
			<div id="foreng">
27
				<h5>Exclusive offer only for you (<?php echo $user_email?>)</h5>
27
				<!-- <h5>Exclusive offer only for you (<?php //echo $user_email;?>)</h5> -->
-
 
28
			    <div style="margin:5px 0;">
-
 
29
					Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
-
 
30
					<table cellpadding="1" cellspacing="1" width="100%">
-
 
31
						
-
 
32
						<?php if(isset($response['delivered_order_value'])):?>
-
 
33
							<tr>
-
 
34
								<td>Delivered Orders</td>
-
 
35
								<td> &#8377; <?php echo number_format($response['delivered_order_value']);?></td>
-
 
36
							</tr>
-
 
37
						<?php endif;?>
-
 
38
						<?php if(isset($response['pending_order_value'])):?>
-
 
39
							<tr>
-
 
40
								<td>In process Orders </td>
-
 
41
								<td> &#8377; <?php echo number_format($response['pending_order_value']);?></td>
-
 
42
							</tr>
-
 
43
						<?php endif;?>
-
 
44
						<tr>
-
 
45
								<td><b>Total</b></td>
-
 
46
								<td> <b>&#8377; <?php echo number_format($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
-
 
47
						</tr>
-
 
48
					</table>
-
 
49
					
-
 
50
				<div style="margin:15px 0 10px;">
-
 
51
					
-
 
52
					<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
-
 
53
						$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
-
 
54
						
-
 
55
						if($totalval< $response['target1']){
-
 
56
							echo "* You are not eligible for cashback.";
-
 
57
						}
-
 
58
						else if($totalval< $response['target2']){
-
 
59
							
-
 
60
							echo "* You are eligible for <span class='redcolor'>". $response['target1_cash_back_percetage']."%</span> cashback subject to orders delivered.<br> ";
-
 
61
							echo "* <span class='redcolor'>&#8377;".number_format(intval(($totalval*$response['target1_cash_back_percetage'])/100)) ."</span> will be credited to your account on 20th May.";
-
 
62
						}
-
 
63
						else{
28
			    <div style="margin:5px 0;">Buy accessories in April and get upto <span class="redcolor"><?php echo $maxpercentage."% ";?></span>cashback. </div>
64
							echo "* You are eligible for <span class='redcolor'>". $response['target2_cash_back_percetage']."%</span> cashback subject to orders delivered.<br>";
-
 
65
							echo "* <span class='redcolor'>&#8377;".number_format(intval(($totalval*$response['target2_cash_back_percetage'])/100)) ."</span> will be credited to your account on 20th May.";
-
 
66
						}
-
 
67
					?>
-
 
68
					<hr style="border-top: 2px solid #eee;">
-
 
69
				</div>
-
 
70
				</div>
29
			   	
71
			   	
30
				<div style="margin:5px 0;">
72
				<div style="margin:5px 0;">
31
 
73
 
32
					<table cellpadding="1" cellspacing="1" width="100%">
74
					<table cellpadding="1" cellspacing="1" width="100%">
33
						<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
75
						<tr><td><b>Total purchase in April</b></td><td><b>Cashback</b></td></tr>
Line 70... Line 112...
70
					//}
112
					//}
71
					?>
113
					?>
72
					
114
					
73
				</div>
115
				</div>
74
				<?php  //if(isset($needtoachieveval)):?>
116
				<?php  //if(isset($needtoachieveval)):?>
75
				<hr style="border-top: 2px solid #eee;;">
-
 
76
				<div style="margin:15px 0 10px;">
-
 
77
					Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
-
 
78
					<table cellpadding="1" cellspacing="1" width="100%">
-
 
79
						
117
				
80
						<?php if(isset($response['delivered_order_value'])):?>
-
 
81
							<tr>
-
 
82
								<td>Delivered Orders</td>
-
 
83
								<td> &#8377; <?php echo number_format($response['delivered_order_value']);?></td>
-
 
84
							</tr>
-
 
85
						<?php endif;?>
-
 
86
						<?php if(isset($response['pending_order_value'])):?>
-
 
87
							<tr>
-
 
88
								<td>In process Orders </td>
-
 
89
								<td> &#8377; <?php echo number_format($response['pending_order_value']);?></td>
-
 
90
							</tr>
-
 
91
						<?php endif;?>
-
 
92
						<tr>
-
 
93
								<td><b>Total</b></td>
-
 
94
								<td> <b>&#8377; <?php echo number_format($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
-
 
95
						</tr>
-
 
96
					</table>
-
 
97
					<div style="padding:10px 0 0px;">
-
 
98
					<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
-
 
99
						$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
-
 
100
						
-
 
101
						if($totalval< $response['target2']){
-
 
102
							if($totalval< $response['target1']){
-
 
103
								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>";
-
 
104
								
-
 
105
							}
-
 
106
							
-
 
107
						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.";}
-
 
108
						else{
-
 
109
							echo "You have achieved your target.";
-
 
110
						}
-
 
111
					?>
-
 
112
					</div>
-
 
113
				</div>
-
 
114
												
118
												
115
			    <?php //endif;?>
119
			    <?php //endif;?>
116
			</div>
120
			</div>
117
			
121
			
118
			
122