修改日期样式

dev
曾超新 5 years ago
parent eaa7e4a524
commit c022865219
  1. 12
      frontend/views/insurer/search.php

@ -35,7 +35,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker1">初登日期</label> <label for="datepicker1">初登日期</label>
<div class="input-group" id="datepicker1"> <div class="input-group input-daterange" id="datepicker1">
<input type="text" class="form-control" id="date_begin" name="date_begin" autocomplete="off" /> <input type="text" class="form-control" id="date_begin" name="date_begin" autocomplete="off" />
<div class="input-group-addon">-</div> <div class="input-group-addon">-</div>
<input type="text" class="form-control" id="date_end" name="date_end" autocomplete="off" /> <input type="text" class="form-control" id="date_end" name="date_end" autocomplete="off" />
@ -43,7 +43,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker3">正本日期</label> <label for="datepicker3">正本日期</label>
<div class="input-group" id="datepicker3"> <div class="input-group input-daterange" id="datepicker3">
<input type="text" class="form-control" id="date2_begin" name="date2_begin" autocomplete="off" /> <input type="text" class="form-control" id="date2_begin" name="date2_begin" autocomplete="off" />
<div class="input-group-addon">-</div> <div class="input-group-addon">-</div>
<input type="text" class="form-control" id="date2_end" name="date2_end" autocomplete="off" /> <input type="text" class="form-control" id="date2_end" name="date2_end" autocomplete="off" />
@ -51,7 +51,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker2">起保日期</label> <label for="datepicker2">起保日期</label>
<div class="input-group" id="datepicker2"> <div class="input-group input-daterange" id="datepicker2">
<input type="text" class="form-control" id="date3_begin" name="date3_begin" autocomplete="off" /> <input type="text" class="form-control" id="date3_begin" name="date3_begin" autocomplete="off" />
<div class="input-group-addon">-</div> <div class="input-group-addon">-</div>
<input type="text" class="form-control" id="date3_end" name="date3_end" autocomplete="off" /> <input type="text" class="form-control" id="date3_end" name="date3_end" autocomplete="off" />
@ -140,6 +140,12 @@ use \common\libs\MyLib;
$(function() { $(function() {
search(); search();
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
}); });
</script> </script>
<?php $this->endBlock(); ?> <?php $this->endBlock(); ?>

Loading…
Cancel
Save