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

📄 empmain_jiangcheng_disp.asp

📁 欢迎大家分享本系统为bs架构的asp+access版本。<br>包含:员工信息
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%call fnCheckRight("HPInfo","1")%>
<%
Dim JC__MMColParam
JC__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then 
  JC__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim JC
Dim JC_numRows

Set JC = Server.CreateObject("ADODB.Recordset")
JC.ActiveConnection = MM_EmpMain_STRING
JC.Source = "SELECT * FROM HortPun WHERE EmpID = " + Replace(JC__MMColParam, "'", "''") + ""
JC.CursorType = 0
JC.CursorLocation = 2
JC.LockType = 1
JC.Open()

JC_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
JC_numRows = JC_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_jiangcheng_Edit.asp?EmpID=<%=Request.QueryString("ID")%>&ID="+ID
}
</script>
</head>

<body class="body">
<form method="POST" action="EmpMain_jiangcheng_AddNew.asp">
  <fieldset style="padding: 2" class="fiedset"> <legend>奖惩记录</legend> 
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"  bordercolor="#111111" class="table">
    <tr> 
      <td width="25%" align="center" class="listTitle">日期</td>
      <td width="25%" align="center" class="listTitle">类型</td>
      <td width="25%" align="center" class="listTitle">描述</td>
    </tr>
<% If JC.EOF And JC.BOF Then %>
    <tr class="ListValueWhite">   
      <td colspan="3">没有记录!</td> 
    </tr>
<% End If ' end JC.EOF And JC.BOF %>
	<%
	i = -1
	%>
    <% 
While ((Repeat1__numRows <> 0) AND (NOT JC.EOF)) 
%>
    <%
i = i + 1
if i mod 2 = 0 then
className = "listValueWhite"
else
className = "listValuegray"
end if
%>
    <tr class="<%=className%>" onClick="doEdit('<%=(JC.Fields.Item("ID").Value)%>')" style="cursor:hand" onMouseOver="HLItem(this)" onMouseOut="Re(this)"> 
      <td width="25%"><%=(JC.Fields.Item("HPdate").Value)%> </td>
      <td width="25%"><%=(JC.Fields.Item("HPType").Value)%> </td>
      <td width="25%"><%=(JC.Fields.Item("HPReson").Value)%> </td>
    </tr>
    <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  JC.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>
<%
JC.Close()
Set JC = Nothing
%>

⌨️ 快捷键说明

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