📄 empmain_work_disp.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%call fnCheckRight("work","1")%>
<%
Dim workinfo__MMColParam
workinfo__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
workinfo__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim workinfo
Dim workinfo_numRows
Set workinfo = Server.CreateObject("ADODB.Recordset")
workinfo.ActiveConnection = MM_EmpMain_STRING
workinfo.Source = "SELECT * FROM WorkDynamic WHERE EmpID = " + Replace(workinfo__MMColParam, "'", "''") + ""
workinfo.CursorType = 0
workinfo.CursorLocation = 2
workinfo.LockType = 1
workinfo.Open()
workinfo_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
workinfo_numRows = workinfo_numRows + Repeat1__numRows
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>工作动态</title>
<link rel="stylesheet" href="CSS/SellWellWeb.css" type="text/css">
<script>
var objClassName
function HLItem(obj){
obj.oldClassName=obj.className;
obj.className="ListValuehighlight";
}
function Re(obj){
obj.className=obj.oldClassName
}
function doEdit(ID){
window.location ="EmpMain_Work_Edit.asp?EmpID=<%=Request.QueryString("ID")%>&ID="+ID
}
</script>
</head>
<body class="body">
<form method="POST" action="EmpMain_work_AddNew.asp" name="form1">
<fieldset style="padding: 2" class="fiedset"> <legend>工作动态</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
<tr>
<td width="35%" align="center" nowrap class="listTitle">日期</td>
<td width="13%" align="center" nowrap class="listTitle">部门</td>
<td width="13%" align="center" nowrap class="listTitle">职务</td>
</tr>
<tr class="ListValueWhite">
<% If workinfo.EOF And workinfo.BOF Then %>
<td colspan="3">没有记录!</td>
<% End If ' end workinfo.EOF And workinfo.BOF %>
</tr>
<%i = -1%>
<%
While ((Repeat1__numRows <> 0) AND (NOT workinfo.EOF))
%>
<%
i = i + 1
if i mod 2 = 0 then
className = "listValueWhite"
else
className = "listValuegray"
end if
%>
<tr class="<%=className%>" onClick="doEdit('<%=(workinfo.Fields.Item("ID").Value)%>')" style="cursor:hand" onMouseOver="HLItem(this)" onMouseOut="Re(this)">
<td nowrap><%=(workinfo.Fields.Item("DMStartDate").Value)%>至<%=(workinfo.Fields.Item("DMEndDate").Value)%></td>
<td nowrap><%=(workinfo.Fields.Item("DMDep").Value)%></td>
<td nowrap><%=(workinfo.Fields.Item("DMTitle").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
workinfo.MoveNext()
Wend
%>
</table>
</fieldset>
<div align="right">
<input type="hidden" value="<%=request("ID")%>" name="EmpID">
<input type="submit" value="添加" name="B1" class="button">
</div>
</form>
</body>
</html>
<%
workinfo.Close()
Set workinfo = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -