$data = str_replace("PP","Ъ",$data);
$data = str_replace("F","Ф",$data);
$data = str_replace("IY","Ы",$data);
$data = str_replace("V","В",$data);
$data = str_replace("A","А",$data);
$data = str_replace("P","П",$data);
$data = str_replace("R","Р",$data);
$data = str_replace("J","О",$data);
$data = str_replace("L","Л",$data);
$data = str_replace("D","Д",$data);
$data = str_replace("J","Ж",$data);
$data = str_replace("YЕ","Э",$data);
$data = str_replace("YА","Я",$data);
$data = str_replace("S","С",$data);
$data = str_replace("M","М",$data);
$data = str_replace("I","И",$data);
$data = str_replace("T","Т",$data);
$data = str_replace("B","Б",$data);
return $data;
}
if(isset($lat) && isset($text) && $text != "") {
$text = rus_to_lat($text);
} elseif (isset($rus) && isset($text) && $text != "") {
$text = lat_to_rus($text);
}
?>
<html>
<head>
<title>SR Translite v1.0</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<style>
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px; color: #000000;
SCROLLBAR-BASE-COLOR: #EEEEEE;
SCROLLBAR-ARROW-COLOR: #888888;
SCROLLBAR-HIGHLIGHT-COLOR: #F8F8F8;
}
.p {color: #000000; font-size: 11px; font-family: Verdana, Tahoma}
a:link {font-size: 11px; color: #AA0000; font-weight: normal; text-decoration: none}
a:visited {font-size: 11px; color: #AA0000; font-weight: normal; text-decoration: none}
a:active {font-size: 11px; color: #AA0000; font-weight: normal; text-decoration: none}
a:hover {font-size: 11px; color: #FF0000; font-weight: normal; text-decoration: underline}
.myform { font-family: Tahoma; font-size: 11px; clear: none; float: none; border-style: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px}
textarea,input,select { font-family: Verdana, Tahoma; font-size: 11px; background: #FFFFFF; border: 1pt solid #CCCCCC; color: #000000 }
</style>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table width="600" border="0" cellspacing="0" cellpadding="11">
<tr>
<td width="600">
<form action="" method="post" class="myform">
<table bgcolor="#FFFFFF" width="100%" height="20" border="0" cellspacing="3" cellpadding="3" class="p">
<tr>
<td bgcolor="#F3F3F3" colspan="2" align="center"><b>SR Translite v1.0</b></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" width="15%" align="center"> Текст:</td>
<td bgcolor="#F9F9F9" width="85%" align="center"><?=$text?></td>
</tr>
<tr>
<td bgcolor="#F3F3F3" colspan="2" align="center">
<input style="width:125px;cursor:hand;" type="submit" name="lat" value="Рус > Лат" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='#FFFFFF';">
<input style="width:125px;cursor:hand;" type="submit" name="rus" value="Лат > Рус" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='#FFFFFF';"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>