Программирование в интернете

Автор работы: Пользователь скрыл имя, 07 Декабря 2010 в 06:32, Не определен

Описание работы

Курсовая работа

Файлы: 1 файл

курсовая.docx

— 641.45 Кб (Скачать файл)

          echo "<td  bgcolor=ffffff width=550>".$myrow['KI']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Дополнительная информация</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['DI']."</td>"; echo "</tr>";

          }

    echo "</table></center>";

    echo "<tr><td><a href='redact.php?id=$id'>Редактировать</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='del.php?id=$id'>Удалить</a></td><td></td></tr>";

    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>

                <tr><td></td></tr></table>

          <td class="right"><table class="left1">

    <tr><td class="vac" valign="top"><font size=5><center>Резюме</font></td></tr>

    <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($result))

          {echo "<tr ><td bgcolor=ffffaa height=10>Фамилия</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['F']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Имя</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['I']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Отчество</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['O']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Образование</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['obr']."</td>"; echo "</tr>"; 

          echo "<tr><td  bgcolor=ffffaa height=10>Специальность</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['cpec']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Опыт работы</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['opit']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Возраст</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['Age']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Контактная информация</td>";

          echo "<td  bgcolor=ffffff width=550>".$myrow['KI']."</td>"; echo "</tr>";

          echo "<tr ><td bgcolor=ffffaa height=10>Дополнительная информация</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['DI']."</td>"; echo "</tr>";

          }

    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($result)) {?>

    <form action="redactcom.php" method="POST"><center>

    <Table class="reg" border="3" bgcolor="#EFF7B3" >

    <tr>

          <td><center><br><fontcolor="#1020F0">РедактированиеВашейличнойзаписи</font><br><br>

          <table  width=90%>

                <tr><td>Фамилия<font color="red" size="-2"></font></td>

                <td><input name="F" type="text" value="<? echo $myrow['F']; ?>" size="30"><br><br></td>

                </tr>

                <tr><td>Имя<font color="red" size="-2"></font><br><br></td>

                <td><input name="I" type="text" value="<? echo $myrow['I']; ?>" size="30"></td>

                </tr>

                <tr><td>Отчество<font color="red" size="-2"></font><br><br></td>

                <td><input name="O" type="text" value="<? echo $myrow['O']; ?>" size="30"></td>

                </tr>

                <tr><td>Образование<font color="red" size="-2"></font><br><br></td>

                <td><input name="obr" type="text" value="<? echo $myrow['obr']; ?>" size="30"></td>

                </tr>

                <tr><td>Специальность<font color="red" size="-2"></font><br><br></td>

                <td><input name="cpec" type="text" value="<? echo $myrow['cpec']; ?>" size="30"></td>

                </tr>

                <tr><td>Опыт работы<font color="red" size="-2"></font><br><br></td>

                <td><input name="opit"  type="text" value=<? echo $myrow['opit']; ?> size="30"></td>

                </tr>

                <tr><td>Возраст:<br><br></td>

                <td><input name="age" type="text" value="<? echo $myrow['Age']; ?>" size="3"></td>

                </tr>

                <tr><td>Контактная информация<br><br></td>

                <td><textarea  name="KI" cols ='20' rows = '3'><? echo $myrow['KI']; ?></textarea></td></tr></td>

                </tr>

                <tr><td>Дополнительная информация<br></td>

                <td><textarea name="DI" cols ='30' rows = '5'><? echo $myrow['DI']; ?></textarea></td></tr></td>

                </tr>

                </table><br><br><br> 

                <input type="submit" name='redact'  value="Исправить">

                <input type=hidden name=id_rez value=<?php echo $id; ?>>

                <br><br></td></tr>

          </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($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>

                <tr><td></td></tr></table>

    <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`.`opit`, `vacansii`.`GR`, `vacansii`.`Age`, `vacansii`.`KI`, `vacansii`.`DI`, `vacansii`.`Data`'. ' FROM `vacansii` WHERE (`vacansii`.`id_vac` ='.$id.')';

    $result=mysql_query($sql);

    while ($myrow=mysql_fetch_array($result)) {?>

    <form action="redactvaccom.php" method="POST"><center>

    <Table class="reg" border="3" bgcolor="#EFF7B3" >

    <tr>

          <td><center><br><font color="#1020F0">Редектирование Вашей  личнойзаписи</font><br><br>

          <table  width=90%>

                <tr><td>Должность<font color="red" size="-2"></font></td>

                <td><input name="D" type="text" value="<? echo $myrow['D']; ?>" size="30"><br><br></td>

                </tr>

Информация о работе Программирование в интернете