Автор: Пользователь скрыл имя, 12 Декабря 2010 в 15:38, курсовая работа
Цель работы:
Разработать сайт о компьютерных играх. Он должен предоставлять возможность регистрации, просмотра новостей сайта, статей и пользователей, возможность добавления новой информации и комментариев.
echo "<td bgcolor=ffffff
width=550>".$myrow['KI']."</
echo "<tr ><td bgcolor=ffffaa
height=10>Дополнительная
echo "<td bgcolor=ffffff width=550>".$myrow['DI']."</
}
echo "</table></center>";
echo
"<tr><td><a href='redact.php?id=$id'>
echo "</body>";
?>
</td></table>
</td></tr>
</table>
<? include("niz.php");?>
rezum3.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
class="vac" valign="top"><font size=5><center>Резюме</font></
<tr><td valign="top">
<? include ('db_connect.php');
$id=$_GET['id_rez'];
$sql = 'SELECT `rez`.`id_rez`, `rez`.`F`, `rez`.`I`, `rez`.`O`, `rez`.`obr`, `rez`.`cpec`, `rez`.`opit`, `rez`.`Age`, `rez`.`KI`, `rez`.`DI`'. ' FROM `rez` WHERE (`rez`.`id_rez` ='.$id.')';
$result=mysql_query($sql);
echo "<center><table border=1 width=100% >";
while
($myrow=mysql_fetch_array($
{echo "<tr ><td bgcolor=ffffaa height=10>Фамилия</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['F']."</td>
echo "<tr ><td bgcolor=ffffaa height=10>Имя</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['I']."</td>
echo "<tr ><td bgcolor=ffffaa height=10>Отчество</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['O']."</td>
echo "<tr ><td bgcolor=ffffaa height=10>Образование</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['obr']."</
echo "<tr><td bgcolor=ffffaa height=10>Специальность</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['cpec']."</
echo "<tr ><td bgcolor=ffffaa height=10>Опыт работы</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['opit']."</
echo "<tr ><td bgcolor=ffffaa height=10>Возраст</td>";
echo "<td bgcolor=ffffff width=550>".$myrow['Age']."</
echo "<tr ><td bgcolor=ffffaa
height=10>Контактная
echo "<td bgcolor=ffffff
width=550>".$myrow['KI']."</
echo "<tr ><td bgcolor=ffffaa
height=10>Дополнительная
echo "<td bgcolor=ffffff width=550>".$myrow['DI']."</
}
echo "</table></center>";
echo "<tr><td>";
echo "</body>";?>
</td></table>
</td></tr>
</table>
<? include("niz.php");?>
del.php
<?php
include ('db_connect.php');
$id=$_GET['id'];
$query = 'DELETE FROM vacansii WHERE (id_vac='.$id.')';
echo $query;
if(mysql_query($query))
{ print "<HTML><HEAD>\n";
print "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=vacansii.php'>\n";
print "</HEAD></HTML>\n";
}
?>
redact.php
<? include ('db_connect.php');
$id=$_GET['id'];
$sql = 'SELECT `rez`.`id_rez`, `rez`.`F`, `rez`.`I`, `rez`.`O`, `rez`.`obr`, `rez`.`cpec`, `rez`.`opit`, `rez`.`Age`, `rez`.`KI`, `rez`.`DI`'. ' FROM `rez` WHERE (`rez`.`id_rez` ='.$id.')';
$result=mysql_query($sql);
while
($myrow=mysql_fetch_array($
<form action="redactcom.php" method="POST"><center>
<Table class="reg" border="3" bgcolor="#EFF7B3" >
<tr>
<td><center><br><
<table width=90%>
<tr><td>
<td><input name="F" type="text" value="<? echo $myrow['F']; ?>" size="30"><br><br></td>
</tr>
<tr><td>Имя<
<td><input name="I" type="text" value="<? echo $myrow['I']; ?>" size="30"></td>
</tr>
<tr><td>
<td><input name="O" type="text" value="<? echo $myrow['O']; ?>" size="30"></td>
</tr>
<tr><td>
<td><input name="obr" type="text" value="<? echo $myrow['obr']; ?>" size="30"></td>
</tr>
<tr><td>
<td><input name="cpec" type="text" value="<? echo $myrow['cpec']; ?>" size="30"></td>
</tr>
<tr><td>Опыт
<td><input name="opit" type="text" value=<? echo $myrow['opit']; ?> size="30"></td>
</tr>
<tr><td>
<td><input name="age" type="text" value="<? echo $myrow['Age']; ?>" size="3"></td>
</tr>
<tr><td>
<td><textarea name="KI" cols ='20' rows = '3'><? echo $myrow['KI']; ?></textarea></td></tr></td>
</tr>
<tr><td>
<td><textarea name="DI" cols ='30' rows = '5'><? echo $myrow['DI']; ?></textarea></td></tr></td>
</tr>
</table><br><
<input type="submit" name='redact' value="Исправить">
<input type=hidden name=id_rez value=<?php echo $id; ?>>
<br><br></td><
</Table>
</form><?}?>
</td></table>
</td></tr>
</table>
<? include("niz.php");?>
redactcom.php
<?php
include ('db_connect.php');
$id=$_POST['id_rez'];
$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'];
$query = "UPDATE `rez` SET `F`='$F', `I`='$I' , `O`='$O', `obr`='$obr', `cpec`='$cpec', `opit`='$opit', `Age`='$age', `KI`='$KI', `DI`='$DI' WHERE (`id_rez`=$id)";
$result=mysql_query($
echo $result;
if($result)
{
print "<HTML><HEAD>\n";
print "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=rezum.php'>\n";
print "</HEAD></HTML>\n";
}?>
redactvac.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>
<? include ('db_connect.php');
$id=$_GET['id'];
$sql
= 'SELECT `vacansii`.`id_vac`, `vacansii`.`D`, `vacansii`.`ZP`, `vacansii`.`obr`,`vacansii`.`
$result=mysql_query($sql);
while
($myrow=mysql_fetch_array($
<form action="redactvaccom.php" method="POST"><center>
<Table class="reg" border="3" bgcolor="#EFF7B3" >
<tr>
<td><center><br><
<table width=90%>
<tr><td>
<td><input name="D" type="text" value="<? echo $myrow['D']; ?>" size="30"><br><br></td>
</tr>