修复多级分类后台显示错误

This commit is contained in:
joyqi
2014-02-25 11:24:48 +08:00
parent bb331ec8a5
commit 8e7bf64397
11 changed files with 39 additions and 18 deletions

View File

@@ -83,7 +83,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
}
?>
<?php while($category->next()): ?>
<li><input type="checkbox" id="category-<?php $category->mid(); ?>" value="<?php $category->mid(); ?>" name="category[]" <?php if(in_array($category->mid, $categories)): ?>checked="true"<?php endif; ?>/>
<li><?php echo str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $category->levels); ?><input type="checkbox" id="category-<?php $category->mid(); ?>" value="<?php $category->mid(); ?>" name="category[]" <?php if(in_array($category->mid, $categories)): ?>checked="true"<?php endif; ?>/>
<label for="category-<?php $category->mid(); ?>"><?php $category->name(); ?></label></li>
<?php endwhile; ?>
</ul>