-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoday.php
176 lines (122 loc) · 4.69 KB
/
today.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
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
<?php
session_start();
require_once 'config.php';
mysqli_set_charset($mysqli, "utf8");
if ($_SESSION['login']==1) {
$id_user = $_SESSION['id'];
$today = date('Y-m-d', time());
?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Statistics v5</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src='inc/js/jquery-1.9.1.js'></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBmTAYFwzl41BtNCEShQ2OzTbpHMSnxAL4"></script>
<link rel="stylesheet" href="inc/css/style.css">
<link rel="stylesheet" href="inc/css/pickadate.css">
<link rel="stylesheet" href="inc/css/normalize.css">
<link rel="stylesheet" href="inc/css/skeleton.css">
<!-- icon font -->
<link rel="stylesheet" href="inc/css/icon-font.css">
</head>
<body>
<div class="container">
<!-- date & menu -->
<div class="date_menu" class="row">
<!-- today -->
<div id="date" class="three columns">
<div class="sitename">TODAY</div>
<div class="number">24</div>
<div class="description">Dezember</div>
</div>
<!-- menu -->
<?php
include 'menu.php';
$id_user = "1";
$date = "2021-03-29";
$location = "2";
$timestamp = date('Y-m-d H:i:s', time());
?>
</div>
<!-- day timeline -->
<div class="day_timeline" class="row">
<div class="twelve columns">
<div id="dailyactivity">
<!-- day timeline placed here -->
</div>
</div>
</div>
<!-- tags and buttons to todos and timeline -->
<div class="tags" class="row">
<div class="eleven columns">
<div id="tagbox">
<div id="tags">
<!-- tags go in here -->
<span contenteditable="true" id="write" class="tag"></span>
</div>
</div>
</div>
<div class="one column">
<div class="weather_icon">
<!-- <div data-icon="a" class="icon"></div> -->
</div>
<div class="degrees">
<p id="temperature">11°</p>
</div>
</div>
</div>
<!-- fields text location -->
<div class="fields_text_location" class="row">
<!-- fields -->
<div class="one-third column fields">
<div id='fieldarea'>
<!-- fields go in here -->
</div>
</div>
<!-- text -->
<div class="one-third column">
<div id="typewriter" data-icon="E" class="icon"></div>
<textarea id="story">
</textarea>
</div>
<!-- location -->
<div style="background-color: #dddddd;" class="one-third column">
<div id="gmap">
<!-- google map -->
</div>
<!--Location-->
<select id="location">
<?php
$result = mysqli_query( $mysqli, "SELECT `id`,`name` FROM `location` WHERE user='$id_user' ORDER BY location.id = '12' DESC");
while ($day = mysqli_fetch_object($result)) {
$name = $day->name;
$id = $day->id;
echo "<option value='$id'>$name</option>";
}
?>
</select>
<a class="icon" href="map.php">
<div data-icon="e" id="map_link" class="icon stats_size"></div>
</a>
</div>
</div>
<!-- pick a date -->
<fieldset>
<input id="input_date" class="datepicker" type="text">
</fieldset>
<!-- scripts -->
<script src="inc/js/pickadate.js"></script>
<script src="inc/js/script.js"></script>
<script src="inc/js/moment.js"></script>
</body>
</html>
<?php
}
else {
header('Location: http://'.$host.'/login.php');
}
?>