예제 #1
0
            }
        }
    } else {
        // Invalid submitted values.
        $htmlFinal .= '<h1 id="mainhead">Error!</h1>
		<p class="error">Please select some datastreams for activation/de-activation/editing.</p><p><br /></p>';
    }
} else {
    if (isset($_POST['next'])) {
        $html_output = "";
        // echo "You entered next";
        $token = $_GET['token'];
        $id = $_GET['id'];
        $agent = new Agent();
        //call next search
        $xml_output = $agent->nextSearch($token);
        //print_r($xml_output);
        if ($xml_output) {
            if ($id == "activate") {
                //use activation stylesheet
                $html_output .= $agent->transform("./stylesheets/resultA.xslt", $xml_output);
            } else {
                if ($id == "deactivate") {
                    //use de-activation stylesheet
                    $html_output .= $agent->transform("./stylesheets/resultD.xslt", $xml_output);
                } else {
                    if ($id == "edit") {
                        //use edit stylesheet
                        $html_output .= $agent->transform("./stylesheets/resultE.xslt", $xml_output);
                    }
                }