-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtable.php
More file actions
158 lines (135 loc) · 6.74 KB
/
table.php
File metadata and controls
158 lines (135 loc) · 6.74 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
#
# This file demonstrates how to generate a table view in the WordPress admin.
# There are APIs for this built into the WP core, but I still find it easier
# just to generate this stuff on my own.
# Improvements to follow.
#
?>
<ul class="subsubsub">
<li class="all"><a href="#" class="current">All <span class="count">(#)</span></a> |</li>
<li class="publish"><a href="#">Published <span class="count">(#)</span></a> |</li>
<li class="draft"><a href="#">Drafts <span class="count">(#)</span></a> |</li>
<li class="trash"><a href="#">Trash <span class="count">(#)</span></a></li>
</ul>
<form id="posts-filter" action="" method="get" name="posts-filter">
<p class="search-box">
<label class="screen-reader-text" for="post-search-input">Search Posts:</label>
<input type="text" id="post-search-input" name="s" value="" />
<input type="submit" name="" id="search-submit" class="button" value="Search Posts" />
</p>
<div class="tablenav top">
<div class="alignleft actions">
<select name="action">
</select>
<input type="submit" name="" id="doaction" class="button-secondary action" value="Apply" />
</div>
<div class="alignleft actions">
<select name="m">
</select>
<select name="cat" id="cat" class="postform">
</select>
<input type="submit" name="" id="post-query-submit" class="button-secondary" value="Filter" />
</div>
<?php ob_start(); ?>
<div class="tablenav-pages one-page">
<span class="displaying-num">2 items</span>
<span class="pagination-links">
<a class="first-page disabled" title="Go to the first page" href="http://www.dev.wp.fatpandadev.com/wp-admin/edit.php">«</a>
<a class="prev-page disabled" title="Go to the previous page" href="http://www.dev.wp.fatpandadev.com/wp-admin/edit.php?paged=1">‹</a>
<span class="paging-input">
<input class="current-page" title="Current page" type="text" name="paged" value="1" size="1" />
of <span class="total-pages">1</span>
</span>
<a class="next-page disabled" title="Go to the next page" href="http://www.dev.wp.fatpandadev.com/wp-admin/edit.php?paged=1">›</a>
<a class="last-page disabled" title="Go to the last page" href="http://www.dev.wp.fatpandadev.com/wp-admin/edit.php?paged=1">»</a>
</span>
</div>
<?php $tablenav = ob_get_flush() ?>
<div class="view-switch">
<a href="/wp-admin/edit.php?mode=list" class="current">
<img id="view-switch-list" src="http://www.dev.wp.fatpandadev.com/wp-includes/images/blank.gif" width="20" height="20" title="List View" alt="List View" name="view-switch-list" /></a>
<a href="/wp-admin/edit.php?mode=excerpt">
<img id="view-switch-excerpt" src="http://www.dev.wp.fatpandadev.com/wp-includes/images/blank.gif" width="20" height="20" title="Excerpt View" alt="Excerpt View" name="view-switch-excerpt" /></a>
</div>
<br class="clear" />
</div>
<table class="wp-list-table widefat fixed" cellspacing="0">
<thead>
<?php ob_start(); ?>
<tr>
<th scope="col" id="cb" class="manage-column column-cb check-column" style="">
<input type="checkbox" />
</th>
<th scope="col" id="whatever1" class="manage-column column-whatever sortable desc" style="">
<a href="#"><span>Whatever</span></a>
</th>
<th scope="col" id="whatever2" class="manage-column column-whatever sortable desc" style="">
<a href="#"><span>Whatever</span></a>
</th>
<th scope="col" id="whatever2" class="manage-column column-whatever sortable desc" style="">
<a href="#"><span>Whatever</span></a>
</th>
</tr>
<?php $headrow = ob_get_flush(); ?>
</thead>
<tfoot><?php echo $headrow ?></tfoot>
<tbody id="the-list">
<tr id="item-#" class="alternate" valign="top">
<th scope="row" class="check-column">
<input type="checkbox" name="post[]" value="62" />
</th>
<td class="post-title page-title column-title">
<strong>
<a class="row-title" href="http://www.dev.wp.fatpandadev.com/wp-admin/post.php?post=62&action=edit" title="Edit “(no title)â€">Lorem ipsum whatever</a>
- <span class="post-state">Draft</span>
</strong>
<div class="row-actions">
<span class="edit"><a href="#" title="Edit this item">Edit</a> |</span>
<span class="inline hide-if-no-js"><a href="#" class="editinline" title="Edit this item inline">Quick Edit</a> |</span>
<span class="trash"><a class="submitdelete" title="Move this item to the Trash" href="#">Trash</a> |</span>
<span class="view"><a href="#" title="Preview “(no title)â€" rel="permalink">Preview</a></span>
</div>
<div class="hidden" id="inline_62">
</div>
</td>
<td class="author column-author">
<a href="edit.php?post_type=post&author=1">whatever</a>
</td>
<td class="date column-date">
<abbr title="2011/08/24 6:00:33 AM">2011/08/24</abbr><br />
Last Modified
</td>
</tr>
<tr id="item-#" class="" valign="top">
<th scope="row" class="check-column">
<input type="checkbox" name="post[]" value="62" />
</th>
<td class="post-title page-title column-title">
<strong>
<a class="row-title" href="http://www.dev.wp.fatpandadev.com/wp-admin/post.php?post=62&action=edit" title="Edit “(no title)â€">Lorem ipsum whatever</a>
- <span class="post-state">Draft</span>
</strong>
<div class="row-actions">
<span class="edit"><a href="#" title="Edit this item">Edit</a> |</span>
<span class="inline hide-if-no-js"><a href="#" class="editinline" title="Edit this item inline">Quick Edit</a> |</span>
<span class="trash"><a class="submitdelete" title="Move this item to the Trash" href="#">Trash</a> |</span>
<span class="view"><a href="#" title="Preview “(no title)â€" rel="permalink">Preview</a></span>
</div>
<div class="hidden" id="inline_62">
</div>
</td>
<td class="author column-author">
<a href="edit.php?post_type=post&author=1">whatever</a>
</td>
<td class="date column-date">
<abbr title="2011/08/24 6:00:33 AM">2011/08/24</abbr><br />
Last Modified
</td>
</tr>
</tbody>
</table>
<div class="tablenav bottom">
<?php echo $tablenav ?>
</div>
</form>