Passed
Push — v3.0 ( cd1398...d744f1 )
by Samir
23s
created
astpp/application/modules/accounts/views/view_customer_speed_dial.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
                                             </label>
120 120
                                             </div>
121 121
                                                <div class="col-md-3">
122
-                                            <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text"  value="<?php if (isset($speeddial[$i]) && !empty($speeddial[$i])) {
122
+                                            <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text"  value="<?php if (isset($speeddial[$i]) && ! empty($speeddial[$i])) {
123 123
 		echo $speeddial[$i];
124 124
 	} ?>">
125 125
                                                </div>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/systems/libraries/system_form.php 3 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@
 block discarded – undo
22 22
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 23
 ###############################################################################
24 24
 
25
-if (!defined('BASEPATH'))
26
-	exit('No direct script access allowed');
25
+if (!defined('BASEPATH')) {
26
+	exit('No direct script access allowed');
27
+}
27 28
 
28 29
 class Package_form {
29 30
 
Please login to merge, or discard this patch.
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -86,17 +86,17 @@  discard block
 block discarded – undo
86 86
 		return $form;
87 87
 	}
88 88
 
89
-    function build_system_list_for_admin() {
90
-        $grid_field_arr = json_encode(array(
91
-            array("Name", "190", "name", "", "", ""),
92
-            array("Value", "190", "value", "", "", ""),
93
-            array("Description", "320", "comment", "", "", ""),
94
-            array("Group", "120", "group_title", "", "", ""),
95
-            array(gettext("Action"), "442", "", "", "",array("EDIT" => array("url" => "systems/configuration_edit/", "mode" => "popup"),
96
-            ))
97
-                ));
98
-        return $grid_field_arr;
99
-    }
89
+	function build_system_list_for_admin() {
90
+		$grid_field_arr = json_encode(array(
91
+			array("Name", "190", "name", "", "", ""),
92
+			array("Value", "190", "value", "", "", ""),
93
+			array("Description", "320", "comment", "", "", ""),
94
+			array("Group", "120", "group_title", "", "", ""),
95
+			array(gettext("Action"), "442", "", "", "",array("EDIT" => array("url" => "systems/configuration_edit/", "mode" => "popup"),
96
+			))
97
+				));
98
+		return $grid_field_arr;
99
+	}
100 100
 
101 101
 	function build_grid_buttons() {
102 102
 		$buttons_json = json_encode(array(
@@ -104,28 +104,28 @@  discard block
 block discarded – undo
104 104
 		return $buttons_json;
105 105
 	}
106 106
 
107
-    function build_template_list_for_admin() {
108
-        $grid_field_arr = json_encode(array(array("Name", "425", "name", "", "", "","","true","center"),
109
-            array("Subject", "650", "subject", "", "", "","","true","center"),
110
-            array(gettext("Action"), "200", "", "", "",array("EDIT" => array("url" => "systems/template_edit/", "mode" => "single"),
111
-            ))
112
-                ));
113
-        return $grid_field_arr;
114
-    }
107
+	function build_template_list_for_admin() {
108
+		$grid_field_arr = json_encode(array(array("Name", "425", "name", "", "", "","","true","center"),
109
+			array("Subject", "650", "subject", "", "", "","","true","center"),
110
+			array(gettext("Action"), "200", "", "", "",array("EDIT" => array("url" => "systems/template_edit/", "mode" => "single"),
111
+			))
112
+				));
113
+		return $grid_field_arr;
114
+	}
115 115
 
116
-    function build_country_list_for_admin() {     
117
-            $action = 'systems/country_list_edit/';
118
-            $action_remove = 'systems/country_remove/';
119
-            $mode="popup";
120
-        $grid_field_arr = json_encode(array(
121
-	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "","","false","center"),
122
-            array("Name", "705", "country", "", "", "","","true","center"),
123
-               array(gettext("Action"), "100", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
124
-                    "DELETE" => array("url" => "$action_remove", "mode" => "single")
125
-                ))
126
-                ));
127
-        return $grid_field_arr;
128
-     }
116
+	function build_country_list_for_admin() {     
117
+			$action = 'systems/country_list_edit/';
118
+			$action_remove = 'systems/country_remove/';
119
+			$mode="popup";
120
+		$grid_field_arr = json_encode(array(
121
+		array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "","","false","center"),
122
+			array("Name", "705", "country", "", "", "","","true","center"),
123
+			   array(gettext("Action"), "100", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
124
+					"DELETE" => array("url" => "$action_remove", "mode" => "single")
125
+				))
126
+				));
127
+		return $grid_field_arr;
128
+	 }
129 129
 
130 130
     
131 131
 	 function build_admin_grid_buttons() {
@@ -170,17 +170,17 @@  discard block
 block discarded – undo
170 170
 			$action_remove = 'systems/currency_remove/';
171 171
 			$mode="popup";
172 172
         
173
-        $grid_field_arr = json_encode(array(
174
-	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "70", "", "", "", "","","false","center"),
175
-            array("Name", "320", "currencyname", "", "", "","","true","center"),
176
-	    array("Code", "290", "currency", "", "", "","","true","center"),
177
-	    array(" Rate", "330", "currencyrate", "", "", "","","true","right"),
178
-               array(gettext("Action"), "265", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
179
-                    "DELETE" => array("url" => "$action_remove", "mode" => "single")
180
-                ))
181
-                ));
182
-        return $grid_field_arr;
183
-     }
173
+		$grid_field_arr = json_encode(array(
174
+		array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "70", "", "", "", "","","false","center"),
175
+			array("Name", "320", "currencyname", "", "", "","","true","center"),
176
+		array("Code", "290", "currency", "", "", "","","true","center"),
177
+		array(" Rate", "330", "currencyrate", "", "", "","","true","right"),
178
+			   array(gettext("Action"), "265", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
179
+					"DELETE" => array("url" => "$action_remove", "mode" => "single")
180
+				))
181
+				));
182
+		return $grid_field_arr;
183
+	 }
184 184
 
185 185
 	function get_search_currency_form() {
186 186
 
Please login to merge, or discard this patch.
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@  discard block
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if ( ! defined('BASEPATH'))
25 25
 	exit('No direct script access allowed');
26 26
 
27 27
 class System_form {
28 28
 
29 29
 	function get_template_form_fields() {
30 30
 
31
-		$form['forms'] = array(base_url() . 'systems/template_save/', array("template_form", "name" => "template_form"));
31
+		$form['forms'] = array(base_url().'systems/template_save/', array("template_form", "name" => "template_form"));
32 32
 		$form['Email Template'] = array(
33 33
 			array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
34
-			array(' Name', 'INPUT', array('name' => 'name', 'size' => '20',  'readonly' => true, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
35
-			array('Subject', 'INPUT', array('name' => 'subject', 'size' => '20',  'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
36
-			array('Body', 'TEXTAREA', array('name' => 'template', 'id' => 'template', 'size' => '20',  'class' => "textarea medium"), 'trim|required', 'tOOL TIP', ''),
34
+			array(' Name', 'INPUT', array('name' => 'name', 'size' => '20', 'readonly' => true, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
35
+			array('Subject', 'INPUT', array('name' => 'subject', 'size' => '20', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
36
+			array('Body', 'TEXTAREA', array('name' => 'template', 'id' => 'template', 'size' => '20', 'class' => "textarea medium"), 'trim|required', 'tOOL TIP', ''),
37 37
 		);
38 38
 		$form['button_cancel'] = array('name' => 'action', 'content' => 'Cancel', 'value' => 'cancel', 'type' => 'button', 'class' => 'btn btn-line-sky margin-x-10', 'onclick' => 'return redirect_page(\'systems/template/\')');
39 39
 		$form['button_save'] = array('name' => 'action', 'content' => 'Save', 'value' => 'save', 'type' => 'submit', 'class' => 'btn btn-line-parrot');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		$form['Search'] = array(
47 47
             
48 48
 			array(' Name', 'INPUT', array('name' => 'name[name]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'name[name-string]', '', '', '', 'search_string_type', ''),
49
-			array('Subject', 'INPUT', array('name' => 'subject[subject]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'subject[subject-string]', '', '', '', 'search_string_type', ''),array('', 'HIDDEN', 'ajax_search', '1', '', '', ''),
49
+			array('Subject', 'INPUT', array('name' => 'subject[subject]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'subject[subject-string]', '', '', '', 'search_string_type', ''), array('', 'HIDDEN', 'ajax_search', '1', '', '', ''),
50 50
 			array('', 'HIDDEN', 'advance_search', '1', '', '', '')
51 51
 		);
52 52
 		$form['button_search'] = array('name' => 'action', 'id' => "template_search_btn", 'content' => 'Search', 'value' => 'save', 'type' => 'button', 'class' => 'btn btn-line-parrot pull-right');
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 
57 57
 	function get_configuration_form_fields() {
58 58
 
59
-		$form['forms'] = array(base_url() . 'systems/configuration_save/', array("id" => "config_form", "name" => "config_form"));
59
+		$form['forms'] = array(base_url().'systems/configuration_save/', array("id" => "config_form", "name" => "config_form"));
60 60
 		$form['Edit Settings '] = array(
61 61
 			array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
62
-			array('Name', 'INPUT', array('name' => 'name', 'size' => '20',  'readonly' => true, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
62
+			array('Name', 'INPUT', array('name' => 'name', 'size' => '20', 'readonly' => true, 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', ''),
63 63
 			array('Value', 'INPUT', array('name' => 'value', 'size' => '20', 'class' => "text field medium"), 'trim|required', 'tOOL TIP', ''),
64
-			array('Comment', 'INPUT', array('name' => 'comment', 'size' => '20',  'class' => "text field medium"), '', 'tOOL TIP', ''),
64
+			array('Comment', 'INPUT', array('name' => 'comment', 'size' => '20', 'class' => "text field medium"), '', 'tOOL TIP', ''),
65 65
 		);
66 66
 
67 67
 		$form['button_cancel'] = array('name' => 'action', 'content' => 'Cancel', 'value' => 'cancel', 'type' => 'button', 'class' => 'btn btn-line-sky margin-x-10', 'onclick' => 'return redirect_page(\'NULL\')');
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 			array('Name', 'INPUT', array('name' => 'name[name]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'name[name-string]', '', '', '', 'search_string_type', ''),
78 78
 			array('Value', 'INPUT', array('name' => 'value[value]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'value[value-string]', '', '', '', 'search_string_type', ''),
79 79
 			array('Description', 'INPUT', array('name' => 'comment[comment]', '', 'size' => '20', 'class' => "text field "), '', 'tOOL TIP', '1', 'comment[comment-string]', '', '', '', 'search_string_type', ''),
80
-			array('Group', 'group_title', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'group_title', 'group_title', 'system', 'build_dropdown','where_arr',"group_title NOT IN ('asterisk','osc','freepbx')", 'group_by', 'group_title'),
80
+			array('Group', 'group_title', 'SELECT', '', '', 'tOOL TIP', 'Please Enter account number', 'group_title', 'group_title', 'system', 'build_dropdown', 'where_arr', "group_title NOT IN ('asterisk','osc','freepbx')", 'group_by', 'group_title'),
81 81
 			array('', 'HIDDEN', 'ajax_search', '1', '', '', ''),
82 82
 			array('', 'HIDDEN', 'advance_search', '1', '', '', '')
83 83
 		);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             array("Value", "190", "value", "", "", ""),
93 93
             array("Description", "320", "comment", "", "", ""),
94 94
             array("Group", "120", "group_title", "", "", ""),
95
-            array(gettext("Action"), "442", "", "", "",array("EDIT" => array("url" => "systems/configuration_edit/", "mode" => "popup"),
95
+            array(gettext("Action"), "442", "", "", "", array("EDIT" => array("url" => "systems/configuration_edit/", "mode" => "popup"),
96 96
             ))
97 97
                 ));
98 98
         return $grid_field_arr;
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
 	}
106 106
 
107 107
     function build_template_list_for_admin() {
108
-        $grid_field_arr = json_encode(array(array("Name", "425", "name", "", "", "","","true","center"),
109
-            array("Subject", "650", "subject", "", "", "","","true","center"),
110
-            array(gettext("Action"), "200", "", "", "",array("EDIT" => array("url" => "systems/template_edit/", "mode" => "single"),
108
+        $grid_field_arr = json_encode(array(array("Name", "425", "name", "", "", "", "", "true", "center"),
109
+            array("Subject", "650", "subject", "", "", "", "", "true", "center"),
110
+            array(gettext("Action"), "200", "", "", "", array("EDIT" => array("url" => "systems/template_edit/", "mode" => "single"),
111 111
             ))
112 112
                 ));
113 113
         return $grid_field_arr;
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
     function build_country_list_for_admin() {     
117 117
             $action = 'systems/country_list_edit/';
118 118
             $action_remove = 'systems/country_remove/';
119
-            $mode="popup";
119
+            $mode = "popup";
120 120
         $grid_field_arr = json_encode(array(
121
-	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "","","false","center"),
122
-            array("Name", "705", "country", "", "", "","","true","center"),
121
+	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "", "", "false", "center"),
122
+            array("Name", "705", "country", "", "", "", "", "true", "center"),
123 123
                array(gettext("Action"), "100", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
124 124
                     "DELETE" => array("url" => "$action_remove", "mode" => "single")
125 125
                 ))
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
 
130 130
     
131 131
 	 function build_admin_grid_buttons() {
132
-		$buttons_json = json_encode(array(array("Create","btn btn-line-warning btn","fa fa-plus-circle fa-lg", "button_action", "systems/country_add/", "popup"),
133
-			array("Delete",  "btn btn-line-danger","fa fa-times-circle fa-lg", "button_action", "systems/country_delete_multiple"),
132
+		$buttons_json = json_encode(array(array("Create", "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "systems/country_add/", "popup"),
133
+			array("Delete", "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "systems/country_delete_multiple"),
134 134
 		   ));
135 135
 		return $buttons_json;
136 136
 	}
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
 	 function get_country_form_fields() {
155 155
      
156 156
         
157
-		$form['forms'] = array(base_url() . 'systems/country_save/', array('id' => 'system_form', 'method' => 'POST', 'name' => 'system_form'));
157
+		$form['forms'] = array(base_url().'systems/country_save/', array('id' => 'system_form', 'method' => 'POST', 'name' => 'system_form'));
158 158
 		$form['Country List'] = array(
159 159
 			array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
160
-			array('Name', 'INPUT', array('name' => 'country', 'size' => '20',  'class' => "text field medium"), 'trim|required|char|min_length[2]|max_length[20]|xss_clean', 'tOOL TIP', 'Please Enter country'),
160
+			array('Name', 'INPUT', array('name' => 'country', 'size' => '20', 'class' => "text field medium"), 'trim|required|char|min_length[2]|max_length[20]|xss_clean', 'tOOL TIP', 'Please Enter country'),
161 161
 
162 162
 		);
163 163
 		$form['button_save'] = array('name' => 'action', 'content' => 'Save', 'value' => 'save', 'id' => 'submit', 'type' => 'button', 'class' => 'btn btn-line-parrot');
@@ -168,13 +168,13 @@  discard block
 block discarded – undo
168 168
 	  function build_currency_list_for_admin() {        
169 169
 			$action = 'systems/currency_list_edit/';
170 170
 			$action_remove = 'systems/currency_remove/';
171
-			$mode="popup";
171
+			$mode = "popup";
172 172
         
173 173
         $grid_field_arr = json_encode(array(
174
-	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "70", "", "", "", "","","false","center"),
175
-            array("Name", "320", "currencyname", "", "", "","","true","center"),
176
-	    array("Code", "290", "currency", "", "", "","","true","center"),
177
-	    array(" Rate", "330", "currencyrate", "", "", "","","true","right"),
174
+	    array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "70", "", "", "", "", "", "false", "center"),
175
+            array("Name", "320", "currencyname", "", "", "", "", "true", "center"),
176
+	    array("Code", "290", "currency", "", "", "", "", "true", "center"),
177
+	    array(" Rate", "330", "currencyrate", "", "", "", "", "true", "right"),
178 178
                array(gettext("Action"), "265", "", "", "", array("EDIT" => array("url" => "$action", "mode" => "$mode"),
179 179
                     "DELETE" => array("url" => "$action_remove", "mode" => "single")
180 180
                 ))
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
 	function get_currency_form_fields() {
203 203
      
204 204
         
205
-		$form['forms'] = array(base_url() . 'systems/currency_save/', array('id' => 'system_form', 'method' => 'POST', 'name' => 'system_form'));
205
+		$form['forms'] = array(base_url().'systems/currency_save/', array('id' => 'system_form', 'method' => 'POST', 'name' => 'system_form'));
206 206
 		$form['Currency List'] = array(
207 207
 			array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
208
-			array('Name', 'INPUT', array('name' => 'currencyname', 'size' => '20','maxlength' => '40',  'class' => "text field medium"), 'trim|required|char|xss_clean', 'tOOL TIP', 'Please Enter country'),
209
-			array('Code', 'INPUT', array('name' => 'currency', 'size' => '20','maxlength' => '3', 'class' => "text field medium"), 'trim|required|char|xss_clean', 'tOOL TIP', 'Please Enter country'),
210
-			array('Rate', 'INPUT', array('name' => 'currencyrate', 'size' => '20','maxlength' => '7', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter country'),
208
+			array('Name', 'INPUT', array('name' => 'currencyname', 'size' => '20', 'maxlength' => '40', 'class' => "text field medium"), 'trim|required|char|xss_clean', 'tOOL TIP', 'Please Enter country'),
209
+			array('Code', 'INPUT', array('name' => 'currency', 'size' => '20', 'maxlength' => '3', 'class' => "text field medium"), 'trim|required|char|xss_clean', 'tOOL TIP', 'Please Enter country'),
210
+			array('Rate', 'INPUT', array('name' => 'currencyrate', 'size' => '20', 'maxlength' => '7', 'class' => "text field medium"), 'trim|required|xss_clean', 'tOOL TIP', 'Please Enter country'),
211 211
 
212 212
 		);
213 213
 		$form['button_save'] = array('name' => 'action', 'content' => 'Save', 'value' => 'save', 'id' => 'submit', 'type' => 'button', 'class' => 'btn btn-line-parrot');
@@ -216,21 +216,21 @@  discard block
 block discarded – undo
216 216
 	}
217 217
 
218 218
 	 function build_admin_currency_grid_buttons() {
219
-		$buttons_json = json_encode(array(array("Create","btn btn-line-warning btn","fa fa-plus-circle fa-lg", "button_action", "systems/currency_add/", "popup"),
220
-			array("Update Currencies","btn btn-line-blue" ,"fa fa-upload fa-lg", "button_action", "currencyupdate/update_currency/", 'single'),
221
-			array("Delete","btn btn-line-danger","fa fa-times-circle fa-lg", "button_action", "systems/currency_delete_multiple"),
219
+		$buttons_json = json_encode(array(array("Create", "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "systems/currency_add/", "popup"),
220
+			array("Update Currencies", "btn btn-line-blue", "fa fa-upload fa-lg", "button_action", "currencyupdate/update_currency/", 'single'),
221
+			array("Delete", "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "systems/currency_delete_multiple"),
222 222
 		   ));
223 223
 		return $buttons_json;
224 224
 	}
225 225
  
226 226
   
227
-  function get_backup_database_form_fields($file_name,$id='') {
227
+  function get_backup_database_form_fields($file_name, $id = '') {
228 228
    $val = $id > 0 ? "backup_database.path.$id" : 'backup_database.path';
229
-	  $form['forms'] = array(base_url() . 'systems/database_backup_save/',array('id' => 'backup_form', 'method' => 'POST', 'name' => 'backup_form'));
229
+	  $form['forms'] = array(base_url().'systems/database_backup_save/', array('id' => 'backup_form', 'method' => 'POST', 'name' => 'backup_form'));
230 230
 	  $form['Database Information'] = array(
231 231
 	  array('', 'HIDDEN', array('name' => 'id'), '', '', '', ''),
232 232
 	  array('Name', 'INPUT', array('name' => 'backup_name', 'size' => '20', 'class' => "text field medium"), 'required', 'tOOL TIP', ''),
233
-	  array('File Name', 'INPUT', array('name' => 'path', 'size' => '20', 'value'=>$file_name,'class' => "text field medium"), 'trim|required|is_unique[' . $val . ']', 'tOOL TIP', ''),
233
+	  array('File Name', 'INPUT', array('name' => 'path', 'size' => '20', 'value'=>$file_name, 'class' => "text field medium"), 'trim|required|is_unique['.$val.']', 'tOOL TIP', ''),
234 234
 	  );
235 235
 	  $form['button_cancel'] = array('name' => 'action', 'content' => 'Close', 'value' => 'cancel', 'type' => 'button', 'class' => 'btn btn-line-sky  margin-x-10', 'onclick' => 'return redirect_page(\'NULL\')');
236 236
 	  $form['button_save'] = array('name' => 'action', 'content' => 'Save', 'value' => 'save', 'id' => 'submit', 'type' => 'button', 'class' => 'btn btn-line-parrot');
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
   }
239 239
   function build_backupdastabase_list() {
240 240
 		$grid_field_arr = json_encode(array(
241
-			array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "","","false","center"),
242
-			array("Date", "260", "date", "date", "date", "convert_GMT_to","","true","center"),
243
-			array("Name", "295", "backup_name", "", "", "","","true","center"),
244
-			array("File Name", "480", "path", "", "", "","","true","center"),
241
+			array("<input type='checkbox' name='chkAll' class='ace checkall'/><label class='lbl'></label>", "50", "", "", "", "", "", "false", "center"),
242
+			array("Date", "260", "date", "date", "date", "convert_GMT_to", "", "true", "center"),
243
+			array("Name", "295", "backup_name", "", "", "", "", "true", "center"),
244
+			array("File Name", "480", "path", "", "", "", "", "true", "center"),
245 245
 			array(gettext("Action"), "185", "", "", "",
246 246
 			array("EDIT_RESTORE" => array("url" => "systems/database_restore_one/", "mode" => ""),
247 247
 			"DOWNLOAD_DATABASE" => array("url" => "systems/database_download/", "mode" => ""),
@@ -250,9 +250,9 @@  discard block
 block discarded – undo
250 250
 		return $grid_field_arr;
251 251
 	}
252 252
 	function build_backupdastabase_buttons() {
253
-		$buttons_json = json_encode(array(array("Create","btn btn-line-warning btn","fa fa-plus-circle fa-lg", "button_action", "systems/database_backup/", "popup"),
254
-		  array("import","btn btn-line-blue" ,"fa fa-upload fa-lg", "button_action", "systems/database_import/", "popup"),	
255
-		array("Delete","btn btn-line-danger","fa fa-times-circle fa-lg", "button_action", "systems/database_backup_delete_multiple")
253
+		$buttons_json = json_encode(array(array("Create", "btn btn-line-warning btn", "fa fa-plus-circle fa-lg", "button_action", "systems/database_backup/", "popup"),
254
+		  array("import", "btn btn-line-blue", "fa fa-upload fa-lg", "button_action", "systems/database_import/", "popup"),	
255
+		array("Delete", "btn btn-line-danger", "fa fa-times-circle fa-lg", "button_action", "systems/database_backup_delete_multiple")
256 256
 						));
257 257
 		  return $buttons_json;
258 258
 	}
Please login to merge, or discard this patch.
astpp/application/modules/user/views/view_user_fund_transfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         <div class="w-section inverse no-padding">
15 15
             <?php echo $form; ?>
16 16
             <?php
17
-			if(isset($validation_errors) && $validation_errors != ''){ ?>
17
+			if (isset($validation_errors) && $validation_errors != '') { ?>
18 18
                 <script>
19 19
                 var ERR_STR = '<?php echo $validation_errors; ?>';
20 20
                 print_error(ERR_STR);
Please login to merge, or discard this patch.
web_interface/astpp/system/libraries/Trackback.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 		if ($this->conn_id)
43 43
 		{
44 44
 			return "SELECT '".$this->database."'";
45
-		}
46
-		else
45
+		} else
47 46
 		{
48 47
 			return FALSE;
49 48
 		}
Please login to merge, or discard this patch.
web_interface/astpp/system/libraries/font/courierbi.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,6 +3,7 @@
 block discarded – undo
3 3
 $name = 'Courier-Oblique';
4 4
 $up = -100;
5 5
 $ut = 50;
6
-for ($i = 0; $i <= 255; $i++)
7
-	$cw[chr($i)] = 600;
6
+for ($i = 0; $i <= 255; $i++) {
7
+	$cw[chr($i)] = 600;
8
+}
8 9
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/system/libraries/font/courierb.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,6 +3,7 @@
 block discarded – undo
3 3
 $name = 'Courier-Oblique';
4 4
 $up = -100;
5 5
 $ut = 50;
6
-for ($i = 0; $i <= 255; $i++)
7
-	$cw[chr($i)] = 600;
6
+for ($i = 0; $i <= 255; $i++) {
7
+	$cw[chr($i)] = 600;
8
+}
8 9
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/system/libraries/font/courier.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,6 +3,7 @@
 block discarded – undo
3 3
 $name = 'Courier-Oblique';
4 4
 $up = -100;
5 5
 $ut = 50;
6
-for ($i = 0; $i <= 255; $i++)
7
-	$cw[chr($i)] = 600;
6
+for ($i = 0; $i <= 255; $i++) {
7
+	$cw[chr($i)] = 600;
8
+}
8 9
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/system/helpers/url_helper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
207 207
 				$y = rand(0, $img_height / 2);
208 208
 				imagestring($im, $font_size, $x, $y, substr($word, $i, 1), $text_color);
209 209
 				$x += ($font_size * 2);
210
-			}
211
-			else
210
+			} else
212 211
 			{
213 212
 				$y = rand($img_height / 2, $img_height - 3);
214 213
 				imagettftext($im, $font_size, $angle, $x, $y, $text_color, $font_path, substr($word, $i, 1));
Please login to merge, or discard this patch.
web_interface/astpp/system/core/Output.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 		if ($this->conn_id)
43 43
 		{
44 44
 			return "SELECT '".$this->database."'";
45
-		}
46
-		else
45
+		} else
47 46
 		{
48 47
 			return FALSE;
49 48
 		}
Please login to merge, or discard this patch.