From 148e4b3ad20c8a746e635165032f1f06c6d26913 Mon Sep 17 00:00:00 2001 From: alex_t_king Date: Wed, 24 Sep 2003 22:00:57 +0000 Subject: [PATCH] renamed b2edit.showposts.php and added a title, cleaned up the comments display, and added links to the other sections git-svn-id: http://svn.automattic.com/wordpress/trunk@381 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/wp-edit.showposts.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 wp-admin/wp-edit.showposts.php diff --git a/wp-admin/wp-edit.showposts.php b/wp-admin/wp-edit.showposts.php new file mode 100644 index 0000000000..cb8f7fae28 --- /dev/null +++ b/wp-admin/wp-edit.showposts.php @@ -0,0 +1,347 @@ + + +

Posts

+
+ + + + + + + + + +
+ Show posts: + + + + + + +
+
+ 0) { +?> + + + + + +
+
+
+ + + + +
+
+
+
+ + +   + +
+
+
+  to   +   + +
+
+
+ + + +
+ + + + + + +
+
+ + + +
+
+
+ + +
+
+
+ "; + $querycount++; + $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date), MONTH(post_date) FROM $tableposts ORDER BY post_date DESC",ARRAY_A); + foreach ($arc_result as $arc_row) { + $arc_year = $arc_row["YEAR(post_date)"]; + $arc_month = $arc_row["MONTH(post_date)"]; + echo "\n"; + } + } elseif ($archive_mode == "daily") { + echo ""; + if (!isset($start_of_week)) { + $start_of_week = 1; + } + $archive_week_start_date_format = "Y/m/d"; + $archive_week_end_date_format = "Y/m/d"; + $archive_week_separator = " - "; + $querycount++; + $arc_result=$wpdb->geT_results("SELECT DISTINCT YEAR(post_date), MONTH(post_date), DAYOFMONTH(post_date), WEEK(post_date) FROM $tableposts ORDER BY post_date DESC", ARRAY_A); + $arc_w_last = ''; + foreach ($arc_result as $arc_row) { + $arc_year = $arc_row["YEAR(post_date)"]; + $arc_w = $arc_row["WEEK(post_date)"]; + if ($arc_w != $arc_w_last) { + $arc_w_last = $arc_w; + $arc_ymd = $arc_year."-".zeroise($arc_row["MONTH(post_date)"],2)."-" .zeroise($arc_row["DAYOFMONTH(post_date)"],2); + $arc_week = get_weekstartend($arc_ymd, $start_of_week); + $arc_week_start = date($archive_week_start_date_format, $arc_week['start']); + $arc_week_end = date($archive_week_end_date_format, $arc_week['end']); + echo "\n"; + } + } + } elseif ($archive_mode == "postbypost") { + echo ''; + echo '"; + ?> + +
+
+ + +

+ [ + $authordata->user_level) or ($user_login == $authordata->user_login)) { + echo " - Edit"; + echo " - Delete "; + } + if ('private' == $post->post_status) echo ' - Private'; + ?> + ] +
+ by (), in
+ + +

+ get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date"); + if ($comments) { + ?> + +

Comments

+
    + + + +
  1. + @ + $authordata->user_level) or ($user_login == $authordata->user_login)) { + echo "[ comment_ID."\">Edit"; + echo " - ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete ]"; + } // end if any comments to show + ?> +
    + ( / ) (IP: ) + +
  2. + + + '; + }//end if comments + if ($comment_error) + echo "

    Error: please fill the required fields (name & comment)

    "; + ?> + +

    Leave Comment

    + + + + +
    + + " /> +
    +
    +
    +
    + +
    + + + +
    + + +

    + No results found. +

    + + + +

    Go to: Post/Edit | Posts | Comments

    + +
+ + \ No newline at end of file