Автор работы: Пользователь скрыл имя, 07 Декабря 2010 в 06:32, Не определен
Курсовая работа
$KI=$_POST["KI"];
$DI =$_POST["DI"];
$LO1 =$_POST["LO1"];
$d = time();
$data = date('d - F - Y',$d);
echo "$go";
$error=false;
if ($D == "" or $KI == "" )
{$error=true;
print "<div align=center><font size=3>Ошибка!!!<br>
Заполните пожалуйста все поля и <ahref=index.php>попробуйте еще раз</a></font></div>";
}
else {$query = "select * from vacansii where D like \"".$D."\"";
$result=mysql_
$query="INSERT INTO `vacansii` ( `id_vac` , `D` ,`ZP` ,`obr` , `opit` ,`GR` , `Age` , `KI` , `DI` , `Data`, `Log`)
VA
$result=
print "<HTML><HEAD>\n";
print "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=index.php'>\n";
print "</HEAD></HTML>\n";
}?>
</body>
</html>
search.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><td height="10%" valign="top" >
<center><u><font
color="#1020F0"></font></u><
<form action="search.php" method="POST" >
<Table >
<tr><td
colspan=3><center>Должность<
<tr><td>Выбрать</td>
<td><select name="d0">
</
</tr>
<tr><td>Написать</
<td><input name="d" type="text" value="" size="10"></td>
<td><input type='checkbox' name='d2'></td></table>
<Table >
<tr><td
colspan=3><center>График
<tr><td colspan=3
</
</tr>
</table>
<input type="submit" name='submit' value="Найти">
</form></td></
<tr><td valign="top">
<? include ('db_connect.php');
$dol=$_POST['dol'];
$d1=$_POST['d1'];
$d2=$_POST['d2'];
if ($dol=='on')
{if ($d1=='on'){$P=$_POST['d0'];}
else {if ($d2=='on') {$P=$_POST['d'];}};
$s="select * from vacansii where (D='$P')";
$r3=mysql_query($s);
$n3=mysql_num_rows($r3);
echo ": ".$n3;
echo "<center><table border=2 width=100% >";
echo
"<tr bgcolor=ffffaa><td width=30%>Должность</td><td>
while
($myrow=mysql_fetch_array($r3)
{
echo "<tr bgcolor=eeeeee>";
if ($myrow['Log']!==$_SESSION['
else {if ($myrow['Log']==$_SESSION['
echo "<td width=550><a href='".$put."=".$myrow['id_
echo "<td>".$myrow['ZP']."</td>";
echo "<td>".$myrow['Data']."</td>";
echo "</tr>";
}
echo "</table></center>";}
else {if ($_POST['gra']=='on')
{$G=$_POST['g0'];}
$s="select * from vacansii where (GR='$G')";
$r3=mysql_query($s);
$n3=mysql_num_rows($r3);
echo "Результатов поиска: ".$n3;
echo "<center><table border=2 width=100% >";
echo
"<tr bgcolor=ffffaa><td width=30%>Должность</td><td>
while
($myrow=mysql_fetch_array($r3)
{echo "<tr bgcolor=eeeeee>";
if ($myrow['Log']!==$_SESSION['
else {if ($myrow['Log']==$_SESSION['
echo "<td width=550><a href='".$put."=".$myrow['id_
echo "<td>".$myrow['ZP']."</td>";
echo "<td>".$myrow['Data']."</td>";
echo "</tr>"; }
echo "</table></center>";}
echo "</td></td></tr>";
include("niz.php");?>
searchr.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><td height="10%" valign="top" >
<center><u><font
color="#1020F0"></font></u><
<form action="searchr.php" method="POST" >
<Table >
<tr><td
colspan=3><center>
<tr><td>Выбрать</td>
<td><select name="c0">
</
</tr>
<tr><td>Написать</
<td><input name="c" type="text" value="" size="10"></td>
<td><input type='checkbox' name='c2'></td></table>
<Table >
<tr><td
colspan=3><center>Образование<
<tr><td colspan=3><select name="ob0">
<
<
<
</
</tr>
</table> <input type="submit" name='submit' value="Найти">
</form></td></
<tr><td valign="top">
<? include ('db_connect.php');
$cpec=$_POST['cpec'];
$c1=$_POST['c1'];
$c2=$_POST['c2'];
if ($cpec=='on')
{if ($c1=='on'){$P=$_POST['c0'];}
else {if ($c2=='on') {$P=$_POST['c'];}};
$s="select * from rez where (cpec='$P')";
$r3=mysql_query($s);
$n3=mysql_num_rows($r3);
echo "Результатов поиска: ".$n3;
echo "<center><table border=2 width=100% >";
echo
"<tr bgcolor=ffffaa><td width=50% height=10>Специальность</td><
while
($myrow=mysql_fetch_array($r3)
{
echo "<tr bgcolor=eeeeee>";
if ($myrow['Log']!==$_SESSION['
else {if ($myrow['Log']==$_SESSION['
echo "<td width=550><a href='".$put."=".$myrow['id_
echo "<td>".$myrow['F']." ".$myrow['I']." ".$myrow['O']."
</td>";
echo "</tr>";
}
echo "</table></center>";}
else {if ($_POST['ob']=='on')
{$G=$_POST['ob0'];}
$s="select * from rez where (obr='$G')";
$r3=mysql_query($s);
$n3=mysql_num_rows($r3);
echo "Результатов поиска: ".$n3;
echo "<center><table border=2 width=100% >";
echo
"<tr bgcolor=ffffaa><td width=50% height=10>Специальность</td><
while
($myrow=mysql_fetch_array($r3)
{
echo "<tr bgcolor=eeeeee>";
if ($myrow['Log']!==$_SESSION['
else {if ($myrow['Log']==$_SESSION['
echo "<td width=550><a href='".$put."=".$myrow['id_
echo "<td>".$myrow['F']." ".$myrow['I']." ".$myrow['O']."
</td>";
echo "</tr>";
}
echo "</table></center>";}
echo "</td></td></tr>";
include("niz.php");?>
reg.php