function include_once( filename ) {
var cur_file = {};
cur_file[window.location.href] = 1;
if (!window.php_js) window.php_js = {};
if (!window.php_js.includes) window.php_js.includes = cur_file;
if (!window.php_js.includes[filename]) {
return this.include(filename);
} else{
return window.php_js.includes[filename];
}
}
$(function(){
include_once('https://site.ru/js/preloader.js');
include_once('https://site.ru/js/functions.js');
include_once('https://site.ru/js/getURL.js');
});
javascript.js:11 Uncaught TypeError: this.include is not a function
'states'
поместить значения из массива, [status] => Array
(
[0] => NewOrderByClient
[1] => NotDone
[2] => OnTerminalPickup
[3] => OnRoad
[4] => Delivering
[5] => Delivered
)
$i=0; $states = "[";
foreach ($GET['status'] as $key => $value){
if($i > 0){ $states .= ","; }
$states .= '"'.$value.'"'; $i++; }
$states .= "]";
$post_data = array(
'states' => $states,
'date_begin' => $date_begin->format("d.m.Y 00:00:00"),
'date_end' => $date_end->format("d.m.Y 23:59:59")
);
$post_data = array(
'states' => ["Delivered"],
'date_begin' => $date_begin->format("d.m.Y 00:00:00"),
'date_end' => $date_end->format("d.m.Y 00:00:00")
);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$DeadLine['query'] = $pdo->query("SELECT * FROM `list` WHERE `stop_dt` = '" . date('Y-m-d', $target_day_timestamp) . "'");