datetimepicker filter lba
这个提交包含在:
父节点
f5a22c06f4
当前提交
2d0dda8fb7
共有 2 个文件被更改,包括 6 次插入 和 20 次删除
|
|
@ -24,14 +24,12 @@ class Logbookadvanced_model extends CI_Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($searchCriteria['dateFrom'] !== '') {
|
if ($searchCriteria['dateFrom'] !== '') {
|
||||||
$from = DateTime::createFromFormat('d/m/Y', $searchCriteria['dateFrom']);
|
$from = $searchCriteria['dateFrom'];
|
||||||
$from = $from->format('Y-m-d');
|
|
||||||
$conditions[] = "date(COL_TIME_ON) >= ?";
|
$conditions[] = "date(COL_TIME_ON) >= ?";
|
||||||
$binding[] = $from;
|
$binding[] = $from;
|
||||||
}
|
}
|
||||||
if ($searchCriteria['dateTo'] !== '') {
|
if ($searchCriteria['dateTo'] !== '') {
|
||||||
$to = DateTime::createFromFormat('d/m/Y', $searchCriteria['dateTo']);
|
$to = $searchCriteria['dateTo'];
|
||||||
$to = $to->format('Y-m-d');
|
|
||||||
$conditions[] = "date(COL_TIME_ON) <= ?";
|
$conditions[] = "date(COL_TIME_ON) <= ?";
|
||||||
$binding[] = $to;
|
$binding[] = $to;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,24 +61,12 @@ $options = json_decode($options);
|
||||||
<div class="filterbody collapse">
|
<div class="filterbody collapse">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||||
<label class="form-label" for="dateFrom"><?php echo lang('filter_general_from'); ?></label>
|
<label for="dateFrom"><?php echo lang('filter_general_from') . ": " ?></label>
|
||||||
<div class="input-group input-group-sm date" id="dateFrom" data-target-input="nearest">
|
<input name="dateFrom" id="dateFrom" type="date" class="form-control w-auto">
|
||||||
<input name="dateFrom" type="text" placeholder="<?php echo $datePlaceholder;?>"
|
|
||||||
class="form-control" data-bs-target="#dateFrom" />
|
|
||||||
<div class="input-group-append" data-bs-target="#dateFrom" data-bs-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||||
<label class="form-label" for="dateTo"><?php echo lang('filter_general_to'); ?></label>
|
<label for="dateTo"><?php echo lang('filter_general_to') . ": " ?></label>
|
||||||
<div class="input-group input-group-sm date" id="dateTo" data-target-input="nearest">
|
<input name="dateTo" id="dateTo" type="date" class="form-control w-auto">
|
||||||
<input name="dateTo" type="text" placeholder="<?php echo $datePlaceholder;?>"
|
|
||||||
class="form-control" data-bs-target="#dateTo" />
|
|
||||||
<div class="input-group-append" data-bs-target="#dateTo" data-bs-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
<div class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||||
<label class="form-label" for="de"><?php echo lang('gen_hamradio_de'); ?></label>
|
<label class="form-label" for="de"><?php echo lang('gen_hamradio_de'); ?></label>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用