-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskView.php
133 lines (127 loc) · 9.41 KB
/
taskView.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
<?php
require_once 'session.inc.php';
parse_str(rawurldecode($_SERVER["QUERY_STRING"]));
require_once 'db.inc.php';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TRACKER</title>
<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="styles/style.css" />
<link type="text/css" href="styles/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.21.custom.min.js"></script>
<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<link rel="stylesheet" href="css/responsive-tables.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.min.js"></script>
<script type="text/javascript" src="js/modernizr.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.uniform.min.js"></script>
<script type="text/javascript" src="js/flot/jquery.flot.min.js"></script>
<script type="text/javascript" src="js/flot/jquery.flot.resize.min.js"></script>
<script type="text/javascript" src="js/responsive-tables.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="commonFunctions.js"></script>
</head>
<body>
<form class="stdform stdform2" method = "post" action='<?php echo $_SERVER['HTTP_REFERER']; ?>' enctype = "multipart/form-data">
<div class="mainwrapper">
<?php require_once 'header.inc.php'; ?>
<?php require 'leftpanel.inc.php'; ?>
<?php
$query = "select * from task where task_name='" . $task_name . "' and p_name='" .$p_name ."'";
$result = mysql_query($query);
if ($row = mysql_fetch_assoc($result)) {
?>
<div class="rightpanel">
<ul class="breadcrumbs">
<li><a href="home.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
<li><Strong>Task Details </strong></li>
<li><strong><a <?php if (!strcmp($row['assigned'], $_SESSION['user']) || ($_SESSION['role'] == 1)) {echo ' href=taskUpdate.php?task_name='.rawurlencode($task_name).'&p_name='.rawurlencode($p_name);}?> >
Edit Task
</a></strong></li>
</ul>
<div class="pageheader">
<div class="pageicon"><span class="iconfa-dashboard"></span></div>
<div class="pagetitle">
<h1>TASK DETAILS</h1>
</div>
</div>
<div class="maincontent">
<div class="maincontentinner">
<div class="widgetbox box-inverse">
<h4 class="widgettitle">Task Details</h4>
<div class="widgetcontent nopadding">
<div style="color: red;text-align: left" id="msgdiv"></div>
<table cell-padding=10px style="width : 100%;table-layout : fixed;border-collapse: separate; border-spacing: 5px 15px;">
<tr>
<td style="background-color: whitesmoke;width: 15%"><label>Task Name : </label></td>
<td><?php echo $row['task_name'] ?></td>
<td style="background-color: whitesmoke;width: 15%"><label>Project Name : </label></td>
<td><?php echo $row['p_name'] ?></td>
<td style="background-color: whitesmoke;width: 15%"><label>Task Type : </label></td><td><?php echo $row['type'] ?></td>
</tr>
<tr>
<td style="background-color: whitesmoke"><label>Team Name : </label></td><td><?php echo $row['t_name']; ?></td>
<td style="background-color: whitesmoke"><label>Status : </label></td><td><?php echo $row['status'] ?></td>
<td style="background-color: whitesmoke"><label>Assigned : </label></td><td><?php echo $row['assigned']; ?></td>
</tr>
<tr>
<td style="background-color: whitesmoke"><label>Creation Date : </label></td><td><?php echo $row['start_date']; ?></td>
<td style="background-color: whitesmoke"><label>Completion Date : </label></td>
<td><?php echo $row['completion_date']; ?></td>
<td style="background-color: whitesmoke"><label>Efforts : </label></td><td><?php echo $row['efforts']; ?></td>
</tr>
<tr>
<td style="background-color: whitesmoke"><label>Languages Captured : </label></td>
<td colspan="2"><textarea style="background-color: transparent;border-color: white" rows="3" cols="60" name="langs" id="langs" readonly ><?php echo $row['lang']; ?></textarea></td>
<td style="background-color: whitesmoke"><label>Link To <?php
if ($row['type'] == 'Linguistic')
echo 'Screenshots';
else
echo 'TestCases';
?> : </label></td>
<td colspan="2"><textarea style="background-color: transparent;border-color: white" rows="3" cols="60" id="link" name="link" readonly ><?php echo $row['link']; ?></textarea></td>
</tr>
<tr>
<td style="background-color: whitesmoke"><label>Description : </label></td>
<td colspan="2"><textarea style="background-color: transparent;border-color: white" rows="3" cols="60" id="notes" name="notes" readonly ><?php echo $row['notes']; ?></textarea></td>
<td style="background-color: whitesmoke"><label>Bugs : </label></td>
<td colspan="2"><textarea style="background-color: transparent;border-color: white" rows="3" cols="60" id="bugs" name="bugs" readonly ><?php echo $row['bugs']; ?></textarea></td>
</tr>
<tr>
<td colspan="6"><input style="float: right;margin-right: 30px" class="btn" type="submit" value="BACK"></a></td>
<!--<td colspan="1"><?php
foreach ($_POST as $key => $value) {
echo "$key:$value<br>";
}
?><?php
foreach ($_SERVER as $key => $value) {
echo "$key:$value<br>";
}
?>
<?php
foreach ($_SESSION as $key => $value) {
echo "$key:$value<br>";
}
?><?php
foreach ($_REQUEST as $key => $value) {
echo "$key:$value<br>";
}
?></td>-->
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<?php } else echo 'InConsistent Data'; ?>
</div>
</form>
</body>
</html>