<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('list_11');?><?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>

</div>
<div class="wk_head_banner">
<div class="wk_list_box wk_list_box6">
    <?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="clear"></div>
<div class="wk_ymbg">
<div id="wp" class="wp">

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

<div id="ct" class="ct2 wp cl">
<div class="mn">
    	<div class="wk_c_right_name">
            <div class="wk_c_right_name_r">
                <ul>
                	<li><img src="<?php echo $_G['style']['styleimgdir'];?>/portal/right_wz.png" alt="" /></li>
                    <li>
                        <span><?php echo $week_lang['8'];?></span>
                        <span><a href="<?php echo $_G['setting']['navs']['1']['filename'];?>"><?php echo $_G['setting']['navs']['1']['navname'];?></a></span>
                        <span><?php echo $week_lang['17'];?></span>
                        <?php if(is_array($cat['ups'])) foreach($cat['ups'] as $value) { ?><span><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>"><?php echo $value['catname'];?></a></span><span><?php echo $week_lang['17'];?></span><?php } ?>
                        <span><?php echo $cat['catname'];?></span>
                    </li>
                </ul>
            </div>
        </div><?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="bm">
<div class="wk_bm_wc cl">
                <ul>
                <?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="cl">
                        <?php if($value['pic']) { ?><div class="atc b_img"><a href="<?php echo $article_url;?>" title="<?php echo $value['title'];?>" target="_blank"><img src="<?php echo $value['pic'];?>" alt="<?php echo $value['title'];?>" class="tn" /></a></div><?php } ?>
                        <h2><a href="<?php echo $article_url;?>" target="_blank" class="xi2" title="<?php echo $value['title'];?>" <?php echo $highlight;?>><?php echo $value['title'];?></a> <?php if($value['status'] == 1) { ?>(待审核)<?php } ?></h2>
                        <p class="wk_bm_sm"><?php echo $value['summary'];?></p>
                        <span class="xg1">
                            <?php if($value['catname'] && $cat['subs']) { ?>分类: <label><a href="<?php echo $portalcategory[$value['catid']]['caturl'];?>" class="xi2"><?php echo $value['catname'];?></a></label>&nbsp;&nbsp;<?php } ?>
                            <span class="xg1"><?php echo $week_lang['11'];?>: <?php echo $value['dateline'];?></span>
                            <?php if($_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']) { ?>
                            <span class="xg1">
                                <span class="pipe">|</span>
                                <label><a href="portal.php?mod=portalcp&amp;ac=article&amp;op=edit&amp;aid=<?php echo $value['aid'];?>">编辑</a></label>
                                <span class="pipe">|</span>
                                <label><a href="portal.php?mod=portalcp&amp;ac=article&amp;op=delete&amp;aid=<?php echo $value['aid'];?>" id="article_delete_<?php echo $value['aid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">删除</a></label>
</span>
                            <?php } ?>
                        </span>
                        </li>	
                <?php } ?>
                </ul>
</div>
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
</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 class="sd pph">
    	<div class="wk_c_left_t">
            <span class="wk_c_left_t1"><?php echo $week_lang['68'];?></span> <span class="wk_c_left_t2"><?php echo $week_lang['69'];?></span>
        </div>
        <div class="wk_c_left_cnt">
            <ul>
            <?php if($wk_menu) { ?>
            	<?php if($cat['others']) { ?>
                    <?php if(is_array($cat['others'])) foreach($cat['others'] as $value) { ?>                        <li class="wk_menu1_cur"><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(is_array($cat['subs'])) foreach($cat['subs'] as $value) { ?>                        <li class="wk_menu1_cur"><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['others'])) foreach($cat['others'] as $value) { ?>                            <li class="wk_menu1_cur"><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>
        <div class="clear"></div>
        <!--[diy=wk_zcyl1]--><div id="wk_zcyl1" class="area"></div><!--[/diy]-->
        <div class="clear"></div>
<?php if($wk_contact) { include template('portal/contact'); ?>    	<?php } ?>
        <div class="clear"></div>
<!--[diy=wk_zcyl2]--><div id="wk_zcyl2" class="area"></div><!--[/diy]-->
        <div class="clear"></div>
</div>
    </div>
</div>
</div>

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