Автор работы: Пользователь скрыл имя, 07 Декабря 2010 в 06:32, Не определен
Курсовая работа
<tr><td>
<td><input name="ZP" type="text" value="<? echo $myrow['ZP']; ?>" 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="opit" type="text" value="<? echo $myrow['opit']; ?>" size="30"></td>
</tr>
<tr><td>
<td><select name="GR">
<
<
<
</
</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_vac value=<?php echo $id; ?>>
<br><br></td><
</Table>
</form>
<?}?>
</td></table>
</td></tr>
</table>
<? include("niz.php");?>
redactvaccom.php
<? include ('db_connect.php');
$id=$_POST['id_vac'];
$D=$_POST['D'];
$ZP=$_POST['ZP'];
$obr=$_POST['obr'];
$opit=$_POST['opit'];
$GR=$_POST['GR'];
$age=$_POST['Age'];
$KI=$_POST['KI'];
$DI=$_POST['DI'];
$d = time();
$data = date('d - F - Y',$d);
echo $data;
echo $D;
echo $ZP;
echo $GR;
$query = "UPDATE `vacansii` SET `D`='$D', `ZP`='$ZP' , `obr`='$obr', `opit`='$opit', `GR`='$GR', `Age`='$age', `KI`='$KI', `DI`='$DI' ,`Data`='$data' WHERE (`id_vac`=$id)";
echo $query;
$result=mysql_query($
echo $result;
if($result)
{
print "<HTML><HEAD>\n";
print "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=vacansii.php'>\n";
print "</HEAD></HTML>\n";
}?>
<? 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";
}?>