| 12694 |
anikendra |
1 |
<?php
|
|
|
2 |
//print_r($contact_us);
|
|
|
3 |
if(isset($contact_us) && !empty($contact_us)){
|
|
|
4 |
$contact = $contact_us[0];
|
|
|
5 |
}
|
|
|
6 |
$email = '';
|
|
|
7 |
$authorized = $this->session->userdata('authorized');
|
|
|
8 |
if(isset($authorized['email']) && !empty($authorized['email'])){
|
|
|
9 |
if(strpos($authorized['email'], 'anonymous') == false){
|
|
|
10 |
$email = $authorized['email'];
|
|
|
11 |
}
|
|
|
12 |
}
|
|
|
13 |
if(isset($authorized) && !empty($authorized)){
|
|
|
14 |
if(isset($authorized['isLoggedIn']) && $authorized['isLoggedIn'] == 1){
|
|
|
15 |
$loggedIn = 1;
|
|
|
16 |
}else{
|
|
|
17 |
$loggedIn = 0;
|
|
|
18 |
}
|
|
|
19 |
}else{
|
|
|
20 |
$loggedIn = 0;
|
|
|
21 |
}
|
|
|
22 |
?>
|
|
|
23 |
|
|
|
24 |
<div class="contact-us-head clearfix">
|
|
|
25 |
<div>Contact Us</div>
|
|
|
26 |
<ul>
|
|
|
27 |
<li><a href="https://www.facebook.com/mysaholic" target="_blank"></a></li>
|
|
|
28 |
<li><a href="https://twitter.com/saholic" target="_blank"></a></li>
|
|
|
29 |
<li><a href="https://plus.google.com/103470847399313545286/posts" target="_blank"></a></li>
|
|
|
30 |
</ul>
|
|
|
31 |
</div><!--contact-us-head-->
|
|
|
32 |
<div class="contact-us-hldr">
|
|
|
33 |
<div id="error" class="error_msg" style="display:none"></div>
|
|
|
34 |
<!-- <form class="contact-us" action="#" method="post" id="contactUs">
|
|
|
35 |
<fieldset> -->
|
|
|
36 |
<?php if(!isset($contact) && empty($contact)){?>
|
|
|
37 |
<label>Reply to</label>
|
|
|
38 |
<input type="text" <?php if($email){ echo 'value='.$email; echo ' readonly="readonly"'; }else{echo 'value=""';}?> id="mail" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"/>
|
|
|
39 |
<label>Issue</label>
|
|
|
40 |
<select name="communication_type" id="communication_category" onchange="contactUs()">
|
|
|
41 |
<option value="-1">Select Issue Type</option>
|
|
|
42 |
<option value="return-pd">Return Product</option>
|
|
|
43 |
<option value="cancel-od">Cancel an Order</option>
|
|
|
44 |
<option value="delivery-pb">Delivery Problem</option>
|
|
|
45 |
<option value="payment-status">Request Payment Status</option>
|
|
|
46 |
<option value="order-status">Request Order Status</option>
|
|
|
47 |
<option value="request-pd">Request Product</option>
|
|
|
48 |
<option value="recharge-related">Recharge Related</option>
|
|
|
49 |
<option value="others">Other</option>
|
|
|
50 |
</select>
|
|
|
51 |
|
|
|
52 |
<form id="return-pd" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
53 |
<input type="hidden" value="1" name="category"/>
|
|
|
54 |
<input type="hidden" name="email" value="" id="return_mail"/>
|
|
|
55 |
<label>Order Id</label>
|
|
|
56 |
<select name="order_id" id="return_id">
|
|
|
57 |
<option value="-1">Select Order ID</option>
|
|
|
58 |
</select>
|
|
|
59 |
<label>Product</label>
|
|
|
60 |
<select name="return_pd">
|
|
|
61 |
<option></option>
|
|
|
62 |
</select>
|
|
|
63 |
<label>Reason</label>
|
|
|
64 |
<select name="return_reason" >
|
|
|
65 |
<option value="Wrong product delivered">Wrong product delivered</option>
|
|
|
66 |
<option value="Product received in damaged condition">Product received in damaged condition</option>
|
|
|
67 |
</select>
|
|
|
68 |
<label>Message</label>
|
|
|
69 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
70 |
<input type="button" value="Reset" name="reset" onclick="clearForm()"/>
|
|
|
71 |
<input type="submit" value="Submit" name="submit" />
|
|
|
72 |
</form><!--return-pd-->
|
|
|
73 |
<form id="cancel-od" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
74 |
<input type="hidden" value="2" name="category" />
|
|
|
75 |
<input type="hidden" name="email" value="" id="cancel_mail"/>
|
|
|
76 |
<label>Order Id</label>
|
|
|
77 |
<select name="order_id" id="cancel_id">
|
|
|
78 |
<option value="-1">Select Order ID</option>
|
|
|
79 |
</select>
|
|
|
80 |
<label>Reason</label>
|
|
|
81 |
<input type="text" name="subject" />
|
|
|
82 |
<label>Message</label>
|
|
|
83 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
84 |
<input type="button" value="Reset" name="reset" onclick="clearForm()"/>
|
|
|
85 |
<input type="submit" value="Submit" name="submit" />
|
|
|
86 |
</form><!--cancel-od-->
|
|
|
87 |
<form id="delivery-pb" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
88 |
<input type="hidden" name="email" value="" id="delivery_mail"/>
|
|
|
89 |
<input type="hidden" value="3" name="category" />
|
|
|
90 |
<label>Order Id</label>
|
|
|
91 |
<select name="order_id" id="delivery_id">
|
|
|
92 |
<option value="-1">Select Order ID</option>
|
|
|
93 |
</select>
|
|
|
94 |
<label>Problem Type</label>
|
|
|
95 |
<select name="subject">
|
|
|
96 |
<option value="Packet received in damaged condition">Packet received in damaged condition</option>
|
|
|
97 |
<option value="Seal tampered">Seal tampered</option>
|
|
|
98 |
<option value="Delivery not received">Delivery not received</option>
|
|
|
99 |
<option value="Delivery person asking for Extra shipping/Octroi Charges">Delivery person asking for Extra shipping/Octroi Charges</option>
|
|
|
100 |
</select>
|
|
|
101 |
<label>Message</label>
|
|
|
102 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
103 |
|
|
|
104 |
<input type="button" value="Reset" name="reset" onclick="clearForm()" />
|
|
|
105 |
<input type="submit" value="Submit" name="submit" />
|
|
|
106 |
</form><!--delivery-pb-->
|
|
|
107 |
<form id="payment-status" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
108 |
<input type="hidden" value="4" name="category" />
|
|
|
109 |
<input type="hidden" name="email" value="" id="payment_mail"/>
|
|
|
110 |
<label>Order Id</label>
|
|
|
111 |
<select name="order_id" id="payment_id">
|
|
|
112 |
<option value="-1">Select Order ID</option>
|
|
|
113 |
</select>
|
|
|
114 |
<label>Message</label>
|
|
|
115 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
116 |
<input type="button" value="Reset" name="reset" onclick="clearForm()"/>
|
|
|
117 |
<input type="submit" value="Submit" name="submit" />
|
|
|
118 |
</form><!--payment_status-->
|
|
|
119 |
<form id="order-status" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
120 |
<input type="hidden" value="5" name="category" />
|
|
|
121 |
<input type="hidden" name="email" value="" id="order_mail"/>
|
|
|
122 |
<label>Order Id</label>
|
|
|
123 |
<select name="order_id" id="order_id">
|
|
|
124 |
<option value="-1">Select Order ID</option>
|
|
|
125 |
</select>
|
|
|
126 |
<label>Message</label>
|
|
|
127 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
128 |
<input type="button" value="Reset" name="reset" onclick="clearForm()"/>
|
|
|
129 |
<input type="submit" value="Submit" name="submit" />
|
|
|
130 |
</form><!--order_status-->
|
|
|
131 |
<form id="request-pd" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
132 |
<input type="hidden" value="6" name="category" />
|
|
|
133 |
<input type="hidden" name="email" value="" id="request_mail"/>
|
|
|
134 |
<label>Product Name</label>
|
|
|
135 |
<input type="text" name="subject" />
|
|
|
136 |
<label>Message</label>
|
|
|
137 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
138 |
|
|
|
139 |
<input type="button" value="Reset" name="reset" onclick="clearForm()" />
|
|
|
140 |
<input type="submit" value="Submit" name="submit" />
|
|
|
141 |
</form><!--request_pd-->
|
|
|
142 |
<form id="recharge-related" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
143 |
<input type="hidden" value="7" name="category" />
|
|
|
144 |
<input type="hidden" name="email" value="" id="recharge_mail"/>
|
|
|
145 |
<label>Reason</label>
|
|
|
146 |
<select name="subject">
|
|
|
147 |
<option value="recharge-failed">Payment successful/Recharge failed</option>
|
|
|
148 |
<option value="recharge-pending">Recharge successful but pending</option>
|
|
|
149 |
<option value="recharge-wallet-realated">Recharge wallet related</option>
|
|
|
150 |
<option value="recharge-other">Other recharge problem</option>
|
|
|
151 |
</select>
|
|
|
152 |
<label>Device Number</label>
|
|
|
153 |
<input type="text" name="deviceNumber"/>
|
|
|
154 |
<label>Order Number</label>
|
|
|
155 |
<input type="text" name="rechargeOrderNumber"/>
|
|
|
156 |
<label>Message</label>
|
|
|
157 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
158 |
|
|
|
159 |
<input type="button" value="Reset" name="reset" onclick="clearForm()"/>
|
|
|
160 |
<input type="submit" value="Submit" name="submit" />
|
|
|
161 |
</form><!--recharge-related-->
|
|
|
162 |
<form id="others" style="display:none;" action="<?php echo base_url();?>contact-us" method="post" onsubmit="return validateForm(event)" class="clearfix">
|
|
|
163 |
<input type="hidden" value="8" name="category" />
|
|
|
164 |
<input type="hidden" name="email" value="" id="others_mail"/>
|
|
|
165 |
<input type="hidden" <?php if($email){ echo 'value='.$email; echo ' readonly="readonly"'; }else{echo 'value=""';}?>/>
|
|
|
166 |
<label>Subject</label>
|
|
|
167 |
<input type="text" name="subject"/>
|
|
|
168 |
<label>Message</label>
|
|
|
169 |
<textarea cols="10" rows="5" name="message"></textarea>
|
|
|
170 |
<input type="button" value="Reset" name="reset" onclick="clearForm()" />
|
|
|
171 |
<input type="submit" value="Submit" name="submit" />
|
|
|
172 |
</form><!--others-->
|
|
|
173 |
<?php } elseif(isset($contact) && !empty($contact)){?>
|
|
|
174 |
<div><?php if($contact->response->status == 'SUCCESS'){
|
|
|
175 |
echo '<div class="success_log">Thank you for your query. We will soon look into it.</div>';
|
|
|
176 |
}else{
|
|
|
177 |
echo '<div class="error_log">Sorry your query could not be completed</div>';
|
|
|
178 |
}}?></div>
|
|
|
179 |
<!-- </fieldset>
|
|
|
180 |
</form> -->
|
|
|
181 |
<div class="postalAddress-hldr">
|
|
|
182 |
<div id="postalAddress">
|
|
|
183 |
<h4>Address:</h4>
|
|
|
184 |
<p> Spice Online Retail Pvt. Ltd.</p>
|
|
|
185 |
<p> Spice Global Knowledge Park (5th Floor)</p>
|
|
|
186 |
<p> 19A-19B, Sector 125,</p>
|
|
|
187 |
<p> Noida - 201301 (UP)</p>
|
|
|
188 |
<br>
|
|
|
189 |
<h4>Phone:</h4>
|
|
|
190 |
<p> 0120-2479977 </p>
|
|
|
191 |
<p>Our customer care people are available from <b>8am to 10pm.</b></p>
|
|
|
192 |
<br>
|
|
|
193 |
<h4>Email:</h4>
|
|
|
194 |
<p>help@saholic.com</p>
|
|
|
195 |
</div>
|
|
|
196 |
</div>
|
|
|
197 |
</div><!--contact-us-hldr-->
|
|
|
198 |
<script type="text/javascript">
|
|
|
199 |
var loggedIn = <?php echo $loggedIn;?>;
|
|
|
200 |
</script>
|