-
Notifications
You must be signed in to change notification settings - Fork 2
/
certificate.php
executable file
·77 lines (71 loc) · 2.78 KB
/
certificate.php
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
<?php require_once 'header.php';?>
<div class="parallax-container w3-display-container">
<div class="parallax"><img src="<?=$IMAGE?>b4.jpg"></div>
<div class="row w3-display-middle">
<img src="<?=$IMAGE?>myphoto.jpg" class="circle responsive-img materialboxed" width="150">
</div>
<div class="row w3-display-bottommiddle">
<h4 class="w3-center"><?=$NAME?></h4>
<h6 class="w3-center"><?=$PROFESSION?></h6>
</div>
</div>
<div class="container">
<div class="row">
<div class="col s12">
<h4 class="w3-center w3-padding-24">CERTIFICATES</h4>
<div id="content">
<div class="w3-center">
<div class="preloader-wrapper active small">
<div class="spinner-layer spinner-red-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="divider"></div>
</div>
<?php require_once 'footer.php'; ?>
<script>
$("document").ready(function(){
set_page_name("Certificates");
print_data();
});
function print_data(){
var out="";
$.post("userapi/certificate_list.php","",
function(data){
var arr=JSON.parse(data);
if(arr["status"]=="success"){
for(i=0;i<arr["certificate"].length;i++){
out+='<div class="col l6 m12 s12">';
out+='<div class="card w3-hover-shadow">';
out+='<div class="card-image">';
out+='<img src="'+arr["certificate"][i]["image"]+'" class="responsive-img materialboxed">';
out+='<a class="btn-floating btn-large halfway-fab waves-effect waves-light w3-brown" href="'+arr["certificate"][i]["url"]+'" target="_blank"><i class="fa fa-arrow-right"></i></a>';
out+='</div>';
out+='<div class="card-content">';
out+='<p class="w3-text-brown">'+arr["certificate"][i]["website"]+'</p>';
out+='<p class="w3-large">'+arr["certificate"][i]["course"]+'</p>';
out+='<p>'+arr["certificate"][i]["event"]+'</p><br>';
out+='<p><b class="w3-text-brown">License : </b>'+arr["certificate"][i]["license"]+'</p>';
out+='<p class="w3-text-brown w3-small">Issued on '+arr["certificate"][i]["datetime"]+'</p>';
out+='</div>';
out+='</div>';
out+='</div>';
}
}else{
out='<p class"w3-text-red">'+arr["remark"]+'</p>';
}
$("#content").html(out);
$('.materialboxed').materialbox();
});
}
</script>