php include conf php include lib lib_sql php include lib lib_insert ph

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
include('conf.php');
include('lib/lib_sql.php');
include('lib/lib_insert.php');
include('lib/lib_common.php');
include('lib/lib_admin.php');
include('auth.php');
?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="Notepad++">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="Thu, 01 Jan 1970 00:00:00 GMT">
<title>Компьютеры | <?=$user_fio?></title>
<link rel=stylesheet type="text/css" href="share/main.css">
<script language="JavaScript" src="lib/functions.js"></script>
</head>
<body text=black bgcolor=white leftmargin=0 onload="delInput()" topmargin=0 marginwidth=0 marginheight=0 link="#FF0000" vlink="#FF0000" alink="#FF0000">
<?php
if ($notauth)
{
include 'login.php';
exit;
}
?>
<table width=100% class=m>
<tr height=50px style='height:50px;'>
<td align=left valign=top rowspan=2>
<div id='td_menu'>
<div align=center style="width:250px;";><img src='images/logo.bmp' height=50px border=0></div>
<?
switch ($user_ord) {
case 0 : { include 'share/0.htm'; break; }
case 1 : { include 'share/1.htm'; break; }
case 2 : { include 'share/2.htm'; break; }
default : { break; }
}
?>
<br>
<a href=logout.php>Выход</a>
<br><div align=right>
<button class=hide_menu width=14px height=14px type='button' onclick='hide_m()' title='скрыть меню'> <img src='images/b_left.gif'> </button>
</div>
</div>
</td>
<td class=top_capt height=50px width=100% style='font-size:16pt;' align=center valign=middle><div height=50px>Компьютеры</div>
</td></tr>
<tr align=left valign=top height=100%>
<td style='background-color: #f0f0f0;' height=500px>
<?php
if (isset($_POST[dt])) $dt=$_POST[dt];
if (isset($_GET[dt])) $dt=$_GET[dt];
$p=(isset($_GET[p]))?$_GET[p]:1;
switch ($_GET[act]) {
case 'sql' : { include 'sql.php'; break; }
case 'users' : { include 'users.php'; break; }
case 'xsl_txt' : { include 'share/xsl_txt.htm'; break; }
case 'templates' : { include 'share/templates.htm'; break; }
case 'anketa' : { include 'share/anketa.htm'; break; }
case 'soft' : { include 'share/soft.htm'; break; }
case 'department' : { include 'share/department.htm'; break; }
case 'enterprise' : { include 'share/enterprise.htm'; break; }
case 'na_anketa' : { include 'share/na_anketa.htm'; break; }
case 'list_anketa' : { include 'share/list_anketa.htm'; break; }
case 'edit_anketa' : { include 'share/edit_anketa.htm'; break; }
case 'view_cont' : { include 'share/view_cont.htm'; break; }
case 'status' : { include 'share/status.htm'; break; }
case 'search' : { include 'share/search.htm'; break; }
case 'hist' : { include 'share/hist.htm'; break; }
case 'view_anketa' : { include 'share/view_anketa.htm'; break; }
default : { include 'share/index'.$user_ord.'.htm'; break; }
}
?>
</td>
</tr>
</table>
</body>
</html>
<script language=Javascript>
<!--
var td_menu_text=document.getElementById('td_menu').innerHTML;
function hide_m()
{
document.getElementById('td_menu').innerHTML="<div align=left style='width:14px;'> <button width=14px height=14px class=hide_menu type='button' onclick='show_m()' title='показать меню'> <img src='images/b_right.gif'> </button> </div>";
setCookie("show","0");
}
function show_m()
{
document.getElementById('td_menu').innerHTML=td_menu_text;
setCookie("show","1");
}
if (getCookie("show")==0) hide_m();
//-->
</script>