-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetDeleteReviewerQAIOFields.php
93 lines (85 loc) · 3.26 KB
/
GetDeleteReviewerQAIOFields.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
<?php
/**
* Created by PhpStorm.
* User: ritwik.shanker
* Copyright of Esterline Technologies (c) 2018.
*/
/**
* Created by PhpStorm.
* User: ritwik.shanker
* Date: 28-06-2018
* Time: 10:21
*/
include 'connect.php';
session_start();
$IO_ID = $_SESSION['SELECTED_IO_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>
<form action="" method="POST" id="PostDeleteReviewQAIO" role="form">
<div class="container-fluid">
<table id="StatusTable">
<tr>
<th>Review</th>
<th> Score</th>
<th> StartDate</th>
<th> Completion Date</th>
<th>Error</th>
<th>Description</th>
<th>Quantity</th>
<th style="width:60px;">Info</th>
</tr>
<?php
// echo "ritwik";
$sql = "SELECT * FROM `io_errorinfo` WHERE `IO_ID` = '$IO_ID'";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);
?>
<tr>
<th rowspan="<?php echo $num_rows + 1; ?>">Review</th>
<?php
$select = "SELECT * FROM `wo_raisingillustration` WHERE `IO_ID` = '$IO_ID'";
$result1 = mysqli_query($conn, $select);
$num_rows1 = mysqli_num_rows($result1);
while ($row1 = mysqli_fetch_array($result1))
{
?>
<td rowspan="<?php echo $num_rows + 1 ?>"><?php echo $row1["Score"]; ?></td>
<td rowspan="<?php echo $num_rows + 1 ?>"><?php echo $row1["ReviewStartDate"]; ?></td>
<td rowspan="<?php echo $num_rows + 1 ?>"><?php echo $row1["ReviewCompleteDate"]; ?></td>
<?php
}
?>
<?php
while ($row = mysqli_fetch_array($result))
{ ?>
<tr>
<td><?php echo $row["ErrorCode"]; ?></td>
<td><?php echo $row["ErrorDesc"]; ?></td>
<td><?php echo $row["Quantity"]; ?></td>
<td><input type="radio" name="DisplayQAReviewButtons" value="<?php echo $row["ID"]; ?>" id="QAReviewID"
required></td>
</tr>
<?php
} ?>
</tr>
</table>
<input style="margin-left:40%;" type="submit" name="SubmitRQA" value="Submit">
</div>
</form>
<!--<div id="AssociatedilluButton"></div>-->
<br><br>
</body>
</html>