if ($var_list) { foreach ($var_list as $key => $val) { ${$val} = register_variable($val); } } if ($marker_type_id) { $marker_type = new GrlxMarkerType($marker_type_id); } else { header('location:marker-type.list.php'); die; } /***** * Updates */ if ($marker_type_id && $new_title) { $success = $marker_type->saveMarkerType($marker_type_id, $new_title); $marker_type = new GrlxMarkerType($marker_type_id); } if ($success) { $link->url('marker-type.list.php'); $link->tap('Return to the type list'); $alert_output = $message->success_dialog('Marker type saved. ' . $link->paint() . '.'); } /***** * Display logic */ $view->page_title('Marker type: ' . $marker_type->markerTypeInfo['title']); $view->tooltype('chap'); $view->headline('Marker type <span>' . $marker_type->markerTypeInfo['title'] . '</span>'); $content_output .= '<form accept-charset="UTF-8" action="marker-type.edit.php" method="post">' . "\n"; $content_output .= '<input type="hidden" name="marker_type_id" value="' . $marker_type_id . '"/>' . "\n";