<?php
    $name = "list-s-5";
?>
<link rel="stylesheet" href="/template/mobile/components/list/style_5.css?v=<?php echo rand(1,100000); ?>"   media="all">
<!--定义div盒子-->
<div class="<?php echo $name; ?>-content">
    <div class="box">
        <!--定义内容布局--->
        <div class="row">
            <!--定义内部栅格 上下中左右 使用浮动-->
            <div class="top">
                <!--定义内容标签 p span a li img--->
                <span></span>

                {eyou:if condition='($page == "lunwen-detail")'}
                    <?php echo $title; ?>
                {eyou:elseif condition='($page == "document")'}
                    {eyou:type typeid='38 empty=''}
                    <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a>
                    {/eyou:type}
                {eyou:elseif condition='($page == "down")'}

                {eyou:empty name='$eyou.field.stypeid' /}
                <?php echo $title; ?>
                {eyou:else /}
                {eyou:type typeid='$eyou.field.stypeid' empty=''}
                <a href="{:get_tid_url_2($field['typeurl'])}" class="" >{$field['typename']}<?php echo $title; ?></a>
                {/eyou:type}
                {/eyou:empty}

                {eyou:elseif condition='($page == "provincial")'}
                    {eyou:type typeid='116' empty='暂时没有数据'}
                    <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a>
                    {/eyou:type}
                {eyou:else /}
                <!--{$field['typename']} $eyou.field.typeid-->
                    {eyou:type typeid='116' empty='暂时没有数据'}
                    <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a>
                    {/eyou:type}
                {/eyou:if}



            </div>
            <div class="center">
                <!--定义内容标签 p span a li img--->
                <?php if(isset($page) && $page == 'works' || isset($page) && $page == 'document.htm' || isset($page) && $page == 'provincial'){ ?>


                    {eyou:if condition='($page == "provincial")'}

                    {eyou:artlist  stypeid='0' typeid="116,123" limit='0,4' titlelen='30' infolen='160' orderby='update_time desc'}

                    <li class="qktj">
                        <img src="{$field.litpic}" width="100" height="133"/>
                        <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">{$field.title|msubstr=###,0,18,true}</a>
                    </li>

                    {/eyou:artlist}


                    {eyou:else /}

                    <!---热门职称推荐-->
                    <?php
                    //area_id=$areaid
                    $where1 = "area_id>0 and parent_id=38 and topid=38 and is_del=0 and status=1 and is_hot=1";
                    ?>
                    {eyou:sql sql="SELECT id FROM __PREFIX__arctype where $where1 order by update_time desc limit 0,6" cachetime='3600' id='res'}
                    {eyou:foreach name='$res' item='cat'}
                    {eyou:type typeid='$cat' empty='暂时没有数据' id='field2'}
                    <li style="position:relative;">
                        <img src="https://oss.zc10000.com/static/images/bg_1.png" width="191" height="167"/>
                        <span style="display:block;position: absolute;top:36%;width:100%;text-align:center;font-size: 20px;font-weight: bold;">
                                        {$field2.typename}
                                    </span>
                        <a href="{:get_tid_url_2($field2['typeurl'],0,0,0,'产品',$field2['topid'],$field2['area_id'])}">{$field2.typename}</a>
                    </li>
                    {/eyou:type}
                    {/eyou:foreach}
                    {/eyou:sql}


                    {/eyou:if}


                <?php }else{ ?>

                {eyou:if condition='($page == "lunwen-detail")'}

                <!--论文期刊加筛选 catid="$eyou.field.stypeid"-->
                {eyou:artlist  stypeid='0' typeid="116,123" limit='0,6' titlelen='30' infolen='160' orderby='update_time desc'}

                <li class="qktj">
                    <img src="{$field.litpic}" width="100" height="133"/>
                    <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">{$field.title|msubstr=###,0,7,true}</a>
                </li>

                {/eyou:artlist}

                {eyou:elseif condition='($page == "down")'}
                    <!---先用sql-->
                    {eyou:assign name='catid' value='$eyou.field.stypeid' /}
                    <?php
                    //and stypeid='$catid'
                    $where = " typeid=116 and is_del=0 ";
                    //GROUP_CONCAT(aid SEPARATOR ',')
                    $ids = '0';
                    ?>
                    {eyou:sql sql="select aid from ey_archives where $where order by update_time desc LIMIT 0,6" cachetime='3600' empty='没有数据' id="res4"}
                    <?php
                        //var_dump($res4);
                        $ids .= ','.$res4['aid'];
                    ?>
                    {/eyou:sql}

                    {eyou:notempty name='$ids' /}
                    {eyou:artlist idlist="$ids" titlelen='30' infolen='160' limit="0,6" orderby='update_time desc' addfields='handle_time'}
                    <li class="qktj">
                        <img src="{$field.litpic}" width="100" height="133"/>
                        <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">{$field.title|msubstr=###,0,10,true}</a>
                    </li>
                    {/eyou:artlist}
                    {/eyou:notempty}

                {eyou:else /}

                <!--论文期刊加筛选-->
                            <?php
                                /**catid="$eyou.field.typeid" artlist标签加入 有时候列表页 有用 有时候没用*/
                            ?>
                {eyou:artlist  stypeid='0' typeid="116,123" limit='0,6' titlelen='30' infolen='160' orderby='update_time desc' addfields='qkmc'}

                <li class="qktj">
                    <img src="{$field.litpic}" width="100" height="133"/>
                    <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">{$field.qkmc|msubstr=###,0,7,true}</a>
                </li>

                {/eyou:artlist}


                {/eyou:if}


                <?php } ?>
            </div>
            <div class="bottom">
                <div class="bottom-row">

                    {eyou:if condition='($page == "document")'}
                    <span>{eyou:type typeid='38' empty='暂时没有数据'}
                        <a href="{:get_tid_url_2($field['typeurl'])}"  >查看更多</a>
                    {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
                    {eyou:else /}
                    <span>{eyou:type typeid='116' empty='暂时没有数据'}
                        <a href="{:get_tid_url_2($field['typeurl'])}"  >查看更多</a>
                    {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
                    {/eyou:if}



                </div>

            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>