コード例 #1
0
ファイル: zakaz.php プロジェクト: Torredo/jew
<?php

include "models/function.php";
$promo = DB::select("promo");
if (isset($_GET['delete'])) {
    $array = DB::selectID($_GET['table'], $_GET['delete']);
    Delete::del($_GET['table'], $_GET['delete']);
    Delete::del_touch('zakaz', 'nzakaz', $array[0]['id']);
    //var_dump($array);
}
$record = DB::select("count_zakaz");
require_once 'view/tpl_top.php';
?>
<div class="app app-header-fixed  ">
	<?php 
include "view/header.php";
$active_e = "class=\"active\"";
include "view/nav.php";
?>
	<!-- content -->
    <div id="content" class="app-content" role="main">
        <div class="app-content-body ">
            <div class="hbox hbox-auto-xs hbox-auto-sm">
                <div class="col">
                    <div class="bg-light lter b-b wrapper-md wrapper-md__i">
                        <h1 class="m-n font-thin h3 inline">Заказы</h1>
                    </div>
                    <div class="wrapper-md">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="panel panel-default">
コード例 #2
0
ファイル: callback.php プロジェクト: Torredo/jew
<?php

include "models/function.php";
$param = "callback";
$where = " ORDER BY date DESC";
$records = DB::select($param, $where);
require_once 'view/tpl_top.php';
if (isset($_GET['delete'])) {
    Delete::del_touch($_GET['table'], 'id', $_GET['delete']);
}
?>
<div class="app app-header-fixed  ">
	<?php 
include "view/header.php";
$active_f = "class=\"active\"";
include "view/nav.php";
?>
	<!-- content -->
	<div id="content" class="app-content" role="main">
		<div class="app-content-body ">
			<div class="hbox hbox-auto-xs hbox-auto-sm">
				<div class="col">
					<div class="bg-light lter b-b wrapper-md wrapper-md__i">
						<h1 class="m-n font-thin h3 inline"><?php 
echo $records == false ? "Не найдено" : "Заявки";
?>
</h1>
					</div>
					<div class="wrapper-md">
						<?php 
if ($records != false) {