From 0387c9585ba0dd9ce055ced1d378d0f90065a06b Mon Sep 17 00:00:00 2001
From: fen <fen1211@gmail.com>
Date: Wed, 16 Oct 2013 12:29:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=84=E8=AE=BA=E7=BC=96?=
 =?UTF-8?q?=E8=BE=91=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 admin/css/style.css       | 52 +++++++++++++++++++--------------------
 admin/manage-comments.php | 35 +++++++++++++++++++++++++-
 2 files changed, 60 insertions(+), 27 deletions(-)

diff --git a/admin/css/style.css b/admin/css/style.css
index de334ea7..56e450fa 100644
--- a/admin/css/style.css
+++ b/admin/css/style.css
@@ -181,8 +181,20 @@ button {
     height: 28px;
 }
 
+button.primary {
+    border-color: #8ABAD7;
+    border-bottom-color: #64a4ca;
+    color: #467b96;
+    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8f2f8), color-stop(100%, #d9eaf2));
+    background-image: -webkit-linear-gradient(#e8f2f8, #d9eaf2);
+    background-image: -moz-linear-gradient(#e8f2f8, #d9eaf2);
+    background-image: -o-linear-gradient(#e8f2f8, #d9eaf2);
+    background-image: linear-gradient(#e8f2f8, #d9eaf2);
+}
+
+
 button, .dropdown-menu {
-    border: 1px solid #bbbbbb;
+    border: 1px solid #BBB;
     border-bottom-color: #AAA;
     -webkit-box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px, inset white 0 1px 0;
     -moz-box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px, inset white 0 1px 0;
@@ -191,8 +203,13 @@ button, .dropdown-menu {
     border-radius: 2px;
 }
 
+button:hover { 
+    background: #F6F6F6;
+    color: #777;
+}
+
 button:disabled, button:active, button.active {
-    background: #EEE;
+    background: #DDD;
     -webkit-box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px;
     -moz-box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px;
     box-shadow: inset rgba(0, 0, 0, 0.12) 0 0 4px; }
@@ -207,22 +224,6 @@ button:disabled {
     box-shadow: none;
 }
 
-button:hover { 
-    background: #F6F6F6;
-    color: #777;
-}
-
-button.primary {
-    border-color: #8ABAD7;
-    border-bottom-color: #64a4ca;
-    color: #467b96;
-    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e8f2f8), color-stop(100%, #d9eaf2));
-    background-image: -webkit-linear-gradient(#e8f2f8, #d9eaf2);
-    background-image: -moz-linear-gradient(#e8f2f8, #d9eaf2);
-    background-image: -o-linear-gradient(#e8f2f8, #d9eaf2);
-    background-image: linear-gradient(#e8f2f8, #d9eaf2);
-}
-
 button.primary:hover {
     background: #e0eef6;
     color: #5591b0;
@@ -1093,6 +1094,7 @@ a.operate-reply {
 .typecho-list-table td {
     padding: 10px;
     border-top: 1px solid #F0F0EC;
+    word-break: break-all;
 }
 
 .typecho-list-table td .thumb-box {
@@ -1169,6 +1171,10 @@ a.operate-reply {
 
 .comment-action a, .comment-action span { margin-right: 4px; }
 
+.comment-edit label {
+    display: block;
+}
+
 
 /* 下拉操作按钮 */
 /*.typecho-list-table tr:hover .drop-action { display: block; }
@@ -1359,10 +1365,10 @@ ul.typecho-list-notable li .loading {
 
 /*ul.typecho-list-notable li #typecho-respond {
     display: inline;
-}*/
+}
 
 #typecho-respond textarea {
-}
+}*/
 
 /**
  * 模板列表
@@ -1376,12 +1382,6 @@ ul.typecho-list-notable li .loading {
 .typecho-theme-list td {
 }
 
-.typecho-theme-list td.border-right {
-}
-
-.typecho-theme-list td.border-bottom {
-}
-
 .typecho-theme-list img {
     margin: 1em 0;
     max-width: 100%;
diff --git a/admin/manage-comments.php b/admin/manage-comments.php
index 57341718..fbd349bc 100644
--- a/admin/manage-comments.php
+++ b/admin/manage-comments.php
@@ -93,6 +93,39 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
                             </tr>
                         </thead>
                         <tbody>
+                        <!-- 编辑评论 -->
+                        <tr class="comment-edit">
+                            <td></td>
+                            <td colspan="2" valign="top">
+                                <p>
+                                    <label for="">用户名</label>
+                                    <input class="text-s w-100" type="text">
+                                </p>
+                                <p>
+                                    <label for="">Email</label>
+                                    <input class="text-s w-100" type="email">
+                                </p>
+                                <p>
+                                    <label for="">IP 地址</label>
+                                    <input class="text-s w-100" type="text">
+                                </p>
+                            </td>
+                            <td valign="top">
+                                <p>
+                                    <label for="">发布时间</label>
+                                    <input class="text-s w-40" type="text">
+                                </p>
+                                <p>
+                                    <label for="">内容</label>
+                                    <textarea name="" id="" rows="4" class="w-90"></textarea>
+                                </p>
+                                <p>
+                                    <button type="submit" class="btn-s primary">提交</button>
+                                    <button type="button" class="btn-s">取消</button>
+                                </p>
+                            </td>
+                        </tr><!-- end .comment-edit -->
+
                         <?php if($comments->have()): ?>
                         <?php while($comments->next()): ?>
                         <tr id="<?php $comments->theId(); ?>">
@@ -123,7 +156,7 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
                                 </div>
                                 <form action="post" class="comment-reply">
                                     <p><textarea name="" id="" class="w-90" rows="3"></textarea></p>
-                                    <p><button type="submit" class="btn-s">提交回复</button></p>
+                                    <p><button type="submit" class="btn-s">回复</button></p>
                                 </form>
                                 <div class="comment-action hidden-by-mouse">
                                     <?php if('approved' == $comments->status): ?>