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 +13 -2 1.3.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 );
@@ -159,11 +161,16 @@
159 161 'rules' => 'is_numerical'
160 162 ),
161 163 array(
162 164 'field' => 'date_format',
163 - 'label' => __('Вate Аormat', 'wpdirectorykit'),
165 + 'label' => __('Date Format', 'wpdirectorykit'),
164 166 'rules' => ''
165 167 ),
168 + array(
169 + 'field' => 'autosuggestion',
170 + 'label' => __('Autosuggestion', 'wpdirectorykit'),
171 + 'rules' => ''
172 + ),
166 173 );
167 174
168 175 if($this->form->run($rules))
169 176 {
@@ -234,10 +241,14 @@
234 241 }
235 242 }
236 243 }
237 244
238 - if(!empty($field_id))
245 +
246 +
247 + if(!empty($field_id)) {
239 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 + }
240 251
241 252 $this->load->view('wdk_fields/field_edit', $this->data);
242 253 }
243 254