-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetAssociatedWoButtons.php
141 lines (126 loc) · 5.61 KB
/
GetAssociatedWoButtons.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
include 'connect.php';
session_start();
$_SESSION['SELECTED_WO_ID'] = $_GET["u"]; //Getting ID of selected WO
//echo $_SESSION['SELECTED_WO_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>
<br><br>
<h3><b>Associated WO</b></h3>
<br><br>
<ul class="nav nav-tabs nav-justified">
<li><a data-toggle="tab" href="#" onclick="ShowStartWIPFields(this.value);" value="">Start-WIP</a></li>
<li><a data-toggle="tab" href="#" onclick="ShowOwnerAddEditCommentFields(this.value);" value="">Author-Add/Edit
Comments</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Raising Illu
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a data-toggle="tab" href="#" onclick="ShowAddRaisingIlluFields(this.value);" value="">Add</a></li>
<li><a data-toggle="tab" href="#" onclick="ShowAssociatedIO(this.value);" value="">Edit</a></li>
<li><a data-toggle="tab" href="#" onclick="ShowIlluDeleteCommentsFields(this.value);" value="">Delete</a>
</li>
</ul>
</li>
<li><a data-toggle="tab" href="#" onclick="ShowSfckWoFields(this.value);" value="">SFCK-WO</a></li>
<?php if ($_SESSION["AccessValue"] === '5' or $_SESSION["AccessValue"] === '0')
{
?>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Reviewer - QA
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a data-toggle="tab" href="#" onclick="ShowAddReviewerQAFields(this.value);" value="">Add</a></li>
<li><a data-toggle="tab" href="#" onclick="ShowEditReviewerQAButtons(this.value);" value="">Edit</a>
</li>
<li><a data-toggle="tab" href="#" onclick="ShowDeleteReviewerQAFields(this.value);" value="">Delete</a>
</li>
<li><a data-toggle="tab" href="#" onclick="CalculateReviewScore(this.value);" value="">Calculate</a>
</li>
<li><a data-toggle="tab" href="#" onclick="SubmitReview(this.value);" value="">Submit</a></li>
</ul>
</li>
<?php
}
?>
<?php if ($_SESSION["AccessValue"] === '1' or $_SESSION["AccessValue"] === '0')
{
?>
<li><a data-toggle="tab" href="#" onclick="ShowEnterCustomerQAFields(this.value);" value="">Draft Delivery</a>
</li>
<li><a data-toggle="tab" href="#" onclick="ShowCstmrComntsCompletionFields(this.value);" value="">Shop
Verification</a></li>
<?php
} ?>
<li><a data-toggle="tab" href="#" onclick="ShowVandVFields(this.value);" value="">V & V Update</a></li>
<?php if ($_SESSION["AccessValue"] === '1' or $_SESSION["AccessValue"] === '0')
{
?>
<li><a data-toggle="tab" href="#" onclick="ShowSendToCustomerFields(this.value);" value="">Final Delivery</a>
</li>
<?php
}
?>
</ul>
<div id="AssociatedWOProgress"></div>
<br><br><br><br>
<h3><b>Associated Illustration</b></h3>
<br><br>
<div class="container-fluid" style="overflow-x:auto">
<table id="StatusTable">
<tr>
<th style="width:60px;">Info</th>
<th>ATA Number</th>
<th>IO No</th>
<th>Status</th>
<th>Illustrator</th>
<th>Graphic Id (OLD)</th>
<th>Type</th>
<th>Alloted Date</th>
<th>Required Date</th>
<th>Reviewer</th>
<th>Author Remarks</th>
<th>Illustrator Remarks</th>
</tr>
<?php
$WO_ID = $_SESSION['SELECTED_WO_ID'];
$sql = "SELECT * FROM `wo_raisingillustration` WHERE `WO_ID` = '$WO_ID'";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($result))
{ ?>
<tr>
<td><input type="radio" name="DisplayAssIoButtons" value="<?php echo $row["IO_ID"]; ?>"
onclick="ShowAssociatedIoTab(this.value);"></td>
<td><?php echo $row["ATA Number"]; ?></td>
<td><?php echo $row["IO No"]; ?></td>
<td><?php echo $row["Status"]; ?></td>
<td><?php echo $row["Illustrator"]; ?></td>
<td><?php echo $row["Graphic ID Old"]; ?></td>
<td><?php echo $row["Type"]; ?></td>
<td><?php echo $row["IO allotted date"]; ?></td>
<td><?php echo $row["IO required date"]; ?></td>
<td><?php echo $row["Reviewer"]; ?></td>
<td><?php echo $row["Remarks"]; ?></td>
<td><?php echo $row["IlluRemarks"]; ?></td>
</tr>
<?php
} ?>
</table>
</div>
<div id="AssociatedilluButton"></div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</body>
</html>