JTBC(CMS)

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

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » PHP版本 
帖子内容
1 楼
asing
注册会员
积分 192
注册 2009-02-14
     
产品如何调用到首页?
{$=itransfer('top', '1', 'genre=product')}
这样写错在哪?
2009-03-14 01:14:57
2 楼
asing
注册会员
积分 192
注册 2009-02-14
     
产品list代码:
</style>
{$=mm_web_head($GLOBALS['nhead'])}
<table width="900" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
  <td width="192" align="center">
<!--webbot bot="Include" u-include="include/left_content.htm" tag="BODY" startspan -->

<table width="193" border="0" cellspacing="0" cellpadding="0" id="table1">
<tr valign="top" align="center" background="{$=#global_images_route}skins/{$=#nskin}/e_01.gif">
<td background="{$=#global_images_route}skins/{$=#nskin}/e_01.gif">
<table width="100%" cellpadding="2" border="0" bgcolor="whitesmoke" class="content" id="table2">
<tr>
<td width="28">&nbsp;</td>
<td align="left" width="129">&nbsp;</td>
    <td align="left" width="24">&nbsp;</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
  <td colspan="3">&nbsp;</td>
  </tr>
</table> </td>
</tr>
<tr valign="top" bgcolor="#FFFFFF">
<td><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="{$=#global_images_route}skins/{$=#nskin}/t_11.gif" id="table4">
<tr>
<td>
<table width="100%" border="0" cellpadding="2" bgcolor="whitesmoke" class="content" id="table5">
<tr>
<td colspan="2"><img src="{$=#global_images_route}skins/{$=#nskin}/l_pic.jpg" width="193" height="400"></td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
</table>

<!--webbot bot="Include" i-checksum="5235" endspan --><br></td>
  <td><table width="100%" border="0" cellpadding="0" cellspacing="4" bordercolor="whitesmoke" id="table79">
                <tr>
                  <td height="231" valign="top"><table width="100%" cellpadding="0" cellspacing="0" class="tablem">
                      <tr>
                        <td width="669" valign="top">{@recurrence_ida}
                          <table cellspacing="0" cellpadding="0" width="669" border="0" style="DISPLAY: inline; FLOAT: left">
                            <tr>
                              <td height="5" colspan="2"></td>
                            </tr>
                            <tr>
                              <td width="28%" rowspan="2"><div class="text_pic"> <a href="{$=ii_iurl('detail', {$id}, $GLOBALS['nurltype'], 'folder=' . $GLOBALS['ncreatefolder'] . ';filetype=' . $GLOBALS['ncreatefiletype'] . ';time={$time}')}" title="{$topic}"><img src="{$image}" alt="{$image}" width="180" height="110" border="0"></a>
                                    <h3><a href="{$=ii_iurl('detail', {$id}, $GLOBALS['nurltype'], 'folder=' . $GLOBALS['ncreatefolder'] . ';filetype=' . $GLOBALS['ncreatefiletype'] . ';time={$time}')}" title="{$topic}">{$topic}</a></h3>
                              </div></td>
                              <td width="72%">&nbsp;</td>
                            </tr>
                            <tr>
                              <td>
                                 
                                <p>{$=ii_left(mm_encode_content($GLOBALS['RS_content'], '{$cttype}'), 200)}...</p>
                               
                              </td>
                            </tr>
                            <tr>
                              <td height="5" colspan="2"></td>
                            </tr>
                          </table>
                          {@recurrence_ida} </td>
                      </tr>
                  </table>
                    <table width="669" border="0" cellspacing="4">
                      <tr>
                        <td colspan="3"><div align="center">{$cpagestr}</div></td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
</tr>
</table>
{$=mm_web_foot($GLOBALS['nfoot'])}
2009-03-14 01:51:48
3 楼
asing
注册会员
积分 192
注册 2009-02-14
     
哪位大哥帮我写一下。
感谢啊。
急需啊
2009-03-14 03:37:46
4 楼
jetiben
管理员
积分 7334
注册 2006-06-28
     
{$=itransfer('top', '1', 'genre=product')}

必要参数不全, {$=vv_itransfer('top', '1', 'topx=8;genre=product')}
2009-03-17 21:24:08
5 楼
dqbook
注册会员
积分 32
注册 2008-11-06
     
PHP版首页调用产品图片
我也是学习JTBC的新手,通过老大说的调用模板的启发,也做了一个笨方法实现首页图片调用.
1.首先,建立调用模板(这里我将调用模板命名"pf"),如:
----------------Pf代码-------------------
{@}
  <a href="{$=ii_curl('{$baseurl}', ii_iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}"><img src="product/{$image}" alt="{$image}" width="115" height="115"></a>{@}
-----------------------------------------------
2.在首页模板代码的适当位置调用,如:
----------------首页index中调用---------------------------
{$=vv_itransfer('good', 'pf', 'topx=5;genre=product')}
--------------------------------------------

3.以上方法只适用于初学者.

帖子被 dqbook 于 2009-06-20 12:18:49 编辑过
2009-06-20 12:08:57
6 楼
ofriend
注册会员
积分 32
注册 2009-06-14
     
原帖由 dqbook 发表于 2009-06-20 12:08:57
我也是学习JTBC的新手,通过老大说的调用模板的启发,也做了一个笨方法实现首页图片调用.
1.首先,建立调用模板(这里我将调用模板命名"pf"),如:
----------------Pf代码-------------------
{@}
  <a href="{$=ii_curl('{$baseurl}', ii_iurl('detail', {$id}, {$urltype}, 'folder={$createfolder};filetype={$createfiletype};time={$time}'))}"><img src="product/{$image}" alt="{$image}" width="115" height="115"></a>{@}
-----------------------------------------------
2.在首页模板代码的适当位置调用,如:
----------------首页index中调用---------------------------
{$=vv_itransfer('good', 'pf', 'topx=5;genre=product')}
--------------------------------------------

3.以上方法只适用于初学者.

帖子被 dqbook 于 2009-06-20 12:18:49 编辑过


请问,我这样调用怎么也不出现。
不知道是哪里的问题。请问配置文件commonincfilesconst.inc.php中
define('JTBC_CINFO', '<!--JTBC_CINFO-->');
设置成什么?请举例。谢谢。
2009-06-21 07:30:12