<?
require ("../page.inc");
class ServicesPage extends Page
{
var $row2buttons = array("Translation" => "translation.php",
"Travel" => "travel.php",
"Visa" => "visa.php");
function Display()
{
echo "<html>\n<head>\n";
$this -> DisplayTitle();
$this -> DisplayKeywords();
$this -> DisplayContentdescription();
$this -> DisplayStyles();
echo "</head>\n<body cellspacing=0 cellpadding=0 leftmargin=0 rightmargin=0 topmargin=0 marginheight=0 marginwidth=0>\n";
$this -> DisplayHeader();
$this -> DisplayMenu($this->buttons);
$this ->Display2Menu($this->row2buttons);
echo $this->content;
$this->DisplayImage();
$this -> DisplayFooter();
echo "</body>\n</html>\n";
}
function Display2Menu($row2buttons)
{
echo "<table width = \"100%\" height=15px bgcolor = #99cc99 cellpadding = 0 cellspacing = 4>\n";
echo " <tr>\n";
//calculate button size
$width = 100/count($row2buttons);
while (list($name, $url) = each($row2buttons))
{
$this -> Display2Button($width, $name, $url, !$this->IsURLCurrentPage($url));
}
echo " </tr>\n";
echo "</table>\n";
}
function IsURLCurrentPage($url)
{
if(strpos( $GLOBALS["SCRIPT_NAME"], $url )==false)
{
return false;
}
else
{
return true;
}
}
function Display2Button($width, $name, $url, $active = true)
{
if ($active)
{
echo "<td width = \"$width%\">
<a href = \"$url\">
<img src = \".../images/arrow2row.jpg\" height=15 width=15 alt = \"$name\" border = 0></a>
<a href = \"$url\"><span class=menu>$name</span></a></td>";
}
else
{
echo "<td width = \"$width%\">
<img src = \".../images/URLarrow2row.jpg\" height=15 width=15 alt = \"$name\" border = 0>
<span class=menu>$name</span></td>";
}
}
}
$services = new ServicesPage();
$file ="images.txt";
$x = file("$file");
$y = rand(0, sizeof($x)-1);
echo $x[$y];
$content = "<table background color=#ffffff border=0 cellspacing=20 cellpadding=20>
<tr><td>
<table width=75% border=0 cellspacing=0 cellpadding=20>
<tr>
<td>
<p class=\"header\">Tours
</p>
<span class=\"header\"> Personal tours are available in the following cities:</span> .<br><br>
Our tours include:<br>
<span class=\"header\">Invitation Visa Support Letter</span><br>
<br><br>
<br>
</td>
<td valign=\"top\">
$file
</td>
</tr>
</table>
<form method=\"get\" action=\"http://www.....com/cgi-bin/parse.pl\">
<input type=\"hidden\" name=\"recipient\" value=\"travel@....com\">
<input type=\"hidden\" name=\"missing_fields_redirect\" value=\"http://www.....com/error.php\">
<input type=\"hidden\" name=\"redirect\" value=\"http://www.....com/order_tour.php\">
<input type=\"hidden\" name=\"print_blank_fields\" value=0>
<input type=\"hidden\" name=\"subject\" value=\"WO Tour Plan\">
<input type=\"hidden\" name=\"required\" value=\"email,realname\">
<span class=\"header\">To signify that you agree type your full name here:</span><br>
<input type=\"text\" size=45 name=\"realname\">
<br>
<b>Your Email Address:</b><br><input type=\"text\" size=45 name=\"email\"></b><br>
<b>What date would you prefer to arrive and depart?</b>
<br><input type=\"text\" size=45 name=\"Travel dates\"><br>
<b>Cities you wish to visit in order of preference and other comments:</b> <br>
<TEXTAREA name=\"Cities and comments\" rows=5 cols=50></TEXTAREA>
<br><br>
<input type=\"submit\" value=\"Click here to complete your tour reservations\">
<input type=\"reset\" value=\"Reset\"> <br><br>
When you submit your order you will be taken to our order page
where you select the cities for your visit and make a secure transaction.
</form>
</td></tr></table>";
$services ->SetContent($content);
$services ->Display();
?>