$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); } } } } //echo $html_output; // create the next search page $tokenNew = $agent->getSearchToken(); if (isset($tokenNew)) { $htmlFinal .= '<form method="post" action="process.php?id=' . $id . '&token=' . $tokenNew . '">'; } else { $htmlFinal .= '<form method="post" action="process.php?id=' . $id . '">'; } $htmlFinal .= '<p align =center>'; if ($id == "activate") { $htmlFinal .= '<input type="submit" name="Action" value="Activate">'; } else { if ($id == "deactivate") { $htmlFinal .= '<input type="submit" name="Action" value="De-Activate">'; } else { if ($id == "edit") { $htmlFinal .= '<input type="submit" name="Action" value="Edit">'; }
//print_r($xml_output); if ($xml_output) { $id = $_GET['id']; if ($id == "activate") { $html_output .= $agent->transform("./stylesheets/resultA.xslt", $xml_output); } else { if ($id == "deactivate") { $html_output .= $agent->transform("./stylesheets/resultD.xslt", $xml_output); } else { if ($id == "edit") { $html_output .= $agent->transform("./stylesheets/resultE.xslt", $xml_output); } } } } $token = $agent->getSearchToken(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>FABULOUS | Search</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="all" /> <style type="text/css" media="all">@import "./include/layout.css";</style> </head> <body> <div id="document"><a name="top"></a> <div id="header"></div>