@@ -77,16 +77,32 @@ |
||
77 | 77 | <div class="col-md-12 margin-t-20 padding-r-32 padding-l-32"> |
78 | 78 | <label class="col-md-5 no-padding" style="text-align: left;">Password</label> |
79 | 79 | <div class="col-md-7 no-padding"> |
80 | -<input type="text" name="password" required value="<?php if(isset($value['password'])) echo $value['password']; else '';?>" id="password" size="15" maxlength="40" class="form-control" /> |
|
81 | -<div class='error-style col-md-12 no-padding' style='color:red; font-size: 13px;' id="une"><?php if(isset($error['password'])) echo $error['password'];?></div> |
|
80 | +<input type="text" name="password" required value="<?php if(isset($value['password'])) { |
|
81 | + echo $value['password']; |
|
82 | +} else { |
|
83 | + ''; |
|
84 | +} |
|
85 | +?>" id="password" size="15" maxlength="40" class="form-control" /> |
|
86 | +<div class='error-style col-md-12 no-padding' style='color:red; font-size: 13px;' id="une"><?php if(isset($error['password'])) { |
|
87 | + echo $error['password']; |
|
88 | +} |
|
89 | +?></div> |
|
82 | 90 | </div> |
83 | 91 | </div> |
84 | 92 | |
85 | 93 | <div class="col-md-12 margin-t-10 padding-r-32 padding-l-32"> |
86 | 94 | <label class="col-md-5 no-padding" style="text-align: left;">Confirm Password</label> |
87 | 95 | <div class="col-md-7 no-padding"> |
88 | -<input type="text" name="confirmpassword" required value="<?php if(isset($value['confirm_password'])) echo $value['confirm_password']; else '';?>" id="confirm_password" size="15" maxlength="40" class="form-control" /> |
|
89 | -<div class='error-style col-md-12' style='color:red; font-size: 13px;' id="conpas"><?php if(isset($error['confirm_password'])) echo $error['confirm_password'];?></div> |
|
96 | +<input type="text" name="confirmpassword" required value="<?php if(isset($value['confirm_password'])) { |
|
97 | + echo $value['confirm_password']; |
|
98 | +} else { |
|
99 | + ''; |
|
100 | +} |
|
101 | +?>" id="confirm_password" size="15" maxlength="40" class="form-control" /> |
|
102 | +<div class='error-style col-md-12' style='color:red; font-size: 13px;' id="conpas"><?php if(isset($error['confirm_password'])) { |
|
103 | + echo $error['confirm_password']; |
|
104 | +} |
|
105 | +?></div> |
|
90 | 106 | </div> |
91 | 107 | </div> |
92 | 108 |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | <span class="login_error"> |
98 | 98 | <?php if (isset($astpp_notification)){ ?> |
99 | 99 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
100 | - <?php }else{ |
|
100 | + <?php } else{ |
|
101 | 101 | echo " "; |
102 | 102 | } ?> |
103 | 103 | </span> |
@@ -136,14 +136,24 @@ discard block |
||
136 | 136 | |
137 | 137 | <div class="margin-t-15 padding-r-32 padding-l-32"> |
138 | 138 | |
139 | - <input type="hidden" name="key_unique" value="<?php if (isset($key_unique)) echo $key_unique; else ''; ?>" |
|
139 | + <input type="hidden" name="key_unique" value="<?php if (isset($key_unique)) { |
|
140 | + echo $key_unique; |
|
141 | +} else { |
|
142 | + ''; |
|
143 | +} |
|
144 | +?>" |
|
140 | 145 | id="key_unique" size="15" maxlength="250" class="col-md-5 form-control"/> |
141 | 146 | <div class="col-md-12 no-padding"> |
142 | 147 | |
143 | 148 | <li class="col-md-6 no-padding"> |
144 | 149 | <label class="col-md-3 no-padding" style="text-align: left;">First Name *</label> |
145 | 150 | <div class='col-md-9'> |
146 | - <input type="text" name="first_name" value="<?php if (isset($value['first_name'])) echo $value['first_name']; else ''; ?>" id="first_name" size="15" maxlength="40" class="form-control"/> |
|
151 | + <input type="text" name="first_name" value="<?php if (isset($value['first_name'])) { |
|
152 | + echo $value['first_name']; |
|
153 | +} else { |
|
154 | + ''; |
|
155 | +} |
|
156 | +?>" id="first_name" size="15" maxlength="40" class="form-control"/> |
|
147 | 157 | <div style="width: 97.67%; float: left;text-align: left;"> |
148 | 158 | <span id="f_name" style="color:red;"> </span> |
149 | 159 | </div> |
@@ -152,7 +162,12 @@ discard block |
||
152 | 162 | <li class="col-md-6 no-padding"> |
153 | 163 | <label class="col-md-3 no-padding" style="text-align: left;">Last Name</label> |
154 | 164 | <div class='col-md-9'> |
155 | - <input type="text" name="last_name" id="last_name" value="<?php if (isset($value['last_name'])) echo $value['last_name']; else ''; ?>" size="15" maxlength="40" class="form-control"/> |
|
165 | + <input type="text" name="last_name" id="last_name" value="<?php if (isset($value['last_name'])) { |
|
166 | + echo $value['last_name']; |
|
167 | +} else { |
|
168 | + ''; |
|
169 | +} |
|
170 | +?>" size="15" maxlength="40" class="form-control"/> |
|
156 | 171 | <div style="width: 97.67%; float: left;text-align: left;"> |
157 | 172 | <span id="l_name" style="color:red;"> </span> |
158 | 173 | </div> |
@@ -166,13 +181,23 @@ discard block |
||
166 | 181 | <li class="col-md-6 no-padding"> |
167 | 182 | <label class="col-md-3 no-padding" style="text-align: left;">Company</label> |
168 | 183 | <div class='col-md-9'> |
169 | - <input type="text" id="company_name" name="company_name" value="<?php if (isset($value['company_name'])) echo $value['company_name']; else ''; ?>" maxlength="40" size="15" class="form-control"/> |
|
184 | + <input type="text" id="company_name" name="company_name" value="<?php if (isset($value['company_name'])) { |
|
185 | + echo $value['company_name']; |
|
186 | +} else { |
|
187 | + ''; |
|
188 | +} |
|
189 | +?>" maxlength="40" size="15" class="form-control"/> |
|
170 | 190 | </div> |
171 | 191 | </li> |
172 | 192 | <li class="col-md-6 no-padding"> |
173 | 193 | <label class="col-md-3 no-padding" style="text-align: left;">Telephone</label> |
174 | 194 | <div class='col-md-9'> |
175 | - <input type="text" id="telephone_1" name="telephone_1" value="<?php if (isset($value['telephone_1'])) echo $value['telephone_1']; else ''; ?>" size="15" maxlength="20" class="form-control"/> |
|
195 | + <input type="text" id="telephone_1" name="telephone_1" value="<?php if (isset($value['telephone_1'])) { |
|
196 | + echo $value['telephone_1']; |
|
197 | +} else { |
|
198 | + ''; |
|
199 | +} |
|
200 | +?>" size="15" maxlength="20" class="form-control"/> |
|
176 | 201 | <div style="width: 100%; float: left;text-align: left;"> |
177 | 202 | <span id="phonenumber" style="color:red;"> </span> |
178 | 203 | </div> |
@@ -186,9 +211,17 @@ discard block |
||
186 | 211 | <li class="col-md-6 no-padding"> |
187 | 212 | <label class="col-md-3 no-padding" style="text-align: left;">Email *</label> |
188 | 213 | <div class='col-md-9'> |
189 | - <input type="text" name="email" id="email" value="<?php if (isset($value['email'])) echo $value['email']; else ''; ?>" size="50" maxlength="80" class="form-control"/> |
|
214 | + <input type="text" name="email" id="email" value="<?php if (isset($value['email'])) { |
|
215 | + echo $value['email']; |
|
216 | +} else { |
|
217 | + ''; |
|
218 | +} |
|
219 | +?>" size="50" maxlength="80" class="form-control"/> |
|
190 | 220 | <span id="email_error" style="color:red;"> |
191 | - <div style="width: 100%; float: left;text-align: left;"><?php if (isset($error['email'])) echo $error['email']; ?></div></span> |
|
221 | + <div style="width: 100%; float: left;text-align: left;"><?php if (isset($error['email'])) { |
|
222 | + echo $error['email']; |
|
223 | +} |
|
224 | +?></div></span> |
|
192 | 225 | </div> |
193 | 226 | </li> |
194 | 227 | <li class="col-md-6 no-padding"> |
@@ -229,7 +262,12 @@ discard block |
||
229 | 262 | <li class="col-md-6 no-padding"> |
230 | 263 | <label class="col-md-3 no-padding" style="text-align: left;">Address</label> |
231 | 264 | <div class='col-md-9'> |
232 | - <textarea id="address_1" name="address_1" value="" size="15" maxlength="200" class="form-control"> <?php if (isset($value['address_1'])) echo $value['address_1']; else ''; ?> </textarea> |
|
265 | + <textarea id="address_1" name="address_1" value="" size="15" maxlength="200" class="form-control"> <?php if (isset($value['address_1'])) { |
|
266 | + echo $value['address_1']; |
|
267 | +} else { |
|
268 | + ''; |
|
269 | +} |
|
270 | +?> </textarea> |
|
233 | 271 | </div> |
234 | 272 | </li> |
235 | 273 | <li class="col-md-6 no-padding"> |
@@ -243,7 +281,10 @@ discard block |
||
243 | 281 | <div class="col-md-3 no-padding"></div> |
244 | 282 | <div class='col-md-9 margin-t-10'> |
245 | 283 | <input class='form-control posttoexternal' id="userCaptcha" name="userCaptcha" type="text" autocomplete="off" placeholder="Enter above text"/> |
246 | - <div style="width: 100%; float: left;text-align: left;"><?php if (isset($error['userCaptcha'])) echo $error['userCaptcha']; ?></div> |
|
284 | + <div style="width: 100%; float: left;text-align: left;"><?php if (isset($error['userCaptcha'])) { |
|
285 | + echo $error['userCaptcha']; |
|
286 | +} |
|
287 | +?></div> |
|
247 | 288 | </div> |
248 | 289 | </li> |
249 | 290 | </div> |
@@ -37,7 +37,7 @@ |
||
37 | 37 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
38 | 38 | <?php if (isset($astpp_notification)){ ?> |
39 | 39 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
40 | - <?php }else{ |
|
40 | + <?php } else{ |
|
41 | 41 | echo " "; |
42 | 42 | } |
43 | 43 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <div class="col-md-4 col-md-offset-4"> <span class="login_error"> |
38 | 38 | <?php if (isset($astpp_notification)){ ?> |
39 | 39 | Login unsuccessful. Please make sure you entered the correct username and password, and that your account is active. |
40 | - <?php }else{ |
|
40 | + <?php } else{ |
|
41 | 41 | echo " "; |
42 | 42 | } |
43 | 43 | $astpp_err_msg = $this->session->flashdata('astpp_signupmsg'); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | echo "<div <div class=\"col-md-12 margin-t-10 margin-b-10 padding-r-32 padding-l-32\" style=\"color: #232222;\">Password : ".$this->common->decode($user_data['password'])."</div>"; |
80 | 80 | echo "<br><br>"; |
81 | 81 | |
82 | - }else |
|
82 | + } else |
|
83 | 83 | { |
84 | 84 | echo "<div class=\"col-md-12 margin-t-10 margin-b-20 padding-r-32 padding-l-32\" style=\"color: #232222;\">Link is Expire Please Try Again</div><br>"; |
85 | 85 | echo ""; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | "status"=>0, |
81 | 81 | "assign_date"=>date('Y-m-d H:i:s') |
82 | 82 | ); |
83 | - }else{ |
|
83 | + } else{ |
|
84 | 84 | $charge_res=$charge_res->result_array(); |
85 | 85 | //echo "<pre>"; print_r($charge_res); exit; |
86 | 86 | $charge_acc_arr = array("charge_id"=>'id', |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $result = $this->db->update('accounts', $update); |
94 | 94 | $sip_device_update = array('username'=>$accno,"status"=>1); |
95 | 95 | return 1; |
96 | - }else{ |
|
96 | + } else{ |
|
97 | 97 | return 0; |
98 | 98 | } |
99 | 99 | } |
@@ -36,8 +36,9 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | function index() { |
39 | - if ($this->session->userdata('user_login') == FALSE) |
|
40 | - redirect(base_url() . 'login/login'); |
|
39 | + if ($this->session->userdata('user_login') == FALSE) { |
|
40 | + redirect(base_url() . 'login/login'); |
|
41 | + } |
|
41 | 42 | $data['page_title'] = 'Dashboard'; |
42 | 43 | $this->load->view('view_user_dashboard', $data); |
43 | 44 | } |
@@ -173,16 +174,16 @@ discard block |
||
173 | 174 | $json_data[$i]['charge_id']=$data['charge_id']; |
174 | 175 | if($data['assign_date'] != '0000-00-00 00:00:00'){ |
175 | 176 | $json_data[$i]['assign_date']=date('Y-m-d H:i:s',strtotime($data['assign_date'])+$gmtoffset); |
176 | - }else{ |
|
177 | + } else{ |
|
177 | 178 | $json_data[$i]['assign_date']=$data['assign_date']; |
178 | 179 | } |
179 | 180 | if(isset($sweep_id)){ |
180 | 181 | if($sweep_id ==0){ |
181 | 182 | $json_data[$i]['sweep_id']='Daily'; |
182 | - }else{ |
|
183 | + } else{ |
|
183 | 184 | $json_data[$i]['sweep_id']='Monthly'; |
184 | 185 | } |
185 | - }else{ |
|
186 | + } else{ |
|
186 | 187 | $json_data[$i]['sweep_id']='Anonymous'; |
187 | 188 | } |
188 | 189 | $i++; |
@@ -266,7 +267,7 @@ discard block |
||
266 | 267 | $this->session->set_flashdata('astpp_notification', 'Insuffiecient fund to purchase this did'); |
267 | 268 | redirect(base_url() . "user/user_didlist/"); |
268 | 269 | } |
269 | - }else{ |
|
270 | + } else{ |
|
270 | 271 | $this->session->set_flashdata('astpp_notification', 'This DID already purchased by someone.'); |
271 | 272 | redirect(base_url() . "user/user_didlist/"); |
272 | 273 | } |
@@ -298,7 +299,7 @@ discard block |
||
298 | 299 | $this->session->set_flashdata('astpp_notification', 'DID Removed Successfully.'); |
299 | 300 | redirect(base_url() . "user/user_didlist/"); |
300 | 301 | } |
301 | - }else{ |
|
302 | + } else{ |
|
302 | 303 | $this->session->set_flashdata('astpp_notification', 'DID not found.'); |
303 | 304 | redirect(base_url() . "user/user_didlist/"); |
304 | 305 | } |
@@ -355,8 +356,9 @@ discard block |
||
355 | 356 | $markup = $this->common->get_field_name('markup', 'pricelists', array('id'=>$account_data["pricelist_id"])); |
356 | 357 | $markup = ($markup > 0)?$markup:1; |
357 | 358 | $action['cost']['cost'] = $this->common_model->add_calculate_currency($action['cost']['cost'], "", '', true, false); |
358 | - if($account_data['type']!=3) |
|
359 | - $action['cost']['cost']=($action['cost']['cost'] - ($action['cost']['cost']*$markup)/100); |
|
359 | + if($account_data['type']!=3) { |
|
360 | + $action['cost']['cost']=($action['cost']['cost'] - ($action['cost']['cost']*$markup)/100); |
|
361 | + } |
|
360 | 362 | } |
361 | 363 | $this->session->set_userdata('user_rates_list_search', $action); |
362 | 364 | } |
@@ -695,7 +697,7 @@ discard block |
||
695 | 697 | $this->session->set_userdata('accountinfo', $result[0]); |
696 | 698 | $this->session->set_flashdata('astpp_errormsg',' Your profile updated successfully!'); |
697 | 699 | redirect(base_url() . 'user/user_myprofile/'); |
698 | - }else{ |
|
700 | + } else{ |
|
699 | 701 | $this->session->set_flashdata('astpp_notification', 'Something wrong.Please contact to administrator.'); |
700 | 702 | } |
701 | 703 | } |
@@ -729,7 +731,7 @@ discard block |
||
729 | 731 | $this->session->set_flashdata('astpp_errormsg', 'Password updated successfully!'); |
730 | 732 | redirect(base_url() . 'user/user_change_password/'); |
731 | 733 | } |
732 | - }else{ |
|
734 | + } else{ |
|
733 | 735 | $data_array['id']=$accountinfo['id']; |
734 | 736 | $data['form'] = $this->form->build_form($this->user_form->get_userprofile_change_password(),$data_array); |
735 | 737 | } |
@@ -745,7 +747,7 @@ discard block |
||
745 | 747 | $data['form_search'] = $this->form->build_serach_form($this->user_form->build_user_refill_report_search()); |
746 | 748 | if($accountinfo['type'] == 1){ |
747 | 749 | $this->load->view('view_reseller_refill_report', $data); |
748 | - }else{ |
|
750 | + } else{ |
|
749 | 751 | $this->load->view('view_user_refill_report', $data); |
750 | 752 | } |
751 | 753 | } |
@@ -829,19 +831,18 @@ discard block |
||
829 | 831 | } else { |
830 | 832 | $payment = ' <button style="padding: 0 8px;" class="btn btn-success" type="button">Paid</button>'; |
831 | 833 | } |
832 | - }else{ |
|
834 | + } else{ |
|
833 | 835 | $payment = ''; |
834 | 836 | } |
835 | 837 | if($value['generate_type'] == 1){ |
836 | 838 | $invoice_type='Manually'; |
837 | - }else{ |
|
839 | + } else{ |
|
838 | 840 | $invoice_type='Automatically'; |
839 | 841 | } |
840 | 842 | |
841 | 843 | if($value['type'] == 'R'){ |
842 | 844 | $icon = '<div class="flx_font flx_magenta">R</div>'; |
843 | - } |
|
844 | - else |
|
845 | + } else |
|
845 | 846 | { |
846 | 847 | $icon = '<div class="flx_font flx_drk_pink">I</div>'; |
847 | 848 | |
@@ -904,7 +905,7 @@ discard block |
||
904 | 905 | $amount = $this->input->post("value",true); |
905 | 906 | $amount = $this->common_model->add_calculate_currency($amount,"","",true,false); |
906 | 907 | echo number_format($amount,2); |
907 | - }else{ |
|
908 | + } else{ |
|
908 | 909 | $this->payment->index(); |
909 | 910 | } |
910 | 911 | } |
@@ -946,12 +947,12 @@ discard block |
||
946 | 947 | $item_type=$value['item_type']; |
947 | 948 | if($value['before_balance'] == '-'){ |
948 | 949 | $before_balance='-'; |
949 | - }else{ |
|
950 | + } else{ |
|
950 | 951 | $before_balance=$this->common->convert_to_currency('','',$value['before_balance']); |
951 | 952 | } |
952 | 953 | if($value['debit'] == '-'){ |
953 | 954 | $debit='-'; |
954 | - }else{ |
|
955 | + } else{ |
|
955 | 956 | $debit=$this->common->convert_to_currency('','',$value['debit']); |
956 | 957 | } |
957 | 958 | $credit=$this->common->convert_to_currency('','',$value['credit']); |
@@ -960,7 +961,7 @@ discard block |
||
960 | 961 | } |
961 | 962 | if($value['after_balance'] == '-'){ |
962 | 963 | $after_balance='-'; |
963 | - }else{ |
|
964 | + } else{ |
|
964 | 965 | $after_balance=$this->common->convert_to_currency('','',$value['after_balance']); |
965 | 966 | } |
966 | 967 | $description=$value['description']; |
@@ -1092,7 +1093,7 @@ discard block |
||
1092 | 1093 | $this->db->where('reseller_pricing.note','dids.number',false); |
1093 | 1094 | $this->db->where('reseller_pricing.reseller_id',$accountinfo['reseller_id']); |
1094 | 1095 | $this->db->from('dids,reseller_pricing'); |
1095 | - }else{ |
|
1096 | + } else{ |
|
1096 | 1097 | $this->db->where('parent_id',0); |
1097 | 1098 | $this->db->where('accountid',0); |
1098 | 1099 | $this->db->select('id,number,setup,monthlycost'); |
@@ -1393,7 +1394,7 @@ discard block |
||
1393 | 1394 | ); |
1394 | 1395 | $this->db->insert("ani_map", $insert_arr); |
1395 | 1396 | $this->session->set_flashdata('astpp_errormsg', 'Add Caller ID Sucessfully!'); |
1396 | - }else{ |
|
1397 | + } else{ |
|
1397 | 1398 | $this->session->set_flashdata('astpp_notification', 'Please Enter Caller ID value.'); |
1398 | 1399 | } |
1399 | 1400 | } else { |
@@ -1538,7 +1539,7 @@ discard block |
||
1538 | 1539 | if($action=="GET_AMT"){ |
1539 | 1540 | $amount = $this->input->post("value",true); |
1540 | 1541 | $this->payment->convert_amount($amount); |
1541 | - }else{ |
|
1542 | + } else{ |
|
1542 | 1543 | $this->payment->index(); |
1543 | 1544 | } |
1544 | 1545 | } |
@@ -1573,34 +1574,25 @@ discard block |
||
1573 | 1574 | $minimum_fund=(array)$this->db->get_where('system',array("name"=>"minimum_fund_transfer"),1)->first_row(); |
1574 | 1575 | if ($post_array['toaccountid'] == $account_info['number']) { |
1575 | 1576 | $this->session->set_flashdata('astpp_notification', 'You can not transfer fund in same account.'); |
1576 | - } |
|
1577 | - elseif ($reseller_id != $account_info['reseller_id']) { |
|
1577 | + } elseif ($reseller_id != $account_info['reseller_id']) { |
|
1578 | 1578 | $this->session->set_flashdata('astpp_notification', 'You can only transfer fund in same level account.'); |
1579 | - } |
|
1580 | - elseif ($post_array['toaccountid'] == '') { |
|
1579 | + } elseif ($post_array['toaccountid'] == '') { |
|
1581 | 1580 | $this->session->set_flashdata('astpp_notification', 'Please enter To account number.'); |
1582 | - } |
|
1583 | - elseif (empty($post_array['credit'])) { |
|
1581 | + } elseif (empty($post_array['credit'])) { |
|
1584 | 1582 | $this->session->set_flashdata('astpp_notification', 'Please enter a amount.'); |
1585 | - } |
|
1586 | - elseif ($post_array['credit'] > $balance) { |
|
1583 | + } elseif ($post_array['credit'] > $balance) { |
|
1587 | 1584 | $this->session->set_flashdata('astpp_notification', 'You have insufficient balance.'); |
1588 | - } |
|
1589 | - elseif ($toid <= 0 || !isset($post_array['toaccountid'])) { |
|
1585 | + } elseif ($toid <= 0 || !isset($post_array['toaccountid'])) { |
|
1590 | 1586 | $this->session->set_flashdata('astpp_notification', 'Please enter valid account number.'); |
1591 | - } |
|
1592 | - elseif ($post_array['credit'] < 0) { |
|
1587 | + } elseif ($post_array['credit'] < 0) { |
|
1593 | 1588 | $this->session->set_flashdata('astpp_notification', 'Please enter amount greater then 0.'); |
1594 | - } |
|
1595 | - elseif ($minimum_fund['value'] >= $post_array['credit']) { |
|
1589 | + } elseif ($minimum_fund['value'] >= $post_array['credit']) { |
|
1596 | 1590 | $this->session->set_flashdata('astpp_notification', 'You need to enter minimum amount of fund transfer ' . $minimum_fund['value'] . ' .'); |
1597 | - } |
|
1598 | - elseif (!isset($toid) || !isset($post_array['toaccountid'])) { |
|
1591 | + } elseif (!isset($toid) || !isset($post_array['toaccountid'])) { |
|
1599 | 1592 | $this->session->set_flashdata('astpp_notification', 'Please enter valid account number!'); |
1600 | - } |
|
1601 | - elseif ($post_array['credit'] < 0 || $post_array['credit'] > $balance) { |
|
1593 | + } elseif ($post_array['credit'] < 0 || $post_array['credit'] > $balance) { |
|
1602 | 1594 | $this->session->set_flashdata('astpp_notification', 'Insuffiecient amount !'); |
1603 | - }else{ |
|
1595 | + } else{ |
|
1604 | 1596 | $from['id'] = $post_array['id']; |
1605 | 1597 | $from['account_currency'] = $post_array['account_currency']; |
1606 | 1598 | $from['accountid'] = $post_array['fromaccountid']; |
@@ -1635,7 +1627,7 @@ discard block |
||
1635 | 1627 | $this->session->set_flashdata('astpp_notification', 'Sorry We are not able to process this request.'); |
1636 | 1628 | } |
1637 | 1629 | } |
1638 | - }else{ |
|
1630 | + } else{ |
|
1639 | 1631 | $this->session->set_flashdata('astpp_notification', 'Account number not found.'); |
1640 | 1632 | } |
1641 | 1633 | } else { |
@@ -1727,7 +1719,7 @@ discard block |
||
1727 | 1719 | $this->user_model->user_opensips_edit($add_array, $add_array['id']); |
1728 | 1720 | echo json_encode(array("SUCCESS"=> " OpenSips updated successfully!")); |
1729 | 1721 | exit; |
1730 | - }else{ |
|
1722 | + } else{ |
|
1731 | 1723 | echo json_encode($auth_flag); |
1732 | 1724 | exit; |
1733 | 1725 | } |
@@ -1744,7 +1736,7 @@ discard block |
||
1744 | 1736 | $this->user_model->user_opensips_add($add_array); |
1745 | 1737 | echo json_encode(array("SUCCESS"=> "OpenSips added successfully!")); |
1746 | 1738 | exit; |
1747 | - }else{ |
|
1739 | + } else{ |
|
1748 | 1740 | echo json_encode($auth_flag); |
1749 | 1741 | exit; |
1750 | 1742 | } |
@@ -1765,10 +1757,10 @@ discard block |
||
1765 | 1757 | $auth_flag = $auth_flag->num_rows(); |
1766 | 1758 | if($auth_flag == 0){ |
1767 | 1759 | return "TRUE"; |
1768 | - }else{ |
|
1760 | + } else{ |
|
1769 | 1761 | return array("username_error"=>"Duplicate Username Found.Username Must be Unique"); |
1770 | 1762 | } |
1771 | - }else{ |
|
1763 | + } else{ |
|
1772 | 1764 | return array("username_error"=>"User name is required field."); |
1773 | 1765 | } |
1774 | 1766 | return "0"; |
@@ -1941,7 +1933,7 @@ discard block |
||
1941 | 1933 | } |
1942 | 1934 | $data['speeddial'] = $speeddial_info; |
1943 | 1935 | $this->load->view('view_user_speeddial', $data); |
1944 | - }else{ |
|
1936 | + } else{ |
|
1945 | 1937 | redirect(base_url.'user/user/'); |
1946 | 1938 | } |
1947 | 1939 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | if($system_config["paypal_mode"]==0){ |
42 | 42 | $data["paypal_url"] = $system_config["paypal_url"]; |
43 | 43 | $data["paypal_email_id"] = $system_config["paypal_id"]; |
44 | - }else{ |
|
44 | + } else{ |
|
45 | 45 | $data["paypal_url"] = $system_config["paypal_sandbox_url"]; |
46 | 46 | $data["paypal_email_id"] = $system_config["paypal_sandbox_id"]; |
47 | 47 | } |
@@ -21,7 +21,9 @@ discard block |
||
21 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
22 | 22 | ############################################################################### |
23 | 23 | |
24 | -if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
24 | +if ( ! defined('BASEPATH')) { |
|
25 | + exit('No direct script access allowed'); |
|
26 | +} |
|
25 | 27 | class User_form{ |
26 | 28 | function __construct($library_name = '') { |
27 | 29 | $this->CI = & get_instance(); |
@@ -76,10 +78,11 @@ discard block |
||
76 | 78 | } |
77 | 79 | |
78 | 80 | function get_userprofile_form_fields($dataArr = false) { |
79 | - if ($dataArr['id'] > 0) |
|
80 | - $val = 'accounts.email.' . $dataArr['id']; |
|
81 | - else |
|
82 | - $val = 'accounts.email'; |
|
81 | + if ($dataArr['id'] > 0) { |
|
82 | + $val = 'accounts.email.' . $dataArr['id']; |
|
83 | + } else { |
|
84 | + $val = 'accounts.email'; |
|
85 | + } |
|
83 | 86 | $uname = $this->CI->common->find_uniq_rendno(common_model::$global_config['system_config']['cardlength'], 'number', 'accounts'); |
84 | 87 | $password = $this->CI->common->generate_password(); |
85 | 88 | $logintype=$this->CI->session->userdata('logintype'); |
@@ -68,7 +68,10 @@ |
||
68 | 68 | |
69 | 69 | <div class="col-md-12" style='margin-top:15px;' > |
70 | 70 | <div style="color:red;text-align:center;"> |
71 | - <?php if (isset($validation_errors)) echo $validation_errors; ?> |
|
71 | + <?php if (isset($validation_errors)) { |
|
72 | + echo $validation_errors; |
|
73 | +} |
|
74 | +?> |
|
72 | 75 | </div> |
73 | 76 | |
74 | 77 | <div class='col-md-12'> |