This repository has been archived by the owner on Oct 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
intranet_dochadzka.php
73 lines (63 loc) · 2.32 KB
/
intranet_dochadzka.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
<?php
/**
* Created by PhpStorm.
* User: Sabinka
* Date: 5/18/2017
* Time: 3:44 PM
*/
include_once 'session.php';
//if (!isset($_SESSION['name'])) {
// header('location: index.php');
//}
?>
<head>
<?php
include_once 'includes.php';
?>
<script src=”http://tinymce.cachefly.net/4.0/tinymce.min.js”></script>
<script src="assets/js/intranet.js"></script>
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<link rel="stylesheet" type="text/css" href="assets/css/dochadzka.css">
<link rel="stylesheet" type="text/css" href="assets/css/switch.css">
<link rel=" stylesheet" type="text/css" href="assets/css/tinytools.toggleswitch.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="assets/js/tinytools.toggleswitch.min.js"></script>
<script src="assets/js/ajax.js" type="text/javascript"></script>
</head>
<body>
<?php
include_once 'menu.php';
?>
<h1><?php echo $lang['intranet.attendance'] ?></h1>
<?php
require_once "DB_config.php";
include('intranet_dochadzka_functions.php');
$conn = new mysqli($servername, $username, $password, $db_name);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo '<script>console.log("[MySQL] Database connected successfully")</script>';
mysqli_set_charset($conn,"utf8");
mysqli_select_db($conn,"zadanie1");
?>
Date of log: <input type="month" id="month" onchange="sendDate(this.value);">
<select class="form-control sel">
<option value="0">V práci</option>
<option value="1" style="background-color: #ffae6c">PN</option>
<option value="2" style="background-color: #feff85">OČR</option>
<option value="3" style="background-color: #bdf0a3">Služobná cesta</option>
<option value="4" style="background-color: #a0d6ff">Dovolenka</option>
<option value="5" style="background-color: #edaaff">Plán dovolenky</option>
</select>
<div id="edit">
<input type="checkbox" id="ToggleSwitchSample" />
<b>Edit mode</b>
</div>
<div id="result"></div>
<button class="btn" onclick="window.print()">Export PDF</button>
<div id="buttons">
<button id="clear">Clear All</button>
<button id="save" onClick="saveData()">Save</button>
</div>
</body>