/*
             * Count
             */
            if (isset($_GET["count"]) && ($tmp_input = clean_input($_GET["count"], array("int")))) {
                $PROCESSED["count"] = $tmp_input;
            }
            if (isset($_GET["group_id"]) && ($tmp_input = clean_input($_GET["group_id"], "int"))) {
                $PROCESSED["group_id"] = $tmp_input;
            }
            break;
        case 1:
        default:
            continue;
            break;
    }
    search_subnavigation("explorer");
    ?>
	<h1>Curriculum Explorer</h1>
	<form action="<?php 
    echo ENTRADA_RELATIVE;
    ?>
/curriculum/explorer" method="GET">
		<input type="hidden" name="step" value="2" />
		<table style="width: 100%" cellspacing="1" cellpadding="1" border="0">
			<colgroup>
				<col style=" width: 20%" />
				<col style=" width: 22%" />
				<col style=" width: 5%" />
				<col style=" width: 20%" />
				<col style=" width: 23%" />
			</colgroup>
            /**
             * Check if pv variable is set and see if it's a valid page, other wise page 1 it is.
             */
            if (isset($_GET["pv"])) {
                $PAGE_CURRENT = (int) trim($_GET["pv"]);
                if ($PAGE_CURRENT < 1 || $PAGE_CURRENT > $TOTAL_PAGES) {
                    $PAGE_CURRENT = 1;
                }
            } else {
                $PAGE_CURRENT = 1;
            }
            $PAGE_PREVIOUS = $PAGE_CURRENT > 1 ? $PAGE_CURRENT - 1 : false;
            $PAGE_NEXT = $PAGE_CURRENT < $TOTAL_PAGES ? $PAGE_CURRENT + 1 : false;
        }
    }
    search_subnavigation("search");
    ?>
	<h1>Curriculum Search</h1>
	<form action="<?php 
    echo ENTRADA_RELATIVE;
    ?>
/curriculum/search" method="get" class="form-horizontal">
		<?php 
    if ($SEARCH_MODE == "timeline") {
        echo "<input type=\"hidden\" name=\"m\" value=\"timeline\" />\n";
    }
    ?>
		<div class="control-group" style="margin-bottom:5px">
			<label class="control-label">Boolean Search Term:</label>
			<div class="controls">
				<input type="text" style="width:300px" id="q" name="q" value="<?php