-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskConfigure.php
More file actions
61 lines (56 loc) · 1.44 KB
/
taskConfigure.php
File metadata and controls
61 lines (56 loc) · 1.44 KB
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
<?php
session_start();
include 'api/functions.php';
$dbPath = $_SESSION['dbPath'];
if(isset($_REQUEST['id']))
(int)$id = $_REQUEST['id'];
else
$id = -1;
?>
<!DOCTYPE html>
<html>
<head>
<title>
Kreegur - template
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<link href="css/jquery-ui.css" rel="stylesheet">
<style>
body {
font-family:arial;
}
.myButtons{
min-width:100px;
}
td {
padding:5px;
}
</style>
</head>
<body>
<script src = "js/jquery-3.3.1.min.js"></script>
<script src = "js/jquery-ui.min.js"></script>
<script>
var taskId = <?php echo $id; ?>;
var tags = [];
$(document).ready(function(){
alert("Ready to load config for task: "+taskId);
updateTags();
});
function updateTags(){
$.post(
'api/tags.php',
{
taskId: taskId
},
function(data){
console.log(JSON.stringify(data));
tags = data.tags;
},
'json'
);
}
</script>
</body>
</html>