Исправления календаря

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2021-07-28 15:03:18 +10:00
parent 7647ca69d5
commit 8270eaed11
3 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,7 @@
<div id="page_offer" class="container mb-auto py-3">
<article class="p-5 rounded overflow-hidden">
<div class="row mb-5">
<div class="row mb-5 d">
<div class="col">
<h3 class="mb-5 text-center"><b>Оферта покупателям</b></h3>
<h5>

View File

@ -182,19 +182,18 @@ if (
</div>
<div class="row mb-4">
<small class="ml-auto d-flex">
<a class="btn btn-sm button_white button_clean mb-0 mr-2" type="button" onclick="return orders_read('last','<?= time() - 86400 ?>', '<?= time() ?>');">День</a>
<a class="btn btn-sm button_white button_clean mb-0 mr-2 l" type="button" onclick="return orders_read('last','<?= time() - 86400 ?>', '<?= time() ?>');">День</a>
<a class="btn btn-sm button_white button_clean mb-0 mr-2" type="button" onclick="return orders_read('last', '<?= time() - 604800 ?>', '<?= time() ?>');">Неделя</a>
<a class="btn btn-sm button_white button_clean mb-0 mr-2" type="button" onclick="return orders_read('last', '<?= time() - 2592000 ?>', '<?= time() ?>');">Месяц</a>
<a class="btn btn-sm button_white button_clean mb-0 mr-2" type="button" onclick="return orders_read('last',' '<?= time() - 31536000 ?>', '<?= time() ?>');">Год</a>
</small>
<div class="ml-2 mr-3 d-flex">
<div class="form-control form-control-sm form_control_clean px-0 py-0 d-flex">
<div class="col-5 my-auto ml-auto px-1 py-0 form-control form-control-sm form_control_clean overflow-hidden">
<input id="orders_period_calendar_from" class="ml-auto" type="date" value="<?= $from ?? date('Y-m-d', time() - 604800) ?>" onchange="return orders_read('last', moment(this.value, 'YYYY-MM-DD').unix(), moment(document.getElementById('orders_period_calendar_to').value, 'YYYY-MM-DD').unix());" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" />
<i class="far fa-calendar-alt my-auto mr-auto"></i>
</div>
<p class="mx-2 p-0">-</p>
<div class="form-control form-control-sm form_control_clean px-0 py-0 d-flex">
<p class="col-1 p-0 text-center">-</p>
<div class="col-5 mr-auto my-auto px-1 py-0 form-control form-control-sm form_control_clean overflow-hidden">
<input id="orders_period_calendar_to" class="ml-auto" type="date" value="<?= $to ?? date('Y-m-d', time()) ?>" onchange="return orders_read('last', moment(document.getElementById('orders_period_calendar_from').value, 'YYYY-MM-DD').unix(), moment(this.value, 'YYYY-MM-DD').unix());" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" />
<i class="far fa-calendar-alt my-auto mr-auto"></i>
</div>

View File

@ -42,9 +42,11 @@
}
#page_orders article input[type="date"] {
margin-right: -10%;
width: 75%;
text-align: right;
margin-right: -25%;
padding-right: 12px;
height: 100%;
vertical-align: middle;
text-align: center;
font-size: 1rem;
outline: none;
border: none;
@ -52,11 +54,12 @@
#page_orders article input[type="date"]+i {
z-index: 1;
position: relative;
pointer-events: none;
background: #fff;
-webkit-box-shadow: 0px 0px 0px 10px rgb(255 255 255);
-moz-box-shadow: 0px 0px 0px 10px rgba(255, 255, 255, 1);
box-shadow: 0px 0px 0px 7px rgb(255 255 255);
-webkit-box-shadow: 0px 0px 0px 5px rgb(255 255 255);
-moz-box-shadow: 0px 0px 0px 5px rgba(255, 255, 255, 1);
box-shadow: 0px 0px 0px 5px rgb(255 255 255);
}
#page_orders article input[type=date]::-webkit-calendar-picker-indicator {