This commit is contained in:
joyqi 2013-10-08 22:56:56 +08:00
parent 5715153532
commit 37e76372c5
7 changed files with 67 additions and 45 deletions

View File

@ -856,10 +856,6 @@ margin-top: 25px;
background: #444;
}
#typecho-nav-list .focus .parent a {
font-weight: bold;
}
#typecho-nav-list .child {
display: none;
position:absolute;
@ -1526,7 +1522,7 @@ a.operate-reply {
* 不使用表格的列表
*/
ul.typecho-list-notable {
margin: 0;
margin: 10px 0 0 0;
padding: 0;
line-height: 20px;
font-size: 13px;

View File

@ -41,6 +41,10 @@
$(s.checkEl, this).click(function (e) {
clickRow($(this).parents(s.rowEl));
});
$('input[type=text],input[type=password],textarea,input[type=submit],input[type=button],a,button').click(function (e) {
e.stopPropagation();
});
}).click(function () {
clickRow(this);
});

View File

@ -42,18 +42,22 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
<div class="typecho-list-operate">
<form method="get">
<p class="operate"><?php _e('操作'); ?>:
<span class="operate-button typecho-table-select-all"><?php _e('全选'); ?></span>,
<span class="operate-button typecho-table-select-none"><?php _e('不选'); ?></span>&nbsp;&nbsp;&nbsp;
<?php _e('选中项') ?>:
<span rel="approved" class="operate-button typecho-table-select-submit"><?php _e('通过'); ?></span>,
<span rel="waiting" class="operate-button typecho-table-select-submit"><?php _e('待审核'); ?></span>,
<span rel="spam" class="operate-button typecho-table-select-submit"><?php _e('标记垃圾'); ?></span>,
<span rel="delete" lang="<?php _e('你确认要删除这些评论吗?'); ?>" class="operate-button operate-delete typecho-table-select-submit"><?php _e('删除'); ?></span><?php if('spam' == $request->get('status')): ?>,
<span rel="delete-spam" lang="<?php _e('你确认要删除所有垃圾评论吗?'); ?>" class="operate-button operate-delete typecho-table-select-submit"><?php _e('删除所有垃圾评论'); ?></span>
<?php endif; ?>
</p>
<p class="search">
<div class="operate">
<input type="checkbox" class="typecho-table-select-all" />
<div class="btn-group btn-drop">
<button class="dropdown-toggle" type="button" href="">选中项 &nbsp;<i class="icon-caret-down"></i></button>
<ul class="dropdown-menu">
<li><a href="<?php $options->index('/action/comments-edit?do=approved'); ?>"><?php _e('通过'); ?></a></li>
<li><a href="<?php $options->index('/action/comments-edit?do=waiting'); ?>"><?php _e('待审核'); ?></a></li>
<li><a href="<?php $options->index('/action/comments-edit?do=spam'); ?>"><?php _e('标记垃圾'); ?></a></li>
<li><a lang="<?php _e('你确认要删除这些评论吗?'); ?>" href="<?php $options->index('/action/comments-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
<?php if('spam' == $request->get('status')): ?>
<li><a lang="<?php _e('你确认要删除所有垃圾评论吗?'); ?>" href="<?php $options->index('/action/comments-edit?do=delete-spam'); ?>"><?php _e('删除所有垃圾评论'); ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
<div class="search">
<?php if ('' != $request->keywords || '' != $request->category): ?>
<a href="<?php $options->adminUrl('manage-comments.php'
. (isset($request->status) || isset($request->cid) ? '?' .
@ -68,11 +72,11 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
<input type="hidden" value="<?php echo htmlspecialchars($request->get('cid')); ?>" name="cid" />
<?php endif; ?>
<button type="submit"><?php _e('筛选'); ?></button>
</p>
</div>
</form>
</div>
<form method="post" name="manage_comments" class="operate-form" action="<?php $options->index('/action/comments-edit'); ?>">
<form method="post" name="manage_comments" class="operate-form">
<ul class="typecho-list-notable clearfix">
<?php if($comments->have()): ?>
<?php while($comments->next()): ?>
@ -147,7 +151,6 @@ $comments = Typecho_Widget::widget('Widget_Comments_Admin');
</li>
<?php endif; ?>
</ul>
<input type="hidden" name="do" value="delete" />
<?php if(isset($request->cid)): ?>
<input type="hidden" value="<?php echo htmlspecialchars($request->get('cid')); ?>" name="cid" />
<?php endif; ?>
@ -172,6 +175,22 @@ include 'copyright.php';
include 'common-js.php';
?>
<script type="text/javascript">
(function () {
$(document).ready(function () {
$('.typecho-list-notable').tableSelectable({
checkEl : 'input[type=checkbox]',
rowEl : 'li',
selectAllEl : '.typecho-table-select-all',
actionEl : '.dropdown-menu a'
});
$('.btn-drop').dropdownMenu({
btnEl : '.dropdown-toggle',
menuEl : '.dropdown-menu'
});
});
})();
/*
(function () {
window.addEvent('domready', function() {
@ -408,6 +427,7 @@ include 'common-js.php';
});
})();
*/
</script>
<?php
include 'footer.php';

View File

@ -15,23 +15,26 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<div class="typecho-list-operate">
<form method="get">
<p class="operate"><?php _e('操作'); ?>:
<span class="operate-button typecho-table-select-all"><?php _e('全选'); ?></span>,
<span class="operate-button typecho-table-select-none"><?php _e('不选'); ?></span>&nbsp;&nbsp;&nbsp;
<?php _e('选中项'); ?>:
<span rel="delete" lang="<?php _e('你确认要删除这些附件吗?'); ?>" class="operate-button operate-delete typecho-table-select-submit"><?php _e('删除'); ?></span>
</p>
<p class="search">
<div class="operate">
<input type="checkbox" class="typecho-table-select-all" />
<div class="btn-group btn-drop">
<button class="dropdown-toggle" type="button" href="">选中项 &nbsp;<i class="icon-caret-down"></i></button>
<ul class="dropdown-menu">
<li><a lang="<?php _e('你确认要删除这些附件吗?'); ?>" href="<?php $options->index('/action/contents-attachment-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
</ul>
</div>
</div>
<div class="search">
<?php if ('' != $request->keywords): ?>
<a href="<?php $options->adminUrl('manage-medias.php'); ?>"><?php _e('&laquo; 取消筛选'); ?></a>
<?php endif; ?>
<input type="text" value="<?php '' != $request->keywords ? print(htmlspecialchars($request->keywords)) : _e('请输入关键字'); ?>"<?php if ('' == $request->keywords): ?> onclick="value='';name='keywords';" <?php else: ?> name="keywords"<?php endif; ?>/>
<button type="submit"><?php _e('筛选'); ?></button>
</p>
</div>
</form>
</div>
<form method="post" name="manage_medias" class="operate-form" action="<?php $options->index('/action/contents-attachment-edit'); ?>">
<form method="post" name="manage_medias" class="operate-form">
<table class="typecho-list-table draggable">
<colgroup>
<col width="25"/>
@ -85,7 +88,6 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<?php endif; ?>
</tbody>
</table>
<input type="hidden" name="do" value="delete" />
</form>
<?php if($attachments->have()): ?>

View File

@ -17,7 +17,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<div class="btn-group btn-drop">
<button class="dropdown-toggle" type="button" href="">选中项 &nbsp;<i class="icon-caret-down"></i></button>
<ul class="dropdown-menu">
<li><a lang="<?php _e('你确认要删除这些页面吗?'); ?>" href="<?php $options->index('/action/contents-post-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
<li><a lang="<?php _e('你确认要删除这些页面吗?'); ?>" href="<?php $options->index('/action/contents-page-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
</ul>
</div>
</div>
@ -31,7 +31,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
</form>
</div>
<form method="post" name="manage_pages" class="operate-form" action="<?php $options->index('/action/contents-page-edit'); ?>">
<form method="post" name="manage_pages" class="operate-form">
<table class="typecho-list-table draggable">
<colgroup>
<col width="25"/>
@ -95,7 +95,6 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<?php endif; ?>
</tbody>
</table>
<input type="hidden" name="do" value="delete" />
</form>
</div>

View File

@ -19,7 +19,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<ul class="dropdown-menu">
<li><a lang="<?php _e('你确认要删除这些文章吗?'); ?>" href="<?php $options->index('/action/contents-post-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
</ul>
</div>
</div>
</div>
<div class="search">
<?php if ('' != $request->keywords || '' != $request->category): ?>

View File

@ -10,24 +10,26 @@ include 'menu.php';
<div class="column-24 start-01 typecho-list">
<div class="typecho-list-operate">
<form method="get">
<p class="operate">
<?php _e('操作'); ?>:
<span class="operate-button typecho-table-select-all"><?php _e('全选'); ?></span>,
<span class="operate-button typecho-table-select-none"><?php _e('不选'); ?></span>,&nbsp;&nbsp;&nbsp;
<?php _e('选中项'); ?>:
<span rel="delete" lang="<?php _e('你确认要删除这些用户吗?'); ?>" class="operate-button operate-delete typecho-table-select-submit"><?php _e('删除'); ?></span>
</p>
<p class="search">
<div class="operate">
<input type="checkbox" class="typecho-table-select-all" />
<div class="btn-group btn-drop">
<button class="dropdown-toggle" type="button" href="">选中项 &nbsp;<i class="icon-caret-down"></i></button>
<ul class="dropdown-menu">
<li><a lang="<?php _e('你确认要删除这些用户吗?'); ?>" href="<?php $options->index('/action/users-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
</ul>
</div>
</div>
<div class="search">
<?php if ('' != $request->keywords): ?>
<a href="<?php $options->adminUrl('manage-users.php'); ?>"><?php _e('&laquo; 取消筛选'); ?></a>
<?php endif; ?>
<input type="text" placeholder="<?php _e('请输入关键字'); ?>" value="<?php echo htmlspecialchars($request->keywords); ?>" name="keywords" />
<button type="submit"><?php _e('筛选'); ?></button>
</p>
</div>
</form>
</div>
<form method="post" name="manage_users" class="operate-form" action="<?php $options->index('/action/users-edit'); ?>">
<form method="post" name="manage_users" class="operate-form">
<table class="typecho-list-table">
<colgroup>
<col width="25"/>
@ -84,7 +86,6 @@ include 'menu.php';
<?php endwhile; ?>
</tbody>
</table>
<input type="hidden" name="do" value="delete" />
</form>
<?php if($users->have()): ?>