-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetWOIndi.php
105 lines (96 loc) · 4.08 KB
/
GetWOIndi.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
<?php
/**
* User: ritwik.shanker
* Copyright of Esterline Technologies Corporation (c) 2018.
*/
include 'connect.php';
session_start();
$_SESSION["SELECTED_PRJ"] = $_GET["rit"];
$Seleted_Prj = $_SESSION["SELECTED_PRJ"];
//$_SESSION['varname'] = $row["ID"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container-fluid">
<table id="StatusTable">
<tr>
<th style="width:60px;">Info</th>
<!--<th>ID</th>-->
<th>ATA Number</th>
<th>WO No</th>
<th>Status</th>
<th>Manual</th>
<th>Description / Title</th>
<th>Type of Work</th>
<th>Author</th>
<th>WO Allotted date</th>
<th>Start Date</th>
<th>SFCK Date- Planned</th>
<th>Peer Reviewer</th>
<th>Peer QA Completion Date- Planned</th>
<th>Internal Reviewer</th>
<th>Internal QA Completion Date- Planned</th>
<th>Customer Delivery Date</th>
<th>Remarks</th>
<!-- <th>Partner/Customer QA Comments Received Date</th>-->
<!-- <th> Partner/Customer QA Re-submission Date</th>-->
</tr>
<?php
$empid = $_SESSION["user_id"];
if ($_SESSION["AccessValue"] === '1' or $_SESSION["AccessValue"] === '0')
{
$sql = "SELECT * FROM `associated_wos` WHERE `Project` = '$Seleted_Prj'";
}
else
{
$sql = "SELECT * FROM `associated_wos` WHERE (`Project` = '$Seleted_Prj' AND
(`OID` = '$empid' OR `PRID` = '$empid' OR `IRID` = '$empid' OR `IID` = '$empid'))";
}
//echo $sql;
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($result))
{ ?>
<tr>
<td><input type="radio" name="DisplayWOButtons" value="<?php echo $row["ID"]; ?>"
onclick="ShowIOIndi(this.value);"></td>
<td><?php echo $row["ATA Number"]; ?></td>
<td><?php echo $row["WO No"]; ?></td>
<td><?php echo $row["WO Status"]; ?></td>
<td><?php echo $row["Manual"]; ?></td>
<td><?php echo $row["Description"]; ?></td>
<td><?php echo $row["Type of Work"]; ?></td>
<td><?php echo $row["Owner"]; ?></td>
<td><?php echo $row["WO Allotted date"]; ?></td>
<td><?php echo $row["StartDate"]; ?></td>
<td><?php echo $row["SFCK Date- Planned"]; ?></td>
<td><?php echo $row["Peer Reviewer"]; ?></td>
<td><?php echo $row["Peer QA Completion Date- Planned"]; ?></td>
<td><?php echo $row["Internal Reviewer"]; ?></td>
<td><?php echo $row["Internal QA Completion Date- Planned"]; ?></td>
<td><?php echo $row["Customer Delivery Date"]; ?></td>
<td> <?php echo $row["Owner Remarks"]; ?></td>
<!-- <td>--><?php //echo $row["Customer CompletionDate"];
?><!--</td>-->
<!-- <td>--><?php //echo $row["SendTo CustomerDate"];
?><!--</td>-->
</tr>
<?php
} ?>
</table>
</div>
<div id="WOIndi"></div>
<br><br>
</body>
</html>