<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Карта сайта</title>
<link href="file:///C|/WebServers/home/localhost/www/agrofirmapromish/style.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<style type="text/css">
<!--
body { margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(Pic/14.jpg);
background-repeat: repeat;
font-family:"Times New Roman", Times, serif, Tahoma}
-->
</style></head>
<body class="body-2">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table-1">
<tr align="left" valign="top">
<td width="10%"> </td>
<td><script type="text/JavaScript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1020','height','850','src','flash/karta','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/karta' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1020" height="850">
<param name="movie" value="flash/karta.swf">
<param name="quality" value="high">
<embed src="flash/karta.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1020" height="850"></embed>
</object></noscript></td>
<td> </td>
</tr>
</table>
</body>
</html>
<?php
session_start ();
$username=$_POST['username'];
$password=$_POST['password'];
if (!isset($_POST['username'])&&!isset($_POST['password']))
{
// Ввод имени и пароля
?>
<style type="text/css">
<!--
.стиль1 {font-family: Verdana, Arial, Helvetica, sans-serif, Tahoma}
-->
</style>
<table width="184" height="123" border = 0 cellspacing = 0>
<form action = 'login-1.php' method = 'post'>
<tr>
<th height="32" colspan = 2 bgcolor='#9BEE9F' class="p-1 стиль1">Авторизация: </th>
</tr>
<tr>
<td width="55" height="34">Логин</td>
<td width="180"><input type = 'text' name = 'username' value = "" maxlength = 20 size = 20></td>
</tr>
<tr>
<td>Пароль</td>
<td><input type = 'password' name = 'password' value = "" maxlength = 20 size = 20></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Войти">
</label></td>
</tr>
</form>
</table>
<br/>
<?php
}
else
{
require ('bd.php');
$sql="select count(*) from admin where username='$username' and password='$password'";
$result=mysql_query($sql);
if (!$result)
{
echo "Невозможно выполнить запрос";
exit;
}
$row=mysql_fetch_array($result);
$count=$row [0];
if ($count > 0)
{
// Комбинация пароля и имени верна
$_SESSION['valid_user']= $username;
mysql_close ($mysql);
Header ("Location: zakaz.php");
}
else
{
?>
<link href="style.css" rel="stylesheet" type="text/css">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="table-1"> <?php echo "Введеные вами пароль или логин неверны."; ?>
<br/> <a href="zakaz.php">Попробовать еще раз</a><br/>
<a href="index.php">Перейти на главную страницу</a><br/>
</td>
</tr>
</table>
<?php
}
}
?>
<?php
session_start ();
$username=$_POST['username'];
$password=$_POST['password'];
if (!isset($_POST['username'])&&!isset($_POST['password']))
{
// Ввод имени и пароля
?>
<style type="text/css">
<!--
.стиль1 {font-family: Verdana, Arial, Helvetica, sans-serif, Tahoma}
-->
</style>
<table width="184" height="123" border = 0 cellspacing = 0>
<form action = 'login-1.php' method = 'post'>
<tr>
<th height="32" colspan = 2 bgcolor='#9BEE9F' class="p-1 стиль1">Авторизация: </th>
</tr>
<tr>
<td width="55" height="34">Логин</td>
<td width="180"><input type = 'text' name = 'username' value = "" maxlength = 20 size = 20></td>
</tr>
<tr>
<td>Пароль</td>
<td><input type = 'password' name = 'password' value = "" maxlength = 20 size = 20></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Войти">
</label></td>
</tr>
</form>
</table>
<br/>
<?php
}
else
{
require ('bd.php');
$sql="select count(*) from admin where username='$username' and password='$password'";
$result=mysql_query($sql);
if (!$result)
{
echo "Невозможно выполнить запрос";
exit;
}
$row=mysql_fetch_array($result);
$count=$row [0];
if ($count > 0)
{
// Комбинация пароля и имени верна
$_SESSION['valid_user']= $username;
mysql_close ($mysql);
Header ("Location: zakaz.php");
}
else
{
?>
<link href="style.css" rel="stylesheet" type="text/css">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="table-1"> <?php echo "Введеные вами пароль или логин неверны."; ?>
<br/> <a href="zakaz.php">Попробовать еще раз</a><br/>
<a href="index.php">Перейти на главную страницу</a><br/>
</td>
</tr>
</table>
<?php
}
}
?>
<?php
session_start ();
$old_user= $_SESSION['valid_user'];
unset ($_SESSION['valid_user']);
session_destroy ();
if (!empty($old_user))
{
?>
<link href="style.css" rel="stylesheet" type="text/css">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="table-1"> <?php echo "<br> Вы не авторизованы <br> "; ?>
<br/> <a href="zakaz.php">Попробовать еще раз</a><br/>
<a href="index.php">Перейти на главную страницу</a><br/>
</td>
</tr>
</table>
<?php }
?>
News.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Новости</title>
<link href="file:///C|/WebServers/home/localhost/www/agrofirmapromish/style.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(Pic/14.jpg);
background-repeat: repeat;
font-family:"Times New Roman", Times, serif, Tahoma
}
-->
</style></head>
<body class="body-2">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table-1">
<tr align="left" valign="top">
<td width="10%"> </td>
<td><script type="text/JavaScript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1020','height','850','src','flash/news','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/news' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1020" height="850">
<param name="movie" value="flash/news.swf">
<param name="quality" value="high">
<embed src="flash/news.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1020" height="850"></embed>
</object></noscript></td>
<td> </td>
</tr>
</table>
</body>
</html>
O nas.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>О нас</title>
<link href="file:///C|/WebServers/home/localhost/www/agrofirmapromish/style.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(Pic/14.jpg);
background-repeat: repeat;
font-family:"Times New Roman", Times, serif, Tahoma
}
-->
</style></head>
<body class="body-2">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table-1">
<tr align="left" valign="top">
<td width="10%"> </td>
<td><script type="text/JavaScript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1020','height','1040','src','flash/o_nas','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/o_nas' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1020" height="1040">
<param name="movie" value="flash/o_nas.swf">
<param name="quality" value="high">
<embed src="flash/o_nas.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1020" height="1040"></embed>
</object></noscript></td>
<td> </td>
</tr>
</table>
</body>
</html>
Produk.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Продукция</title>
<link href="file:///C|/WebServers/home/localhost/www/agrofirmapromish/style.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-image: url(Pic/14.jpg);
background-repeat: repeat;
font-family:"Times New Roman", Times, serif, Tahoma
}
-->
</style>
</head>
<body class="body-2">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table-1">
<tr align="left" valign="top">
<td width="10%"> </td>
<td><script type="text/JavaScript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','1020','height','850','src','flash/produk','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/produk' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1020" height="850">
<param name="movie" value="flash/produk.swf">
<param name="quality" value="high">
<embed src="flash/produk.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1020" height="850"></embed>
</object></noscript></td>
<td> </td>
</tr>
</table>
</body>
</html>
<?php
$username=$_POST['username'];
$password=$_POST['password'];
$nasel_punkt=$_POST['nasel_punkt'];
$street=$_POST['street'];
$korp=$_POST['korp'];
$dom=$_POST['dom'];
$kvar=$_POST['kvar'];
$naz_fir=$_POST['naz_fir'];
$krat_naz_fir=$_POST['krat_naz_fir'];
$fam=$_POST['fam'];
$name=$_POST['name'];
$otch=$_POST['otch'];
$tel=$_POST['tel'];
if (!isset($_POST['username'])&&!isset($_POST['password'])&&!isset($_POST['nasel_punkt'])
&&!isset($_POST['street']) &&!isset($_POST['korp']) &&!isset($_POST['dom'])
&&!isset($_POST['kvar']) &&!isset($_POST['naz_fir']) &&!isset($_POST['krat_naz_fir'])
&&!isset($_POST['fam']) &&!isset($_POST['name']) &&!isset($_POST['otch'])
&&!isset($_POST['tel']))
{ ?><title>Регистрация</title>
<table width="669" height="232" border = 0 cellspacing = 0 background="Pic/14.jpg">
<form action = 'registr.php' method = 'post'>
<tr>
<th height="32" colspan = 2 bgcolor='#9BEE9F' class="p-1">Регистрация</th>
</tr>
<tr>
<td width="163"> Логин</td>
<td width="502"><input type = 'text' name = 'username' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Пароль </td>
<td><input type = 'text' name = 'password' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td> Населенный пункт </td>
<td><input type = 'text' name = 'nasel_punkt' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td> Улица </td>
<td><input type = 'text' name = 'street' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Корпус </td>
<td><input type = 'text' name = 'korp' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Дом </td>
<td><input type = 'text' name = 'dom' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td> Квартира / Офис </td>
<td><input type = 'text' name = 'kvar' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<th height="32" colspan = 2 bgcolor='#9BEE9F' class="p-1">если вы представляете юридическое лицо, то заполните следующие поля </th>
</tr>
<tr>
<td>Полное название фирмы</td>
<td><input type = 'text' name = 'naz_fir' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Краткое название фирмы</td>
<td><input type = 'text' name = 'krat_naz_fir' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<th height="32" colspan = 2 bgcolor='#9BEE9F' class="p-1">если вы представляете физическое лицо, то заполните следующие поля </th>
</tr>
<tr>
<td>Фамилия</td>
<td><input type = 'text' name = 'fam' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Имя</td>
<td><input type = 'text' name = 'name' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td>Отчество</td>
<td><input type = 'text' name = 'otch' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td> Телефон </td>
<td><input type = 'text' name = 'tel' value = "" maxlength = 40 size = 40></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="Зарегистрироваться">
</label></td>
</tr>
</form>
</table>
<?php
}
else
{
if (!username||!password||!$nasel_punkt||!$street||!$korp||!$dom||!$kvar||!$$naz_fir||!$krat_naz_fir
||!$fam||!$name||!$otch||!$tel)
{
echo "Не все поля заполнены. Вернитесь и заполните все поля";
?>
<br/> <a href="registr.php">Побробовать еще раз</a><br/>
<a href="zakaz.php"> Вернуться и Интернет - магазин</a><br/>
<?php
}
if (!get_magic_quotes_gpc())
{
$username= addslashes($username);
}
require ('bd.php');
/*
$query= "insert into dok_post (data, nom_urid_face) values ('".$data."', '".$nom_urid_face."')";
$result= mysql_query($query) or die ("Ошибка при выполнении запроса:" .mysql_error());
$nom_dok_post= mysql_insert_id ();
$query= "insert into produkt (nazv, sort) VALUES ('".$nazv."', '".$sort."')";
$result= mysql_query($query) or die ("Ошибка при выполнении запроса:" .mysql_error());
$nom_produk= mysql_insert_id ();
$query= "insert into poz_dok (kol_vo_produk, price_edin, nom_produk, nom_ed_izm, nom_ed_izm1,
nom_dok_post) values ('".$kol_vo_produk."', '".$price_edin."', '".$nom_produk."'
, '".$nom_ed_izm."', '".$nom_ed_izm1."', '".$nom_dok_post."')";
$result= mysql_query($query) or die ("Ошибка при выполнении запроса:" .mysql_error());
if ($result)
{
echo " Данные успешно добавлены"; ?>
<a href="zakaz.php">Перейти на страну Интернет - магазина </a><br/>
<?php */
}
?>