Exemplo n.º 1
0
$search = false;
//first handle the form
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    //get the category
    if ($_POST['category'] != 'NOT_FILLED') {
        $category = $_POST['category'];
        $category_name = $operator->Get_Category_Name($category);
        echo '<li><a href="#">' . $category_name . '</a></li>';
        $search = true;
    } else {
        $category = null;
    }
    //get the ownership
    if ($_POST['ownership'] != 'NOT_FILLED') {
        $ownership = $_POST['ownership'];
        $ownership_name = $operator->Get_Ownership_Name($ownership);
        echo '<li><a href="#">' . $ownership_name . '</a></li>';
        $search = true;
    } else {
        $ownership = null;
    }
    //get the specialization
    if ($_POST['specialization'] != 'NOT_FILLED') {
        $specialization = $_POST['specialization'];
        $specialization_name = $operator->Get_Specialization_Name($specialization);
        echo '<li><a href="#">' . $specialization_name . '</a></li>';
        $search = true;
    } else {
        $specialization = null;
    }
    //get region