⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getdate.js

📁 公务员管理系统,本系统的使用可以将工作的部分流程使用计算机的办公自动化处理
💻 JS
字号:
function getDate(DateType,iRelatePub)
{
 var url,top,left,style,DataValue,temp;
 top=window.event.screenY+12;
 left=window.event.screenX-100;
 temp="";
// if (window.document.all.item(DateType).className=="ReadOnly")
 if (document.getElementById(DateType).className=="ReadOnly")
 		return;
 if (iRelatePub==null)
   iRelatePub=2;
 for (i=1;i<=iRelatePub;i++)
   temp+="../";
 Url=temp+"lib/date/Calendar.html";
 style="help:no;status:no;dialogWidth:11;dialogHeight:13;dialogTop:"+top+";dialogLeft:"+left;
 DataValue=window.showModalDialog(Url,null,style);
 if (DataValue!=null)
    document.getElementById(DateType).value=DataValue;
 document.getElementById(DateType).focus();
 return ((DataValue==null)?"":DataValue);
}

function GetDateChg(DateType,iRelatePub)
{
 var rcOrg,rcNew;
// rcOrg=window.document.all.item(DateType).value;
 rcOrg = document.getElementById(DateType).value;
 if (rcOrg==null)
	rcOrg="";
 rcNew=GetDate(DateType,iRelatePub);
 if (rcOrg!=rcNew && rcNew!="")
	anyChanged();
 return rcNew;
}


function getTime(DateType,iRelatePub)
{
 var url,top,left,style,DataValue,temp;
 top=window.event.screenY+12;
 left=window.event.screenX-100;
 temp="";
// if (window.document.all.item(DateType).className=="ReadOnly")
 if (document.getElementById(DateType).className=="ReadOnly")
 		return;
 if (iRelatePub==null)
   iRelatePub=2;
 for (i=1;i<=iRelatePub;i++)
   temp+="../";
 Url=temp+"lib/date/Calendar2.html";
 style="help:no;status:no;dialogWidth:11;dialogHeight:15;dialogTop:"+top+";dialogLeft:"+left;
 DataValue=window.showModalDialog(Url,null,style);
 if (DataValue!=null)
    document.getElementById(DateType).value=DataValue;
 document.getElementById(DateType).focus();
 return ((DataValue==null)?"":DataValue);
}

function GetDateChg(DateType,iRelatePub)
{
 var rcOrg,rcNew;
// rcOrg=window.document.all.item(DateType).value;
 rcOrg = document.getElementById(DateType).value;
 if (rcOrg==null)
	rcOrg="";
 rcNew=GetDate(DateType,iRelatePub);
 if (rcOrg!=rcNew && rcNew!="")
	anyChanged();
 return rcNew;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -