Rev 11547 | Rev 11631 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?phpif(isset($mobile_operator) && !empty($mobile_operator)){$mobile_operator = $mobile_operator[0];}if(isset($dth_operator) && !empty($dth_operator)){$dth_operator = $dth_operator[0];}if(isset($plan_map) && !empty($plan_map)){$plan_map = $plan_map[0];$i=0;$plan = array();$operator = array();foreach($plan_map as $maps){foreach($maps as $map){$operator[] = $map->operatorId;$plan[$i]['operatorId'] = $map->operatorId;$plan[$i]['Name'] = $map->name;$plan[$i]['displayName'] = $map->displayName;$i++;}}}$authorized = $this->session->userdata('authorized');if(isset($authorized['email']) && !empty($authorized['email'])){if(strpos($authorized['email'], 'anonymous') == false){$email = $authorized['email'];}}?><div class="rech-cont"><div class="rech-head clearfix"><div class="mobile-re selected">mobile</div><div> </div><div class="dth-re">Dth</div></div><!--recharge-head--><div id="error" class="error_msg" style="display:none"></div><form name="mobile-recharge" method="post" action="<?php echo base_url().'confirm'?>"class="mobile-recharge" onsubmit="return mobileValidation()"><fieldset><label>Mobile Number</label><input name="mobile-number" type="number" id="mobile-number" onKeyUp="operator()" onfocus="clearError()"/><label>Operator</label><select name="operatorId" id="mobile-operator" onChange="changeOperator(event)" disabled="true" onfocus="clearError()"><option>Select Operator</option><?php if(isset($mobile_operator) && !empty($mobile_operator)){foreach($mobile_operator as $key => $value){?><option value="<?php echo $key;?>"><?php echo $value;?></option><?php }}?></select><input type="hidden" name="operator-name" id="operator_hidden" value=""><div id="plans" style="display:none;"><label>Plans</label><select name="planName" id="operator-palns"></select></div><div id="special" class="plans-btn clearfix" style="display:none"><p>See popular plans for <span id="operatorName"></span></p><div id="1" onclick="topup(event)">Topup</div><div id="2" onclick="topup(event)">Special</div></div><label>Amount (In Rs)</label><input name="recharge-amt" id="mobile-amount" type="number" class="price" placeholder="" /><label>Email Id</label><input id="emailId" name="email" type="email" value="<?php if(isset($email) && !empty($email)) echo $email;?>" onfocus="clearError()" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"/><input type="submit" value="Recharge" name="submit"/></fieldset></form><!--mobile-recharge--><form name="dth-recharge" method="post" action="<?php echo base_url().'confirm'?>"class="dth-recharge" onsubmit="return dthValidation()"><fieldset><label>Operator</label><select name="operatorId" id="dth-operator" onChange="changeName(event)" onfocus="clearError()"><option>Select Operator</option><?php if(isset($dth_operator) && !empty($dth_operator)){foreach($dth_operator as $key => $value){?><option value="<?php echo $key;?>"><?php echo $value;?></option><?php }}?></select><input type="hidden" name="operator-name" id="dth_hidden" value=""><label id="accountName">Account Number :</label><input name="dth-number" type="number" id="dth-number" onfocus="clearError()"/><label>Amount (In Rs)</label><input name="recharge-amt" id="dth-amount" type="number" class="price" onfocus="clearError()"/><label>Email Id</label><input id="dth-email" name="email" type="email" value="<?php if(isset($email) && !empty($email)) echo $email;?>" onfocus="clearError()"/><input type="submit" value="Recharge" name="submit"/></fieldset></form><!--dth-recharge--></div><!--rech-cont--><div class="topup-cont" style="display:none;"><div class="topup-wrapper"><p>Popular Plans</p><div class="close" onclick="closePlan();"></div><div class="clear"></div><div class="topup-cont-head clearfix"><div>Amt.</div><div>Validity</div><div>Talktime</div></div><!--topup-cont-head--><div id='appendlist' class="topup-cont-body clearfix"></div></div></div><!--topup-cont--><script type="text/javascript">var plan = <?php echo json_encode($plan);?>;var special = <?php echo json_encode($this->config->item('topup-special'));?>;var dthIdMap = <?php echo json_encode($this->config->item('DthIdAliasMap'));?>;</script>