Example #1
0
$count_img = count($arr_img);
if (isset($more_info[0]['number_inputs']) && $more_info[0]['number_inputs'] != 0) {
    switch ($more_info[0]['number_inputs']) {
        case 1:
            $inp = "Один";
            break;
        case 2:
            $inp = "Два";
            break;
        default:
            $inp = "";
    }
}
if (isset($more_info[0]['roominess'])) {
    $sql = "SELECT * FROM roominess_mob WHERE id=" . $more_info[0]['roominess'];
    $int_roominess = $obj->selectAll($sql);
    $str_roominess = "";
    switch ($int_roominess[0]['int_val']) {
        case 1:
            $str_roominess = "Одноместная";
            break;
        case 2:
            $str_roominess = "Двухместная";
            break;
        case 3:
            $str_roominess = "Трёхместная";
            break;
        case 4:
            $str_roominess = "Четырёхместная";
            break;
        case 5:
Example #2
0
<?php 
include "php/config.php";
include "php/class.php";
$obj = new Product();
$categories = $obj->selectCat(1);
$sql_roominess = "SELECT * FROM roominess_mav order by int_val ASC";
$roominess = $obj->selectAll($sql_roominess);
$sql_water_resistance = "SELECT * FROM water_resistance";
$water_resistance = $obj->selectAll($sql_water_resistance);
$sql_frame_tents = "SELECT * FROM frame_tents";
$frame_tents = $obj->selectAll($sql_frame_tents);
?>
<!DOCTYPE html>
<html lang="ru">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
	<title>Быстросборные палатки и шатры</title>
	<link rel="shortcut icon" href="<?php 
echo $prefix;
?>
img/favicon.ico" type="image/x-icon">
	<link rel="icon" href="<?php 
echo $prefix;
?>
img/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" href="<?php 
echo $prefix;
?>
css/style.css" />
Example #3
0
        header("Location: production.php?id=" . $_POST["section"]);
    } else {
        $obj->update($obj->updateSql(), trimStr($_POST["section"]), trimStr($_POST["name"]), trimStr($_POST["nomer"]), trimStr($_POST["brand"]), trimStr($_POST["viscous"]), trimStr($_POST["type"]), trimStr($_POST["volume"]), trimStr($_POST["kol"]), trimStr($_POST["price"]), trimStr($_POST["text"]), $data_related, $data_attr, trimStr($_POST["title"]), trimStr($_POST["description"]), trimStr($_POST["keywords"]), $name_img, trimStr($_POST["img_title"]), trimStr($_POST["img_alt"]), $_POST['go']);
        header("Location: production.php?id=" . $_POST["section"]);
    }
}
if (isset($_GET["delete"])) {
    $delete = new Delete();
    $delete->del($_GET["title"], $_GET["delete"]);
    header("Location: production.php?id=" . $_GET["delete"]);
}
require_once "classes/Catalog.php";
$section = new Catalog();
require_once "classes/Product.php";
$objEdit = new Product();
$related = $objEdit->selectAll();
if (isset($_GET["edit"])) {
    $record = $objEdit->selectId($_GET['edit']);
    $nowSection = $objEdit->selectSectionId($_GET['edit']);
}
require_once 'view/tpl_top.php';
?>
<div class="app app-header-fixed  ">
	<?php 
include "view/header.php";
$active_d = "class=\"active\"";
include "view/nav.php";
?>
	<!-- content -->
	<div id="content" class="app-content" role="main">
		<div class="app-content-body ">
Example #4
0
<?php 
include "php/config.php";
include "php/class.php";
$obj = new Product();
$categories = $obj->selectCat(2);
$sql_roominess = "SELECT * FROM roominess_mob order by int_val ASC";
$roominess = $obj->selectAll($sql_roominess);
$sql_type_tent = "SELECT * FROM type_tent";
$type_tent = $obj->selectAll($sql_type_tent);
?>
<!DOCTYPE html>
<html lang="ru">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
	<title>Быстросборные палатки и шатры</title>
	<link rel="shortcut icon" href="<?php 
echo $prefix;
?>
img/favicon.ico" type="image/x-icon">
	<link rel="icon" href="<?php 
echo $prefix;
?>
img/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" href="<?php 
echo $prefix;
?>
css/style.css" />
	<link rel="stylesheet" href="<?php 
echo $prefix;