120
<link rel="stylesheet" type="text/css" href="../css/style.css">
</head>
<body>
<?php include "menuisp.php"; ?>
<div id='content'>
<div id='content1'>
<br>
<br>
<?php
require "../dbconnect.php";
$res_id1=mysql_query("SELECT ido, nameo FROM `otdel` where delo=0")
or die(mysql_error());
$res_id2=mysql_query("SELECT idpk, namepk FROM `pk` where udalpk=0")
or die(mysql_error());
?>
<table width="100%" border="1" cellspacing="5" cellpadding="5">
<tr align="center">
<td valign="top" ><h3> Список пользователей </h3></td> <td valign="top">
</td>
</tr>
<tr class="line"> <td colspan="2"> </td> </tr> </table>
<?php
require "../dbconnect.php";
if(isset($_POST['search']))
{
if ($_POST['status']==5){
$res=mysql_query("SELECT idu, nameuser, iduserotd, status, password, login, nameo,
namepk FROM user, otdel, pk where udaluser=0 and iduserotd=ido and idpkuser=idpk and
iduserotd like ('%".$_POST['otdel']."%') and nameuser like ('%".$_POST['fio']."%')");
}
else {