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.
 
 
 
 
 
 

66 lines
1.9 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>弹出日期页面</title>
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
<script type="text/javascript">
//获取url参数
var _gridid = "";
var strparam = $.urlparam_decode($.getURLParam('param'));
var jparam = $.str2json(strparam);
var _idField = jparam.idField?jparam.idField:'id';
var _textField = jparam.textField?jparam.textField:'text';
var _strFormatter = jparam.strFormatter?jparam.strFormatter:'yyyy-MM-dd';
window.onload = function(){
var _v = jparam.value_id;
if(!_v){
_v = jparam.initvalue;
}
_v = $.formatDate(_v);
var _date = $.datebox({
id:'ipt_date'
,editable:false
,initvalue:_v
,strFormatter:_strFormatter
,onHidePanel:_onHidePanel
,onSelect:_onSelect
});
$('#ipt_date').datebox('showPanel');
};
function _onHidePanel(){
// alert('_onHidePanel');
$('#ipt_date').datebox('showPanel');
}
function _onSelect(){
// $('#ipt_date').datebox('showPanel');
$.inputpop_event_submit();
}
function inputpop_getValue(){
// var jres = jparam;
// jres.value_id = $.formatDate($('#ipt_date').datebox('getValue'));
// jres.value_text = $('#ipt_date').datebox('getValue');
// return jres;
var jres = jparam;
var _value_id = $('#ipt_date').datebox('getValue');
_value_id = new DateUtil().getDateValue(_strFormatter,_value_id);
var _value_text = $('#ipt_date').datebox('getValue');
jres.value_id = _value_id;
jres.value_text = _value_text;
jres.value_value = _value_id;
return jres;
}
</script>
</head>
<body class="easyui-layout" style="padding:0px;margin:0px;background-color:#FFFFFF;">
<div id="layout_center" data-options="region:'center'" style="padding:0px;overflow:hidden;text-align:center;">
<input type="text" id="ipt_date" name="ipt_date" class="txt" style="width:160px;"></input>
</div>
</body>
</html>