-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.php
65 lines (61 loc) · 2.22 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
<?php include("includes/db.php");?>
<?php include("includes/authcheck.php"); ?>
<?php $_SESSION['menu'] = 'user' ?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>DigDig - Worlds Diggers and Archeologist club</title>
<link rel="shortcut icon" href="/digdig/img/favico.ico"/>
<!-- Pievienojam skriptus -->
<?php include("includes/scripts.php"); ?>
<!-- END -->
<script type="text/javascript">
var url = "<?php echo 'http://localhost/digdig/'?>";
</script>
</head>
<body onload="initializeUserObjects(<?php echo $_SESSION['User']['id']?>);" class="user-page">
<div id="header-wrap">
<?php include("includes/header.php"); ?>
</div>
<div id="cont-wrapper">
<div id="content">
<h2 class="home-heading main view">
<span>User menu</span>
</h2>
<div class="leftcol">
<ul class="user-menu-list">
<li class="your-objects active">Your objects</li>
<li class="user-information">User information</li>
<?php if ($_SESSION['User']['role'] > 0): ?>
<li><a href="admin_objectlist.php">Admin options</a></li>
<?php endif ?>
</ul>
</div>
<script type="text/javascript">
<!-- Ajax userform actions -->
function sendAjaxUserData() {
$.post('<?php echo $baseUrl ?>ajax_userform.php', $('#user-form-data').serialize(), function(data){
$('#user-info-form').remove();
$('.maincol').append(data);
});
}
function sendAjaxUserPassword() {
$.post('<?php echo $baseUrl ?>ajax_userform.php', $('#user-password').serialize(), function(data){
$('#user-info-form').remove();
$('.maincol').append(data);
});
}
</script>
<div class="maincol">
<div id="user_map_canvas"></div>
</div>
</div>
<br style="clear: both;"/>
</div>
<div id="footer-wrap">
<?php include('includes/footer.php'); ?>
</div>
</body>
</html>