-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.php
144 lines (143 loc) · 4.33 KB
/
rules.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
<!DOCTYPE html>
<?php
require("functions/logincheck.php");
require("config.php");
require("functions/printflow.php");
require("includes/version.php");
?>
<html lang="se">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PrintFlow</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.css">
<link rel="stylesheet" href="css/adminlte.min.css">
<link rel="stylesheet" href="css/skin-blue.min.css">
<link rel="stylesheet" href="css/toastr.min.css">
<link rel="stylesheet" href="css/printflow.css">
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini" onload="<?php if(isset($action)) { print($action); } ?>">
<div class="wrapper">
<header class="main-header">
<a class="logo">
<span class="logo-mini"><b>P</b>F</span>
<span class="logo-lg"><b>PRINT</b>FLOW</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
</nav>
</header>
<aside class="main-sidebar">
<section class="sidebar">
<ul class="sidebar-menu">
<li>
<a href="activity.php">
<i class="fa fa-tasks"></i> <span>Aktivitet</span>
</a>
</li>
<li>
<a href="codes.php">
<i class="fa fa-bell-o"></i> <span>Varningskoder</span>
</a>
</li>
<li class="active">
<a href="rules.php">
<i class="fa fa-arrows-alt"></i> <span>Regler</span>
</a>
</li>
<li>
<a href="log.php">
<i class="fa fa-file-text-o"></i> <span>Rapportlogg</span>
</a>
</li>
<li>
<a href="?dologout=1">
<i class="fa fa-sign-out"></i> <span>Logga ut</span>
</a>
</li>
</ul>
</section>
</aside>
<div class="content-wrapper">
<section class="content-header">
<h1>Regler</h1>
</section>
<section class="content">
<div class="box">
<div class="box-body">
<table name="rules" id="rules" class="table table-bordered table-striped table-hover">
<thead name="ruleshead" id="ruleshead">
<tr>
<th>Avtal</th>
<th>Kod</th>
<th>Typ</th>
<th>Senast skickad</th>
</tr>
</thead>
<tbody name="rulesbody" id="rulesbody">
<?php
echo rulelist();
?>
</tbody>
</table>
<br>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalnewrule">Ny regel</button>
</div>
</div>
</section>
</div>
<?php
require("includes/modal-newrule.php");
require("includes/modal-editrule.php");
require("includes/footer.php");
?>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/fastclick.min.js"></script>
<script src="js/app.min.js"></script>
<script src="js/modal.js"></script>
<script src="js/printflow.js"></script>
<script src="js/ajaxcalls.js"></script>
<script src="js/toastr.min.js"></script>
<script>
$(function () {
$('#rules').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"order": [ 0, 'asc' ],
"info": false,
"autoWidth": true,
"pageLength": 100,
"lengthMenu": [ [25, 50, 100, 250, 500, -1], [25, 50, 100, 250, 500, "Alla"] ],
"language": {
"search": "Sök",
"lengthMenu": "Visa _MENU_ poster",
"infoEmpty": "Ingen aktivitet att visa",
"zeroRecords": "Inga matchande poster",
"paginate": {
"first": "Första",
"last": "Sista",
"next": "Nästa",
"previous": "Föregående",
}
}
});
});
</script>
</body>
</html>