Разработка сайта туристического агентства "Интер-Транстур"

Физическая модель данных. Разработка структуры системы, описание алгоритмов. Разработка интерфейса взаимодействия пользователя. Макет сайта туристического агентства, способы доступа к данным. Требования к программе, стадии и этапы разработки, листинг.

Рубрика Программирование, компьютеры и кибернетика
Вид дипломная работа
Язык русский
Дата добавления 03.05.2012
Размер файла 4,4 M

Отправить свою хорошую работу в базу знаний просто. Используйте форму, расположенную ниже

Студенты, аспиранты, молодые ученые, использующие базу знаний в своей учебе и работе, будут вам очень благодарны.

echo "<div style=\"float:left\">";

echo "<div style=\"background:url(image/papirus_no_meny_02.png); width:716px; height:48px;\"></div>";

echo "<div style=\"background:url(image/papirus_no_meny_04.jpg); width:716px; height:848px;\">";

echo "<div style=\"z-index:2;position:absolute; margin-top:80px; margin-left:50px; width:600px;\">";

$string = substr($kontent,$i*2504,2504);

echo "<font COLOR=\"#000000\" size=\"4\" style=\"font-family:font-family:Georgia, 'Times New Roman', Times, serif\">$string</font>";

echo "</div>";

echo "</div>";

echo "<div style=\"background:url(image/papirus_no_meny_05.png); width:716px; height:148px;\"></div>";

echo "</div>";

echo "<div style=\"float:left; background:url(image/papirus_03.png); width:144px; height:1044px;\"></div>";

echo "</div>";

}

}

?>

Index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ИНТЕР-ТРАНСТУР</title>

<script language="javascript" src="img.js">

</script>

<script language="javascript" src="preload.js">

</script>

<script language="javascript">

function preload(images) {

if (typeof document.body == "undefined") return;

try {

var div = document.createElement("div");

var s = div.style;

s.position = "absolute";

s.top = s.left = 0;

s.display = "none";

document.body.appendChild(div);

for (var i = 0; i < images.length; i++) div.innerHTML += "<img src=\"" + images[i] + "\" />";

} catch(e) {

document.write("Error");

}

}function redir()

{

window.location.href = "main.php";

}

var possition = 200;

var pos = true;

//onload=redir()

</script>

<LINK rel="stylesheet" type="text/css" href="Css/style.css" />

</head>

<body bgcolor='Black' onload="redir()" >

<div id="krabic" style="position:absolute; width:300px; height:207px; left:200px; top:200px; background:url(image/Krab.gif)"></div>

<div style="position:absolute; left:20%; top:65%;">

<div style="float:left;background:url(image/load.jpg); width:500px; height:200px;"></div>');

<div style=" float:left;background:url(share.gif); width:200px; height:200px;"></div>');

</div>

<script language="javascript">

function resize()

{

if (pos == true)

{

document.getElementById('krabic').style.left=possition+'px';

possition = possition + 1;

if (possition == 650)

pos = false

}else

{

document.getElementById('krabic').style.left=possition+'px';

possition = possition - 1;

if (possition == 200)

pos = true

}

setTimeout('resize()',1);

}

resize();

preload(arr);

</script>

</body>

</hml>

Img.js

var arr = new Array("image/background.jpg","image/chernic.gif","image/compas.gif","image/Krab.gif","image/load.jpg","image/menu_clk.jpg","image/menu.jpg", "image/pero.gif","image/share.gif","image/logo.png","image/tube.gif","image/maps_01.jpg","image/maps_01.jpg","image/maps_01.png","image/maps_02.png","image/maps_03.png","image/maps_04.jpg","image/maps_05.jpg","image/maps_06.jpg","image/maps_07.jpg","image/maps_08.jpg","image/maps_09.jpg","image/maps_10.jpg","image/maps_11.png","image/maps_12.jpg","image/maps_13.png","image/maps_14.png","image/maps_15.jpg","image/maps_16.png","image/maps_17.png","image/papirus_01.png","image/papirus_02.png","image/papirus_03.png","image/papirus_04.jpg","image/papirus_05.jpg","image/papirus_06.jpg","image/papirus_07.jpg","image/papirus_08.jpg","image/papirus_09.jpg","image/papirus_10.jpg","image/papirus_11.jpg","image/papirus_12.png");

country_description.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<font style="font-family:Antikvar URL('font/Antikvar.ttf')"></font>

<title>Интер-транстур</title>

<!--[if IE 6]><script type="text/javascript" src="unitpngfix.js"></script></script><![endif]-->

<script language="javascript" src="img.js">

</script>

<script language="javascript" src="preload.js">

</script>

<script language="javascript">

function over(id)

{

document.getElementById(id).style.width=190+'px';

document.getElementById(id).style.height=165+'px';

}

function out(id)

{

document.getElementById(id).style.width=170+'px';

document.getElementById(id).style.height=150+'px';

}

function clk(id)

{

myWin= open("", "displayWindow",

"width=700,height=500,status=no,toolbar=no,menubar=no");

// ??????? ?????? document ??? ??????????? ??????

myWin.document.open();

// ???????????? ????? ????????

myWin.document.write("<html><head><title>Image");

myWin.document.write("</title></head><body>");

myWin.document.write("<center><font size=+3>");

myWin.document.write('<img src='+document.getElementById(id).src+' width=700 height=500>');

myWin.document.write("</font></center>");

myWin.document.write("</body></html>");

// ??????? ???????? - (?? ?? ????!)

myWin.document.close();

}

</script>

</head>

<LINK rel="stylesheet" type="text/css" href="Css/style.css" />

<body background="image/background.jpg">

<div style="margin:0px auto; width:992px;">

<div style="background:url(image/papirus_01.png); width:132px; height:1044px; float:left;"><div style="position:absolute; z-index:2; margin-top:200px;"><img src="image/chernic.gif" /></div></div>

<div style="float:left">

<div style="clear:both; background:url(image/papirus_02.png); width:716px; height:48px;"></div>

<div style="clear:both; float:left"><a href="main.php" ><img src="image/papirus_04.jpg" border=0 /></a></div>

<div style="float:left"><a href="papirus.php?content=country" ><img src="image/papirus_05.jpg" border=0 /></a></div>

<div style="float:left"><a href="papirus.php?content=spec" ><img src="image/papirus_06.jpg" border=0 /></a></div>

<div style="float:left"><a href="papirus.php?content=visa" ><img src="image/papirus_07.jpg" border=0 /></a></div>

<div style="float:left"><a href="papirus.php?content=contact" ><img src="image/papirus_08.jpg" border=0 /></a></div>

<div style="float:left"><a href="papirus.php?content=company" ><img src="image/papirus_09.jpg" border=0 /></a></div>

<div style="clear:both"><img src="image/papirus_10.jpg" /></div>

<div style="z-index:3; position:absolute">

<?php

$id=$_GET['id'];

mysql_connect("localhost", "intertr_admin", "Q12wtAM") or die("Could not connect to MySQL server!");

mysql_select_db("intertr_database") or die("Could not select company database!");

$query = "SET NAMES utf8";

$result = mysql_query($query);

$query = "SET CHARACTER SET utf8";

$result = mysql_query($query);

$query = "select * from Country where id_country=$id";

$result = mysql_query($query);

$country_name = mysql_result($result, 0, 'name');

echo "<div style=\"padding-left:50px;\"><font COLOR=\"#000000\" size=\"4\" style=\"font-family:font-family:Georgia, 'Times New Roman', Times, serif\">$country_name</font><br>";

$query = "select * from image_country where id_country=$id";

$result = mysql_query($query);

echo"<table width=600>";

echo"<tr>";

$image = mysql_result($result, 0, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"one\" src=$image width=175 height=150 onmouseover=\"over('one')\" onmouseout=\"out('one')\" onclick=\"clk('one')\" /></td>\n";

$image = mysql_result($result, 1, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"tow\" src=$image width=175 height=150 onmouseover=\"over('tow')\" onmouseout=\"out('tow')\" onclick=\"clk('tow')\" /></td>";

$image = mysql_result($result, 2, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"tree\" src=$image width=175 height=150 onmouseover=\"over('tree')\" onmouseout=\"out('tree')\" onclick=\"clk('tree')\" /></td>";

echo"</tr>";

echo"<tr>";

$image = mysql_result($result, 3, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"four\" src=$image width=175 height=150 onmouseover=\"over('four')\" onmouseout=\"out('four')\" onclick=\"clk('four')\"/></td>";

$image = mysql_result($result, 4, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"five\" src=$image width=175 height=150 onmouseover=\"over('five')\" onmouseout=\"out('five')\" onclick=\"clk('five')\"/></td>";

$image = mysql_result($result, 5, 'image');

echo"<td width=\"190\" height=\"165\"><img id=\"six\" src=$image width=175 height=150 onmouseover=\"over('six')\" onmouseout=\"out('six')\" onclick=\"clk('six')\"/></td>";

echo"</tr>";

echo"</table>";

$query = "select kontent from Country, kontent where id_kontent = kontent.id and id_country =$id";

$result = mysql_query($query);

$kontent = mysql_result($result, 0, 'kontent');

echo "<div style=\"width:600px;\"><font COLOR=\"#000000\" size=\"4\" style=\"font-family:font-family:Georgia, 'Times New Roman', Times, serif\">$kontent</font></div>";

echo"</div>";

mysql_close( );

?></div>

<div style="position:absolute; background:url(image/pero.gif); width:192px; height:643px; z-index:2; margin-left:660px"></div>

<div><img src="image/papirus_11.jpg" /></div>

<div style="clear:both; background:url(image/papirus_12.png); width:716px; height:148px;"></div>

</div>

<div style="float:left; background:url(image/papirus_03.png); width:144px; height:1044px;"></div>

</div>

</body>

ПРИЛОЖЕНИЕ Б

Рисунок Б.1 - Главная страница

Рисунок Б.2- Страница «Страны»

Рисунок Б.3 - Страница с информацией о стране

Рисунок Б.4 - Страница с формой заказа

Рисунок Б.5 - Страница сообщения при правильном введении данных в форму заказа

Рисунок Б.6 - Страница сообщения при неправильном введении данных в форму заказа

Рисунок Б.7 - Страница «О компании»

Размещено на Allbest.ru


Подобные документы

Работы в архивах красиво оформлены согласно требованиям ВУЗов и содержат рисунки, диаграммы, формулы и т.д.
PPT, PPTX и PDF-файлы представлены только в архивах.
Рекомендуем скачать работу.