tarena.js

来自「近几年来」· JavaScript 代码 · 共 38 行

JS
38
字号
function GetDate (nText)
{
  reVal = window.showModalDialog ("../day.htm", '',"status:no;center:yes;scroll:no;resizable:no;help:no;dialogWidth:255px;dialogHeight:260px");
  if (reVal != null)
  {
    if (nText == 1)
      document.pollForm.labelStartDate.value = reVal;
    if (nText == 2)
      document.pollForm.labelEndDate.value = reVal;
  };
};

function TrimControls ()
{
    if (document.pollForm.selectDepart.selectedIndex < 0)
        document.pollForm.selectDepart.selectedIndex = 0;
    if (document.pollForm.selectStuff.selectedIndex < 0)
        document.pollForm.selectStuff.selectedIndex = 0;
}

function QueryRecord ()
{
    if (document.pollForm.labelStartDate.value == "") {
	alert("?????????");
	return;
    }
    if (document.pollForm.labelEndDate.value == "") {
	alert("?????????");
	return;
    }
    if (document.pollForm.labelStartDate.value != "" && document.pollForm.labelEndDate.value != "" && (Date.parse(document.pollForm.labelStartDate.value) > Date.parse(document.pollForm.labelEndDate.value)))
    {
            alert("???????????");
            return;
    }

	document.pollForm.submit();
}

⌨️ 快捷键说明

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