-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetPMAddEditComments.php
61 lines (54 loc) · 2.22 KB
/
GetPMAddEditComments.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
<?php
/**
* Created by PhpStorm.
* User: ritwik.shanker
* Copyright of Esterline Technologies (c) 2018.
*/
include 'connect.php';
session_start();
$Seleted_Prj = $_SESSION["SELECTED_PRJ"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form action="" method="POST" id="PostEditProject" role="form">
<div class="container-fluid">
<table class="table">
<tr>
<th>Partner</th>
<th>Project</th>
<th>Remarks</th>
</tr>
<?php
$sql = "SELECT * FROM `editing_project` WHERE `Project` = '$Seleted_Prj'";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);
while ($row = mysqli_fetch_array($result))
{ ?>
<tr>
<td><input type="text" id="EditPartner" value="<?php echo $row["Partner"]; ?>"></td>
<td><input type="text" id="EditProject" value="<?php echo $row["Project"]; ?>" disabled></td>
<td><input type="text" id="EditRemarks" value="<?php echo $row["Remarks"]; ?>"></td>
</tr>
<?php
} ?>
</table>
<input type="hidden" id="ProjectRowsCount" value="<?php echo $num_rows; ?> ">
<input type="hidden" id="SelectedProject" value="<?php echo $Seleted_Prj; ?> ">
<input type="submit" name="Submit" value="Submit" style="margin-left:45%;">
</div>
</form>
<br><br>
</body>
</html>