diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-09-03 09:44:39 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-09-03 09:44:39 +0000 |
| commit | 6f1cd3787e4b994a76d73b4e024d90bec7482c81 (patch) | |
| tree | 5a5dad9ffef501cb25daa82300780c9436f646b4 /article_filter_inc.php | |
| parent | e1efc3420c9b9a525740971b5f6745dc468c508e (diff) | |
| download | articles-6f1cd3787e4b994a76d73b4e024d90bec7482c81.tar.gz articles-6f1cd3787e4b994a76d73b4e024d90bec7482c81.tar.bz2 articles-6f1cd3787e4b994a76d73b4e024d90bec7482c81.zip | |
add quick filtering option for admins
Diffstat (limited to 'article_filter_inc.php')
| -rw-r--r-- | article_filter_inc.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/article_filter_inc.php b/article_filter_inc.php new file mode 100644 index 0000000..b86d66a --- /dev/null +++ b/article_filter_inc.php @@ -0,0 +1,22 @@ +<?php +if( $gBitSystem->isFeatureActive( 'display_article_filter_bar' ) && ( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'bit_p_admin_cms' ) ) ) { + $filter = array(); + + $_topics = BitArticleTopic::getTopicList(); + foreach( $_topics as $topic ) { + $filter['topic'][$topic['topic_id']] = $topic['topic_name']; + } + + $_types = BitArticleType::getTypeList(); + foreach( $_types as $type ) { + $filter['type'][$type['article_type_id']] = $type['type_name']; + } + + $_statuses = BitArticle::getStatusList(); + foreach( $_statuses as $status ) { + $filter['status'][$status['status_id']] = $status['status_name']; + } + + $gBitSmarty->assign( 'filter', $filter ); +} +?> |
