📄 pa_changebargain.jsp
字号:
write("<td bgcolor=#000000 "+styleTD+"color:#ffffff' >"+ WeekDay[i] + "</td>");
}
write("</tr>");
for (w = 1; w < 7; w++) {
write("<tr>");
for (d = 0; d < 7; d++) {
write("<td id=calCell "+styleTD+"cursor:hand;' onMouseOver='this.bgColor=gcToggle' onMouseOut='this.bgColor=gcBG' onclick='fSetSelected(this)'>");
write("<font id=cellText Victor='Liming Weng'> </font>");
write("</td>")
}
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(" <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(" <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(" <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>
<style type="text/css">
<!--
.style1 {
font-size: xx-large;
font-weight: bold;
}
-->
</style>
</head>
<body>
<h1 align="center">修改合同</h1>
<form name="form1" method="post" action="" enctype="multipart/form-data">
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#4B7C86">
<tr>
<td width="41%" height="30">人员姓名:</td>
<td width="59%"><input name="textfield3" type="text" value="<%=contractvo.getUserInfo().getUiRealname() %>" readonly="true"> </td>
</tr>
<tr>
<td height="30">开始日期:</td>
<td><input name="startdate" type="text" value="<%=contractvo.getStartTime()%>" readonly="true">
<a title=选择日期 href="javascript:fPopCalendar(document.all.img1,document.form1.startdate,500);" style="text-decoration:none"><img id=img1 src="psl_archive/staff_contract/img_date.gif" width="22" align=absMiddle border=0></a></td>
</tr>
<tr>
<td height="30">结束日期:</td>
<td><input name="enddate" type="text" value="<%=contractvo.getEndTime()%>" readonly="true">
<a title=选择日期 href="javascript:fPopCalendar(document.all.img1,document.form1.enddate,500);" style="text-decoration:none"><img id=img2 src="psl_archive/staff_contract/img_date.gif" width="22" align=absMiddle border=0></a></td>
</tr>
<tr>
<td height="30">岗位:</td>
<td><select name="ecposition">
<option value="<%=contractvo.getEcStation() %>"><%=contractvo.getEcStation() %></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="30">合同内容(导入): </td>
<td><input name="eccontent" type="file" ></td>
</tr>
<tr>
<td height="30">补充协议(导入):</td>
<td><input name="ecprotocol" type="file" ></td>
</tr>
<tr>
<td height="13" align="center"><input type="button" name="changeok" value=" 确 认 " onClick="ChangeContractOK(<%=contractvo.getEcId() %>)"></td>
<td align="center"><input type="button" name="changereturn" value=" 返 回 " onClick="returntosingle()"></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -