JTBC(CMS)

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

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » PHP版本 
帖子内容
1 楼
asing
注册会员
积分 192
注册 2009-02-14
     
我的问题集
好心的人们啊,帮助我一下啊,我保证以后发现的技术和大家一起分享。
我的问题集:
第一,多种语言的ABOUT怎么在首页调用。
第二,商品和下载简介怎么截取一段数据(做简介)
谢谢,谢谢。
菩萨会保佑你们的。
2009-03-10 18:04:17
2 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
你是说 about 还是 aboutus? aboutus 调用多语言可以使用osql来区别语别, 比如 osql= and jtb_ablng=\'' . $GLOBALS['nlng'] . '\' 截取一段数据的问题, 可以用函数 ii_left(), 比如: {$=mm_encode_content($GLOBALS['RS_content'], '{$cttype}')} {$=ii_left(mm_encode_content($GLOBALS['RS_content'], '{$cttype}'), 100)}
2009-03-10 19:44:34
3 楼
asing
注册会员
积分 192
注册 2009-02-14
     
是aboutus 谢谢  太感谢了
2009-03-10 20:05:01
4 楼
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:09