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

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

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

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

Файлы: 1 файл

курсовая.docx

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

    vacansii2.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_vac'];

    $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);

    echo "<center><table  border=2 width=100% >";

    while ($myrow=mysql_fetch_array($result))

          {echo "<tr ><td bgcolor=ffffaa height=10>Наименование</td>";

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

          echo "<tr ><td bgcolor=ffffaa height=10>Версия</td>";

          echo "<td bgcolor=ffffff width=550>".$myrow['ZP']."</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['opit']."</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='redactvac.php?id=$id'>Редактировать</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='delvac.php?id=$id'>Удалить</a></td><td></td></tr>";

    echo "</body>";

    ?>

    </td></table>

    </td></tr>

    </table>

    <? include("niz.php");?>

    vacansii3.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_vac'];

    $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);

    echo "<center><table  border=2 width=100% >";

    while ($myrow=mysql_fetch_array($result))

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

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

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

          echo "<td bgcolor=ffffff width=550>".$myrow['ZP']."</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['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");?>

    delvac.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";

      }

    ?>

    rez.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"><? include("rezum1.php");?></td></tr>

    </table>

    <? include("niz.php");?>

    rezum1.php

    <?php?> 

    <table class="left1" ><tr><td height="10%" valign="top" ><font size=6><center>Резюме</font></td></tr>

    <tr><td  valign="top">

    <? include ('db_connect.php');

    $sql = 'SELECT `rez`.`id_rez`, `rez`.`F`, `rez`.`I`, `rez`.`O`, `rez`.`obr`, `rez`.`cpec`, `rez`.`opit`, `rez`.`Age`, `rez`.`KI`, `rez`.`DI`, `rez`.`Log`'. ' FROM `rez` LIMIT 0, 30';

    $result=mysql_query($sql);

    echo "<center><table   border=1  width=100% >";

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

    while ($myrow=mysql_fetch_array($result))

          {

          echo "<tr bgcolor=eeeeee>"; if ($myrow['Log']!==$_SESSION['user']){ $put='rezum3.php?id_rez';}

          else {if ($myrow['Log']==$_SESSION['user']) {$put='rezum2.php?id_rez';}}

          echo "<td width=550><a href='".$put."=".$myrow['id_rez']."'>".$myrow['cpec']."</td>";

          echo "<td>".$myrow['F']." ".$myrow['I']." ".$myrow['O']."

    </td>";

          echo "</tr>";

          }

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

    echo "</body>";

    ?>

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

    rezum2.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>";

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