File size: 1.08Kb
<?
require_once('config.inc.php');
require_once('libs/melodies_soc.inc');
$sMelodiesContent = PlayFonMelodies($sMelodiesUrl, $iResourceId, $sMelodiesGenresExclude);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Best melodies</title>
<link rel="STYLESHEET" type="text/css" href="example.css">
</head>
<body>
<table style="width:600px;">
<tr>
<td style="width:150px;"><a href="index.php">Главная страница</a></td>
<td>
Поиск мелодий:
<form action="melodies.php">
<input type="hidden" name="region" value="<? echo REGION; ?>">
<input type="text" name="ph_query" value="<? echo (!empty($_REQUEST['ph_query'])?$_REQUEST['ph_query']:'');?>">
<input type="submit" value="Искать">
</form>
</td>
<td style="text-align:right">
<?
foreach($aRegions as $sRegion => $sRegionName){
if (REGION == $sRegion)
echo " ".$sRegionName;
else
echo " <a href='?region=".$sRegion."'>".$sRegionName.'</a>';
}
?>
</td>
</tr>
<tr>
<td colspan="3">
<?
echo $sMelodiesContent;
?>
</td>
</tr>
</table>
</body>
</html>