-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.php
executable file
·74 lines (68 loc) · 2.52 KB
/
project.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
<?php require_once 'header.php';?>
<div class="parallax-container w3-display-container">
<div class="parallax"><img src="<?=$IMAGE?>b3.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">PROJECTS</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("Projects");
print_data();
});
function print_data(){
var out="";
$.post("userapi/project_list.php","",
function(data){
var arr=JSON.parse(data);
if(arr["status"]=="success"){
for(i=0;i<arr["project"].length;i++){
out+='<div class="col l12 m12 s12">';
out+='<div class="card w3-hover-shadow">';
out+='<div class="card-content w3-justify">';
out+='<p class="w3-xlarge w3-text-black"><a href="'+arr["project"][i]["url"]+'" class="w3-text-black w3-hover-text-brown" target="_blank">'+arr["project"][i]["name"]+'</a></p>';
out+='<p class="w3-text-black">'+arr["project"][i]["detail"]+'</p><br>';
out+='<p class="w3-text-brown w3-small">From '+arr["project"][i]["start"]+' - '+arr["project"][i]["end"]+'</p><hr>';
var skill=arr["project"][i]["skill"].split(",");
for(j=0;j<skill.length;j++){
out+='<div class="chip w3-brown w3-tiny">'+skill[j]+'</div>';
}
out+='</div>';
out+='</div>';
out+='</div>';
}
}else{
out='<p class"w3-text-red">'+arr["remark"]+'</p>';
}
$("#content").html(out);
});
}
</script>