Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
19359 manas 1
<style type="text/css">
2
h5{font-weight: bold;text-decoration: underline;}
3
h4{font-weight: bold;text-decoration: underline;}
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: 13px;
13
    }
14
.redcolor {
15
	color:red;
16
}
17
</style>
18
<?php if(isset($response) && !empty($response)):?>
19
<div class="container">
20
	<div class="row-fluid">	
21
		<div class="col-xs-12 bgwhite" style="margin:5px 0;">
22
 
23
			<h4 class="text-center">Accessories cashback scheme for April</h4>
24
 
25
 
26
			<div id="foreng">
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>
29
 
30
				<div style="margin:5px 0;">
31
 
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>
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>
38
							</tr>
39
						<?php endif;?>
40
						<?php if(isset($response['target2'])&& isset($response['target2_cash_back_percetage'])):?>
41
							<tr>
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>
44
							</tr>
45
						<?php endif;?>
46
					</table>
47
 
48
				</div>
49
 
50
				<div class="bgreen" style="margin:5px 0;font-size:12px;">
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>
61
					<?php
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
					?>
71
 
72
				</div>
73
				<?php  //if(isset($needtoachieveval)):?>
74
				<div style="margin:15px 0 10px;">
75
					Orders placed till <?php echo date('d-M',$response['last_run_timestamp']/1000);?>.
76
					<table cellpadding="1" cellspacing="1" width="100%">
77
 
78
						<?php if(isset($response['delivered_order_value'])):?>
79
							<tr>
80
								<td>Delivered Orders</td>
81
								<td> &#8377; <?php echo $response['delivered_order_value']?></td>
82
							</tr>
83
						<?php endif;?>
84
						<?php if(isset($response['pending_order_value'])):?>
85
							<tr>
86
								<td>In process Orders </td>
87
								<td> &#8377; <?php echo $response['pending_order_value']?></td>
88
							</tr>
89
						<?php endif;?>
90
						<tr>
91
								<td><b>Total</b></td>
92
								<td> <b>&#8377; <?php echo ($response['pending_order_value'] + $response['delivered_order_value']);?></b></td>
93
						</tr>
94
					</table>
95
					<div style="padding:10px 0 0px;">
96
					<?php //if(isset($needtoachieveval) && $needtoachieveval >0){
97
						$totalval = $response['delivered_order_value'] + $response['pending_order_value'];
98
 
99
						if($totalval< $response['target2']){
100
							if($totalval< $response['target1']){
101
								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>";
102
 
103
							}
104
 
105
						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.";}
106
						else{
107
							echo "You have achieved your target.";
108
						}
109
					?>
110
					</div>
111
				</div>
112
 
113
			    <?php //endif;?>
114
			</div>
115
 
116
 
117
		</div>
118
	</div>
119
</div>
120
<?php else:?>
121
	<div class="well text-center emptyCart">
122
			No offer available for you.		
123
	</div>
124
 
125
<?php endif;?>