-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojectview.php
More file actions
156 lines (147 loc) · 5.45 KB
/
projectview.php
File metadata and controls
156 lines (147 loc) · 5.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AdminLTE 3 | Projects</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist\/css/adminlte.min.css">
</head>
<body class="hold-transition sidebar-mini">
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Projects</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php?content">Home</a></li>
<li class="breadcrumb-item active">Projects</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="card">
<div class="card-header">
<h3 class="card-title">Projects</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
<i class="fas fa-minus"></i>
</button>
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="card-body p-0">
<table class="table table-striped projects">
<thead>
<tr>
<th style="width: 1%">
Project Id
</th>
<th style="width: 20%">
Project Name
</th>
<th style="width: 30%">
Project team
</th>
<th style="width: 8%" class="text-center">
Status
</th>
<th style="width: 20%">
Actions
</th>
</tr>
</thead>
<tbody>
<?php
include 'conn.php';
$sql="SELECT * FROM `project`";
$result = mysqli_query($con, $sql);
while($row = mysqli_fetch_assoc($result)){
$array=explode(",",$row['project_team']);
$count=sizeof($array);
echo "
<tr>
<td>
". $row['project_id'] ."
</td>
<td>
<a>
".$row['project_name']."
</a>
<br/>
<small>
created on ".$row['project_added']."
</small>
</td>
<td>
<ul class='list-inline'><li class='list-inline-item'>";
for($i=0;$i<$count;$i++)
{
echo"<img alt='Avatar' class='table-avatar' src='dist/img/avatar3.png'>";
}
echo "</li></td>
<td class='project_status'>
<span class='badge badge-success'>".$row['project_status']."</span>
</td>
<td class='project-actions text-right'>
<a class='btn btn-primary btn-sm' href='index.php?proedit=$row[project_id]'>
<i class='fas fa-folder'>
</i>
Edit
</a>
<a class='btn btn-info btn-sm' href='index.php?prodetail=$row[project_id]'>
<i class='fas fa-pencil-alt'>
</i>
view
</a>
<a class='btn btn-danger btn-sm' href='index.php?projectviewid=$row[project_id]'>
<i class='fas fa-trash'>
</i>
Delete
</a>
</td>
</tr>";
}
?>
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
</body>
</html>