聚合新闻服务
手机wap浏览
您现在的位置: 动易模板 >> 动易中心 >> 动易美化 >> 正文
注册登陆
建站服务
视动工坊
服务项目
建站流程
建站价目
成功作品
联系信息
联系信息
视动工坊:动易认证设计师
动易模板大赛连续两次获奖
现共完成动易模板100余个
热诚欢迎定制改制动易模板
Q Q: 363881827
手机: 13153001848
Tel: 0531-83711777
Mail: wsdjqwj2003@163.com
   
在内容页面加入发表评论
作者:雨哲 文章来源:本站原创 点击数: 更新时间:2006-10-13 15:23:02

内容页面适当位置加入下代码:
------------------评论代码 开始-----------------
  <!--网友发表评论代码开始-->
  <table class=tdbg_top_left_right style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width=100% align=center border=0>
    <tr class=main_title_760>
      <td height=25>
        <table cellSpacing=0 cellPadding=0 width="100%" border=0>
          <tr>
            <td width="20%" colSpan=2 height=20><IMG height=9 src="{$InstallDir}Skin/MbshowV2/left_title2.gif" width=15 align=absMiddle border=0> <STRONG><FONT color=#f79709>【发表评论】</FONT></STRONG>(网友评论内容只代表网友观点,与本站立场无关!)</td>
          </tr>
          <tr>
            <td width="20%" bgColor=#a4813a height=2></td>
            <td width="80%" bgColor=#ecc981 height=2></td>
          </tr>
          <tr>
            <td width="20%" height=5></td>
            <td width="80%" height=5></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td class=main_tdbg_760>
        <table cellSpacing=0 cellPadding=0 width="80%" align=center border=0>
          <tr>
            <td align=middle>
<script language="javascript" type="text/javascript">
   function Check()
   { 
    if (document.form1.Name.value=="")
    {    
     alert("请输入姓名!");
     document.form1.Name.focus();
     return false;  
    }  
    if (document.form1.Content.value=="")
    {   
     alert("请输入评论内容!");
     document.form1.Content.focus();
     return false;  
    } 
    return true;
   }
   </script>
<FORM name=form1 onsubmit="return Check();" action=Comment.asp method=post target=_blank>
              <table class=main_tdbg_575 style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                <tr>
                  <td height=10></td>
                </tr>
                <tr>
                  <td align=left width=60> 姓 名:</td>
                  <td width=180>
                    <Input maxLength=16 name=Name></td>
                </tr>
                <tr>
                  <td height=8></td>
                </tr>
                <tr>
                  <td align=left width=60> 评 分:</td>
                  <td colSpan=3>
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=1 name=Score> 1分
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=2 name=Score> 2分
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio CHECKED value=3 name=Score> 3分
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=4 name=Score> 4分
                    <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=5 name=Score> 5分 </td>
                </tr>
                <tr>
                  <td height=8></td>
                </tr>
                <tr>
                  <td align=left> 评论内容:</td>
                  <td colSpan=3><TEXTAREA id=Content name=Content rows=5 cols=70></TEXTAREA> </td>
                </tr>
                <tr>
                  <td align=middle colSpan=4>
  <Input id=Action type=hidden value=Save name=Action>
  <Input id=ArticleID type=hidden value="{$ArticleID}" name=ArticleID>
                    <Input type=submit value=" 发表我的评论 " name=Submit> </td>
                </tr>
                <tr>
                  <td height=15></td>
                </tr>
                <tr bgColor=#f5f5f5>
                  <td colSpan=4>
<LI>请遵守<A href="{$InstallDir}Reg/bbs.htm" target=_blank><FONT color=red>《互联网电子公告服务管理规定》</FONT></A>及中华人民共和国其他各项有关法律法规。<BR>
<LI>严禁发表危害国家安全、损害国家利益、破坏民族团结、破坏国家宗教政策、破坏社会稳定、侮辱、诽谤、教唆、淫秽等内容的评论 。<BR>
<LI>用户需对自己在使用本站服务过程中的行为承担法律责任(直接或间接导致的)。<BR>
<LI>本站管理员有权保留或删除评论内容。<BR>
                  <LI>评论内容只代表网友个人观点,与本网站立场无关。</LI></td>
                </tr>
              </table>
            </FORM></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <!--网友发表评论代码结束-->
------------------评论代码 结束-----------------

注意:

如果修改后添加评论,出现404错误,就是因为action=Comment.asp中的路径没有设置正确
如果你想在 软件,图片增加同样的效果,你需要把<Input id=ArticleID type=hidden value="{$ArticleID}" name=ArticleID>替换为下面两行代码:
软件:<Input id=SoftID type=hidden value="{$SoftID}" name=SoftID>
图片:<Input id=PhotoID type=hidden value="{$PhotoID}" name=PhotoID>

内容页面适当位置加入下代码:

  <!--网友发表评论代码开始-->
  <table class=tdbg_top_left_right style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width=100% align=center border=0>
    <tr class=main_title_760>
      <td height=25>
        <table cellSpacing=0 cellPadding=0 width="100%" border=0>
          <tr>
            <td width="20%" colSpan=2 height=20><IMG height=9 src="{$InstallDir}Skin/MbshowV2/left_title2.gif" width=15 align=absMiddle border=0> <STRONG><FONT color=#f79709>【发表评论】</FONT></STRONG>(网友评论内容只代表网友观点,与本站立场无关!)</td>
          </tr>
          <tr>
            <td width="20%" bgColor=#a4813a height=2></td>
            <td width="80%" bgColor=#ecc981 height=2></td>
          </tr>
          <tr>
            <td width="20%" height=5></td>
            <td width="80%" height=5></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td class=main_tdbg_760>
        <table cellSpacing=0 cellPadding=0 width="80%" align=center border=0>
          <tr>
            <td align=middle>
<script language="javascript" type="text/javascript"> 
   function Check()
   {  
    if (document.form1.Name.value=="")
    {     
     alert("请输入姓名!");
     document.form1.Name.focus(); 
     return false;   
    }   
    if (document.form1.Content.value=="")
    {    
     alert("请输入评论内容!"); 
     document.form1.Content.focus(); 
     return false;   
    }  
    return true; 
   }
   </script> 
<FORM name=form1 onsubmit="return Check();" action=Comment.asp method=post target=_blank>
              <table class=main_tdbg_575 style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                <tr>
                  <td height=10></td>
                </tr>
                <tr>
                  <td align=left width=60> 姓 名:</td>
                  <td width=180>
                    <Input maxLength=16 name=Name></td>
                </tr>
                <tr>
                  <td height=8></td>
                </tr>
                <tr>
                  <td align=left width=60> 评 分:</td>
                  <td colSpan=3>
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=1 name=Score> 1分 
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=2 name=Score> 2分 
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio CHECKED value=3 name=Score> 3分 
  <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=4 name=Score> 4分 
                    <Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=radio value=5 name=Score> 5分 </td>
                </tr>
                <tr>
                  <td height=8></td>
                </tr>
                <tr>
                  <td align=left> 评论内容:</td>
                  <td colSpan=3><TEXTAREA id=Content name=Content rows=5 cols=70></TEXTAREA> </td>
                </tr>
                <tr>
                  <td align=middle colSpan=4>
  <Input id=Action type=hidden value=Save name=Action> 
  <Input id=ArticleID type=hidden value="{$ArticleID}" name=ArticleID> 
                    <Input type=submit value=" 发表我的评论 " name=Submit> </td>
                </tr>
                <tr>
                  <td height=15></td>
                </tr>
                <tr bgColor=#f5f5f5>
                  <td colSpan=4>
<LI>请遵守<A href="{$InstallDir}Reg/bbs.htm" target=_blank><FONT color=red>《互联网电子公告服务管理规定》</FONT></A>及中华人民共和国其他各项有关法律法规。<BR>
<LI>严禁发表危害国家安全、损害国家利益、破坏民族团结、破坏国家宗教政策、破坏社会稳定、侮辱、诽谤、教唆、淫秽等内容的评论 。<BR>
<LI>用户需对自己在使用本站服务过程中的行为承担法律责任(直接或间接导致的)。<BR>
<LI>本站管理员有权保留或删除评论内容。<BR>
                  <LI>评论内容只代表网友个人观点,与本网站立场无关。</LI></td>
                </tr>
              </table>
            </FORM></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <!--网友发表评论代码结束-->

注意:

如果修改后添加评论,出现404错误,就是因为action=Comment.asp中的路径没有设置正确
如果你想在 软件,图片增加同样的效果,你需要把<Input id=ArticleID type=hidden value="{$ArticleID}" name=ArticleID>替换为下面两行代码:
软件:<Input id=SoftID type=hidden value="{$SoftID}" name=SoftID>
图片:<Input id=PhotoID type=hidden value="{$PhotoID}" name=PhotoID>

动易中心录入:alang    责任编辑:alang 
  • 下一个动易中心:
  • 评论主题:在内容页面加入发表评论(评论内容只代表网友观点)
    版权所有:copyright 2005-2008 动易模板NO.1 核心:PowerEasy SiteWeaver™ 6.6 备案:鲁ICP备05007599号
    电话:0531-83711777(晚间)手机:13153001848 QQ:363881827 群号:一群13022466(满)二群36354619