@@ -104,7 +104,7 @@ |
||
104 | 104 | foreach($csv_value as $field_name => $field_val){ |
105 | 105 | if($csv_key == 0){ |
106 | 106 | echo "<th>".ucfirst($field_name)."</th>"; |
107 | - }else{ |
|
107 | + } else{ |
|
108 | 108 | echo "<td class='portlet-content'>".$field_val."</td>"; |
109 | 109 | } |
110 | 110 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <div class="col-md-12"> |
16 | 16 | <div class="w-box"> |
17 | 17 | <span style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;"> |
18 | - <? if(isset($error) && !empty($error)) { |
|
18 | + <? if (isset($error) && ! empty($error)) { |
|
19 | 19 | echo $error; |
20 | 20 | }?> |
21 | 21 | </span> |
@@ -31,19 +31,19 @@ discard block |
||
31 | 31 | <div class="col-md-12 no-padding"> |
32 | 32 | <label class="col-md-3">Rate Group:</label> |
33 | 33 | <div> |
34 | - <? $pricelists = form_dropdown('pricelist_id', $this->db_model->build_dropdown("id,name", "pricelists","where_arr", array("reseller_id" => "0", "status" => "0")), ''); |
|
34 | + <? $pricelists = form_dropdown('pricelist_id', $this->db_model->build_dropdown("id,name", "pricelists", "where_arr", array("reseller_id" => "0", "status" => "0")), ''); |
|
35 | 35 | echo $pricelists; |
36 | 36 | ?> |
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | <? |
40 | - $logintype=$this->session->userdata('userlevel_logintype'); |
|
40 | + $logintype = $this->session->userdata('userlevel_logintype'); |
|
41 | 41 | // $trunk=null; |
42 | - if($logintype !=1) { ?> |
|
42 | + if ($logintype != 1) { ?> |
|
43 | 43 | <div class="col-md-12 no-padding"> |
44 | 44 | <label class="col-md-3">Force Trunk:</label> |
45 | 45 | <div> |
46 | - <? $trunklist = form_dropdown_all('trunk_id', $this->db_model->build_dropdown("id,name", "trunks","where_arr", array("status" => "0")), ''); |
|
46 | + <? $trunklist = form_dropdown_all('trunk_id', $this->db_model->build_dropdown("id,name", "trunks", "where_arr", array("status" => "0")), ''); |
|
47 | 47 | echo $trunklist; |
48 | 48 | ?> |
49 | 49 | </div> |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | <?}?> |
101 | 101 | |
102 | 102 | <?php |
103 | - if(isset($csv_tmp_data) && !empty($csv_tmp_data)){ ?> |
|
103 | + if (isset($csv_tmp_data) && ! empty($csv_tmp_data)) { ?> |
|
104 | 104 | |
105 | 105 | <section class="slice color-three"> |
106 | 106 | <div class="w-section inverse no-padding"> |
@@ -109,14 +109,14 @@ discard block |
||
109 | 109 | <div class="col-md-12 margin-t-10"> |
110 | 110 | <form id="import_form" name="import_form" action="<?=base_url()?>rates/origination_rate_import_file/<?= $pricelistid?>/<?=$trunkid?>/<?=$check_header?>/" method="POST"> |
111 | 111 | <table width="100%" border="1" class="details_table table"> |
112 | - <? $cnt =7; |
|
113 | - foreach($csv_tmp_data as $csv_key => $csv_value){ |
|
114 | - if($csv_key < 15){ |
|
112 | + <? $cnt = 7; |
|
113 | + foreach ($csv_tmp_data as $csv_key => $csv_value) { |
|
114 | + if ($csv_key < 15) { |
|
115 | 115 | echo "<tr>"; |
116 | - foreach($csv_value as $field_name => $field_val){ |
|
117 | - if($csv_key == 0){ |
|
116 | + foreach ($csv_value as $field_name => $field_val) { |
|
117 | + if ($csv_key == 0) { |
|
118 | 118 | echo "<th>".ucfirst($field_name)."</th>"; |
119 | - }else{ |
|
119 | + } else { |
|
120 | 120 | echo "<td class='portlet-content'>".$field_val."</td>"; |
121 | 121 | } |
122 | 122 | } |
@@ -236,7 +236,7 @@ |
||
236 | 236 | <div class="container"> |
237 | 237 | <form method="post" action="<?= base_url()?>email/email_client_get/" enctype="multipart/form-data" name="myform" id="myform" onsubmit="return(regvalidate())"> |
238 | 238 | <span style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;"> |
239 | - <? if(isset($error) && !empty($error)) { |
|
239 | + <? if (isset($error) && ! empty($error)) { |
|
240 | 240 | echo $error; |
241 | 241 | }?> |
242 | 242 | </span> |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('BASEPATH')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | |
3 | 5 | //DID list |
4 | 6 | $lang['DID.MANAGE_DIDs'] = 'Manage DIDs'; |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('BASEPATH')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | |
3 | 5 | //did list |
4 | 6 | $lang['DID.MANAGE_DIDs'] = 'Gestionar DIDs'; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | <div class="col-md-12"> |
17 | 17 | <div class="w-box"> |
18 | 18 | <span style="margin-left:10px; text-align: center;background-color: none;color:#1c8400;"> |
19 | - <? if(isset($error) && !empty($error)) { |
|
19 | + <? if (isset($error) && ! empty($error)) { |
|
20 | 20 | echo $error; |
21 | 21 | }?> |
22 | 22 | </span> |
@@ -206,13 +206,13 @@ |
||
206 | 206 | </div> |
207 | 207 | </div> |
208 | 208 | <?php |
209 | - if($account_data['logo'] != ''){ |
|
210 | - $logo=$account_data['file']; |
|
211 | - }else{ |
|
212 | - $logo=$account_data['logo']; |
|
209 | + if ($account_data['logo'] != '') { |
|
210 | + $logo = $account_data['file']; |
|
211 | + } else { |
|
212 | + $logo = $account_data['logo']; |
|
213 | 213 | } |
214 | - if($logo != ''){ |
|
215 | - $file_name= base_url()."upload/$logo"; |
|
214 | + if ($logo != '') { |
|
215 | + $file_name = base_url()."upload/$logo"; |
|
216 | 216 | ?> |
217 | 217 | |
218 | 218 | <div class='col-md-12 no-padding'> |
@@ -208,7 +208,7 @@ |
||
208 | 208 | <?php |
209 | 209 | if($account_data['logo'] != ''){ |
210 | 210 | $logo=$account_data['file']; |
211 | - }else{ |
|
211 | + } else{ |
|
212 | 212 | $logo=$account_data['logo']; |
213 | 213 | } |
214 | 214 | if($logo != ''){ |
@@ -13,7 +13,7 @@ |
||
13 | 13 | <div class="w-section inverse no-padding"> |
14 | 14 | <?php echo $form; ?> |
15 | 15 | <?php |
16 | - if(isset($validation_errors) && $validation_errors != ''){ ?> |
|
16 | + if (isset($validation_errors) && $validation_errors != '') { ?> |
|
17 | 17 | <script> |
18 | 18 | var ERR_STR = '<?php echo $validation_errors; ?>'; |
19 | 19 | print_error(ERR_STR); |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('BASEPATH')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | //Main Menu |
3 | 5 | $lang['Home'] = 'Home'; |
4 | 6 | $lang['Global Accounts'] = 'Global Accounts'; |
@@ -1,3 +1,5 @@ |
||
1 | -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('BASEPATH')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | $lang['FOOTER.FOOTER'] = 'Copyright © 2003 - 2012. ASTPP - Open Source VOIP Billing Solution. All Rights Reserved.'; |
3 | 5 | ?> |