-
Notifications
You must be signed in to change notification settings - Fork 0
/
bpmlinks.php
60 lines (60 loc) · 2.58 KB
/
bpmlinks.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
<?php
// Inialize session
session_start();
// Check, if user is already login, then jump to secured page
if (!isset($_SESSION['Admin'])) {
header('Location: index.php');
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ben's | BPM Links</title>
<link rel="shortcut icon" HREF="images/logo.jpg" />
<link rel="stylesheet" href="styles/formstyle.css" />
<script src="js/jquery.js"></script>
<script src="js/payment.js"></script>
<script src="js/utils.js"></script>
</head>
<body ><br />
<div id="topdiv"><ul>
<li><a href="home.php">Back Home</a> | </li>
<li><a href=javascript:window.print()>Print</a>|</li>
<li><a href=#>Export as Excel</a> | </li>
<li><a href=#>Export as PDF</a> | </li>
<li><a href=#>Export as Word</a></li>
</ul></div><br /><br /><br /><br />
<table border=1 id=tblunveri width="100%" align="center">
<tr><th colspan=12><h1>Uncompleted | Pending Links</h1></th></tr>
<tr bgcolor="#40FF40"><th>CI</th><th>Customer Name</th><th>Service Type</th><th>PM</th><th>Date Received</th><th>Planned Finish Date</th><th>Status</th><th>Comments</th><th colspan=12 bgcolor="#40FF40">Close Link /View Status</th></tr>
<?php
include 'includes/Database.php';
$sql = "SELECT * FROM bpmlinks WHERE status = 'wip'";
$db = new Database($sql);
$sum = 0;
$resp = $db->execute_query();
while ($row = mysqli_fetch_row($resp)){
$sum = $row[3];
echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[6]</td><td>$row[2]</td><td>$row[11]</td><td>$row[12]</td><td>$row[10]</td><td>$row[13]</td><td><a href=javascript:verifyPayments('$row[0]')>Close link</a></td>
<td><a href=javascript:openWin('particulars.php?id=$row[0]',990,360)>View Status</a></td></tr>";
}
?>
</table><br />
<hr width="80%"/><br />
<table border=1 id=tblveri width="100%" align="center">
<tr><th colspan=12><h1>Completed/Returned Links</h1></th></tr>
<tr bgcolor="#40FF40"><th>CI</th><th>Customer Name</th><th>Service Type</th><th>PM</th><th>Date Received</th><th>Planned Finish Date</th><th>Status</th><th>Comments</th><th colspan=12 bgcolor="#40FF40">View Status</th></tr>
<?php
$sql = "SELECT * FROM bpmlinks WHERE status = 'completed' OR status = 'returned'";
$db = new Database($sql);
$sum = 0;
$resp = $db->execute_query();
while ($row = mysqli_fetch_row($resp)){
$sum = $row[3];
echo "<tr id=odd><td>$row[0]</td><td>$row[1]</td><td>$row[6]</td><td>$row[2]</td><td>$row[11]</td><td>$row[12]</td><td>$row[10]</td><td>$row[13]</td><td><a href=javascript:openWin('particulars.php?id=$row[0]',990,360)>View Status</a></td></tr>";
}
?>
</table><br /><br />
</body>
</html>