-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
33 lines (28 loc) · 1.01 KB
/
Copy pathtest.php
File metadata and controls
33 lines (28 loc) · 1.01 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
<?php
require_once('includes/butr.inc');
$butr_Pagination = new Butr\Pagination();
$offset = 0;
$butr_Pagination->setAll(599, 20, $offset, 'default', Butr\SORT_DIRECTION_ASCENDING, 'en_AU', 'page');
$butr_Pagination->preparePagination();
?>
<html>
<head>
<title>Pagination Test</title>
<style type="text/css">
div.pagination-page { border: solid 1px #bbbbbb; display: inline; padding: 2px; }
div.pagination-page-active { border: solid 1px #bbbbbb; background-color: #bbbbbb; display: inline; padding: 2px; }
div.pagination-padding-page { border: none; display: inline; padding: 2px; }
a.pagination-link-page { text-decoration: none; }
a.pagination-link-page:hover { text-decoration: underline; }
</style>
</head>
<body>
<?php
$butr_Pagination->generatePagination();
$description = "This is my \"description\".";
$json = '{"authentication":{"session_token":"abc"},"message":{"description":"'.$description.'"}}';
echo $json . "<br>";
echo json_encode($json);
?>
</body>
</html>