-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
105 lines (93 loc) · 2.66 KB
/
Copy pathdashboard.php
File metadata and controls
105 lines (93 loc) · 2.66 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
<?php
include 'html/header.php';
include 'html/footer.php';
?>
<?php
include('link/connect_database.php');
$id = $_GET['id'];
$query = "SELECT * FROM user1 WHERE id='$id'";
$result = mysqli_query($connect, $query);
if(mysqli_num_rows($result)!=1){
die("you are not allowed to edit ");
}
$row = mysqli_fetch_assoc($result);
?>
<style>
.image-upload>input{
display: none;
}
</style>
<div class="container mt-3">
<form action="link/dash_update.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="col">
<div class="image-upload">
<label for="file-input">
<img src="img/profile.jpg" style="width:200px;height:200px;border-radius:50%"/>
</label>
<input id="file-input" name="image" type="file"/>
</div>
</div>
<div class="col">
<div class="card" style="width: 27rem;">
<div class="card-body">
<h5 class="card-title">About</h5>
<hr/>
<h6 class="card-subtitle mb-2 text-muted">Enter about you</h6>
<textarea name="about" cols="50" rows="5"></textarea>
<button class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col">
<div class="card" style="width: 27rem;">
<div class="card-body">
<h5 class="card-title">Skills</h5>
<hr/>
<h6 class="card-subtitle mb-2 text-muted">What skills do you acquire</h6>
<textarea name="skill" id="" cols="50" rows="5"></textarea>
<button class="btn btn-success">Save</button>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 27rem;">
<div class="card-body">
<h5 class="card-title">Experience</h5>
<hr/>
<h6 class="card-subtitle mb-2 text-muted">Your Experience</h6>
<textarea name="" id="" cols="50" rows="5"></textarea>
<button class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col">
<div class="card" style="width: 27rem;">
<div class="card-body">
<h5 class="card-title">Education</h5>
<hr/>
<h6 class="card-subtitle mb-2 text-muted">Education status</h6>
<textarea name="" id="" cols="50" rows="5"></textarea>
<button class="btn btn-success">Save</button>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 27rem;">
<div class="card-body">
<h5 class="card-title">Project</h5>
<hr/>
<h6 class="card-subtitle mb-2 text-muted">Enter your recent projects</h6>
<textarea name="" id="" cols="50" rows="5"></textarea>
<input type="hidden" value="<?php echo "$id";?>">
<button class="btn btn-success">Save</button>
</div>
</div>
</div>
</div>
</form>
</div>