词条信息

admin
超级管理员
版本创建者 发短消息   
简易百科旧版 >> hdwiki如何隐藏附件列表 >> 历史版本

最新历史版本 :hdwiki如何隐藏附件列表 返回词条



打开view/default/viewdoc.htm查找并注释如下代码(175~212):


<div class="fj_list m-t10"> 

    <h3>

  <!--{if count($attachment)==0}-->

  style="display:none"

  <!--{/if}-->

  {lang attachList}

    </h3> 

  <dl style="display: none;">

    <dt><img class="fj_img"/><a></a><br/>

      <span class="l">

      <label> {lang attachDownloadNum}0</label> 

      </span></dt>

    <dd></dd>

  </dl>

  <!--{if count($attachment)>0}-->

  <!--{if $attach_download}-->

  <!--{loop $attachment $attach}-->





  <dl id="$attach['id']">

    <dt><img class="fj_img" src="style/default/attachicons/{$attach['icon']}.gif"/><a href="{url attachment-download-$attach['id']}" coin_down="{$attach['coindown']}" attach_id = "{$attach['uid']}" uid = "{$userid}"  class="file_download">{$attach['filename']}</a><br/> 

      <span class="l">

      <label class="mar-r8">({eval echo sprintf('%.2f',$attach['filesize']/1024)}k)</label>

      <label>{lang attachDownloadNum}{$attach['downloads']}</label> 

      &nbsp;

      <label>{lang uploadCredit}{$attach['coindown']}</label>

      </span>

      <!--{if $attachment_remove && ($attach['uid']==$userid || $groupid==4) }--> 

      [<a href="javascript:;" >{lang remove}</a>]

      <!--{/if}-->

    </dt>

    <dd>{$attach['description']}</dd> 

  </dl>

  <!--{/loop}-->

  <!--{else}-->

  <p class="m-lr8 m-t8">{lang attachRefuseTrip}</p>

  <!--{/if}-->

  <!--{/if}-->

  <!--{if $setting['attachment_open'] && $attachment_upload}--> 

  <div>