-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprivate.php
88 lines (68 loc) · 1.99 KB
/
private.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
<?php
session_start();
include "validate.php";
$id_user = $_SESSION['id_user'];
$_SESSION['tmp'] = $id_user;
$_SESSION['edit'] = "0";
include "src/head.php";
include "src/header.php";
// include "src/mainmenu.php";
?>
<div id="add_new">
<?php
include "add_note.php";
include "add_list.php";
?>
</div>
<div id="note_list"></div>
<div id="check_alarm">
<audio id="alarm" src="tone/Recording.m4a" preload="auto"></audio>
</div>
<script>
var nt = document.getElementById("display_note").style.display;
var lt = document.getElementById("display_list").style.display;
document.getElementById("display_list").style.display="none";
$(function() {
$("#add_list").on("click", function () {
document.getElementById("display_note").style.display="none";
document.getElementById("display_list").style.display=lt;
// $("#add_new").load("add_list.php");
return false;
})
});
$(function() {
$("#add_note").on("click", function () {
document.getElementById("display_note").style.display=nt;
document.getElementById("display_list").style.display="none";
// $("#add_new").load("add_list.php");
return false;
})
});
// function show_note_form() {
// document.getElementById("display_note").style.display="true";
// document.getElementById("display_list").style.display="none";
// }
// function show_list_form() {
// document.getElementById("display_note").style.display="none";
// document.getElementById("display_list").style.display="true";
// }
// $(function() {
// $("#add_list").on("click", function () {
// $("#add_new").load("add_list.php");
// return false;
// })
// });
</script>
<script>
$(document).ready(function(){
setInterval(function() {
$("#note_list").load("note_list.php");
}, 1000);
});
// window.alart('alarm');
</script>
<?php
// include "note_list.php";
include "src/footer.php";
include "src/bottom.php";
?>