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.
59 lines
1.8 KiB
59 lines
1.8 KiB
1 month ago
|
<%@ 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 HH:mm:ss';
|
||
|
window.onload = function(){
|
||
|
var _v = jparam.value_id;
|
||
|
if(!_v){
|
||
|
_v = jparam.initvalue;
|
||
|
}
|
||
|
_v = $.formatDateTime(_v);
|
||
|
var _date = $.datetimebox({
|
||
|
id:'ipt_date'
|
||
|
,editable:false
|
||
|
,initvalue:_v
|
||
|
,strFormatter:_strFormatter
|
||
|
,onHidePanel:_onHidePanel
|
||
|
,onSelect:_onSelect
|
||
|
|
||
|
});
|
||
|
$('#ipt_date').datetimebox('showPanel');
|
||
|
};
|
||
|
function _onHidePanel(){
|
||
|
// alert('_onHidePanel');
|
||
|
$('#ipt_date').datetimebox('showPanel');
|
||
|
}
|
||
|
function _onSelect(){
|
||
|
// $('#ipt_date').datebox('showPanel');
|
||
|
}
|
||
|
|
||
|
function inputpop_getValue(){
|
||
|
var jres = jparam;
|
||
|
var _value_id = $('#ipt_date').datetimebox('getValue');
|
||
|
_value_id = new DateUtil().getDateTimeValue(_strFormatter,_value_id);
|
||
|
var _value_text = $('#ipt_date').datetimebox('getValue');
|
||
|
jres.value_id = _value_id;
|
||
|
jres.value_text = _value_text;
|
||
|
jres.value_text = _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>
|