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

📄 pa_recordchange.jsp

📁 J2ee开发的 人事管理系统 使用oracle数据库 myeclips平台开发
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		write("</tr>");
	}
  }
}

function fUpdateCal(iYear, iMonth) {
  myMonth = fBuildCal(iYear, iMonth);
  var i = 0;
  for (w = 0; w < 6; w++)
	for (d = 0; d < 7; d++)
		with (cellText[(7*w)+d]) {
			Victor = i++;
			if (myMonth[w+1][d]<0) {
				color = gcGray;
				innerText = -myMonth[w+1][d];
			}else{
				color = ((d==0)||(d==6))?"red":"black";
				innerText = myMonth[w+1][d];
			}
		}
}

function fSetYearMon(iYear, iMon){
  tbSelMonth.options[iMon-1].selected = true;
  for (i = 0; i < tbSelYear.length; i++)
	if (tbSelYear.options[i].value == iYear)
		tbSelYear.options[i].selected = true;
  fUpdateCal(iYear, iMon);
}

function fPrevMonth(){
  var iMon = tbSelMonth.value;
  var iYear = tbSelYear.value;
  
  if (--iMon<1) {
	  iMon = 12;
	  iYear--;
  }
  
  fSetYearMon(iYear, iMon);
}

function fNextMonth(){
  var iMon = tbSelMonth.value;
  var iYear = tbSelYear.value;
  
  if (++iMon>12) {
	  iMon = 1;
	  iYear++;
  }
  
  fSetYearMon(iYear, iMon);
}

function fToggleTags(){
  with (document.all.tags("SELECT")){
 	for (i=0; i<length; i++)
 		if ((item(i).Victor!="Won")&&fTagInBound(item(i))){
 			item(i).style.visibility = "hidden";
 			goSelectTag[goSelectTag.length] = item(i);
 		}
  }
}

function fTagInBound(aTag){
  with (VicPopCal.style){
  	var l = parseInt(left);
  	var t = parseInt(top);
  	var r = l+parseInt(width);
  	var b = t+parseInt(height);
	var ptLT = fGetXY(aTag);
	return !((ptLT.x>r)||(ptLT.x+aTag.offsetWidth<l)||(ptLT.y>b)||(ptLT.y+aTag.offsetHeight<t));
  }
}

function fGetXY(aTag){
  var oTmp = aTag;
  var pt = new Point(0,0);
  do {
  	pt.x += oTmp.offsetLeft;
  	pt.y += oTmp.offsetTop;
  	oTmp = oTmp.offsetParent;
  } while(oTmp.tagName!="BODY");
  return pt;
}

// Main: popCtrl is the widget beyond which you want this calendar to appear;
//       dateCtrl is the widget into which you want to put the selected date.
// i.e.: <input type="text" name="dc" style="text-align:center" readonly><INPUT type="button" value="V" onclick="fPopCalendar(dc,dc);return false">
function fPopCalendar(popCtrl, dateCtrl, leftn, strDate){		//增加了lenftn 水平坐标参数,用来控制位置

  if (popCtrl == previousObject){
	  	if (VicPopCal.style.visibility == "visible"){
  		HiddenDiv();
  		//return true;    //谷文栋去掉 2003-02-10
  	}
  }
  
  previousObject = popCtrl;
  gdCtrl = dateCtrl;
  fInitialDate(strDate);
  fSetYearMon(giYear, giMonth); 
  var point = fGetXY(popCtrl);
  with (VicPopCal.style) {
  	left = point.x;
    left = leftn;    //谷文栋添加 2003-02-10
  	top  = point.y+popCtrl.offsetHeight;
  	//width = VicPopCal.offsetWidth;
  	//height = VicPopCal.offsetHeight;
  	fToggleTags(point); 	
  	visibility = 'visible';
  }
  blnFlag = false;
}

// Added by Danian Zhang/SUI
function fInitialDate(strDate){
	if( strDate == null || strDate.length != 10 )
		return false;

	var sYear  = strDate.substring(0,4);
	var sMonth = strDate.substring(5,7);
	var sDay   = strDate.substring(8,10);

	if( sMonth.charAt(0) == '0' ) { sMonth = sMonth.substring(1,2); }
	if( sDay.charAt(0)   == '0' ) { sDay   = sDay.substring(1,2);   }

	var nYear  = parseInt(sYear );
	var nMonth = parseInt(sMonth);
	var nDay   = parseInt(sDay  );
	
	if ( isNaN(nYear ) )	return false;
	if ( isNaN(nMonth) )	return false;
	if ( isNaN(nDay  ) )	return false;

	var arrMon = new Array(12);
	arrMon[ 0] = 31;	arrMon[ 1] = nYear % 4 == 0 ? 29:28;
	arrMon[ 2] = 31;	arrMon[ 3] = 30;
	arrMon[ 4] = 31;	arrMon[ 5] = 30;
	arrMon[ 6] = 31;	arrMon[ 7] = 31;
	arrMon[ 8] = 30;	arrMon[ 9] = 31;
	arrMon[10] = 30;	arrMon[11] = 31;

	if ( nYear  < 1900 || nYear > 2100 )			return false;
	if ( nMonth < 1 || nMonth > 12 )				return false;
	if ( nDay < 1 || nDay > arrMon[nMonth - 1] )	return false;

	giYear  = nYear;
	giMonth = nMonth;
	giDay   = nDay;
	return true;
}

var gMonths = new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");

with (document) {
//*******  样式名称,在下面用引号不成功,所以做成变量  *********
var button1;
var button2;
button1 = "button1"
button2 = "button2"
//************************************************************
write("<link href='style_css/button.css' rel='stylesheet' type='text/css'>");
write("<Div id='VicPopCal' style='OVERFLOW:hidden;POSITION:absolute;VISIBILITY:hidden;border:1px ridge;z-index:100;'>");
write("<table id='TableCal' border='0' bgcolor='#f5f5f5'>");
write("<TR>");
write("<td valign='middle' align='center'><input type='button' class='button1' onMouseOver='this.className=button2' onMouseOut='this.className=button1' name='PrevMonth' value='<' style='height:20;width:20;' onClick='fPrevMonth()'>");
//write("<td valign='middle' align='center'><input type='button' name='PrevMonth' value='<' style='height:20;width:20;' onClick='fPrevMonth()'>");
write("&nbsp;<SELECT name='tbSelYear' onChange='fUpdateCal(tbSelYear.value, tbSelMonth.value)' Victor='Won'>");
for(i=1950;i<2015;i++)
	write("<OPTION value='"+i+"'>"+i+" 年</OPTION>");
write("</SELECT>");
write("&nbsp;<select name='tbSelMonth' onChange='fUpdateCal(tbSelYear.value, tbSelMonth.value)' Victor='Won'>");
for (i=0; i<12; i++)
	write("<option value='"+(i+1)+"'>"+gMonths[i]+"</option>");
write("</SELECT>");
write("&nbsp;<input type='button' class='button1' onMouseOver='this.className=button2' onMouseOut='this.className=button1' name='PrevMonth' value='>' style='height:20;width:20;' onclick='fNextMonth()'>");
write("</td>");
write("</TR><TR>");
write("<td align='center'>");
write("<DIV style='background-color:#cccccc'><table width='100%' border='0'>");
fDrawCal(giYear, giMonth, 20, '12');
write("</table></DIV>");
write("</td>");
write("</TR><TR><TD align='center'>");
write("<TABLE width='100%'><TR><TD align='center'>");
//write("<B style='cursor:hand' onclick='fSetDate(0,0,0)' onMouseOver='this.style.color=gcToggle' onMouseOut='this.style.color=0'>清空</B>");
write("<font style='cursor:hand' onclick='HiddenDiv()' onMouseOver='this.style.color=gcToggle' onMouseOut='this.style.color=0'>关闭</font>");   //谷文栋添加 2003-02-10
write("</td><td algin='center'>");
write("<font style='cursor:hand' onclick='fSetDate(giYear,giMonth,giDay)' onMouseOver='this.style.color=gcToggle' onMouseOut='this.style.color=0'>今天: "+giYear+"-"+giMonth+"-"+giDay+"</font>");
write("</td></tr></table>");
write("</TD></TR>");
write("</TABLE></Div>");
}
</script>

<%
EmployeeRecordVO ervo=new EmployeeRecordVO();
UserInfoVO uservo=new UserInfoVO();

ervo=(EmployeeRecordVO)request.getAttribute("ervo");
uservo=ervo.getUserInfo();

%>

</head>

<body>
<h1 align="center">修改<%=uservo.getUiRealname() %>履历<br>
</h1>
<form name="form1" method="post" action="">
  <table width="600" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#4B7C86" class="toBeSetBgColor">
    <tr>
      <td width="45%" height="25">工作部门:</td>
      <td width="55%" height="25"><input name="erdepartment" type="text" value="<%=ervo.getErDepartment() %>"></td>
    </tr>
    <tr>
      <td width="45%" height="25">工作单位:</td>
      <td width="55%" height="25"><input name="ercompany" type="text" value="<%=ervo.getErFactory() %>"></td>
    </tr>
    <tr>
      <td height="25">开始时间:</td>
      <td height="25">        <input type="text"  name="startdate" value="<%=ervo.getStartTime() %>" readonly="true">
          <a title = 选择日期 href="javascript:fPopCalendar(document.all.img1,document.form1.startdate,460);"  style="text-decoration:none"><img id="img1" src="psl_archive/staff_CV/img_date.gif"  border="0" width="21" height="20"></a></td>
    </tr>
    <tr>
      <td height="25"><p>结束时间:</p></td>
      <td height="25">        <input name="enddate" type="text" value="<%=ervo.getEndTime() %>" readonly="true">
          <a title = 选择日期 href="javascript:fPopCalendar(document.all.img2,document.form1.enddate,460);"  style="text-decoration:none"> <img id="img2" src="psl_archive/staff_CV/img_date.gif" border="0" width="21" height="20"></a></td>
    </tr>
    <tr>
      <td height="25">成绩:</td>
      <td height="25">
        <select name="ergrade">
		<option  value="<%=ervo.getErGrade() %>"><%=ervo.getErGrade() %></option>
          <option value="优">优</option>
          <option value="良">良</option>
          <option value="中">中</option>
          <option value="差">差</option>
          </select></td>
    </tr>
    <tr>
      <td height="25">职位:</td>
      <td height="25"><select name="erposition">
        <option value="<%=ervo.getErPosition() %>"><%=ervo.getErPosition() %></option>
        <option value="总裁">总裁</option>
        <option value="总经理">总经理</option>
        <option value="经理助理">经理助理</option>
        <option value="部门经理">部门经理</option>
        <option value="项目组长">项目组长</option>
        <option value="程序员">程序员</option>
      </select>
      </td>
    </tr>
    <tr>
      <td height="90" valign="top">工作内容:</td>
      <td valign="top"><textarea name="ercontent" cols="30" rows="5"><%=ervo.getErContent() %></textarea>
        </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <div id="Layer1" style="position:absolute; left:281px; top:446px; width:222px; height:43px; z-index:1">
    <input type="button" name="Submit" value=" 确 定 " onClick="ChangeErOK(<%=ervo.getErId() %>)">
&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" name="Submit2" value=" 返 回 " onClick="returntosingle(<%=uservo.getUiId() %>)">
</div>

</form>
</body>
</html>

⌨️ 快捷键说明

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