コード例 #1
0
ファイル: field_loop.php プロジェクト: Knorcedger/main
     $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) {
         if ($i % 2 == 0) {
             $temp2 = $val;
         } else {
             $myvalues[$i / 2] = $temp2 . '|' . $val;
         }
コード例 #2
0
ファイル: field_loop.php プロジェクト: Knorcedger/main
     $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) {
         if ($i % 2 == 0) {
             $temp2 = $val;
         } else {
             $myvalues[$i / 2] = $temp2 . '|' . $val;
         }