You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.7 KiB
52 lines
1.7 KiB
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
|
<div class="cjy_select">
|
|
<select name="citycode" id="citycode" onchange="getsceniccode()" required>
|
|
<option value="">--请选择区域--</option>
|
|
</select>
|
|
</div>
|
|
<div class="input_bd_rili" style="width:120px;">
|
|
<input type="text" id="demo0" class="laydate-icon" name="ctime" value="${ctime}" /><span class="cjy_icon cjy_icon_search"></span>
|
|
</div>
|
|
<div class="input_bd_rili parent " style="width:40px;">
|
|
<select name="hour" id="hour" onchange="$('#currentpage').val(1);" required>
|
|
<option value = "">请选择小时</option>
|
|
</select>
|
|
</div>
|
|
|
|
<!-- 城市 景区数据 -->
|
|
<script src="${ctx}/js/zTree_v3/js/city_search.js" type="text/javascript" charset="utf-8"></script>
|
|
<link type="text/css" rel="stylesheet" href="${ctx}/js/day/laydate/theme/default/laydate.css" />
|
|
<script type="text/javascript" src="${ctx}/js/day/laydate/laydate.js"></script>
|
|
|
|
<script>
|
|
!function(){
|
|
laydate.render({
|
|
elem: '#demo0', //指定元素
|
|
type: 'date',
|
|
showBottom: false,
|
|
done: function(value, date){
|
|
$('#currentpage').val('1')
|
|
}
|
|
});
|
|
|
|
var citycode = '${citycode}';
|
|
getcitycode(citycode);
|
|
|
|
|
|
var str = '';
|
|
var hour = '${hour}';
|
|
if(hour){
|
|
for (var i = 1; i < 25; i++) {
|
|
str += '<option '+ (hour == i ? "selected" : "") +' value="'+ i +'">'+ i +'时</option>';
|
|
}
|
|
$("#hour").html(str);
|
|
} else {
|
|
$("#hour").parent(".parent").remove();
|
|
$("#hour").remove();
|
|
}
|
|
|
|
|
|
}();
|
|
</script> |