-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnew_clientcode.php
More file actions
129 lines (102 loc) · 3.78 KB
/
new_clientcode.php
File metadata and controls
129 lines (102 loc) · 3.78 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
<?php include('connection.php');
$diet_id = $_SESSION['dietitianuserID'];?>
<!-----send requests------>
<?php
$code = $_POST[''];
if(isset($_POST['sendbtn']))
{
$sql ="select * from `client` where `referalcode` = '{$code}' and `dietitianuserID` = `diet_id`";
$result = $conn ->query($sql);
$cnt =1;
if($result -> num_rows > 0)
{
while($row = $result -> fetch_assoc())
{?>
<?php ?>
<html>
<title> Sending / pending Request </title>
<head>
<link rel = "stylesheet" href=".\css\new_clientcode.css">
<style>
.dc-rs-ac{
position:absolute;
height:63px;
width: 164px;
margin-left:100px
}
.dc-rs-pr{
position:absolute;
height: 63px;
width: 200px;
}
.dc-rs-sc{
position:absolute;
height: 63px;
width: 214px;
right:91px;
}
</style>
<script src="jquery-3.6.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
</head>
<body>
<!----------sidebar------>
<?php include('event_calendar.php'); ?>
<div class ="wrapper">
<div class="header">
<p id="header1" style="position:absolute;font-family:NATS;font-style:normal; font-weight:bold; font-size:30px; word-spacing:1px;"> Add a Client</p>
</div>
<!-------Send request----->
<div class="send-request">
<div class="header-send">
<div class="dc-rs-ac"> <p class="pp-cs-st" style="font-size:28px;font-weight:500; font-family:NATS;font-style:normal;"> Send Requests </p> </div>
<div class="dc-rs-pr" style="margin-left:500px;"> <p class ="pp-cs-st" style="font-size:28px;font-weight:500; font-family:NATS;font-style:normal;"> Pending Requests </p></div>
<div class="dc-rs-sc" style="margin-left:500px;"> <p class ="pp-cs-st" style="font-size:28px;font-weight:500; font-family:NATS;font-style:normal;">
Accepted Requests </p></div>
</div>
<div class = "box-plc" style="text-align:center; position:absolute; padding-top:260px; padding-left:550px;">
<div class ="box- req" style=" position:absolute; justify-content: space-between;top:300px;">
<input id="client-code" name="client-code" class="btn-rfl-cd" placeholder ="Enter client code here" style ="border-radius: 14.3266px; height: 60px;
width:606px;position:absolute; ">
<br>
<button class="btn-rfl-cd" name="sendbtn" style ="width:606px; height:56px; position:absolute; top:90px; border-radius: 9.1346px; background: #9E5EF4; color:white;">
Send Request </button><br>
<button class="btn-rfl-cd" style ="width:606px; height:56px; position:absolute; top:180px; border-radius: 9.1346px; color: #9E5EF4; background:white;">
Share Referral Code </button>
</div>
</div>
</div>
</div>
<!----------Pending request------->
<div class = "pending-request">
<table>
<thead>
<tr>
<th></th>
<th> </th>
<th> </th>
<th> </th>
<th colspan ="4"> </th>
</tr>
</thead>
<tbody>
<tr>
<th><?php $cnt ?></th>
<th> </th>
<th> <?php echo $row['clientName']; }}}?> </th>
<th> <span id="invite" color="blue">Profile </span>
<script>
$(Document).ready(function(){
$("#invite").click(function({
<?php ?>
});
});
</script>
<th colspan = "4"> </th>
</tr>
</tbody>
</table>
</div>
</div>
</body>
<html>