- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
<?php
session_start();
require_once 'connection/ConnectionConfig.php';
require_once 'classes/DBClass.php';
$DB = new DB($host, $user, $password);
function LoadContent($DB) {
if (isset($_GET["ShowTable"]) || isset($_GET["ViewPage"]) || isset($_POST["Cancel"])) {
$DB->SelectBase($_SESSION["CurrentDB"]);
include 'loaders/view_table.te.php';
}
if (isset($_GET["NewRecord"]) || isset($_GET["EditRecord"])) {
if (isset($_GET["EditRecord"]) && (!isset($_GET["SelectedRecord"]))) {
$message = "Не выбрана запись для редактирования!";
include 'templates/message.te.html';
}
else
include 'loaders/edit_record.te.php';
}
if (isset($_POST["Save"])) {
include 'loaders/edit_function.te.php';
}
if (isset($_GET["DeleteRecord"])) {
if (!isset($_GET["SelectedRecord"])) {
$message = "Не выбрана запись для удаления!";
include 'templates/message.te.html';
} else {
include 'loaders/del_function.te.php';
}
}
}
function LoadMenu($DB) {
include 'loaders/menu_bases.te.php';
if (isset($_GET["SelectDatabase"])) {
$DB->SelectBase($_GET["SelectedDatabase"]);
$_SESSION["CurrentDB"] = $DB->GetCurrentBase();
}
if (isset($_SESSION["CurrentDB"]))
include 'loaders/menu_tables.te.php';
}
include 'templates/common.te.html';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" type="text/css" href="style/style.css">
</head>
<body>
<table border="1" class="common">
<tr>
<td width="250" height="130">
<img src="image/logo1.jpg" alt="logo"/>
</td>
<td rowspan="2" valign="top">
<?php LoadContent($DB); ?>
</td>
</tr>
<tr>
<td valign="top" class="menu_container">
<?php LoadMenu($DB); ?>
</td>
</tr>
<tr>
<td colspan="2">
<p class="copyright">Разработано: 2011г. Автор: Тяготенков В.Э.</p>
</td>
</tr>
</table>
</body>
</html>
Lure Of Chaos 17.01.2011 14:31 # +1
7ion 17.01.2011 23:35 # 0
bugmenot15 21.01.2011 22:50 # −2