-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.php
66 lines (60 loc) · 1.53 KB
/
user.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
<body class="modern-ui">
<div class="page secondary">
<?php include("header.php")?>
<div class="page-header">
<div class="page-header-content"> <a href="#" class="back-button big page-back"></a>
<h1> Gebruikers <small>streeplijst</small> </h1>
</div>
</div>
<div class="page-region">
<div class="page-region-content">
<div class="grid">
<div class="row" id="userboard">
<?PHP
$users = USER::all();
foreach($users as $user){
echo $user->photo(true);
}
?>
</div>
</div>
</div>
</div>
<?php include("footer.php")?>
</div>
</div>
<script>
//--user click handler--\\
$(document).ready(function() {
$('.tile.user').click(function() {
console.log($(this).attr('id'));
document.location.href = "index.php?page=poduct&user_id="+$(this).attr('id');
});
$('.tile.user').click(function() {
console.log($(this).attr('id'));
});
$('#search').change(function(event) {
console.log('2');
});
$('#search').keyup(function(event) {
var search_text = $('#search').val();
var rg = new RegExp(search_text,'i');
$('#userboard .tile').each(function(){
if($.trim($(this).find("var").html()).search(rg) == -1) {
$(this).hide().children().hide();
}
else {
$(this).show().children().show();
}
});
});
$('.helper').click(function(event) {
$(this).parent().find(':input').val('').keyup();
error('click');
});
});
function MassaStreep(){
document.getElementById("main_row").innerHTML = "";
}
</script>
</body>