国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
782B

  1. <?php
  2. function litimgurls($imgid=0)
  3. {
  4. global $lit_imglist,$dsql;
  5. //获取附加表
  6. $row = $dsql->GetOne("SELECT c.addtable FROM #@__archives AS a LEFT JOIN #@__channeltype AS c
  7. ON a.channel=c.id where a.id='$imgid'");
  8. $addtable = trim($row['addtable']);
  9. //获取图片附加表imgurls字段内容进行处理
  10. $row = $dsql->GetOne("Select imgurls From `$addtable` where aid='$imgid'");
  11. //调用inc_channel_unit.php中ChannelUnit类
  12. $ChannelUnit = new ChannelUnit(2,$imgid);
  13. //调用ChannelUnit类中GetlitImgLinks方法处理缩略图
  14. $lit_imglist = $ChannelUnit->GetlitImgLinks($row['imgurls']);
  15. //返回结果
  16. return $lit_imglist;
  17. }