-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlawyerfind1.php
More file actions
197 lines (176 loc) · 7.17 KB
/
Copy pathlawyerfind1.php
File metadata and controls
197 lines (176 loc) · 7.17 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php
session_start();
if($_SESSION['login']==TRUE AND $_SESSION['status']=='Active'){
//session_start();
include("db_con/dbCon.php");
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<!--<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="css/simple-sidebar.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/media.css">
<title></title>
</head>
<body>
<header class="customnav bg-success">
<div class="container">
<div class="row">
<div class="col-md-12">
<nav class="navbar navbar-expand-lg ">
<a class="navbar-brand cus-a" href="#">Lawyer Management System</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto ">
<li class="">
<a class="nav-link cus-a" href="logout.php">Log Out</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</header>
<body>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading">My Profile</div>
<div class="list-group list-group-flush">
<a href="user_dashboard.php" class="list-group-item list-group-item-action bg-light">Dashboard</a><!--this page-->
<a href="lawyerfind.php" class="list-group-item list-group-item-action bg-light">Lawyers</a><!--this page-->
<a href="user_profile.php" class="list-group-item list-group-item-action bg-light">Edit Profile</a><!--user_profile page-->
<a href="user_booking.php" class="list-group-item list-group-item-action bg-light">My booking requests</a><!--booking page-->
<a href="update_password.php" class="list-group-item list-group-item-action bg-light">Update Password</a><!--booking page-->
</div>
</div>
<!-- /#sidebar-wrapper -->
<section>
<div class="container">
<div class="row">
<?php
include_once 'db_con/dbCon.php';
$conn = connect();
$result = mysqli_query($conn,"SELECT * FROM user,lawyer WHERE user.u_id=lawyer.lawyer_id AND user.status='Active' AND user.u_id='" . $_GET['u_id'] . "'");
while($row = mysqli_fetch_array($result)) {
?>
<div class="col-md-3">
<div class="sideprofile">
<img src="images/upload/<?php echo $row["image"]; ?>" class="img-fluid profile_img" alt="profile picture">
<h2><?php echo $row["first_Name"]; ?> <?php echo $row["last_Name"]; ?></h2>
<h4><?php echo $row["speciality"]; ?></h4>
<hr>
</div>
</div>
<div class="col-md-9">
<div class="mainprofile">
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Contact number :</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["contact_Number"]; ?></p>
</div>
</div>
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Email :</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["email"]; ?></p>
</div>
</div>
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Education :</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["university_College"]; ?></p>
<p><?php echo $row["degree"]; ?></p>
<p><?php echo $row["passing_year"]; ?></p>
</div>
</div>
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Practising location :</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["full_address"]; ?></p>
<p><?php echo $row["city"]; ?></p>
<p><?php echo $row["zip_code"]; ?></p>
</div>
</div>
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Practising length :</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["practise_Length"]; ?></p>
</div>
</div>
<div class="infogroup row">
<div class="col-md-4">
<label for="email"><b>Type of case handles:</b></label>
</div>
<div class="col-md-8">
<p><?php echo $row["case_handle"]; ?></p>
</div>
</div>
<form action="save_booking.php" method="post">
<div class="row">
<div class="col-md-3">
Book for appointment
</div>
<input type="hidden" name="lawyer_id" value="<?php echo $row['u_id']; ?>">
<input type="hidden" name="client_id" value="<?php echo $_SESSION['client_id']; ?>">
<div class="col-md-3">
<input type="date" name="date" >
</div>
<div class="col-md-3">
<textarea name="description" id="" cols="20" rows="4" placeholder="write description if any"></textarea>
</div>
<div class="col-md-3 float-right">
<?php if(isset($_SESSION['login']) && $_SESSION['login'] == TRUE){ ?>
<input name="post" type="submit" class="btn btn-block btn-info" value="Request booking" />
<?php }else{ ?>
<h6><a href="login.php">To Request for lawyer booking plese login or registration first</a></h6>
<?php }?>
</div>
</div>
</form>
</div>
</div>
<?php
}
?>
</div>
</div>
</section>
</div>
<footer class="bg-success">
<div class="container">
<div class="row">
<div class="col">
<h5>All rights reserved. 2023</h5>
</div>
</div>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</body>
</html>
<?php
}else
header('location:login.php?deactivate');
?>