$list = new GrlxList();
$form = new GrlxForm();
$marker_type = new GrlxMarkerType();
$var_list = array('marker_type_id', 'new_marker_name', 'delete_id');
if ($var_list) {
    foreach ($var_list as $key => $val) {
        ${$val} = register_variable($val);
    }
}
// Folder in which we keep ad images.
// $image_path = $milieu_list['directory']['value'].'/assets/images';
/*****
 * Updates
 */
if ($_GET && $delete_id) {
    $success = $marker_type->deleteMarkerType($delete_id);
    $marker_type->resetMarkerTypes();
}
if ($success && $delete_id) {
    $alert_output = $message->alert_dialog('Marker type deleted.');
}
/*****
 * Display
 */
$marker_type_list = $marker_type->getMarkerTypeList();
if ($marker_type_list) {
    $heading_list[] = array('value' => 'Level', 'class' => null);
    $heading_list[] = array('value' => 'Title', 'class' => null);
    $heading_list[] = array('value' => 'Total markers', 'class' => null);
    $heading_list[] = array('value' => 'Actions', 'class' => null);
    $edit_link = new GrlxLinkStyle();