文章内的附件id如何获取的 迅睿框架 更新 2020-11-24 11:33:39 万俟肸 https://www.xunruicms.com/doc/710.html 这个文章内的附件id如何获取的,有没有上面办法直接显示文件大小和文件上传的时间
{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}迅睿框架技术-实习{module module=download catid=13 order=updatetime } {loop $t.fj $i $c} <a target="_blank" href="{dr_down_file($c.file)}" target="_blank" class="download-item sr_b"> {/loop} <div class="download-item-cell">{$t.title}</div> <div class="download-item-cell"> {loop $t.fj $i $c} {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {dr_format_file_size($data.filesize)} 时间 {dr_date($data.inputtime)} {/loop} </div> <div class="download-item-cell">{dr_date($t._inputtime, 'Y-m-d')}</div> <div class="download-item-cell"> <div class="download-img"> <img src="{HOME_THEME_PATH}images/download.svg" alt="" /> </div> <div class="download-img-act"> <img src="{HOME_THEME_PATH}images/download-active.svg" alt="" /> </div> </div> </a> {/module}