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

📄 date.jsp

📁 选择和管理有价值客户及其关系的一种商业策略
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%
   String inputName= request.getParameter("inputName");
   String path= request.getParameter("path");
   if(inputName==null || inputName.trim().length()<1){
     System.out.println("日期输入框元素名称没有传递!");
   }
   
      
   String inputDate = request.getParameter("inputDate");
   String _year = "";
   String _month = "";
   String _date = "";

   if(inputDate!=null && inputDate.trim().length()>8){
           _year = inputDate.substring(0,4);
	   _month = inputDate.substring(5,7);
	   _date = inputDate.substring(8,10); 
   }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>日历</title>
<SCRIPT src="<%=path%>framework/js/JSCalendar.js"></SCRIPT>

<SCRIPT language="JAVASCRIPT">
 function fillBlank(name){
    document.all["<%=inputName%>"].value = document.form1.tt.value;
 }
</SCRIPT>

</head>

<body >
<form name="form1" method="post" action="" >
   <input  style="display:none" type="text" name="<%=inputName%>">
</form>
<script language="javascript">
             <%
	       if(inputDate==null || inputDate.trim().length()<10){
	     %>
	       JSCalendar(document.all["<%=inputName%>"],"<%=path%>"); 
	     <%
	       }else{
	     %>
                JSCalendar(document.all["<%=inputName%>"],"<%=path%>","<%=_year%>","<%=_month%>","<%=_date%>"); 
             <%
	       }
	     %>
</script>
</body>
</html>

⌨️ 快捷键说明

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