Автор работы: Пользователь скрыл имя, 07 Декабря 2010 в 06:32, Не определен
Курсовая работа
<tr><td class="left"><table class="left1" >
<tr class="avt">
<td><? include("aut.php");?></td>
</tr>
<tr class="add"><td><?
include("add.php");?></td></
<tr><td></td><
<td class="right">
<table class="left1"><tr class="vac"><td>
<form action=addvac.php method="post" name="addvac" id="addvac"><center>
<Table class="reg" border="3" bgcolor="#EFF7B3" >
<tr>
<td><center><br><
<table width=90%>
<tr><td>
<td><input name="D" type="text" value="" size="30"><br><br></td>
</tr>
<tr><td>
<td><input name="ZP" type="text" value="" size="30"></td>
</tr>
<tr><td>
<td><select name="obr">
<
<
<
</
</tr>
<tr><td>Опыт
<td><input name="opit" type="text" value="" size="30"></td>
</tr>
<tr><td>График работы</td>
<td><select name="GR">
</
</tr>
<tr><td>
<td><input name="Age" type="text" value="" size="3"></td>
</tr>
<tr><td>
<td><textarea name="KI" cols ='20' rows = '3'></textarea></td></tr></td>
</tr>
<tr><td>
<td><textarea name="DI" cols ='30' rows = '5'></textarea></td></tr></td>
</tr>
</table><br><
<input type="submit" name='b1' value="Отправить">
<input type="Reset" name='b2' value="Сбросить">
<br><br></td><
</Table>
<input name="gogogo" type="hidden" id="gogogo" value="fromaddvac">
<input name="LO1" type="hidden" value="<?echo $_SESSION['user']?>">
</form></td></tr></
</table>
<? include("niz.php");?>
addr.php
<?php session_start();
include("top.php");
?>
<table class="main">
<tr><td class="left"><table class="left1" >
<tr class="avt">
<td><? include("aut.php");?></td>
</tr>
<tr class="add"><td><?
include("add.php");?></td></
<tr><td></td><
<td class="right">
<table class="left1"><tr class="vac"><td>
<form action="addrez.php" method="post" name="addrez" id="addrez"><center>
<Table class="reg" border="3" bgcolor="#EFF7B3" >
<tr>
<td><center><br><
<table width=90%>
<tr><td>
<td><input name="F" type="text" value="" size="30"><br><br></td>
</tr>
<tr><td>Имя<
<td><input name="I" type="text" value="" size="30"></td>
</tr>
<tr><td>
<td><input name="O" type="text" value="" size="30"></td>
</tr>
<tr><td>
<td><select name="obr">
<
<
<
</
</tr>
<tr><td>
<td><input name="cpec" type="text" value="" size="30"></td>
</tr>
<tr><td>Стаж работы<font color="red" size="-2"></font><br><br></td>
<td><input name="opit" type="text" value="" size="30"></td>
</tr>
<tr><td>
<td><input name="age" type="text" value="" size="3"></td>
</tr>
<tr><td>
<td><textarea name="KI" cols ='20' rows = '3'></textarea></td></tr></td>
</tr>
<tr><td>
<td><textarea name="DI" cols ='30' rows = '5'></textarea></td></tr></td>
</tr>
</table><br><
<input type="submit" name='b1' value="Отправить">
<input type="Reset" name='b2' value="Сбросить">
<br><br></td><
</Table>
<input name="gogogo" type="hidden" value="fromaddrez">
<input name="LO" type="hidden" value="<?echo $_SESSION['user']?>">
</form></td></tr></
</table>
<? include("niz.php");?>
addrez.php
<html>
<head>
<title></title>
</head>
<body background="fon2.jpg">
<? include ("db_connect.php");
$F=$_POST["F"];
$I=$_POST["I"];
$O=$_POST["O"];
$obr=$_POST["obr"];
$cpec=$_POST["cpec"];
$opit=$_POST["opit"];
$Age=$_POST["age"];
$KI=$_POST["KI"];
$DI =$_POST["DI"];
$LO=$_POST["LO"];
echo "$go";
echo "$F";
echo "$I";
echo "$O";
echo "$obr";
echo "$cpec";
echo "$opit";
echo "$Age";
echo "$KI";
echo "$DI";
$error=false;
if ($obr == "" or $obr == "" or $KI == "")
{$error=true;
print "<div align=center><font size=3>Ошибка!!!<br>
Заполните пожалуйста все поля и <ahref=index.php>попробуйте еще раз</a></font></div>"; echo 'Привет '.$LO.'!';
}
else { echo 'Привет '.$_SESSION['user'].'!';
$query = "select * from rez where F like \"".$F."\"";
$result=mysql_
$query="INSERT INTO `rez` ( `id_rez` , `F` ,`I` ,`O` ,`obr` , `cpec` ,`opit` , `Age` , `KI` , `DI`, `Log`)
VA
$result=
print "<HTML><HEAD>\n";
print "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=index.php'>\n";
print "</HEAD></HTML>\n";
}?>
</body></html>
addvac.php
<html>
<head>
<title></title>
</head>
<body background="fon2.jpg">
<? include ("db_connect.php");
$D=$_POST["D"];
$ZP=$_POST["ZP"];
$obr=$_POST["obr"];
$opit=$_POST["opit"];
$GR=$_POST["GR"];
$Age=$_POST["Age"];