Passed
Branch v3.5 (f0ef26)
by Samir
36:09
created
web_interface/astpp/application/modules/reports/models/reports_model.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -262,6 +262,6 @@
 block discarded – undo
262 262
 		return $query;
263 263
 	}
264 264
 /**
265
- * **********************************************************************
266
- */
265
+	 * **********************************************************************
266
+	 */
267 267
 }
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/reports/controllers/reports.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1109,8 +1109,8 @@
 block discarded – undo
1109 1109
 		echo json_encode ( $json_data );
1110 1110
 	}
1111 1111
 /**
1112
- * ********************************************************
1113
- */
1112
+	 * ********************************************************
1113
+	 */
1114 1114
 }
1115 1115
 ?>
1116 1116
  
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/pricing/controllers/pricing.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,8 +245,8 @@
 block discarded – undo
245 245
 		}
246 246
 	}
247 247
 /**
248
- * ********************************************************
249
- */
248
+	 * ********************************************************
249
+	 */
250 250
 }
251 251
 
252 252
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/rates/controllers/rates.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1374,8 +1374,8 @@
 block discarded – undo
1374 1374
 		force_download ( "Termination_rate_mapper_error.csv", $data );
1375 1375
 	}
1376 1376
 /**
1377
- * **********************
1378
- */
1377
+	 * **********************
1378
+	 */
1379 1379
 }
1380 1380
 ?>
1381 1381
  
Please login to merge, or discard this patch.
application/modules/rates/views/view_import_termination_rate_mapper.php 1 patch
Indentation   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@  discard block
 block discarded – undo
9 9
   //  echo 'alert(csv_tmp_data);';
10 10
    echo '</script>';
11 11
    }
12
-    ?>
12
+	?>
13 13
 <script type="text/javascript" language="javascript">
14 14
    $(document).ready(function() {
15 15
    });
16 16
 </script> <script type="text/javascript" language="javascript"><?
17 17
    if (isset($mapto_fields) && !empty($mapto_fields)) {
18
-    foreach($mapto_fields as $csv_key => $csv_value) {
19
-    echo '$("#'.$csv_value .'-prefix").live("change", function () {';
20
-    echo 'var select = document.getElementById("'.$csv_value .'-select");';
21
-    echo 'var answer = select.options[select.selectedIndex].value;';
22
-    echo 'document.getElementById("'.$csv_value .'-display").value =  (!answer) ? document.getElementById("'.$csv_value .'-prefix").value : document.getElementById("'.$csv_value .'-prefix").value + csv_tmp_data[2][answer];';
23
-    echo '});';
24
-    echo '$("#'.$csv_value .'-select").live("change", function () {';
25
-    echo 'var select = document.getElementById("'.$csv_value .'-select");';
26
-    echo 'var answer = select.options[select.selectedIndex].value;';
18
+	foreach($mapto_fields as $csv_key => $csv_value) {
19
+	echo '$("#'.$csv_value .'-prefix").live("change", function () {';
20
+	echo 'var select = document.getElementById("'.$csv_value .'-select");';
21
+	echo 'var answer = select.options[select.selectedIndex].value;';
22
+	echo 'document.getElementById("'.$csv_value .'-display").value =  (!answer) ? document.getElementById("'.$csv_value .'-prefix").value : document.getElementById("'.$csv_value .'-prefix").value + csv_tmp_data[2][answer];';
23
+	echo '});';
24
+	echo '$("#'.$csv_value .'-select").live("change", function () {';
25
+	echo 'var select = document.getElementById("'.$csv_value .'-select");';
26
+	echo 'var answer = select.options[select.selectedIndex].value;';
27 27
    
28
-    echo 'document.getElementById("'.$csv_value .'-display").value = (!answer) ? document.getElementById("'.$csv_value .'-prefix").value : document.getElementById("'.$csv_value .'-prefix").value + csv_tmp_data[2][answer];';
29
-    echo '});';
30
-    }
31
-    }
28
+	echo 'document.getElementById("'.$csv_value .'-display").value = (!answer) ? document.getElementById("'.$csv_value .'-prefix").value : document.getElementById("'.$csv_value .'-prefix").value + csv_tmp_data[2][answer];';
29
+	echo '});';
30
+	}
31
+	}
32 32
    ?></script>
33 33
 
34 34
 <?php
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
                   <div class="w-box">
54 54
                      <span  style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;">
55 55
                      <?php
56
-                        if (isset($error) && !empty($error)) {
57
-                        	echo $error;
58
-                        } ?>
56
+						if (isset($error) && !empty($error)) {
57
+							echo $error;
58
+						} ?>
59 59
                      </span>
60 60
                      <h3 class="padding-l-16">You must either select a field from your file OR provide a default value for the following fields:</h3>
61 61
                      <p>Code,Destination,Connect Cost,Included Seconds,Per Minute Cost,Increment,Precedence,Strip,Prepend.</p>
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
                            <label class="col-md-3">Trunk List:</label>
70 70
                            <div class="">
71 71
                               <?php
72
-                                 $trunklist = form_dropdown('trunk_id', $this->db_model->build_dropdown("id,name", "trunks", "where_arr", array(
73
-                                 	"status " => "0"
74
-                                 )) , '');
75
-                                 echo $trunklist; ?>
72
+								 $trunklist = form_dropdown('trunk_id', $this->db_model->build_dropdown("id,name", "trunks", "where_arr", array(
73
+								 	"status " => "0"
74
+								 )) , '');
75
+								 echo $trunklist; ?>
76 76
                            </div>
77 77
                         </div>
78 78
 
@@ -137,28 +137,28 @@  discard block
 block discarded – undo
137 137
                   </thead>
138 138
                   <tbody>
139 139
                      <?php  //echo "<pre>";	print_R($mapto_fields);exit;
140
-                        foreach($mapto_fields as $csv_key => $csv_value) {
140
+						foreach($mapto_fields as $csv_key => $csv_value) {
141 141
 
142
-                        		echo "<tr>";
143
-                        		echo "<td>" . $csv_key . '(' . $csv_value . ")</td>";
144
-                        		echo "<td><input type='text' name='".$csv_value ."-prefix' id='".$csv_value ."-prefix'></td>";
145
-                        		echo "<td>";
146
-                        		echo "<select name='".$csv_value ."-select' id='".$csv_value ."-select'>";
147
-                        		?>
142
+								echo "<tr>";
143
+								echo "<td>" . $csv_key . '(' . $csv_value . ")</td>";
144
+								echo "<td><input type='text' name='".$csv_value ."-prefix' id='".$csv_value ."-prefix'></td>";
145
+								echo "<td>";
146
+								echo "<select name='".$csv_value ."-select' id='".$csv_value ."-select'>";
147
+								?>
148 148
                      <option value=""></option>
149 149
                      <?php
150
-                        $keys = array_keys($file_data);
151
-                        for ($i = 0; $i < count($file_data); $i++) { ?>
150
+						$keys = array_keys($file_data);
151
+						for ($i = 0; $i < count($file_data); $i++) { ?>
152 152
                      <option value="<?php
153
-                        echo $file_data[$i]; ?>"><?php
154
-                        echo $file_data[$i]; ?></option>
153
+						echo $file_data[$i]; ?>"><?php
154
+						echo $file_data[$i]; ?></option>
155 155
                      <?php
156
-                        }
157
-                        echo "</td>";
158
-                        echo "<td><input type='text' name='".$csv_value ."-display' id='".$csv_value ."-display'></td>";
159
-                        echo "</tr>";
156
+						}
157
+						echo "</td>";
158
+						echo "<td><input type='text' name='".$csv_value ."-display' id='".$csv_value ."-display'></td>";
159
+						echo "</tr>";
160 160
 
161
-                        } ?>
161
+						} ?>
162 162
                   </tbody>
163 163
                </table>
164 164
                <input type="hidden" name="trunkid" value="<?php echo $trunkid ?>" />
@@ -170,32 +170,32 @@  discard block
 block discarded – undo
170 170
                <H2> Import File Data..</H2>
171 171
                <table width="100%" border="1"  class="details_table">
172 172
                   <?php
173
-                     $cnt = 1;  //echo "<pre>";print_r($csv_tmp_data);exit;
174
-                     foreach($csv_tmp_data as $csv_key => $csv_value) {
173
+					 $cnt = 1;  //echo "<pre>";print_r($csv_tmp_data);exit;
174
+					 foreach($csv_tmp_data as $csv_key => $csv_value) {
175 175
                    
176
-                     	if ($csv_key < 15) {
177
-                     		echo "<tr>";
176
+					 	if ($csv_key < 15) {
177
+					 		echo "<tr>";
178 178
                      		
179
-                     		foreach($csv_value as $field_name => $field_val) {
180
-                     			if ($csv_key == 0) {
179
+					 		foreach($csv_value as $field_name => $field_val) {
180
+					 			if ($csv_key == 0) {
181 181
 
182
-                     				 echo "<th>".ucfirst($field_val)."</th>";
182
+					 				 echo "<th>".ucfirst($field_val)."</th>";
183 183
 
184
-                     			}
185
-                     			else {
186
-                     				echo "<td class='portlet-content'>" . $field_val . "</td>";
187
-                     				$cnt++;
188
-                     			}
189
-                     		}
184
+					 			}
185
+					 			else {
186
+					 				echo "<td class='portlet-content'>" . $field_val . "</td>";
187
+					 				$cnt++;
188
+					 			}
189
+					 		}
190 190
 
191
-                     		echo "</tr>";
192
-                     	}
193
-                     }
191
+					 		echo "</tr>";
192
+					 	}
193
+					 }
194 194
 
195
-                     echo "<tr><td colspan='" . $cnt . "'>
195
+					 echo "<tr><td colspan='" . $cnt . "'>
196 196
                                             <a href='" . base_url() . "rates/termination_rate_list/'><input type='button' class='btn btn-line-sky pull-right  margin-x-10' value='Back'/></a>
197 197
                                             <input type='submit' class='btn btn-line-parrot pull-right'' id='Process' value='Process Records'/></td></tr>";
198
-                     ?>
198
+					 ?>
199 199
                </table>
200 200
             </form>
201 201
          </div>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/rates/views/view_import_error.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                         <a href="<?= base_url().'rates/termination_rates_list/'?>"><input class="btn btn-line-sky margin-x-10" id="ok" type="button" name="action" value="Back to Termination Rates List" /> </a>
50 50
 
51 51
                        <?php $profile_url = explode("/",base_url(uri_string()));
52
-        if($profile_url[4] == 'termination_rate_rates_import'){ ?>
52
+		if($profile_url[4] == 'termination_rate_rates_import'){ ?>
53 53
                         <a href="<?= base_url().'rates/termination_rate_error_download/'?>"><input class="btn btn-line-parrot" id="ok" type="button" name="action" value="Download Errors" /> </a>
54 54
              </div></div>       <? }else{ ?>
55 55
              <a href="<?= base_url().'rates/termination_rate_mapper_error_download/'?>"><input class="btn btn-line-parrot" id="ok" type="button" name="action" value="Download Errors" /> </a>
Please login to merge, or discard this patch.
astpp/application/modules/invoices/views/view_invoices_list.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,10 +133,10 @@
 block discarded – undo
133 133
 	<div class="col-md-5"><label style="text-align:left;float:left;" class="col-md-3"><?php echo gettext('Accounts'); ?> </label>
134 134
 			<?php
135 135
 				if($login_type == -1 || $login_type == 4 || $login_type == 2){
136
-				        $where="deleted = '0' AND reseller_id = '0' AND status = '0' AND (type= '0' OR type= '3' OR type= '1')";
136
+						$where="deleted = '0' AND reseller_id = '0' AND status = '0' AND (type= '0' OR type= '3' OR type= '1')";
137 137
 				}if($login_type == 1 ){
138 138
 
139
-				        $where="deleted = '0' AND reseller_id = '$id' AND status = '0' AND (type= '0' OR type= '3' OR type='1')";
139
+						$where="deleted = '0' AND reseller_id = '$id' AND status = '0' AND (type= '0' OR type= '3' OR type='1')";
140 140
 				
141 141
 				}
142 142
 		$account=$this->db_model->build_dropdown_invoices('id,first_name,last_name,number,type', 'accounts', '', $where);?>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/user/controllers/user.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1712,7 +1712,7 @@  discard block
 block discarded – undo
1712 1712
 				$account_info = $this->session->userdata('accountinfo');      
1713 1713
 				$acc_balance = $this->common->get_field_name('balance', 'accounts', array('id' => $account_info['id'], 'status' => 0, 'type' => 0, 'deleted' => 0));
1714 1714
 
1715
-                                $balance = ($account_info["posttoexternal"] == 1) ? ($account_info["credit_limit"] - $acc_balance) :($acc_balance );       
1715
+								$balance = ($account_info["posttoexternal"] == 1) ? ($account_info["credit_limit"] - $acc_balance) :($acc_balance );       
1716 1716
                
1717 1717
 				$toid = $this->common->get_field_name('id', 'accounts', array('number' => $post_array['toaccountid'], 'status' => 0, 'type' => 0, 'deleted' => 0));
1718 1718
 				$toaccountinfo=(array)$this->db->get_where('accounts',array('number' => $post_array['toaccountid'], 'status' => 0, 'type' => 0, 'deleted' => 0),1)->first_row();
@@ -1806,19 +1806,19 @@  discard block
 block discarded – undo
1806 1806
 					$query = "update accounts set balance =  IF(posttoexternal=1,balance+".$from['credit'] . ",balance-".$from['credit'].") where id ='".$from['id']."'";
1807 1807
 					$this->db->query($query);
1808 1808
 
1809
-			                $from_arr = array("accountid" => $from['id'],
1810
-					          "description" => trim($post_array['notes']),
1811
-					          "debit" => $from['credit'],
1812
-					          "credit" =>'0',
1813
-					          "created_date" => gmdate("Y-m-d H:i:s"), 
1814
-					          "invoiceid"=>0,
1815
-					          "reseller_id"=>'0',
1816
-					          "item_type"=>'Refill',
1817
-					          "item_id"=>'0',
1818
-          					  'before_balance'=>$before_balance,
1819
-					          'after_balance'=>$after_balance,
1820
-					        );
1821
-			                $this->db->insert("invoice_details", $from_arr);
1809
+							$from_arr = array("accountid" => $from['id'],
1810
+							  "description" => trim($post_array['notes']),
1811
+							  "debit" => $from['credit'],
1812
+							  "credit" =>'0',
1813
+							  "created_date" => gmdate("Y-m-d H:i:s"), 
1814
+							  "invoiceid"=>0,
1815
+							  "reseller_id"=>'0',
1816
+							  "item_type"=>'Refill',
1817
+							  "item_id"=>'0',
1818
+		  					  'before_balance'=>$before_balance,
1819
+							  'after_balance'=>$after_balance,
1820
+							);
1821
+							$this->db->insert("invoice_details", $from_arr);
1822 1822
 					if ($response) {
1823 1823
  						$accountinfo=(array)$this->db->get_where('accounts',array("id"=> $to['id']))->first_row();
1824 1824
 
@@ -1857,19 +1857,19 @@  discard block
 block discarded – undo
1857 1857
 						$query = "update accounts set balance =  IF(posttoexternal=1,balance-".$to['credit'] . ",balance+".$to['credit'].") where id ='".$to['id']."'";
1858 1858
 						$this->db->query($query);
1859 1859
 
1860
-			                	$to_arr = array("accountid" => $to['id'],
1861
-					          "description" => trim($post_array['notes']),
1862
-					          "debit" => '0',
1863
-					          "credit" =>$to['credit'],
1864
-					          "created_date" => gmdate("Y-m-d H:i:s"), 
1865
-					          "invoiceid"=>0,
1866
-					          "reseller_id"=>'0',
1867
-					          "item_type"=>'Refill',
1868
-					          "item_id"=>'0',
1869
-          					  'before_balance'=>$before_balance,
1870
-					          'after_balance'=>$after_balance,
1871
-					        );
1872
-				                $this->db->insert("invoice_details", $to_arr);
1860
+								$to_arr = array("accountid" => $to['id'],
1861
+							  "description" => trim($post_array['notes']),
1862
+							  "debit" => '0',
1863
+							  "credit" =>$to['credit'],
1864
+							  "created_date" => gmdate("Y-m-d H:i:s"), 
1865
+							  "invoiceid"=>0,
1866
+							  "reseller_id"=>'0',
1867
+							  "item_type"=>'Refill',
1868
+							  "item_id"=>'0',
1869
+		  					  'before_balance'=>$before_balance,
1870
+							  'after_balance'=>$after_balance,
1871
+							);
1872
+								$this->db->insert("invoice_details", $to_arr);
1873 1873
 
1874 1874
 						$this->session->set_flashdata('astpp_errormsg', 'Transfer success!');
1875 1875
 					} else {
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/user/views/view_user_speeddial.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,8 @@
 block discarded – undo
110 110
                                             <div class="col-md-3">
111 111
                                                 <label class="col-md-2" name="speed_dial" size="16"> 
112 112
                                                     <?php if ($result[$i]['speed_num'] == $i) {
113
-							        //echo $result[$i]['number'];
114
-							         echo $speeddial[$i];
113
+									//echo $result[$i]['number'];
114
+									 echo $speeddial[$i];
115 115
 							  } ?> 
116 116
                                                 </label>
117 117
                                             </div>
Please login to merge, or discard this patch.