<!--#include file="../../public/showdate.asp"--> <% if session("rolename")="董事长" then %> <script language="javascript"> <!-- function check(obj){ var sData = dialogArguments; var url = "PlanIfrm1.asp?method=query"; var q_employee_name = obj.employee_name.value.replace(/'/g,"''"); q_area=obj.area.value; q_sdate = obj.sdate.value; q_edate = obj.edate.value; q_name = obj.name.value; obj = eval(obj); String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } var sdate1 = new Date(obj.sdate.value); var edate1 = new Date(obj.edate.value); if (sdate1 > edate1){ q_sdate = obj.edate.value; q_edate = obj.sdate.value; } if (q_area.Trim() != ""){ url = url + "&area="+q_area+"" } if (q_employee_name.Trim() != ""){ url = url + "&employee_name="+q_employee_name+"" } if (q_name.Trim() != ""){ url = url + "&name="+q_name+"" } if(q_sdate.Trim() != ""){ url = url + "&sdate="+q_sdate+"" } if(q_edate.Trim() != ""){ url = url + "&edate="+q_edate+"" } sData.document.frames("IFrm").location.href = url; } </script> <% else %> <script language="javascript"> <!-- function check(obj){ var sData = dialogArguments; var url = "PlanIfrm.asp?method=query"; var q_employee_name = obj.employee_name.value.replace(/'/g,"''"); q_area=obj.area.value; q_sdate = obj.sdate.value; q_edate = obj.edate.value; q_name = obj.name.value; obj = eval(obj); String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } var sdate1 = new Date(obj.sdate.value); var edate1 = new Date(obj.edate.value); if (sdate1 > edate1){ q_sdate = obj.edate.value; q_edate = obj.sdate.value; } if (q_area.Trim() != ""){ url = url + "&area="+q_area+"" } if (q_employee_name.Trim() != ""){ url = url + "&employee_name="+q_employee_name+"" } if (q_name.Trim() != ""){ url = url + "&name="+q_name+"" } if(q_sdate.Trim() != ""){ url = url + "&sdate="+q_sdate+"" } if(q_edate.Trim() != ""){ url = url + "&edate="+q_edate+"" } sData.document.frames("IFrm").location.href = url; } </script> <% end if %>