<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (Session("Manager")="1" OR JudgePopedomTF(Session("UserName"),"SK900000000")) then Call ReturnError1()%>
<%
if not isnumeric(JCID(F("ID"))) then Call ReturnError10()
set rs=server.createobject("adodb.recordset")
sql="SELECT * from SK_SystemUsers where UsersID="&JCID(F("ID"))&""
rs.Open sql,conn,1,1
if rs.eof and rs.bof then Call ReturnError4()
'Event Begin
if getconfig("SK_Event")=0 then
set rsEvent=server.createobject("adodb.recordset")
sqlEvent="select * from SK_SystemEvent"
rsEvent.open sqlEvent,conn,1,3
rsEvent.AddNew
rsEvent("SK_Title")="查看用户："&Rs("SK_Name")&" 的信息"
rsEvent("SK_User")=Session("UserName")
rsEvent("SK_Time")=Now()
rsEvent("SK_IP")=request.ServerVariables("Remote_Addr")
rsEvent.Update
rsEvent.Close 
set rsEvent=Nothing
end if
'Event End
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>查看用户信息</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../Inc/Check.js"></script>
<script language="javascript" src="../Inc/Calendar.js"></script>
<script language="JavaScript" src="../Inc/Dept.js"></script>
<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">查看用户信息</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td colspan="6" class="SK_Title1">用户信息</td>
</tr>

<tr>
<td class="SK_Text2">用户级别</td>
<td width="21%" class="SK_Text1">
<%
set rsGroup=server.createobject("adodb.recordset")
sqlGroup="select * from SK_SystemUsersGroup where UsersGroupID="&Rs("SK_Manager")&""
rsGroup.open sqlGroup,conn,1,1
Response.write""&RsGroup("SK_GroupName")&""
RsGroup.close
set RsGroup=Nothing
%></td>
<td width="10%" class="SK_Text2">部门分组</td>
<td colspan="3" class="SK_Text1">
<%
set RsDept1=server.createobject("adodb.recordset")
SqlDept1="select * from SK_SystemDept where LID="&Rs("SK_Dept1")&""
RsDept1.open SqlDept1,conn,1,1
Response.write""&RsDept1("LName")&" >> "

set RsDept2=server.createobject("adodb.recordset")
SqlDept2="select * from SK_SystemDept where LID="&Rs("SK_Dept2")&""
RsDept2.open SqlDept2,conn,1,1
Response.write""&RsDept2("LName")&" >> "

set RsDept3=server.createobject("adodb.recordset")
SqlDept3="select * from SK_SystemDept where LID="&Rs("SK_Dept3")&""
RsDept3.open SqlDept3,conn,1,1
Response.write""&RsDept3("LName")&""

RsDept1.close
set RsDept1=Nothing
RsDept2.close
set RsDept2=Nothing
RsDept3.close
set RsDept3=Nothing
%>
</td>
</tr>

<tr>
  <td class="SK_Text2">用户名</td>
  <td class="SK_Text1"><%=Rs("SK_Name")%></td>
  <td class="SK_Text2">是否锁定</td>
  <td colspan="3" class="SK_Text1"><%if Rs("SK_Locked")="1" then response.write"是" else response.write"否" end if%></td>
</tr>

<tr>
  <td colspan="6" class="SK_Title1">员工资料</td>
</tr>

<tr>
<td width="11%" class="SK_Text2">员工编号</td>
<td class="SK_Text1"><%=Rs("SK_NumID")%></td>
<td class="SK_Text2">姓　　名</td>
<td width="22%" class="SK_Text1"><%=Rs("SK_Oname")%></td>
<td width="9%" class="SK_Text2">性　　别</td>
<td width="27%" class="SK_Text1"><%if Rs("Sex")="1" then response.write"男" else response.write"女" end if%></td>
</tr>
<tr>
  <td class="SK_Text2">职位名称</td>
  <td class="SK_Text1"><%=Rs("SK_Job")%></td>
  <td class="SK_Text2">身份证号</td>
  <td class="SK_Text1"><%=Rs("SK_CID")%></td>
  <td class="SK_Text2">生　　日</td>
  <td class="SK_Text1"><%=Rs("SK_Birth")%></td>
</tr>

<tr>
  <td class="SK_Text2">籍　　贯</td>
  <td class="SK_Text1"><%=Rs("SK_Native")%></td>
  <td class="SK_Text2">民　　族</td>
  <td class="SK_Text1"><%=Rs("SK_Nation")%></td>
  <td class="SK_Text2">学　　历</td>
  <td class="SK_Text1"><%=Rs("SK_Above")%></td>
</tr>

<tr>
  <td class="SK_Text2">毕业院校</td>
  <td class="SK_Text1"><%=Rs("SK_School")%></td>
  <td class="SK_Text2">专　　业</td>
  <td class="SK_Text1"><%=Rs("SK_Major")%></td>
  <td class="SK_Text2">毕业时间</td>
  <td class="SK_Text1"><%=Rs("SK_Gradu")%></td>
</tr>

<tr>
  <td class="SK_Text2">办公电话</td>
  <td class="SK_Text1"><%=Rs("SK_Tel")%></td>
  <td class="SK_Text2">传　　真</td>
  <td class="SK_Text1"><%=Rs("SK_Fax")%></td>
  <td class="SK_Text2">电子邮件</td>
  <td class="SK_Text1"><%=Rs("SK_Email")%></td>
</tr>
<tr>
  <td class="SK_Text2">家庭电话</td>
  <td class="SK_Text1"><%=Rs("SK_Phone")%></td>
  <td class="SK_Text2">手　　机</td>
  <td class="SK_Text1"><%=Rs("SK_Mobile")%></td>
  <td class="SK_Text2">特长技能</td>
  <td class="SK_Text1"><%=Rs("SK_Skill")%></td>
</tr>
<tr>
  <td class="SK_Text2">出生地址</td>
  <td class="SK_Text1"><%=Rs("SK_Bplace")%></td>
  <td class="SK_Text2">现居地址</td>
  <td class="SK_Text1"><%=Rs("SK_Address")%></td>
  <td class="SK_Text2">个人爱好</td>
  <td class="SK_Text1"><%=Rs("SK_Hobby")%></td>
</tr>

<tr>
  <td class="SK_Text2">合同起始</td>
  <td class="SK_Text1"><%=Rs("SK_Atime")%></td>
  <td class="SK_Text2">合同截止</td>
  <td class="SK_Text1"><%=Rs("SK_Btime")%></td>
  <td class="SK_Text2">合同提醒</td>
  <td class="SK_Text1"><%if Rs("SK_Remind")="0" then 
response.write"不提醒"
elseif Rs("SK_Remind")="1" then 
response.write"提前1天提醒"
elseif Rs("SK_Remind")="2" then 
response.write"提前2天提醒"
elseif Rs("SK_Remind")="3" then 
response.write"提前3天提醒"
elseif Rs("SK_Remind")="5" then 
response.write"提前5天提醒"
end if
%></td>
</tr>
<tr>
  <td class="SK_Text2">入职日期</td>
  <td class="SK_Text1"><%=Rs("SK_Intime")%></td>
  <td class="SK_Text2">是否在职</td>
  <td class="SK_Text1"><%if Rs("SK_Incum")="1" then response.write"离职" else response.write"在职" end if%></td>
  <td class="SK_Text2">离职日期</td>
  <td class="SK_Text1"><%=Rs("SK_Outtime")%></td>
</tr>

<tr>
  <td valign="top" class="SK_Text2">备　　注</td>
  <td colspan="5" valign="top" class="SK_Text1"><%=Rs("SK_UsersContent")%></td>
  </tr>

<tr>
  <td colspan="6" class="SK_Text">
<input type="button" value=" 关闭 " onClick="window.opener.location.reload();window.close();" class="button1" /></td>
</tr>
</table>


</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>
	
</td>
</tr>
</TBODY>
</table>
</body>
<%Call CloseDB()%>
</html>