-
Notifications
You must be signed in to change notification settings - Fork 27
/
detail_staff.php
82 lines (81 loc) · 2.8 KB
/
detail_staff.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
$id=$_GET["id"];
include_once 'conn.php';
$ndate =date("Y-m-d");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>员工详细信息</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body class="add_news_body">
<!--员工详细信息-->
<div class="add_news">
<div class="clearfix admin_con_top">
<h2 class="fl">员工详细信息</h2>
<p class="fr">当前日期: <?php echo $ndate; ?></p>
</div>
<div class="add_news_box">
<?php
$sql="select * from yuangongxinxi where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
?>
<ul class="staff_detail_ul">
<li class="clearfix">
<p class="fl">
<span class="tip">员工工号:</span>
<span class="msg"><?php echo mysql_result($query,0,number);?></span>
</p>
<p class="fl">
<span class="password">员工姓名:</span>
<span class="msg"><?php echo mysql_result($query,$i,name);?></span>
</p>
</li>
<li class="clearfix">
<p class="fl">
<span class="password">家庭地址:</span>
<span class="msg"><?php echo mysql_result($query,0,address);?></span>
</p>
<p class="fl">
<span class="password">身份证号:</span>
<span class="msg"><?php echo mysql_result($query,0,card);?></span>
</p>
</li>
<li class="clearfix">
<p class="fl">
<span class="password">入职时间:</span>
<span class="msg"><?php echo mysql_result($query,0,time);?></span>
</p>
<p class="fl">
<span class="password">员工薪资:</span>
<span class="msg"><?php echo mysql_result($query,0,price);?></span>
</p>
</li>
<li class="clearfix">
<p class="fl">
<span class="password">员工工龄:</span>
<span class="msg"><?php echo mysql_result($query,0,age);?></span>
</p>
<p class="fl">
<span class="password">就职岗位:</span>
<span class="msg"><?php echo mysql_result($query,0,job);?></span>
</p>
</li>
<li style="height:30px;">
<span class="password">备注信息:</span>
<span class="msg"><?php echo mysql_result($query,0,remarks);?></span>
</li>
</ul>
<?php
}
?>
</div>
</div>
<!--员工详细信息end-->
</body>
</html>