<?php defined('ByFeiWa') or exit('Access Invalid!');?>
<?php if(!empty($output['article_list']) && is_array($output['article_list'])){ ?>
<div class="article-select-box">
    <div class="arrow"></div>
    <ul id="article_search_list" class="article-search-list">
        <?php foreach($output['article_list'] as $value){ ?>
        <li>
        <span nctype="reads_index_not_display" class="article-image">
            <p><img src="<?php echo getREADSArticleImageUrl($value['article_attachment_path'], $value['article_image']);?>" /></p>
        </span>
        <span class="title">
            <em nctype="reads_index_not_display" class="class-name">[<?php echo $value['class_name'];?>]</em>
            <a nctype="article_item" href="<?php echo getREADSArticleUrl($value['article_id']);?>" target="_blank" class_name="<?php echo $value['class_name'];?>" article_abstract="<?php echo $value['article_abstract'];?>" article_click="<?php echo $value['article_click'];?>" article_publish_time="<?php echo date('Y-m-d',$value['article_publish_time']);?>" article_image="<?php echo getREADSArticleImageUrl($value['article_attachment_path'], $value['article_image']);?>">
                <?php echo $value['article_title'];?>
            </a>
            <em nctype="reads_index_not_display" class="publish-time">(<?php echo date('Y-m-d',$value['article_publish_time']);?>)</em>
        </span>
        <span nctype="reads_index_not_display" class="article-abstract" title="<?php echo $value['article_abstract'];?>"><?php echo $lang['reads_article_abstract'];?><?php echo $lang['feiwa_colon'];?><?php echo $value['article_abstract'];?></span>
        <a nctype="btn_article_select" href="JavaScript:void(0);" class="handle-add" title="<?php echo $lang['reads_text_add'];?>"></a>
        </li>
        <?php } ?>
    </ul>
    <div class="pagination"><?php echo $output['show_page'];?></div>
</div>
<?php }else { ?>
<div class="no-record"><?php echo $lang['no_record'];?></div>
<?php } ?>
