| Line 24... |
Line 24... |
| 24 |
if(isset($authorized['email']) && !empty($authorized['email'])){
|
24 |
if(isset($authorized['email']) && !empty($authorized['email'])){
|
| 25 |
if(strpos($authorized['email'], 'anonymous') == false){
|
25 |
if(strpos($authorized['email'], 'anonymous') == false){
|
| 26 |
$email = $authorized['email'];
|
26 |
$email = $authorized['email'];
|
| 27 |
}
|
27 |
}
|
| 28 |
}
|
28 |
}
|
| - |
|
29 |
$dth_operator1 = (array) $dth_operator;
|
| - |
|
30 |
$mobile_operator1 = (array) $mobile_operator;
|
| - |
|
31 |
if(isset($rechargeOperator) && !empty($rechargeOperator)){
|
| - |
|
32 |
if(in_array(strtoupper($rechargeOperator), $dth_operator1)){
|
| - |
|
33 |
$rechargeType = 'dth';
|
| - |
|
34 |
}elseif(in_array(strtoupper($rechargeOperator), $mobile_operator1)){
|
| - |
|
35 |
$rechargeType = 'mobile';
|
| - |
|
36 |
}
|
| - |
|
37 |
}
|
| 29 |
?>
|
38 |
?>
|
| 30 |
|
- |
|
| 31 |
<div class="rech-cont">
|
39 |
<div class="rech-cont">
|
| 32 |
<div class="rech-head clearfix">
|
40 |
<div class="rech-head clearfix">
|
| 33 |
<div class="mobile-re selected">mobile</div>
|
41 |
<div class="mobile-re <?php if(!isset($rechargeType) || $rechargeType != 'dth'){ echo 'selected';}?>">mobile</div>
|
| 34 |
<div> </div>
|
42 |
<div> </div>
|
| 35 |
<div class="dth-re">Dth</div>
|
43 |
<div class="dth-re <?php if(isset($rechargeType) && $rechargeType == 'dth'){ echo 'selected';}?>">Dth</div>
|
| 36 |
</div><!--recharge-head-->
|
44 |
</div><!--recharge-head-->
|
| 37 |
<div id="error" class="error_msg" style="display:none">
|
45 |
<div id="error" class="error_msg" style="display:none">
|
| 38 |
</div>
|
46 |
</div>
|
| 39 |
<form name="mobile-recharge" method="post" action="<?php echo base_url().'confirm'?>"class="mobile-recharge" onsubmit="return mobileValidation()">
|
47 |
<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'; }?>">
|
| 40 |
<fieldset>
|
48 |
<fieldset>
|
| 41 |
<?php if(isset($rechargeOperator) && !empty($rechargeOperator)){?><div><h1><?php echo $title; ?></h1><div><?php } ?>
|
49 |
<?php if(isset($rechargeType) && $rechargeType == 'mobile'){?><div><h1><?php echo strtoupper($rechargeOperator); ?></h1><div><?php } ?>
|
| 42 |
<label>Mobile Number</label>
|
50 |
<label>Mobile Number</label>
|
| 43 |
<input name="mobile-number" type="number" id="mobile-number" onKeyUp="operator()" onfocus="clearError()"/>
|
51 |
<input name="mobile-number" type="number" id="mobile-number" onKeyUp="operator()" onfocus="clearError()"/>
|
| 44 |
<label>Operator</label>
|
52 |
<label>Operator</label>
|
| 45 |
<select name="operatorId" id="mobile-operator" onChange="changeOperator(event)" disabled="true" onfocus="clearError()">
|
53 |
<select name="operatorId" id="mobile-operator" onChange="changeOperator(event)" disabled="true" onfocus="clearError()">
|
| 46 |
<option>Select Operator</option>
|
54 |
<option>Select Operator</option>
|
| 47 |
<?php if(isset($mobile_operator) && !empty($mobile_operator)){
|
55 |
<?php if(isset($mobile_operator) && !empty($mobile_operator)){
|
| 48 |
foreach($mobile_operator as $key => $value){?>
|
56 |
foreach($mobile_operator as $key => $value){?>
|
| 49 |
<option value="<?php echo $key;?>" <?php if(isset($rechargeOperator) && !empty($rechargeOperator)){ if(strcasecmp($value,$rechargeOperator) == 0){ echo 'selected = true';}}?>><?php echo $value;?></option>
|
57 |
<option value="<?php echo $key;?>" <?php if(isset($rechargeType) && $rechargeType == 'mobile'){ if(strcasecmp($value,$rechargeOperator) == 0){ echo 'selected = true';}}?>><?php echo $value;?></option>
|
| 50 |
<?php }}?>
|
58 |
<?php }}?>
|
| 51 |
</select>
|
59 |
</select>
|
| 52 |
<input type="hidden" name="operator-name" id="operator_hidden" value="">
|
60 |
<input type="hidden" name="operator-name" id="operator_hidden" value="">
|
| 53 |
<div id="plans" style="display:none;">
|
61 |
<div id="plans" style="display:none;">
|
| 54 |
<label>Plans</label>
|
62 |
<label>Plans</label>
|
| Line 67... |
Line 75... |
| 67 |
<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"/>
|
75 |
<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"/>
|
| 68 |
|
76 |
|
| 69 |
<input type="submit" value="Recharge" name="submit"/>
|
77 |
<input type="submit" value="Recharge" name="submit"/>
|
| 70 |
</fieldset>
|
78 |
</fieldset>
|
| 71 |
</form><!--mobile-recharge-->
|
79 |
</form><!--mobile-recharge-->
|
| 72 |
<form name="dth-recharge" method="post" action="<?php echo base_url().'confirm'?>"class="dth-recharge" onsubmit="return dthValidation()">
|
80 |
<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'; }?>">
|
| 73 |
<fieldset>
|
81 |
<fieldset>
|
| 74 |
|
- |
|
| - |
|
82 |
<?php if(isset($rechargeType) && $rechargeType == 'dth'){?><div><h1><?php echo strtoupper($rechargeOperator).' online recharge'; ?></h1><div><?php } ?>
|
| 75 |
<label>Operator</label>
|
83 |
<label>Operator</label>
|
| 76 |
<select name="operatorId" id="dth-operator" onChange="changeName(event)" onfocus="clearError()">
|
84 |
<select name="operatorId" id="dth-operator" onChange="changeName(event)" onfocus="clearError()">
|
| 77 |
<option>Select Operator</option>
|
85 |
<option>Select Operator</option>
|
| 78 |
<?php if(isset($dth_operator) && !empty($dth_operator)){
|
86 |
<?php if(isset($dth_operator) && !empty($dth_operator)){
|
| 79 |
foreach($dth_operator as $key => $value){?>
|
87 |
foreach($dth_operator as $key => $value){?>
|
| 80 |
<option value="<?php echo $key;?>"><?php echo $value;?></option>
|
88 |
<option value="<?php echo $key;?>" <?php if(isset($rechargeType) && $rechargeType == 'dth'){ if(strcasecmp($value,$rechargeOperator) == 0){ echo 'selected = true';}}?>><?php echo $value;?></option>
|
| 81 |
<?php }}?>
|
89 |
<?php }}?>
|
| 82 |
</select>
|
90 |
</select>
|
| 83 |
<input type="hidden" name="operator-name" id="dth_hidden" value="">
|
91 |
<input type="hidden" name="operator-name" id="dth_hidden" value="">
|
| 84 |
<label id="accountName">Account Number :</label>
|
92 |
<label id="accountName">Account Number :</label>
|
| 85 |
<input name="dth-number" type="number" id="dth-number" onfocus="clearError()"/>
|
93 |
<input name="dth-number" type="number" id="dth-number" onfocus="clearError()"/>
|