Esempio n. 1
0
<?php

include_once "include/template.class.php";
include_once "include/admin.class.php";
$template = new DxTemplate();
$section = new Admin();
@($action = intval($_GET['action']));
print $template->Head("Administration Page");
print $template->includeCSS("template/Default/style.tmp");
print $template->includeJS("include/menu.js");
print $template->openBody(0);
print '<center>';
print $template->openDiv("header");
print $template->closeDiv();
print $template->setMenu(explode('/', $_SERVER['PHP_SELF']), 4);
print $template->openDiv("body");
print $section->setMenu();
print '<h2 align="center">Administration Pannel Control</h2>';
if ($section->is_admin()) {
    if ($action == 1) {
        print '<form method="POST" action="?action=1">
			<table width="100%" valign="top">
				<tr>
					<td> Name: </td>
					<td> <input type="text" name="name" /> </td>
				</tr>
				<tr>
					<td>Description: </td>
					<td><input type="text" name="description" /> </td>
				</tr>
				<tr />