PluginProbe
WP Directory Kit / 1.4.8
WP Directory Kit v1.4.8
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
← All changes | application/controllers/Wdk_fields.php +22 -1 1.2.31.4.8 View file →
@@ -25,8 +25,9 @@
25 25 $this->load->model('field_m');
26 26 $this->load->model('listingfield_m');
27 27
28 28 $field_id = (int) $this->input->post_get('id');
29 + $this->data['selected_section'] = '';
29 30 wdk_access_check('category_m', $field_id);
30 31 $this->data['field_types'] = array(
31 32 'INPUTBOX' => __('INPUTBOX', 'wpdirectorykit'),
32 33 'SECTION' => __('SECTION', 'wpdirectorykit'),
@@ -36,8 +37,9 @@
36 37 'DATE' => __('DATE', 'wpdirectorykit'),
37 38 'DROPDOWN' => __('DROPDOWN', 'wpdirectorykit'),
38 39 'DROPDOWNMULTIPLE' => __('DROPDOWN MULTIPLE', 'wpdirectorykit'),
39 40 'CHECKBOX' => __('CHECKBOX', 'wpdirectorykit'),
41 + 'FILEUPLOAD' => __('FILE UPLOAD', 'wpdirectorykit'),
40 42 );
41 43 $this->data['section_list'] = array(
42 44 '' => __('Not Selected', 'wpdirectorykit'),
43 45 );
@@ -133,8 +135,13 @@
133 135 'label' => __('Values', 'wpdirectorykit'),
134 136 'rules' => ''
135 137 ),
136 138 array(
139 + 'field' => 'empty_value',
140 + 'label' => __('Empty Value', 'wpdirectorykit'),
141 + 'rules' => ''
142 + ),
143 + array(
137 144 'field' => 'icon_id',
138 145 'label' => __('Parent', 'wpdirectorykit'),
139 146 'rules' => ''
140 147 ),
@@ -152,8 +159,18 @@
152 159 'field' => 'max_length',
153 160 'label' => __('Max Length', 'wpdirectorykit'),
154 161 'rules' => 'is_numerical'
155 162 ),
163 + array(
164 + 'field' => 'date_format',
165 + 'label' => __('Date Format', 'wpdirectorykit'),
166 + 'rules' => ''
167 + ),
168 + array(
169 + 'field' => 'autosuggestion',
170 + 'label' => __('Autosuggestion', 'wpdirectorykit'),
171 + 'rules' => ''
172 + ),
156 173 );
157 174
158 175 if($this->form->run($rules))
159 176 {
@@ -224,10 +241,14 @@
224 241 }
225 242 }
226 243 }
227 244
228 - if(!empty($field_id))
245 +
246 +
247 + if(!empty($field_id)) {
229 248 $this->data['db_data'] = $this->field_m->get($field_id, TRUE);
249 + $this->data['selected_section'] = wmvc_show_data($field_id, $this->data['fields_categories']);
250 + }
230 251
231 252 $this->load->view('wdk_fields/field_edit', $this->data);
232 253 }
233 254