- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
<?
//include('../root/start.php');
include('start.php');
$hotels_menu_id = GetSettingsParam('hotels_menu_id');
if ($image_id = $_GET['image_id']) {
$row = mysql_fetch_assoc(mysql_query(
'select co.id co_id, co.title co_title, ' .
'ci.id ci_id, ci.title ci_title, ' .
'h.id h_id, h.title h_title ' .
'from ' . _mysql_tbl_prefix . 'countries co ' .
'left join ' . _mysql_tbl_prefix . 'cities ci on co.id = ci.country_id ' .
'left join ' . _mysql_tbl_prefix . 'hotels h on ci.id = h.city_id ' .
'left join ' . _mysql_tbl_prefix . 'hotel_images hi on hi.hotel_id = h.id ' .
'where hi.image_id = ' . $image_id));
echo mysql_error();
# $src = '../../hotel_images/'.(int)($image_id/2000).'/'.$image_id.'.jpg';
$src = './hotel_images/' . (int) ($image_id / 2000) . '/' . $image_id . '.jpg';
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Фото отеля "<?= $row['h_title'] ?>" (<?= $row['ci_title'] . ', ' . $row['co_title'] ?>) - Туроператор</title>
</head>
<link rel="stylesheet" href="../hotel_image.css">
<body>
<table height="100%" width="100%">
<tr>
<td valign="middle" align="center">
<h1 class="hotel-image-title"><?=
'Фото отеля "<a href="../index.php?menu_id=' . $hotels_menu_id . '&hotel_id=' . $row['h_id'] . '">' . $row['h_title'] . '</a>" ' .
'(<a href="../index.php?menu_id=' . $hotels_menu_id . '&city_id=' . $row['ci_id'] . '">' . $row['ci_title'] . '</a>, ' .
'<a href="../index.php?menu_id=' . $hotels_menu_id . '&country_id=' . $row['co_id'] . '">' . $row['co_title'] . '</a>)'
?></h1>
<a href="#" onClick="window.close()"><img src="<?= $src ?>" class="hotel-image" alt="Фото отеля "<?= $row['h_title'] ?>" (<?= $row['ci_title'] . ', ' . $row['co_title'] ?>)"></a>
</td>
</tr>
</table>
</body>
</html>