if (isset($_GET['time_start']) && is_numeric($_GET['time_start'])) { addValue('time_start', (int) $_GET['time_start']); } if (isset($_GET['time_end']) && is_numeric($_GET['time_end'])) { addValue('time_end', (int) $_GET['time_end']); } if (isset($_GET['user_assigned'])) { if (is_array($_GET['user_assigned'])) { addValueArray('user_assigned', $_GET['user_assigned']); } else { addValueArray('user_assigned', splittIDs($_GET['user_assigned'])); } } if (isset($_GET['room']) && is_numeric($_GET['room'])) { // Single room addValueArray('room_id', array((int) $_GET['room'] => (int) $_GET['room'])); } } /* if($entry_add) addField ('submit', 'submit', _('Add/Save entry')); else addField ('submit', 'submit', _('Save entry')); */ // Redirect $view = 'entry'; if (isset($_GET['view'])) { switch ($_GET['view']) { case 'week': case 'day': $view = $_GET['view'];
} } if (isset($_POST['name' . $id])) { $thisone['name'] = str_replace(',', '.', $_POST['name' . $id]); } if (isset($_POST['mva_eks' . $id]) && $_POST['mva_eks' . $id] == 1) { $thisone['mva_eks'] = true; } else { $thisone['mva_eks'] = false; } $thisone['mva'] = (double) $thisone['mva'] / 100; ${$field['var']}[$i] = $thisone; } } ${$field}['var'] = invoiceContentNumbers(${$field}['var']); addValueArray($field['var'], ${$field}['var']); break; case 'resourcenum': if (isset($_POST[$field['var']])) { ${$field}['var'] = $_POST[$field['var']]; } addValue($field['var'], ${$field}['var']); break; case 'empty': case 'submit1': case 'submit2': case 'submit3': // Ignore break; default: echo 'System error! New input field is detected, <b>' . $field['var'] . '</b>. This must be made in <b>' . __FILE__ . '</b>. System have halted.';