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

📄 empmain_family_disp.asp

📁 人力资源管理系统 人力资源管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%call fnCheckRight("family","1")%>
<%
Dim fm__MMColParam
fm__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then 
  fm__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim fm
Dim fm_numRows

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

fm_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

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

<body class="body">
<form method="POST" action="EmpMain_Family_AddNew.asp" name="form1">
  <fieldset style="padding: 2" class="fiedset"> <legend>家庭状况</legend> 
  <table border="0" cellpadding="0" cellspacing="0"  bordercolor="#111111" width="98%" align="center" class="table">
    <tr> 
      <td width="16%" nowrap class="listTitle"> <div align="center">关系</div></td>
      <td width="16%" nowrap class="listTitle"> <div align="center">姓名</div></td>
      <td width="17%" nowrap class="listTitle"> <div align="center">生日</div></td>
      <td width="17%" nowrap class="listTitle"> <div align="center">工作单位</div></td>
      <td width="17%" nowrap class="listTitle"> <div align="center">家庭地址</div></td>
      <td width="17%" nowrap class="listTitle"> <div align="center">电话</div></td>
    </tr>
<% If fm.EOF And fm.BOF Then %>
    <tr class="ListValueWhite">  
      <td colspan="6">没有记录!</td>
    </tr>
<% End If ' end fm.EOF And fm.BOF %>
<%i=-1%>
    <% 
While ((Repeat1__numRows <> 0) AND (NOT fm.EOF)) 
%>
	<%
i = i + 1
if i mod 2 = 0 then
className = "listValueWhite"
else
className = "listValuegray"
end if
%>
    <tr  class="<%=className%>" onClick="doEdit('<%=(fm.Fields.Item("ID").Value)%>')" style="cursor:hand" onMouseOver="HLItem(this)" onMouseOut="Re(this)"> 
      <td><%=(fm.Fields.Item("HMRelation").Value)%></td>
      <td><%=(fm.Fields.Item("HMMemName").Value)%></td>
      <td><%=(fm.Fields.Item("HMMemBirthday").Value)%></td>
      <td><%=(fm.Fields.Item("HMMemComp").Value)%></td>
      <td><%=(fm.Fields.Item("HMAddress").Value)%></td>
      <td><%=(fm.Fields.Item("HMTel").Value)%></td>
    </tr>
    <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  fm.MoveNext()
Wend
%>
  </table>
  </fieldset> 
  <div align="right">
    <input type="hidden" name="EmpID" value="<%=request.QueryString("ID")%>">
    <input type="submit" value="添加" name="B1" class="button">
  </div>
</form>

</body>

</html>
<%
fm.Close()
Set fm = Nothing
%>

⌨️ 快捷键说明

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