« 山寨zblog风格哈哈哈哈哈,太爽了。 »

新云软件页显示评论内容和评论框的方法

分类: 应用技术 发布: mzjj 浏览: 日期: 2008年11月23日

新云太无聊了,欺负我一直原来没怎么细研究,最近想找个好的下载系统,把熟悉了以后专门用这个系统,不停的改界面就是了,系统内核不变.花了些时间把标签什么搞明白,搞了四五个小时,理解的差不多了,基本可以自己改风格了,没想到最后想在软件介绍页里直接调用显示评论数和直接发表评论的表单那里卡壳了,找了半天,终于搞定,把代码贴出来.

PS.新云官方真垃圾,在官方论坛上发现好多朋友发帖都是寻求这个问题如何解决,结果几十个帖子没几个人答复处理的,也许官方人认为高手多那样的问题不需要解答,CTM

新云新出的4.0目前也问题多多~

#############################################

{$SoftComment}  
<table cellspacing="1" cellpadding="1" width="980" align="center" bgcolor="#dddddd" border="0" class="mainAreaTable">
        <form action="{$ChannelRootDir}comment.asp" method="post" name="myform">
        <input type="Hidden" name="SoftID" value="{$SoftID}" />
        <input type="Hidden" name="action" value="save" />
            <tr bgcolor="#fcfcfc">
                <td nowrap="nowrap" width="15%">用户名</td>
                <td width="85%"><input maxlength="15" size="28" name="UserName" /> <font color="#ff0000">!</font> </td>
            </tr>
            <tr bgcolor="#fcfcfc">
                <td>分 值</td>
                <td><input type="radio" name="Grade" value="100" />100分 <input type="radio" checked="checked" name="Grade" value="85" />85分 <input type="radio" name="Grade" value="70" />70分 <input type="radio" name="Grade" value="55" />55分 <input type="radio" name="Grade" value="40" />40分 <input type="radio" name="Grade" value="25" />25分 <input type="radio" name="Grade" value="10" />10分 <input type="radio" name="Grade" value="0" />0分</td>
            </tr>
            <tr bgcolor="#fcfcfc">
                <td>说 明</td>
                <td><textarea title="请注意用语文明且合法,不要发布带有攻击性的言论,谢谢合作!" rows="5" cols="70" name="content"></textarea> </td>
            </tr>
            <tr bgcolor="#fcfcfc">
                <td> </td>
                <td><input class="Button" type="submit" name="Submit" value="提交" /> <input class="Button" type="reset" name="Submit2" value="重设" /> (注&ldquo;<font color="#ff0000">!</font>&rdquo;为必填内容。)  验证码:<input name="codestr" type="text" size="6" maxlength="4" value=""> <img src="{$InstallDir}inc/getcode.asp" alt="验证码,看不清楚?请点击刷新验证码" height="10" style="cursor : pointer;" onclick="this.src='{$InstallDir}inc/getcode.asp?t='+(new Date().getTime());" /></td>
            </tr>
        </form>
    </table>
 

#############################################

{$SoftComment}    是调用该软件已发评论内容的, 只是目前我还不知道具体显示评论条数的控制在哪调,过会接着研究

上面代码中<table>段代码是评论直接发表的表单,如果需要在文章页中也加入直接评论,变通一下就可以了.

效果见下图,只把调出来,界面什么还没改的.
 

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-Blog 1.8 Arwen Build 81206

Copyright 2001-2007 Mzjj.Net. All Rights Reserved. 湘ICP备05008094号