-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.php
76 lines (72 loc) · 1.82 KB
/
categories.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
<?php
require_once 'action/inc/session.php';
require_once 'action/initialize.php';
$lists = application('categories');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>分类列表</title>
<link href="/pblog/includes/jquery/jquery-ui.min.css" rel="stylesheet"
type="text/css">
<link href="/pblog/includes/css/common.css" rel="stylesheet"
type="text/css">
<style type="text/css">
.post-lists {
margin-top: 5px;
margin-left: 20px;
padding: 5px;
}
</style>
<script src="/pblog/includes/jquery/jquery.min.js"></script>
<script src="/pblog/includes/jquery/jquery-ui.min.js"></script>
<script src="/pblog/includes/js/common.js"></script>
<script type="text/javascript">
$(function() {
});
</script>
</head>
<body>
<div id="topest"></div>
<?php
require_once 'nav-bar.php';
?>
<div id="div_container">
<?php
require_once 'header.php';
?>
<div id="div_main">
<?php
require_once 'siderbar-list.php';
?>
<div id="div_content">
<!-- <div class="ui-state-highlight ui-corner-all post-lists"
style="margin-top: 20px; padding: 0 .7em;">
<p>
<span class="ui-icon ui-icon-info"
style="float: left; margin-right: .3em;"></span> <strong><?=$_SESSION['search_info']?></strong>
</p>
</div> -->
<div class="global-a">
<?php
foreach ( $lists as $index => $cat ) {
if (0 != $index) {
?>
<div class="ui-state-highlight ui-corner-all post-lists">
<strong><a
href="/pblog/action/search.php?action=category_view&cat=<?=$cat['id'] ?>"><?=$cat['name'] ?></a></strong>
<span style="float: right">有 <?=$cat['count'] ?> 篇文章</span>
</div>
<?php }} ?></div>
</div>
</div>
</div>
<?php
include_once 'footer.php';
?>
</body>
</html>
<?php
unset($lists);
?>