Example #1
0
    if ($_POST["go"] == "save") {
        $obj->insertSection($obj->insertSectionSql(), $_POST["section"], $url, $_POST["name"], $_POST["title"], $_POST["desc"], $_POST["keywords"]);
        header("Location: " . $_SERVER['REQUEST_URI']);
    } else {
        $obj->updateSection($obj->updateSectionSql(), $_POST["section"], $url, $_POST["name"], $_POST["title"], $_POST["desc"], $_POST["keywords"], $_POST['go']);
        header("Location: " . $_SERVER['REQUEST_URI']);
    }
}
if (isset($_GET["delete"])) {
    Delete::del($_GET["title"], $_GET["delete"]);
    header("Location: pages.php");
}
if (isset($_GET["id"])) {
    require_once "classes/Product.php";
    $objP = new Product();
    $record = $objP->ProductSelect($_GET["id"]);
    $sectionName = $obj->selectId($_GET["id"]);
}
require_once 'view/tpl_top.php';
?>
<div class="app app-header-fixed  ">
	<div class="modal section fade" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<form method="post">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="myModalLabel">Раздел</h4>
					</div>
					<div class="modal-body">
						<div class="container-fluid">