Пример #1
0
<?php

$where = "";
$_POST["date_jour"] = $_POST["date_jour"] == "" ? date('d/m/Y') : $_POST["date_jour"];
$nottoday = dateDifference(datebdd($_POST["date_jour"]), date('Y/m/d'), '%d') == 0 ? false : true;
$_POST["date_debut"] = jourdebutsemaine(date2tab($_POST["date_jour"])) . " 00:00:00";
$_POST["date_fin"] = jourfinsemaine(date2tab($_POST["date_jour"])) . " 23:59:59";
require $_SERVER["DOCUMENT_ROOT"] . __racine__ . "/tpl/script/rapport-kilometrique.php";
Пример #2
0
<?php

$_POST["date_jour"] = $_POST["date_jour"] == "" ? date('d/m/Y') : $_POST["date_jour"];
if ($_POST["date_jour"] != "") {
    $where .= " and p.time>='" . datebdd(jourdebutsemaine(date2tab($_POST["date_jour"]))) . " 00:00:00'";
    $where .= " and p.time<='" . datebdd(jourfinsemaine(date2tab($_POST["date_jour"]))) . " 23:59:59'";
}
require "rapport-gen.php";