站内通知模板循环问题

迅睿框架 更新 2026-02-06 13:18:45 小鬼28

     <nav class="nav nav-style-1 nav-pills mb-3" role="tablist">
      {loop $type $i $t}
      <a class="nav-link {if $param.tid==$i}active{/if}" data-bs-toggle="tab" role="tab" href="#{dr_text2py($t.name)}" aria-selected="true">{$t.name}</a>
      {/loop}
     </nav>
     <div class="tab-content">
      
      {loop $type $i $t}
      {print_r($t)} 
      <div class="tab-pane text-muted {if $param.tid==$i} show active {/if}" id="{dr_text2py($t.name)}" role="tabpanel">
       {loop $list $t}
       {print_r($t)} 
       <div class="toast fade show" role="alert" aria-live="assertive"
        aria-atomic="true">
        <div class="toast-header text-default">
         {dr_notice_icon($t.type)}
         <strong class="me-auto">Ynex</strong>
         <small class="text-muted">{dr_fdate($t.inputtime)}</small>
        </div>
        <div class="toast-body">
         {if $t.url}
         <a href="{$t.url}" target="_blank">
          {$t.content}
          <i class="fa fa-link"></i>
         </a>
         {else}
         {$t.content}
         {/if}
        </div>
       </div>
       {/loop}
      </div>
      {/loop}
      
     </div>

用的bootstrap,就是上面标题下现在没啥问题就是下面内容无法确定哪个标题请教下这个怎么解决?

方案

  • 小波工作室 #1 · 2025-01-06 16:56:42
    满意答案
    应该是有个序号什么的吧
  • 小鬼28 #2 · 2026-02-06 13:18:45
    @小波工作室:已解决问题

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关