@@ -1,4 +1,6 @@ discard block |
||
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 | // ------------------------------------------------------------------------ |
4 | 6 | |
@@ -309,10 +311,11 @@ discard block |
||
309 | 311 | if ( ! function_exists('form_table_row_4')) |
310 | 312 | { |
311 | 313 | function form_table_row_4($label, $field, $span, $wh = '10', $wd = '') { |
312 | - if (wd == '') |
|
313 | - echo '<th width="'.$wh.'%"><label>'.$label.'</label></th><td>'; |
|
314 | - else |
|
315 | - echo '<th width="'.$wh.'%"><label>'.$label.'</label></th><td width="'.$wd.'%">'; |
|
314 | + if (wd == '') { |
|
315 | + echo '<th width="'.$wh.'%"><label>'.$label.'</label></th><td>'; |
|
316 | + } else { |
|
317 | + echo '<th width="'.$wh.'%"><label>'.$label.'</label></th><td width="'.$wd.'%">'; |
|
318 | + } |
|
316 | 319 | echo $field; |
317 | 320 | echo '<br/><span class="helptext">'.$span.'</span>'; |
318 | 321 | echo '</td></tr>'; |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | <legend><b>Search</b></legend> |
39 | 39 | <div class="col-md-4 no-padding"> |
40 | 40 | <label class="search_label col-md-12 no-padding">From Date</label> |
41 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d") . " 00:00:00"; ?>" id="reseller_from_date" size="20" class="col-md-5 form-control text field " /> |
|
41 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d")." 00:00:00"; ?>" id="reseller_from_date" size="20" class="col-md-5 form-control text field " /> |
|
42 | 42 | </div> |
43 | 43 | <div class="col-md-4 no-padding"> |
44 | 44 | <label class="search_label col-md-12 no-padding">To Date</label> |
45 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d") . " 23:59:59"; ?>" id="reseller_to_date" size="20" class="col-md-5 form-control text field " /> |
|
45 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d")." 23:59:59"; ?>" id="reseller_to_date" size="20" class="col-md-5 form-control text field " /> |
|
46 | 46 | </div> |
47 | 47 | <div class="col-md-4 no-padding"> |
48 | 48 | <label class="search_label col-md-12 no-padding">Account</label> |
49 | 49 | |
50 | 50 | <select name="accountid" class='col-md-5 form-control selectpicker' data-live-search='true'> |
51 | 51 | <option value=''>--Select--</option> |
52 | - <?php if (!empty($accountlist)) { |
|
52 | + <?php if ( ! empty($accountlist)) { |
|
53 | 53 | foreach ($accountlist as $key => $value) { |
54 | 54 | ?> |
55 | 55 | <optgroup label="<?php echo $key ?>"> |
@@ -71,13 +71,13 @@ discard block |
||
71 | 71 | </div> |
72 | 72 | <div class="col-md-4 no-padding"> |
73 | 73 | <label class="search_label col-md-12 no-padding">Code </label> |
74 | - <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
74 | + <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
75 | 75 | <select name="pattern[pattern-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
76 | 76 | <?php |
77 | - if (!empty($search_string_type)) { |
|
77 | + if ( ! empty($search_string_type)) { |
|
78 | 78 | foreach ($search_string_type as $key => $value) { |
79 | 79 | $selected = null; |
80 | - if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
80 | + if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
81 | 81 | $selected = "selected"; |
82 | 82 | } |
83 | 83 | ?> |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | </div> |
90 | 90 | <div class="col-md-4 no-padding"> |
91 | 91 | <label class="search_label col-md-12 no-padding">Destination </label> |
92 | - <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
92 | + <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
93 | 93 | <select name="notes[notes-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
94 | 94 | <?php |
95 | - if (!empty($search_string_type)) { |
|
95 | + if ( ! empty($search_string_type)) { |
|
96 | 96 | foreach ($search_string_type as $key => $value) { |
97 | 97 | $selected = null; |
98 | - if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
98 | + if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
99 | 99 | $selected = "selected"; |
100 | 100 | } |
101 | 101 | ?> |
@@ -120,10 +120,10 @@ discard block |
||
120 | 120 | <label class="search_label col-md-12 no-padding">Group By #time</label> |
121 | 121 | <select name="time" class='col-md-5 form-control' style='margin-left:5px; selectpicker' data-live-search='true'> |
122 | 122 | <?php |
123 | - if (!empty($groupby_time)) { |
|
123 | + if ( ! empty($groupby_time)) { |
|
124 | 124 | foreach ($groupby_time as $key => $value) { |
125 | 125 | $selected = null; |
126 | - if (isset($session_info['time']) && !empty($session_info['time']) && $session_info['time'] == $key) { |
|
126 | + if (isset($session_info['time']) && ! empty($session_info['time']) && $session_info['time'] == $key) { |
|
127 | 127 | $selected = "selected"; |
128 | 128 | } |
129 | 129 | ?> |
@@ -137,10 +137,10 @@ discard block |
||
137 | 137 | <label class="search_label col-md-12 no-padding">Group By #1</label> |
138 | 138 | <select name="groupby_1" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
139 | 139 | <?php |
140 | - if (!empty($groupby_field)) { |
|
140 | + if ( ! empty($groupby_field)) { |
|
141 | 141 | foreach ($groupby_field as $key => $value) { |
142 | 142 | $selected = null; |
143 | - if (isset($session_info['groupby_1']) && !empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
143 | + if (isset($session_info['groupby_1']) && ! empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
144 | 144 | $selected = "selected"; |
145 | 145 | } |
146 | 146 | ?> |
@@ -154,10 +154,10 @@ discard block |
||
154 | 154 | <label class="search_label col-md-12 no-padding">Group By #2</label> |
155 | 155 | <select name="groupby_2" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
156 | 156 | <?php |
157 | - if (!empty($groupby_field)) { |
|
157 | + if ( ! empty($groupby_field)) { |
|
158 | 158 | foreach ($groupby_field as $key => $value) { |
159 | 159 | $selected = null; |
160 | - if (isset($session_info['groupby_2']) && !empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
160 | + if (isset($session_info['groupby_2']) && ! empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
161 | 161 | $selected = "selected"; |
162 | 162 | } |
163 | 163 | ?> |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | <label class="search_label col-md-12 no-padding">Group By #3</label> |
172 | 172 | <select name="groupby_3" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
173 | 173 | <?php |
174 | - if (!empty($groupby_field)) { |
|
174 | + if ( ! empty($groupby_field)) { |
|
175 | 175 | foreach ($groupby_field as $key => $value) { |
176 | 176 | $selected = null; |
177 | - if (isset($session_info['groupby_3']) && !empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
177 | + if (isset($session_info['groupby_3']) && ! empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
178 | 178 | $selected = "selected"; |
179 | 179 | } |
180 | 180 | ?> |
@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | <label class="search_label col-md-6" style="font-size:17px;text-align:right;">Display records in </label> |
194 | 194 | <select name="search_in" class='col-md-5 form-control selectpicker' style='background: #ddd; width: 23% !important;' data-live-search='true'> |
195 | 195 | <?php |
196 | -if (!empty($search_report)) { |
|
196 | +if ( ! empty($search_report)) { |
|
197 | 197 | foreach ($search_report as $key => $value) { |
198 | 198 | $selected = null; |
199 | - if (isset($session_info['search_in']) && isset($session_info['search_in']) && !empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
199 | + if (isset($session_info['search_in']) && isset($session_info['search_in']) && ! empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
200 | 200 | //echo $key;exit; |
201 | 201 | $selected = "selected"; |
202 | 202 | } |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | <legend><b>Search</b></legend> |
39 | 39 | <div class="col-md-4 no-padding"> |
40 | 40 | <label class="search_label col-md-12 no-padding">From Date</label> |
41 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d") . " 00:00:00"; ?>" id="customer_from_date" size="20" class="col-md-5 form-control text field " /> |
|
41 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d")." 00:00:00"; ?>" id="customer_from_date" size="20" class="col-md-5 form-control text field " /> |
|
42 | 42 | </div> |
43 | 43 | <div class="col-md-4 no-padding"> |
44 | 44 | <label class="search_label col-md-12 no-padding">To Date</label> |
45 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d") . " 23:59:59"; ?>" id="customer_to_date" size="20" class="col-md-5 form-control text field " /> |
|
45 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d")." 23:59:59"; ?>" id="customer_to_date" size="20" class="col-md-5 form-control text field " /> |
|
46 | 46 | </div> |
47 | 47 | <div class="col-md-4 no-padding"> |
48 | 48 | <label class="search_label col-md-12 no-padding">Account</label> |
49 | 49 | |
50 | 50 | <select name="accountid" class='col-md-5 form-control selectpicker' data-live-search='true'> |
51 | 51 | <option value=''>--Select--</option> |
52 | - <?php if (!empty($accountlist)) { |
|
52 | + <?php if ( ! empty($accountlist)) { |
|
53 | 53 | foreach ($accountlist as $key => $value) { |
54 | 54 | ?> |
55 | 55 | <optgroup label="<?php echo $key ?>"> |
@@ -71,13 +71,13 @@ discard block |
||
71 | 71 | </div> |
72 | 72 | <div class="col-md-4 no-padding"> |
73 | 73 | <label class="search_label col-md-12 no-padding">Code </label> |
74 | - <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
74 | + <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
75 | 75 | <select name="pattern[pattern-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
76 | 76 | <?php |
77 | - if (!empty($search_string_type)) { |
|
77 | + if ( ! empty($search_string_type)) { |
|
78 | 78 | foreach ($search_string_type as $key => $value) { |
79 | 79 | $selected = null; |
80 | - if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
80 | + if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
81 | 81 | $selected = "selected"; |
82 | 82 | } |
83 | 83 | ?> |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | </div> |
90 | 90 | <div class="col-md-4 no-padding"> |
91 | 91 | <label class="search_label col-md-12 no-padding">Destination </label> |
92 | - <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
92 | + <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
93 | 93 | <select name="notes[notes-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
94 | 94 | <?php |
95 | - if (!empty($search_string_type)) { |
|
95 | + if ( ! empty($search_string_type)) { |
|
96 | 96 | foreach ($search_string_type as $key => $value) { |
97 | 97 | $selected = null; |
98 | - if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
98 | + if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
99 | 99 | $selected = "selected"; |
100 | 100 | } |
101 | 101 | ?> |
@@ -120,10 +120,10 @@ discard block |
||
120 | 120 | <label class="search_label col-md-12 no-padding">Group By #Time</label> |
121 | 121 | <select name="time" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
122 | 122 | <?php |
123 | - if (!empty($groupby_time)) { |
|
123 | + if ( ! empty($groupby_time)) { |
|
124 | 124 | foreach ($groupby_time as $key => $value) { |
125 | 125 | $selected = null; |
126 | - if (isset($session_info['time']) && !empty($session_info['time']) && $session_info['time'] == $key) { |
|
126 | + if (isset($session_info['time']) && ! empty($session_info['time']) && $session_info['time'] == $key) { |
|
127 | 127 | $selected = "selected"; |
128 | 128 | } |
129 | 129 | ?> |
@@ -137,10 +137,10 @@ discard block |
||
137 | 137 | <label class="search_label col-md-12 no-padding">Group By #1</label> |
138 | 138 | <select name="groupby_1" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
139 | 139 | <?php |
140 | - if (!empty($groupby_field)) { |
|
140 | + if ( ! empty($groupby_field)) { |
|
141 | 141 | foreach ($groupby_field as $key => $value) { |
142 | 142 | $selected = null; |
143 | - if (isset($session_info['groupby_1']) && !empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
143 | + if (isset($session_info['groupby_1']) && ! empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
144 | 144 | $selected = "selected"; |
145 | 145 | } |
146 | 146 | ?> |
@@ -154,10 +154,10 @@ discard block |
||
154 | 154 | <label class="search_label col-md-12 no-padding">Group By #2</label> |
155 | 155 | <select name="groupby_2" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
156 | 156 | <?php |
157 | - if (!empty($groupby_field)) { |
|
157 | + if ( ! empty($groupby_field)) { |
|
158 | 158 | foreach ($groupby_field as $key => $value) { |
159 | 159 | $selected = null; |
160 | - if (isset($session_info['groupby_2']) && !empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
160 | + if (isset($session_info['groupby_2']) && ! empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
161 | 161 | $selected = "selected"; |
162 | 162 | } |
163 | 163 | ?> |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | <label class="search_label col-md-12 no-padding">Group By #3</label> |
172 | 172 | <select name="groupby_3" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
173 | 173 | <?php |
174 | - if (!empty($groupby_field)) { |
|
174 | + if ( ! empty($groupby_field)) { |
|
175 | 175 | foreach ($groupby_field as $key => $value) { |
176 | 176 | $selected = null; |
177 | - if (isset($session_info['groupby_3']) && !empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
177 | + if (isset($session_info['groupby_3']) && ! empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
178 | 178 | $selected = "selected"; |
179 | 179 | } |
180 | 180 | ?> |
@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | <label class="search_label col-md-6" style="font-size:17px;text-align:right;">Display records in </label> |
194 | 194 | <select name="search_in" class='col-md-5 form-control selectpicker' style='background: #ddd; width: 23% !important;' data-live-search='true'> |
195 | 195 | <?php |
196 | -if (!empty($search_report)) { |
|
196 | +if ( ! empty($search_report)) { |
|
197 | 197 | foreach ($search_report as $key => $value) { |
198 | 198 | $selected = null; |
199 | - if (isset($session_info['search_in']) && isset($session_info['search_in']) && !empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
199 | + if (isset($session_info['search_in']) && isset($session_info['search_in']) && ! empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
200 | 200 | //echo $key;exit; |
201 | 201 | $selected = "selected"; |
202 | 202 | } |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | <legend><b>Search</b></legend> |
39 | 39 | <div class="col-md-4 no-padding"> |
40 | 40 | <label class="search_label col-md-12 no-padding">From Date</label> |
41 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d") . " 00:00:00"; ?>" id="provider_from_date" size="20" class="col-md-5 form-control text field " /> |
|
41 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d")." 00:00:00"; ?>" id="provider_from_date" size="20" class="col-md-5 form-control text field " /> |
|
42 | 42 | </div> |
43 | 43 | <div class="col-md-4 no-padding"> |
44 | 44 | <label class="search_label col-md-12 no-padding">To Date</label> |
45 | - <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d") . " 23:59:59"; ?>" id="provider_to_date" size="20" class="col-md-5 form-control text field " /> |
|
45 | + <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d")." 23:59:59"; ?>" id="provider_to_date" size="20" class="col-md-5 form-control text field " /> |
|
46 | 46 | </div> |
47 | 47 | <div class="col-md-4 no-padding"> |
48 | 48 | <label class="search_label col-md-12 no-padding">Account</label> |
49 | 49 | |
50 | 50 | <select name="provider_id" class='col-md-5 form-control selectpicker' data-live-search='true'> |
51 | 51 | <option value=''>--Select--</option> |
52 | - <?php if (!empty($accountlist)) { |
|
52 | + <?php if ( ! empty($accountlist)) { |
|
53 | 53 | foreach ($accountlist as $key => $value) { |
54 | 54 | ?> |
55 | 55 | <optgroup label="<?php echo $key ?>"> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | <select name="trunk_id" class='col-md-5 form-control selectpicker' data-live-search='true'> |
75 | 75 | <option value=''>--Select--</option> |
76 | 76 | <?php |
77 | - if (!empty($trunklist)) { |
|
77 | + if ( ! empty($trunklist)) { |
|
78 | 78 | foreach ($trunklist as $key => $value) { |
79 | 79 | $selected = null; |
80 | 80 | if (isset($session_info['trunk_id']) && $session_info['trunk_id'] > 0 && $key == $session_info['trunk_id']) { |
@@ -88,13 +88,13 @@ discard block |
||
88 | 88 | </div> |
89 | 89 | <div class="col-md-4 no-padding"> |
90 | 90 | <label class="search_label col-md-12 no-padding">Code </label> |
91 | - <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
91 | + <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/> |
|
92 | 92 | <select name="pattern[pattern-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
93 | 93 | <?php |
94 | - if (!empty($search_string_type)) { |
|
94 | + if ( ! empty($search_string_type)) { |
|
95 | 95 | foreach ($search_string_type as $key => $value) { |
96 | 96 | $selected = null; |
97 | - if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
97 | + if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) { |
|
98 | 98 | $selected = "selected"; |
99 | 99 | } |
100 | 100 | ?> |
@@ -106,13 +106,13 @@ discard block |
||
106 | 106 | </div> |
107 | 107 | <div class="col-md-4 no-padding"> |
108 | 108 | <label class="search_label col-md-12 no-padding">Destination </label> |
109 | - <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
109 | + <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field " /> |
|
110 | 110 | <select name="notes[notes-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
111 | 111 | <?php |
112 | - if (!empty($search_string_type)) { |
|
112 | + if ( ! empty($search_string_type)) { |
|
113 | 113 | foreach ($search_string_type as $key => $value) { |
114 | 114 | $selected = null; |
115 | - if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
115 | + if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) { |
|
116 | 116 | $selected = "selected"; |
117 | 117 | } |
118 | 118 | ?> |
@@ -137,10 +137,10 @@ discard block |
||
137 | 137 | <label class="search_label col-md-12 no-padding">Group By #time</label> |
138 | 138 | <select name="time" class='col-md-5 form-control selectpicker' style='margin-left:5px;'data-live-search='true'> |
139 | 139 | <?php |
140 | - if (!empty($groupby_time)) { |
|
140 | + if ( ! empty($groupby_time)) { |
|
141 | 141 | foreach ($groupby_time as $key => $value) { |
142 | 142 | $selected = null; |
143 | - if (isset($session_info['time']) && !empty($session_info['time']) && $session_info['time'] == $key) { |
|
143 | + if (isset($session_info['time']) && ! empty($session_info['time']) && $session_info['time'] == $key) { |
|
144 | 144 | $selected = "selected"; |
145 | 145 | } |
146 | 146 | ?> |
@@ -154,10 +154,10 @@ discard block |
||
154 | 154 | <label class="search_label col-md-12 no-padding">Group By #1</label> |
155 | 155 | <select name="groupby_1" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
156 | 156 | <?php |
157 | - if (!empty($groupby_field)) { |
|
157 | + if ( ! empty($groupby_field)) { |
|
158 | 158 | foreach ($groupby_field as $key => $value) { |
159 | 159 | $selected = null; |
160 | - if (isset($session_info['groupby_1']) && !empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
160 | + if (isset($session_info['groupby_1']) && ! empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) { |
|
161 | 161 | $selected = "selected"; |
162 | 162 | } |
163 | 163 | ?> |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | <label class="search_label col-md-12 no-padding">Group By #2</label> |
172 | 172 | <select name="groupby_2" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
173 | 173 | <?php |
174 | - if (!empty($groupby_field)) { |
|
174 | + if ( ! empty($groupby_field)) { |
|
175 | 175 | foreach ($groupby_field as $key => $value) { |
176 | 176 | $selected = null; |
177 | - if (isset($session_info['groupby_2']) && !empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
177 | + if (isset($session_info['groupby_2']) && ! empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) { |
|
178 | 178 | $selected = "selected"; |
179 | 179 | } |
180 | 180 | ?> |
@@ -188,10 +188,10 @@ discard block |
||
188 | 188 | <label class="search_label col-md-12 no-padding">Group By #3</label> |
189 | 189 | <select name="groupby_3" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'> |
190 | 190 | <?php |
191 | - if (!empty($groupby_field)) { |
|
191 | + if ( ! empty($groupby_field)) { |
|
192 | 192 | foreach ($groupby_field as $key => $value) { |
193 | 193 | $selected = null; |
194 | - if (isset($session_info['groupby_3']) && !empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
194 | + if (isset($session_info['groupby_3']) && ! empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) { |
|
195 | 195 | $selected = "selected"; |
196 | 196 | } |
197 | 197 | ?> |
@@ -210,10 +210,10 @@ discard block |
||
210 | 210 | <label class="search_label col-md-6" style="font-size:17px;text-align:right;">Display records in </label> |
211 | 211 | <select name="search_in" class='col-md-5 form-control selectpicker' style='background: #ddd; width: 23% !important;' data-live-search='true'> |
212 | 212 | <?php |
213 | -if (!empty($search_report)) { |
|
213 | +if ( ! empty($search_report)) { |
|
214 | 214 | foreach ($search_report as $key => $value) { |
215 | 215 | $selected = null; |
216 | - if (isset($session_info['search_in']) && isset($session_info['search_in']) && !empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
216 | + if (isset($session_info['search_in']) && isset($session_info['search_in']) && ! empty($session_info['search_in']) && $session_info['search_in'] == $key) { |
|
217 | 217 | //echo $key;exit; |
218 | 218 | $selected = "selected"; |
219 | 219 | } |
@@ -15,12 +15,12 @@ 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> |
22 | 22 | <h3 class="padding-t-10 padding-l-16">File must be in the following format(.csv):</h3> |
23 | - <p><?= $fields;?></p> |
|
23 | + <p><?= $fields; ?></p> |
|
24 | 24 | </div> |
25 | 25 | </div> |
26 | 26 | <div class="col-md-12 no-padding"> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | <div class="col-md-12 no-padding"> |
31 | 31 | <label class="col-md-3">Provider:</label> |
32 | 32 | <div> |
33 | - <? $provider_id = form_dropdown('provider_id', $this->db_model->build_concat_select_dropdown("id,first_name,number", " accounts", "where_arr", array("type" => "3","status"=>"0","deleted" => "0")), ''); |
|
33 | + <? $provider_id = form_dropdown('provider_id', $this->db_model->build_concat_select_dropdown("id,first_name,number", " accounts", "where_arr", array("type" => "3", "status"=>"0", "deleted" => "0")), ''); |
|
34 | 34 | echo $provider_id; |
35 | 35 | ?> </div> |
36 | 36 | </div> |
@@ -84,24 +84,24 @@ discard block |
||
84 | 84 | <?php }?> |
85 | 85 | |
86 | 86 | <?php |
87 | - if(isset($csv_tmp_data) && !empty($csv_tmp_data)){ ?> |
|
87 | + if (isset($csv_tmp_data) && ! empty($csv_tmp_data)) { ?> |
|
88 | 88 | <section class="slice color-three"> |
89 | 89 | <div class="w-section inverse no-padding"> |
90 | 90 | <div class="container"> |
91 | 91 | <div class="row"> |
92 | 92 | |
93 | 93 | <div class="col-md-12 margin-t-10"> |
94 | - <form id="import_form" name="import_form" action="<?=base_url()?>did/did_import_file/<?= $provider_id?>/<?=$check_header;?>/" method="POST"> |
|
94 | + <form id="import_form" name="import_form" action="<?=base_url()?>did/did_import_file/<?= $provider_id?>/<?=$check_header; ?>/" method="POST"> |
|
95 | 95 | <table width="100%" border="1" class="details_table table"> |
96 | - <?php $cnt =0; |
|
97 | - foreach($csv_tmp_data as $csv_key => $csv_value){ |
|
98 | - if($csv_key < 15){ |
|
96 | + <?php $cnt = 0; |
|
97 | + foreach ($csv_tmp_data as $csv_key => $csv_value) { |
|
98 | + if ($csv_key < 15) { |
|
99 | 99 | echo "<tr>"; |
100 | - foreach($csv_value as $field_name => $field_val){ |
|
101 | - if($csv_key == 0){ |
|
100 | + foreach ($csv_value as $field_name => $field_val) { |
|
101 | + if ($csv_key == 0) { |
|
102 | 102 | $cnt++; |
103 | 103 | echo "<th>".ucfirst($field_name)."</th>"; |
104 | - }else{ |
|
104 | + } else { |
|
105 | 105 | echo "<td class='portlet-content'>".$field_val."</td>"; |
106 | 106 | } |
107 | 107 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | if($csv_key == 0){ |
102 | 102 | $cnt++; |
103 | 103 | echo "<th>".ucfirst($field_name)."</th>"; |
104 | - }else{ |
|
104 | + } else{ |
|
105 | 105 | echo "<td class='portlet-content'>".$field_val."</td>"; |
106 | 106 | } |
107 | 107 | } |
@@ -46,9 +46,9 @@ |
||
46 | 46 | <li class="col-md-12"> |
47 | 47 | <label class="col-md-3 no-padding">Call Type</label> |
48 | 48 | <select name="call_type" class="col-md-5 form-control selectpicker" data-live-search='true'> |
49 | - <?php $calltype=$this->common->set_call_type(); |
|
50 | - foreach($calltype as $key=>$value){ |
|
51 | - $selected=$reseller_didinfo['call_type']==$key ? "selected='selected'" : ''; |
|
49 | + <?php $calltype = $this->common->set_call_type(); |
|
50 | + foreach ($calltype as $key=>$value) { |
|
51 | + $selected = $reseller_didinfo['call_type'] == $key ? "selected='selected'" : ''; |
|
52 | 52 | echo "<option value='$key'$selected>$value</option>"; |
53 | 53 | } |
54 | 54 | ?> |
@@ -29,10 +29,10 @@ |
||
29 | 29 | </div> |
30 | 30 | <?php echo $form; ?> |
31 | 31 | </div> |
32 | - <?php if(isset($maildata) && $maildata != ''){ |
|
32 | + <?php if (isset($maildata) && $maildata != '') { |
|
33 | 33 | echo "<div class='col-md-12 no-padding'>Attachments :</div>"; |
34 | - $imgArr = explode(",",$maildata); |
|
35 | - foreach($imgArr as $key => $imgname){ |
|
34 | + $imgArr = explode(",", $maildata); |
|
35 | + foreach ($imgArr as $key => $imgname) { |
|
36 | 36 | $imgpath = base_url()."email/email_history_list_attachment/".$imgname; |
37 | 37 | echo "<div class='col-md-4 no-padding'> |
38 | 38 | <a href='".$imgpath."'>".$imgname."</a> |
@@ -39,8 +39,8 @@ |
||
39 | 39 | <div class="col-md-2"> |
40 | 40 | <select class="form-control" name="host_id" id="host_id"> |
41 | 41 | <?php |
42 | - foreach($fs_data as $name) { ?> |
|
43 | - <option value="<?= $name['id'] ?>"<?php if(isset($host_id) && ($name['id'] == $host_id))echo 'selected';?>><?= $name['freeswitch_host'] ?></option> |
|
42 | + foreach ($fs_data as $name) { ?> |
|
43 | + <option value="<?= $name['id'] ?>"<?php if (isset($host_id) && ($name['id'] == $host_id))echo 'selected'; ?>><?= $name['freeswitch_host'] ?></option> |
|
44 | 44 | <?php |
45 | 45 | } ?> |
46 | 46 | </select> |
@@ -40,7 +40,10 @@ |
||
40 | 40 | <select class="form-control" name="host_id" id="host_id"> |
41 | 41 | <?php |
42 | 42 | foreach($fs_data as $name) { ?> |
43 | - <option value="<?= $name['id'] ?>"<?php if(isset($host_id) && ($name['id'] == $host_id))echo 'selected';?>><?= $name['freeswitch_host'] ?></option> |
|
43 | + <option value="<?= $name['id'] ?>"<?php if(isset($host_id) && ($name['id'] == $host_id)) { |
|
44 | + echo 'selected'; |
|
45 | +} |
|
46 | +?>><?= $name['freeswitch_host'] ?></option> |
|
44 | 47 | <?php |
45 | 48 | } ?> |
46 | 49 | </select> |
@@ -191,11 +191,11 @@ |
||
191 | 191 | |
192 | 192 | </div> |
193 | 193 | <? |
194 | - if($params_name!='') |
|
194 | + if ($params_name != '') |
|
195 | 195 | { |
196 | - $type="edit_setting"; |
|
197 | - }else{ |
|
198 | - $type="add_setting"; |
|
196 | + $type = "edit_setting"; |
|
197 | + } else { |
|
198 | + $type = "add_setting"; |
|
199 | 199 | } |
200 | 200 | ?> |
201 | 201 | <input type='hidden' name='type_settings' value='<?=$type?>' /> |
@@ -119,7 +119,8 @@ discard block |
||
119 | 119 | <div style="width:550px;"><label style="text-align:right;" class="col-md-3">Status </label> |
120 | 120 | <select name="sipstatus" class="col-md-5 form-control selectpicker" data-live-search='true'> |
121 | 121 | |
122 | - <option value="0" <?if ($status == 0)echo 'selected=selected;'?>>Active</option> |
|
122 | + <option value="0" <?if ($status == 0) { |
|
123 | + echo 'selected=selected;'?>>Active</option> |
|
123 | 124 | <option value="1" <?if ($status == 1)echo 'selected=selected;'?>>Inactive</option> |
124 | 125 | </select> |
125 | 126 | </div> |
@@ -146,7 +147,8 @@ discard block |
||
146 | 147 | <div class="container"> |
147 | 148 | <div class="row"> |
148 | 149 | <div class="portlet-content" id="search_bar" style="cursor:pointer; display:none"> |
149 | - <?php echo $form_search; |
|
150 | + <?php echo $form_search; |
|
151 | +} |
|
150 | 152 | |
151 | 153 | ?> |
152 | 154 | </div> |
@@ -194,7 +196,7 @@ discard block |
||
194 | 196 | if($params_name!='') |
195 | 197 | { |
196 | 198 | $type="edit_setting"; |
197 | - }else{ |
|
199 | + } else{ |
|
198 | 200 | $type="add_setting"; |
199 | 201 | } |
200 | 202 | ?> |