<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('list_13');?><?php include template('common/header'); $list = array();?><?php $wheresql = category_get_wheresql($cat);?><?php $list = category_get_list($cat, $wheresql, $page);?><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
<style>
.ct2 { border:0; padding-bottom:30px;} 
</style>

</div>
<div class="wk_list_box wk_list_box10">
    <?php if(($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])) { ?>
    <div class="bm_h">
        <a href="portal.php?mod=portalcp&amp;ac=article&amp;catid=<?php echo $cat['catid'];?>">发布文章</a>
    </div>
    <?php } ?>
</div>
<div class="wk_blog_tab">
<ul>
    <?php if($wk_menu) { ?>
        <?php if($cat['others']) { ?>
            <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                <li><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
            <?php } ?>
        <?php } ?>
    <?php } else { ?>
        <?php if($cat['subs']) { ?>
            <?php if($cat['others']) { ?>
                <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                <?php if($value['catid'] == $cat['catid']) { ?>
                    <li><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" title="<?php echo $value['catname'];?>" class="a"><?php echo $week_lang['58'];?></a></li>
                <?php } ?>
                <?php } ?>
            <?php } ?>
            <?php if(is_array($cat['subs'])) foreach($cat['subs'] as $value) { ?>                <li><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
            <?php } ?>
        <?php } else { ?>
            <?php if($cat['others']) { ?>
                <?php if(is_array($cat['ups'])) foreach($cat['ups'] as $value) { if($value['catid'] == $cat['upid']) { ?><li><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" title="<?php echo $value['catname'];?>"><?php echo $week_lang['58'];?></a></li><?php } } ?>
                <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                    <li><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" title="<?php echo $value['catname'];?>" <?php if($value['catid'] == $cat['catid']) { ?>class="a"<?php } ?>><?php echo $value['catname'];?></a></li>
                <?php } ?>
            <?php } ?>
        <?php } ?>
    <?php } ?>
    </ul>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="wk_ymbg">
<div id="wp" class="wp">

<script src="<?php echo $_G['style']['styleimgdir'];?>/js/jquery.hover.js" type="text/javascript"></script>
<script type="text/javascript">
PRO(document).ready(function(){PRO(function() {PRO('#photo .list').hoverdir();});});
</script>

<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2 wp cl"><?php echo adshow("articlelist/mbm hm/1");?><?php echo adshow("articlelist/mbm hm/2");?><!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
        <div class="wk_product" id="photo">
            <ul>
            <?php $wt=1?>            <?php if(is_array($list['list'])) foreach($list['list'] as $value) { ?>            <?php $highlight = article_title_style($value);?>            <?php $article_url = fetch_article_url($value);?>                <li class="list" <?php if(is_int($wt/4)) { ?>style="margin-right:0;"<?php } ?>>
                    <a href="<?php echo $article_url;?>" title="<?php echo $value['title'];?>" target="_blank">
                        <?php if($value['pic']) { ?><img src="<?php echo $value['pic'];?>" alt="<?php echo $value['title'];?>"/><?php } else { ?><img src="<?php echo $_G['style']['imgdir'];?>/nophoto.gif" alt="<?php echo $value['title'];?>"/><?php } ?>
                        <dd class="pt_amt" style="display: block;">
                        	<h2><?php echo $value['title'];?></h2>
                            <div class="wk_mt"><span><?php echo $week_lang['11'];?>:<?php echo $value['dateline'];?></span></div>
                        </dd>
                    </a>
                </li>
                <?php $wt++?>            <?php } ?>
            </ul>
        </div>
        <div class="clear"></div><?php echo adshow("articlelist/mbm hm/3");?><?php echo adshow("articlelist/mbm hm/4");?><?php if($list['multi']) { ?><div class="pgs cl"><?php echo $list['multi'];?></div><?php } ?>
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
</div>
</div>

<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div><?php include template('common/footer'); ?>