账号通
    

账号  

密码  

1830

查看

1

回复
主题:关于字段调用问题!在ASP能显示。生成HTML就不行啦!!alluse大哥请进 [收藏主题]  
5502323 当前离线

43

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:588 分
登录次数:65 次
注册时间:2006/12/12
最后登录:2014/4/22
5502323 发表于:2007/1/12 17:26:00   | 只看该作者 查看该作者主题 楼主 
科汛智能建站系统

最后研究出在ASP模式下。是可以看得到自定义字段。

但在生成HTML时。为什么显示不了。。大哥。。。救命啊。

按你说的方法。。我加了个SQL标签。

SQL语句

select top 10 ID,Tid,Title,PhotoUrl,Adddate,picturecontent,KS_sb1,KS_sb3,KS_SB4,KS_SB5,KS_SB6,KS_SB7 from KS_Photo where tid='20077118739168' order by adddate desc

标签内容:

[loop=1]<table width="100%" height="265"  border="0" cellPadding=0 cellSpacing=0>
  <!--DWLayoutTable-->
  <tr>
    <td width="128" align="right" valign="middle">名称:</td>
    <td width="163" align="center" valign="middle"><div align="center">{$GetPictureName}</div></td>
    <td width="284" align="center" valign="middle"><div align="center">图形</div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">类别:</td>
    <td align="center" valign="middle"><div align="center">{$Field(tid,GetClassUrl,2,2)}</div></td>
    <td rowspan="4" align="center" valign="middle"><div align="center">{$GetPictureByPage}</div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">注册号:</td>
    <td align="center" valign="middle"><div align="center">{$Field(ks_sb7,Text,0,...,0,)}</div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">注册日期:</td>
    <td align="center" valign="middle"><div align="center">{$Field(ks_sb3,Text,0,...,0,)}</div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">交易价格:</td>
    <td align="center" valign="middle"><div align="center">{$Field(ks_sb5,Text,0,...,0,)}</div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">交易方式:</td>
    <td align="center" valign="middle"><div align="center">{$Field(ks_sb4,Text,0,...,0,)}</div></td>
    <td align="center" valign="middle"><div align="center"></div></td>
  </tr>
  <tr>
    <td align="right" valign="middle">联系方式:</td>
    <td align="center" valign="middle"><div align="center"></div></td>
    <td align="center" valign="middle"><div align="center"></div></td>
  </tr>
  <tr>
    <td height="34">&nbsp;</td>
    <td colspan="2" valign="middle"><div align="left">{$Field(ks_sb6,Text,0,...,0,)}</div></td>
  </tr>
  <tr>
    <td height="34" align="right" valign="middle"><div align="right">备注:</div></td>
    <td colspan="2" valign="middle">{$GetPictureIntro}</td>
  </tr>
</table>[/loop]

出现CPU 100%的现象。

后来我在内容页里直接用

标签里面的内容。只显示名称和图片

我再用这段代码。

<table height=265 cellSpacing=0 cellPadding=0 width="100%" border=0>
                                      <!--DWLayoutTable-->
                                        <tr>
                                          <td vAlign=center align=right width=128>名称:</td>
                                          <td vAlign=center align=middle width=163>
                                          <div align=center>{$GetPictureName}</div></td>
                                          <td vAlign=center align=middle width=284>
                                          <div align=center>图形</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>类别:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>第{$KS_sb1}类</div></td>
                                          <td vAlign=center align=middle rowSpan=4>
                                          <div align=center>{$GetPictureByPage}</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>注册号:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>{$KS_SB7}</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>日期:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>{$KS_sb3}</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>交易价格:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>{$KS_SB5}</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>交易方式:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>{$KS_SB4}</div></td>
                                          <td vAlign=center align=middle>
                                          <div align=center></div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right>联系方式:</td>
                                          <td vAlign=center align=middle>
                                          <div align=center>&nbsp;</div></td>
                                          <td vAlign=center align=middle>
                                          <div align=center></div></td>
                                        </tr>
                                        <tr>
                                          <td height=34>&nbsp;</td>
                                          <td vAlign=center colSpan=2>
                                          <div align=left>{$KS_SB6}</div></td>
                                        </tr>
                                        <tr>
                                          <td vAlign=center align=right height=34>
                                          <div align=right>备注:</div></td>
                                          <td vAlign=center colSpan=2>{$GetPictureIntro}</td>
                                        </tr>
                                      </table>

用的是{$KS_SB*}的标签。也不行。请教一下。

最后研究出在ASP模式下。是可以看得到自定义字段。

但在生成HTML时。为什么显示不了。。大哥。。。救命啊。




[此贴子已经被作者于2007-1-12 18:00:02编辑过]

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
alluse 当前离线

1654

主题

0

广播

0

粉丝
添加关注
级别:高一年

用户积分:2915 分
登录次数:189 次
注册时间:2006/10/25
最后登录:2008/6/8
alluse 发表于:2007/1/12 20:49:00   | 只看该作者 查看该作者主题 沙发 
科汛在线考试系统(NET)
等我研究一下自定义字段先。
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行3.01563秒 powered by KesionCMS 9.0