联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
怎么调用当前文档的多图上传字段?
类型:POSCMS 更新时间:2017-09-01 20:26:29

{template "head.html", "/"}
{template "header.html"}

<script language="javascript">
    
    function dr_favorite() {
        $.get("/index.php?s={MOD_DIR}c=api&m=favorite&id={$id}", function(data){
            if (data == 1) {
                dr_tips("没有登录,不能收藏");
            } else if (data == 2) {
                dr_tips("文档不存在,无法收藏");
            } else if (data == 3) {
                dr_tips("更新收藏成功", 3, 1);
            } else if (data == 4) {
                dr_tips("收藏成功", 3, 1);
            }
        });
    }
</script>

<div class="b_body">
      <div class="b_body_top">
      <div class="kb"></div>
                 <div class="b_body_top_l">
                 <img src="{dr_get_file($thumb)}" width="600px" height="270px;"/>



<div class="dzslt">
<li id="click_left" style="z-index:2;position:relative;margin-left:0px;float:left;width:20px;height:120px;"></li>
<div class="yd">



{list action=module module=down order=rand catid=1 num=999 return=t}

{loop $t.dzslt $id $tt }


<li><img src="{dr_thumb($tt.file, 168, 120)}" width="168px" height="120px;"/></li>


 
 {/loop}
 {/list}
   
</div>
<li id="click_right" style="z-index:2;position:relative;margin-left:0px;float:right;width:20px;height:120px;"></li>

</div>

                 </div>
                 <div class="b_body_top_r">

          <span class="a_body_span" style="color:#a51c48;width:500px;height:30px;">{$title}</span>
          <span  style="display:block;height:1px;background:#d52154;margin:24px auto;"></span>


                 <span class="a_body_spann" style="line-height:26px;height:280px;overflow:hidden;">{$content}</span>

                 <div class="sc">
                     
                      <div class="scb">
                        <div class="scc"><a href="javascript:dr_favorite();">收藏</a></div>
                        <div class="scd"><a href="{dr_down_file($file)}">下载</a></div>


                      </div>
                      

                 </div>




                 </div>


      </div>
      <div class="b_body_bottom">
         <div class="kb">
         </div>  
         <div class="kb">
         </div>
         <span style="color:#d52154;font-size:20px;letter-spacing: 10px;">相关创意推荐</span>
         <div style="height:10px;width:100%">
         </div>
         <div class="b_body_bottom_li">
         <div class="kb">
         </div>
             <ul style="margin-left:-25px;">




                                   {list action=module catid=1 order=updatetime num=3 flag=1}
                             


                   <li>
                         <a href="{$t.url}"><img src="{dr_thumb($t.thumb)}" width="400px" height="250px;"/></a><br>
                        <span class="a_body_span">{dr_strcut($t.title, 280)}</span><br>
                        <span class="a_body_spann">{dr_strcut($t.description, 280)}</span>
                   </li>
                                  {/list}



                 

                </ul>



         </div>



      </div>


</div>


<script type="text/javascript" language="javascript">
    jQuery(function($) {
        $('#myphoto a').tosrus({
            pagination: {
                add: true
            },
            caption: {
                add: true
            },
            slides: {
                scale: 'fill'
            }
        });

    });
</script>


{template "footer.html", "/"}

回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2017-09-01 20:25:36
    0
    看不出来哪个是多图字段
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2017-09-01 20:26:26
    0
    安装一个demo模块,show.html都有全部字段的调用方法,你可以参考,非常实用