12345678910111213141516171819202122232425262728293031323334353637383940 |
- <form action="{{route($action_name)}}" method="get" id="timter_form">
- <div class="inside_timer_box" style="width:585px;">
- <span style="float: left;padding-top: 5px;margin-right: 10px;">时间范围:</span>
- <div class="select_input_date">
- <input name="start_date" type="text" class="input_for_date date-item" id="start_date" autocomplete="off" value="{{$date_params['compare_start_date']}}" style="width: 200px;box-sizing: border-box;" placeholder=" " {{--lay-key="7"--}}>
- </div>
- <div class="line"> - </div>
- <div class="select_input_date">
- <input name="end_date" type="text" class="input_for_date date-item" id="end_date" autocomplete="off" value="{{$date_params['compare_end_date']}}" style="width: 200px;box-sizing: border-box" placeholder=" " {{--lay-key="7"--}}>
- </div>
- <div class="search_btn">查询</div>
- </div>
- <div class="clear"></div>
- </form>
- <script type="text/javascript" src="{{theme_asset('statistics/js/laydate/laydate.js')}}"></script>
- <script type="text/javascript">
- var allDate = $(document).find('.date-item');
- allDate.each(function(index, el) {
- $(this).removeAttr("lay-key");
- laydate.render({
- elem: this,
- format: 'yyyy-MM-dd',
- range: true
- });
- });
- $('.inside_timer_box .search_btn').click(function(){
- var startDate = $("#start_date").val();
- var endDate = $("#end_date").val();
- if (startDate == '' && endDate == '') {
- alert('请选择过滤时间');return false;
- }
- $('#timter_form').submit();
- });
- </script>
|