-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestingresult.php
More file actions
247 lines (216 loc) · 16.5 KB
/
Copy pathtestingresult.php
File metadata and controls
247 lines (216 loc) · 16.5 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<?php
session_start();
if($_SESSION['companyname']){
?>
<!DOCTYPE html>
<html lang="en" class="light scroll-smooth" dir="ltr">
<!-- Mirrored from shreethemes.in/techwind/layouts/user-profile.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 02 Jul 2022 22:45:35 GMT -->
<head>
<meta charset="UTF-8" />
<title>Techwind - Tailwind CSS Multipurpose Landing Page Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta content="Tailwind CSS Saas & Software Landing Page Template" name="description" />
<meta name="author" content="Shreethemes" />
<meta name="website" content="https://shreethemes.in/" />
<meta name="email" content="support@shreethemes.in" />
<meta name="version" content="1.2.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico" />
<!-- Css -->
<link href="assets/libs/tobii/css/tobii.min.css" rel="stylesheet">
<!-- Main Css -->
<link href="assets/libs/%40iconscout/unicons/css/line.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="assets/css/icons.min.css" />
<link rel="stylesheet" href="assets/css/tailwind.min.css" />
<link
href="assets/style.a49749f4fb5cff923e10.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<?php
include 'header.php';
include 'dashboardheader.php';
$cid=$_SESSION['company_id'];
$at_query="select * from product_testing pt join product p on pt.pro_id=p.pro_id join testing_type tt on pt.testing_id=tt.testing_id where p.company_id='$cid'";
$at_result=mysqli_query($conn,$at_query);
?>
<div class="md:px-3 mt-[30px] md:mt-0 ">
<div class="p-6 rounded-md shadow dark:shadow-gray-700 bg-white dark:bg-slate-900">
<h5 class="text-lg font-semibold mb-4">Testing Results :</h5>
<!-- Start -->
<div class="rounded-sm border
border-slate-200">
<div class="lz">
<table class="av oq lg lb responsive">
<!-- Table body -->
<thead class="bg-gray">
<tr style="background-color: rgba(77, 69, 230, 0.05); color: #4f46e5; overflow-x: hidden;">
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px; ">Product</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;">Product Code</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;">Testing Type</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;">Start Date</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;">End Date</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;">Status</th>
<th scope="col" style="text-align: left; vertical-align: bottom; border-top: 1px solid #dee2e6; padding: 12px;"></th>
</tr>
</thead>
<?php while($at_row=mysqli_fetch_assoc($at_result)) {?>
<tbody class="text-sm" x-data="{
open: false }">
<!-- Row -->
<tr>
<td class="v_ wk xe vm
co">
<div class="flex
items-center
text-slate-800">
<div class="ua
ol ap flex
items-center
justify-center
hy
rounded-full
mr-2 _f">
<img
class="rounded-full
"
src="data:image/jpg;charset=utf8;base64,<?php echo base64_encode($at_row['pro_image']);?>"
width="30"
height="30"
alt="User
01">
</div>
<div class="gk
text-slate-800"><?php echo $at_row['pro_name'] ?></div>
</div>
</td>
<td class="v_ wk xe vm
co">
<div class="gh gk" style="color: #4f46e5"><?php echo $at_row['pro_testing_code'] ?></div>
</td>
<td class="v_ wk xe vm co">
<div class="gh"><?php echo $at_row['testing_title'] ?></div>
</td>
<td class="v_ wk xe vm
co">
<div class="gp"><?php echo $at_row['pro_testing_start_date'] ?></div>
</td>
<td class="v_ wk xe vm
co">
<div class="gh"><?php echo $at_row['pro_testing_end_date'] ?></div>
</td>
<td class="v_ wk xe vm
co">
<div
class="inline-flex
gk pe yh
rounded-full gp
vk vy"><?php echo $at_row['pro_testing_status'] ?></div>
</td>
<td class="v_ wk xe vm
co ut">
<div class="flex
items-center">
<button
class="yu xm
fe"
:class="{
'az': open
}"
@click.prevent="open=
!open"
:aria-expanded="open"
aria-controls="description-01">
<span
class="tc">Menu</span>
<svg
class="uu
of db"
viewBox="0
0 32
32">
<path
d="M16
20l-5.4-5.4
1.4-1.4
4 4
4-4
1.4
1.4z"></path>
</svg>
</button>
</div>
</td>
</tr>
<!--
Example of content revealing when clicking the button on the right side:
Note that you must set a "colspan" attribute on the <td> element,
and it should match the number of columns in your table
-->
<tr id="description-01"
role="region"
x-show="open"
x-cloak="">
<td colspan="7"
class="v_ wk xe vm">
<div class="flex
items-center hq
vf ia">
<svg class="ue
on ap db yu
mr-2">
<path d="M1
16h3c.3
0
.5-.1.7-.3l11-11c.4-.4.4-1
0-1.4l-3-3c-.4-.4-1-.4-1.4
0l-11
11c-.2.2-.3.4-.3.7v3c0
.6.4 1 1
1zm1-3.6l10-10L13.6
4l-10
10H2v-1.6z"></path>
</svg>
<div class="gz"><?php echo $at_row['pro_testing_result'] ?></div>
</div>
<br/>
<div style="background-color: #fff0f0" class="flex
items-center hq
vf ia">
<svg class="ue
on ap db yu
mr-2">
<path d="M1
16h3c.3
0
.5-.1.7-.3l11-11c.4-.4.4-1
0-1.4l-3-3c-.4-.4-1-.4-1.4
0l-11
11c-.2.2-.3.4-.3.7v3c0
.6.4 1 1
1zm1-3.6l10-10L13.6
4l-10
10H2v-1.6z"></path>
</svg>
<div class="gz"><?php echo $at_row['pro_testing_fault'] ?></div>
</div>
</td>
</tr>
</tbody>
<?php } ?>
</table>
</div>
</div><br/>
<!-- End -->
</div></div>
</section>
<script src="assets/main.f640b348fcfd37dfcd91.js"></script>
<?php
include 'footer.php';
?>
<?php
}
else{
header('location:login.php');
}
?>