Просмотр файла include/qt.php

Размер файла: 1.98Kb
<?
$p = intval($_GET['t']);
$c = intval($_GET['c']);
	if($version == "wml")
	{
			header("Content-type: text/vnd.wap.wml; charset=utf-8");
			header("Cache-Control: no-cache");
			echo(doctype("Перейти к[1-".$c."]").$tag);
			echo("Читать с[1-".$c."]:".$tagC."<input type=\"text\" name=\"ss\" size=\"5\" format=\"*N\" /><br />\r\n");
			echo($tag."<a accesskey=\"1\" href=\"./?p=4&amp;v=wml&amp;s=\$(ss)&amp;sid=".$sid."&amp;t=".$p."\">Перейти (1)</a><br />\r\n");
			echo("<a accesskey=\"2\" href=\"./?p=4&amp;v=wml&amp;sid=".$sid."&amp;t=".$p."\">Назад (2)</a>\r\n");
			echo($tagC."</p></card></wml>");
	} elseif($version == "xhtml")
	{
			header("Content-type: text/html; charset=utf-8");
			header("Last-Modified:".gmdate("D, d M Y H:i:s")." GMT");
   header("Cache-Control: no-cache, must-relative");
			echo('<html>
<head>
<title>Перейти к[1-'.$c.']</title>
</head>
<body bgcolor="'.$style['background'].'" link="'.$style['link'].'" vlink="'.$style['link'].'" text="#000000">
<form action="./?p=4&amp;v=xhtml&amp;sid='.$sid.'&amp;t='.$p.'" method="get">
<table align="center" border="0" cellspacing="1" cellpadding="5" width="350">
<tr align="center" bgcolor="'.$style['title'].'"><td colspan="2">
<font color="#FFFFFF"><b>Перейти к[1-'.$c.']</b></font>
</td></tr>
<tr bgcolor="'.$style['bottom'].'"><td colspan="2">
<tr bgcolor="'.$style['text'].'">
<td>'.$tag.'Читать с[1-'.$c.']:'.$tagC.'</td><td><input type="text" name="ss" size="5" format="*N" /></td></tr>
<tr bgcolor="'.$style['text'].'"><td align="center" colspan="2">
<input type="hidden" name="p" value="4" />
<input type="hidden" name="t" value="'.$p.'" />
<input type="hidden" name="sid" value="'.$sid.'" />
<input type="hidden" name="v" value="xhtml" />
<input type="submit" value="Перейти" />
</td></tr>
<tr bgcolor="'.$style['bottom'].'"><td colspan="2">'.$tag.'
<a href="./?p=4&amp;v=xhtml&amp;sid='.$sid.'&amp;t='.$p.'">Назад</a>
'.$tagC.'</td></tr>
</table>
</form>
</body></html>');
	}
?>