-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcv.php
More file actions
192 lines (141 loc) · 4.43 KB
/
Copy pathcv.php
File metadata and controls
192 lines (141 loc) · 4.43 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
<?php include("mylinks.php"); include("mysqlicon.php"); $passedid=$_GET['id'];
$n="select * from cv where ownerid=$passedid";
$q=mysqli_query($con, $n);
$cvname="";
while ($row=mysqli_fetch_array($q)) {
$cvname=$row['fullname'];
$skill1=$row['skill1'];
$skill2=$row['skill2'];
$skill3=$row['skill3'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<title> page</title>
</head>
<script type="text/javascript">
var TxtRotate = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};
TxtRotate.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';
var that = this;
var delta = 300 - Math.random() * 100;
if (this.isDeleting) { delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}
setTimeout(function() {
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('txt-rotate');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-rotate');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtRotate(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".txt-rotate > .wrap { border-right: 0.08em solid #666 }";
document.body.appendChild(css);
};
</script>
<style>
<?php $img=''; ?>
.topinfo{
width: 100%;
height: 250px;
background-image: url("<?php echo 'img2.jpg';?>");
background-repeat: no-repeat;
background-size: cover;
background-color: lightblue;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
border-bottom: 2px solid gray;
box-shadow: 2px 3px 4px 4px gold;
}
.pen {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
height: 70%;
}
.text {
padding-top: 50px;
color: white;
font-family: 'Roboto';
text-align: center;
font-size: 60px;
}
</style>
<body>
<nav>
<div class="navbar navbar-inverse bg-dark text-light" style="height: 50px;">
<div class="navbar-brand" style="font-family: magneto; padding-top: 0px;"><h1>Vyral<font color="gold">.CV</font></h1></div>
<div class=" text-light" align="right"></div>
<div class="navbar-nav"></div>
<div class="navbar-nav" style="font-size: 20px; font-weight: bolder; font-family: times new roman; padding-bottom: 20px;"><a href="index.php"> Back</a></div>
</div>
</nav>
<?php
$id=$_GET['id'];
$a="select * from tint where id=$id";
$b=mysqli_query($con, $a);
while ($row=mysqli_fetch_array($b)) {
$name= $row['username'];
$dp=$row['profilepic'];
}
?>
<div class="topinfo"><div id="section1" class="container-fluid">
<section class="pen">
<h1 class="text">
<span
class="txt-rotate"
data-period="1000"
data-rotate='["My name is <?php echo $cvname; ?>", "I am good at the following...", "<?php echo $skill1 ?>", "<?php echo $skill2 ?>","<?php echo $skill3; ?>"]'></span>
</h1>
</section>
</div>
<div class="" style="padding-top: 140px;">
<div class="">
<div class="container" align="center"><img src="<?php echo $dp; ?>" style="width: 50%; height: 400px; border-radius: 10px;"></div>
<h3 style="text-align: center;"><font color="gray"><?php echo "<a href='userprofile.php?id='$passedid' style='color:inherit; text-decoration:none;'>".$name."</a>"; ?></font></h3>
<hr>
<!-- message fromcv -->
</div>
<div style="background-color: lightgray;">
</div>
</div>
</body>
</html>