Blame | 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'];}}$dth_operator1 = (array) $dth_operator;$mobile_operator1 = (array) $mobile_operator;if(isset($rechargeOperator) && !empty($rechargeOperator)){if(in_array(strtoupper($rechargeOperator), $dth_operator1)){$rechargeType = 'dth';}elseif(in_array(strtoupper($rechargeOperator), $mobile_operator1)){$rechargeType = 'mobile';}}?><div class="rech-cont"><div class="rech-head clearfix"><div class="mobile-re <?php if(!isset($rechargeType) || $rechargeType != 'dth'){ echo 'selected';}?>">mobile</div><div> </div><div class="dth-re <?php if(isset($rechargeType) && $rechargeType == 'dth'){ echo 'selected';}?>">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()" style="display:<?php if(!isset($rechargeType) || $rechargeType != 'dth'){ echo 'block';} else { echo 'none'; }?>"><fieldset><?php if(isset($rechargeType) && $rechargeType == 'mobile'){?><div><h1><?php echo strtoupper($rechargeOperator); ?></h1><div><?php } ?><label>Mobile Number</label><input name="mobile-number" type="number" id="mobile-number" onKeyUp="operator()" onfocus="clearError()"/><div id="operator-list" style="display:none" class="fetch-operator" onclick="operator()">Click to fetch operator list</div><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 if(isset($rechargeType) && $rechargeType == 'mobile'){ if(strcasecmp($value,$rechargeOperator) == 0){ echo 'selected = true';}}?>><?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" 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()" style="display:<?php if(isset($rechargeType) && $rechargeType == 'dth'){ echo 'block';} else { echo 'none'; }?>"><fieldset><?php if(isset($rechargeType) && $rechargeType == 'dth'){?><div><h1><?php echo strtoupper($rechargeOperator).' online recharge'; ?></h1><div><?php } ?><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 if(isset($rechargeType) && $rechargeType == 'dth'){ if(strcasecmp($value,$rechargeOperator) == 0){ echo 'selected = true';}}?>><?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" 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>