继续重构

This commit is contained in:
joyqi
2013-10-08 17:18:06 +08:00
parent 18124bfeca
commit f8c05eef23
6 changed files with 36 additions and 20 deletions
+5 -6
View File
@@ -17,15 +17,15 @@ $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 href=""><?php _e('删除'); ?></a></li>
<li><a lang="<?php _e('你确认要删除这些文章吗?'); ?>" href="<?php $options->index('/action/contents-post-edit?do=delete'); ?>"><?php _e('删除'); ?></a></li>
</ul>
</div>
</div>
<p class="search">
<div class="search">
<?php if ('' != $request->keywords || '' != $request->category): ?>
<a href="<?php $options->adminUrl('manage-posts.php' . (isset($request->uid) ? '?uid=' . htmlspecialchars($request->get('uid')) : '')); ?>"><?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; ?>/>
<input type="text" placeholder="<?php _e('请输入关键字'); ?>" value="<?php echo htmlspecialchars($request->keywords); ?>" name="keywords" />
<select name="category">
<option value=""><?php _e('所有分类'); ?></option>
<?php Typecho_Widget::widget('Widget_Metas_Category_List')->to($category); ?>
@@ -37,11 +37,11 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<?php if(isset($request->uid)): ?>
<input type="hidden" value="<?php echo htmlspecialchars($request->get('uid')); ?>" name="uid" />
<?php endif; ?>
</p>
</div>
</form>
</div>
<form method="post" name="manage_posts" class="operate-form" action="<?php $options->index('/action/contents-post-edit'); ?>">
<form method="post" name="manage_posts" class="operate-form">
<table class="typecho-list-table">
<colgroup>
<col width="25"/>
@@ -113,7 +113,6 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<?php endif; ?>
</tbody>
</table>
<input type="hidden" name="do" value="delete" />
</form>
<?php if($posts->have()): ?>