forked from weiganyi/tiny-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_post.php
47 lines (35 loc) · 1.09 KB
/
admin_post.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
<?php do_post_list_action(); ?>
<div id="post_list_page_link_div">
<div id='post_list_div'>
<?php echo make_post_list(); ?>
</div>
<div id='page_link_div'>
<?php echo make_page_link(); ?>
</div>
</div>
<script type="text/javascript">
function fn_page_link_click(responseText)
{
var post_list_page_link_div = document.getElementById("post_list_page_link_div");
post_list_page_link_div.innerHTML = responseText;
}
function page_link_click(page_num)
{
var post_list_url = "index.php?page=admin_post_ajax&ajax=1&" + page_num;
tb_ajax(post_list_url, fn_page_link_click);
return;
}
function fn_category_change(responseText)
{
return;
}
function category_change(select_obj, post_id)
{
var select_idx = select_obj.selectedIndex;
var cat_name = select_obj[select_idx].value;
var post_list_url =
"index.php?action=change_cat&page=admin_post_ajax2&ajax=1&" + post_id + "&cat_name=" + cat_name;
tb_ajax(post_list_url, fn_category_change);
return;
}
</script>