-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_module_list.php
More file actions
80 lines (72 loc) · 2.92 KB
/
view_module_list.php
File metadata and controls
80 lines (72 loc) · 2.92 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
<?php include('template/header.php');
include('class/view.php');
$app_id=$_GET['app_id']??null;
$display=new display();
$result=$display->display_table_cndtn("application_module_list","app_id='$app_id'");
?>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="dashboard.php">Dashboard</a>
</li>
<li class="breadcrumb-item"><a href="view_application_module.php">View application modules</a></li>
<li class="breadcrumb-item active">Module list</li>
</ol>
<div class="card mb-3">
<div class="card-header">
<i class="fa fa-table"></i>
List of modules
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered table-hover" width="100%" id="dataTable" cellspacing="0">
<thead>
<tr>
<th>Module id</th>
<th>Module name</th>
<th>Last Updated on</th>
<th>App name</th>
<th>Bug Status</th>
<th>View</th>
<?php if($_SESSION['login_user_type']=="admin"){ ?>
<th>Edit</th>
<th>Delete</th>
<?php } ?>
<?php if($_SESSION['login_user_type']=="Tester"){ ?>
<th>Bug update</th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php while($row=mysqli_fetch_assoc($result)){ ?>
<tr>
<td><?php echo $row['app_mod_id']; ?></td>
<td><?php echo $row['app_mod_name']; ?></td>
<td><?php echo $row['last_updated']; ?></td>
<?php $result1 = $display->display_table_cndtn("application","app_id='$app_id'");
$row1=mysqli_fetch_assoc($result1); ?>
<td><?php echo $row1['app_name']; ?></td>
<td><?php if($row['bug_status']==null){echo "N/A";}else{echo $row['bug_status'];} ?></td>
<td>
<a href='view_module_details.php?mod_id=<?php echo $row['app_mod_id']; ?>'><button type='button' class='btn btn-primary btn-sm col-sm-10'>View details</button></a>
</td>
<?php if($_SESSION['login_user_type']=="admin"){ ?>
<td>
<a href='edit_module.php?mod_id=<?php echo $row['app_mod_id']; ?>'><button type='button' class='btn btn-info btn-sm col-sm-10'>Edit</button></a>
</td>
<td>
<a href='delete_module.php?mod_id=<?php echo $row['app_mod_id']; ?>'><button type='button' class='btn btn-danger btn-sm col-sm-10'>Delete</button></a>
</td>
<?php } ?>
<?php if($_SESSION['login_user_type']=="Tester"){ ?>
<td>
<a href='update_bug.php?mod_id=<?php echo $row['app_mod_id']; ?>'><button type='button' class='btn btn-primary btn-sm col-sm-10'>New bug</button></a>
</td>
<?php } ?>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<?php include('template/footer.php'); ?>