Repository navigation
Expand file tree
/
Copy pathfindGroupAdd.php
More file actions
52 lines (46 loc) · 1.64 KB
/
Copy pathfindGroupAdd.php
File metadata and controls
52 lines (46 loc) · 1.64 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
<?php
session_start();
if(isset($_SESSION['ID']) && !empty($_SESSION['ID'])){
$userID=$_POST["grpID"];
$memID=$_SESSION["ID"];
include 'dbconnect.php';
$sql="SELECT * FROM manager WHERE ID =".$userID;
$result = $conn->query($sql);
$row=$result->fetch_array();
echo '<script src="myjs/findg.js"></script>';
echo '<div class="col-sm-8">
<div class="form-group">
<label for="FGname" style="color:#FB667A;">Group Name:</label>
<input type="text" class="form-control" id="FGname" readonly value="'.$row['Name'].'">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label for="FGfxamount" style="color:#FB667A;">Fixed Cost:</label>
<input type="text" class="form-control" id="FGfxamount" readonly value="'.$row['Fix'].'">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label for="FGabout" style="color:#FB667A;">About:</label>
<textarea class="form-control" style="resize:none;" rows="10" id="FGabout" readonly>'.$row['About'].'</textarea>
</div>
</div>
';
if($_SESSION["STUS"]=='none'){
$tm="member".$userID;
$sql ="SELECT * from ".$tm." WHERE ID=".$memID;
$result = $conn->query($sql);
if($result->num_rows <= 0)
{
echo '
<div class="col-sm-12">
<button id="SendReq" type="button" class="btn btn-primary" value="'.$userID.'">Send Member Request <span class="glyphicon glyphicon-ok-sign"></span></button>
</div>';
}
}
$conn->close();
}else{
echo "You Are Not Logged In";
}
?>