-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage_Machine.php
120 lines (91 loc) · 3.91 KB
/
manage_Machine.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
session_start();
include("connect/connect.php");
include("function.php");
if (!Checklogin())
{
header("location: login_err.php"); //ทำหน้าเพื่อให้เข้าหน้า Login
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title> Manage Customer </title>
</head>
<!-- breadcrumb -->
<link rel="stylesheet" href="css/style_breadcrumb.css" media="screen" type="text/css" />
<!-- DC Table Styles I CSS -->
<link type="text/css" rel="stylesheet" href="css/dc_tables1.css" />
<link type="text/css" rel="stylesheet" href="css/button.css" />
<!-- Start font-->
<link rel="stylesheet" type="text/css" href="font-awesome\css\font-awesome.min.css">
<!--Bootstrap-->
<link href="bootstrap_ 2/css/bootstrap.css" rel="stylesheet">
<link href="css/flat-ui.css" rel="stylesheet">
<link href="css/demo.css" rel="stylesheet">
<link rel="shortcut icon" href="images/bin.ico">
<!--validation-->
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="js/jquery.js" type="text/javascript"></script>
<!-- FRENCH LOCALISATION <script src="js/jquery.validationEngine-fr.js" type="text/javascript"></script> -->
<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
<?php
include("connect/connect.php");
include("function.php");
?>
<body bgcolor="#c0e1da" link="BLUE" vlink="BLUE" alink="BLUE">
<br>
<ul id="breadcrumb" style="font-size: small;">
<li><a href="index.php" target="iframe"><i class="fa fa-home fa-lg"></i> </a></li>
<li><a href="#"><i class="fa fa-list-alt fa-lg"></i> ข้อมูลพื้นฐาน</a></li>
<li><a href='manage_Machine.php'target="iframe"><i class="fa fa-cog fa-lg"></i> ข้อมูลเครื่องจักร</a></li>
</ul>
<center>
<table border="0">
<tr><br>
<td colspan="9" align="center" style="font-size: 40px;">
<b><font face ="TH Sarabun New"> การจัดการข้อมูลเครื่องบดพลาสติก </b></td></font>
</tr>
<tr>
<br>
<?php
$sql="SELECT `Mac_ID` , `Capacity` , Emp_Pre, Emp_Name, Emp_lname ";
$sql=$sql."FROM `machine` m ";
$sql=$sql."LEFT JOIN employee e ON ( m.`Emp_ID` = e.`Emp_ID` ) ";
//echo "<br>" .$sql."<br>";
?>
<!-- DC Table Styles I:12 Start -->
<table class="dc_table_s12" summary="Sample Table" style="width:80%;" >
<thead>
<tr style="height: 50px;">
<td><div align="center"><FONT COLOR=#fff> หมายเลขเครื่องบด </FONT></div></td>
<td><div align="center"><FONT COLOR=#fff> ศักยภาพในการทำงาน<br>(กิโลกรัม) </FONT></div></td>
<td><div align="center"><FONT COLOR=#fff> พนักงานประจำเครื่อง </FONT></div></td>
<td><div align="center"><FONT COLOR=#fff> แก้ไข </FONT></div></td>
</tr>
</thead>
<?php $record = mysql_query($sql);
while($data=mysql_fetch_assoc($record)){ ?>
<tbody>
<tr>
<td><div align="center"><?php echo $data['Mac_ID']; ?> </div></td>
<td><div align="center"> <?php echo $data['Capacity'];?> </div></td>
<td><div align="center"> <?php echo $data['Emp_Pre']; ?><?php echo $data['Emp_Name']; ?> <?php echo $data['Emp_lname'];?></div></td>
<td><div align="center"><a href="./edit_Mac_recv.php?Mac_ID=<?php echo $data['Mac_ID'];?>">
<img src="images/icons/png/Edit-128.png"></a></div></td>
</tr>
</tbody>
<?php } ?>
<tfoot>
<tr>
<th scope="row"></th>
<td colspan="7"></td>
</tr>
</tfoot>
</table>
</center>
<script src='http://codepen.io/assets/libs/fullpage/jquery.js'></script>
<script src="js/index_breadcrumb.js"></script>
</body>
</html>