JTBC(CMS)

开源与免费的跨平台网站内容管理系统解决方案

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » ASP版本 
帖子内容
1 楼
SOLO
注册会员
积分 50
注册 2007-01-02
     
首页产品图片数量[求助]
:) 我想首页产品图片的数量为每行4个
图片以调出,就是不清楚怎么换行。怎么做?
2007-01-03 13:32:31
2 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
通常可使用后面复合参数中rnum=4来控制列数,也可以在模板上做改近
2007-01-03 14:15:41
3 楼
SOLO
注册会员
积分 50
注册 2007-01-02
     
{$=itransfer('top', '4', 'topx=2;rnum =4;tnum=20;genre=product')}

调用模版:
<table border="0" cellSpacing="0" cellPadding="0" width="100%">{$}
  <tr>{$$}
      <td>
          <table border="0" width="120" cellSpacing="0" cellPadding="0" align="center">
              <tr>
                  <td height="120" align="center"><a href="{$=curl("{$baseurl}", iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}" target="_self"><img src='{$=curl("product/",'{$image}')}
' border="0" width="100" height="100"></a></td>
              </tr>
              <tr>
                  <td height="24" align="center">{$topic}</td>
              </tr>
          </table>
      </td>{$$}
    </tr>{$}
</table>

为什么显示的是2行1列
而不是2行4列呢
2007-01-03 14:40:18
4 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
topx=2 表示只调用前2条。列的问题你可以查看源文件看是否在HTML代码上有问题。
2007-01-03 14:49:29
5 楼
wangbo
注册会员
积分 2486
注册 2006-12-28
     
你的循环搞错了.
<table border="0" cellSpacing="0" cellPadding="0" width="100%">
  <tr>{$}{$$}
      <td>
          <table border="0" width="120" cellSpacing="0" cellPadding="0" align="center">
              <tr>
                  <td height="120" align="center"><a href="{$=curl("{$baseurl}", iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}" target="_self"><img src='{$=curl("product/",'{$image}')}
' border="0" width="100" height="100"></a></td>
              </tr>
              <tr>
                  <td height="24" align="center">{$topic}</td>
              </tr>
          </table>
      </td>{$$}{$}
    </tr>
</table>
2007-01-03 17:17:29 [承接]【ASP◆ASP.NET◆PHP】JTBC模块◆插件开发◆功能加强QQ709784021
6 楼
SOLO
注册会员
积分 50
注册 2007-01-02
     
变成挤在一排了
2007-01-03 17:45:16
7 楼
wangbo
注册会员
积分 2486
注册 2006-12-28
     
就是一排啊.
你要2排?
2007-01-03 18:06:28 [承接]【ASP◆ASP.NET◆PHP】JTBC模块◆插件开发◆功能加强QQ709784021
8 楼
SOLO
注册会员
积分 50
注册 2007-01-02
     
应该是要可以根据输入参数改变的才对
不知道哪出错了
2007-01-03 18:24:43
9 楼
ghp110403
注册会员
积分 64
注册 2010-08-25
     
回复: 首页产品图片数量[求助]
调用模板循环出错了,下面是修改后的。
[p]
  <item>
      <name><![CDATA[4]]></name>
      <tpl_default><![CDATA[<table border="0" cellSpacing="0" cellPadding="0" width="100%">
  <tr>{$}
      <td>{$$}
          <table border="0" width="122" cellSpacing="0" cellPadding="0" align="left">
              <tr>
                  <td height="120" align="center"><a href="{$=curl("{$baseurl}", iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}" target="_self"><img src='{$=curl("product/",'{$image}')}
' border="0" width="122" height="96"></a></td>
              </tr>
              <tr>
                  <td height="24" align="center">{$topic}</td>
              </tr>
          </table>{$$}
      </td>{$}
    </tr>
</table>]]></tpl_default>
    </item>[/p]
2010-09-02 15:28:17 我要淘宝贝 www.wytbb.com