@@ 140-143 (lines=4) @@ | ||
137 | foreach ($form_fileds as $fieldkey => $fieldvalue) { |
|
138 | $form_contents .= '<li class="col-md-12">'; |
|
139 | if ($fieldvalue[1] == 'HIDDEN') { |
|
140 | if (isset($this->CI->input->post)) |
|
141 | $fieldvalue[2]['value'] = ( ! $this->CI->input->post($fieldvalue[2]['name'])) ? @$fieldvalue[2]['value'] : $this->CI->input->post($fieldvalue[2]['name']); |
|
142 | else |
|
143 | $fieldvalue[2]['value'] = ($values) ? (isset($values[$fieldvalue[2]['name']]) ? $values[$fieldvalue[2]['name']] : '') : (isset($fieldvalue[2]['value']) ? $fieldvalue[2]['value'] : ''); |
|
144 | $form_contents .= form_hidden($fieldvalue[2]['name'], $fieldvalue[2]['value']); |
|
145 | } else { |
|
146 | $validation_arr = array(); |
|
@@ 267-271 (lines=5) @@ | ||
264 | } else if ($fieldvalue[1] == 'INPUT') { |
|
265 | ||
266 | ||
267 | if (isset($this->CI->input->post)) |
|
268 | $fieldvalue[2]['value'] = (!$this->CI->input->post($fieldvalue[2]['name'])) ? $fieldvalue[2]['value'] : $this->CI->input->post($fieldvalue[2]['name']); |
|
269 | else{ |
|
270 | $fieldvalue[2]['value'] = ($values) ? (isset($values[$fieldvalue[2]['name']]) ? $values[$fieldvalue[2]['name']] : ''):(isset($fieldvalue[2]['value']) ? $fieldvalue[2]['value'] :''); |
|
271 | } |
|
272 | $form_contents.= form_input($fieldvalue[2], 'readonly'); |
|
273 | if(isset($fieldvalue[6]) && !empty($fieldvalue[6])){ |
|
274 | $form_contents.=$fieldvalue[6]; |