$size = $temp[5]; include_once 'types/textfield.php'; wk_core_textfield($display, $name, $translation, $default, $size, $object_id, $object_type); } elseif ($type == 'textarea') { //save remaining vars $cols = $temp[5]; $rows = $temp[6]; include_once 'types/textarea.php'; wk_core_textarea($display, $name, $translation, $default, $cols, $rows, $object_id, $object_type); } elseif ($type == 'category') { //include file include_once 'category.php'; wk_submit_category($name, $translation, $object_id, $object_type); } elseif ($type == 'date') { include_once 'types/date.php'; wk_core_date($display, $name, $translation, $default, $txts, $object_id, $object_type); } elseif ($type == 'time') { //save remaining vars $precision = $temp[5]; include_once 'types/time.php'; wk_core_time($display, $name, $translation, $default, $precision, $txts, $object_id, $object_type); } elseif ($type == 'dropdown') { //save remaining vars //empty arrays in order for the second dd not to remember values of the first $allvalues = ''; $myvalues = ''; //save and seperate dropdown values $allvalues = explode('~', $temp[5]); //format allvalues in couples to send to function $i = 0; foreach ($allvalues as $val) {
$size = $temp[5]; include_once 'textfield.php'; wk_core_textfield($level, $name, $translation, $default, $size, $object_id, $object_type); } elseif ($type == 'textarea') { //save remaining vars $cols = $temp[5]; $rows = $temp[6]; include_once 'textarea.php'; wk_core_textarea($level, $name, $translation, $default, $cols, $rows, $object_id, $object_type); } elseif ($type == 'category') { //include file include_once 'category.php'; wk_submit_category($name, $translation, $object_id, $object_type); } elseif ($type == 'date') { include_once 'date.php'; wk_core_date($level, $name, $translation, $default, $language, $object_id, $object_type); } elseif ($type == 'time') { //save remaining vars $precision = $temp[5]; include_once 'time.php'; wk_core_time($level, $name, $translation, $default, $precision, $language, $object_id, $object_type); } elseif ($type == 'dropdown') { //save remaining vars //empty arrays in order for the second dd not to remember values of the first $allvalues = ''; $myvalues = ''; //save and seperate dropdown values $allvalues = explode('~', $temp[5]); //format allvalues in couples to send to function $i = 0; foreach ($allvalues as $val) {