修改为:
- <script language="javascript" type="text/javascript">
- <!--
- function CheckLogin1(){
- var taget_obj = document.getElementById('_ajax_feedback');
- myajax = new DedeAjax(taget_obj,false,false,'','','');
- myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
- DedeXHTTP = null;
- }
- function checkSubmit(){
- if(document.feedback.msg.value!='') document.feedback.submit();
- else alert("您没什么话要说吗?");
- }
- -->
- </script>
- <DIV class=comment>
- <DIV class=com_t>
- <H3>发表评论</H3><SPAN class=com2><a href="{dede:field name='phpurl'/}/feedback.php?aid={dede:field.id/}">查看所有评论</a></SPAN> </DIV>
- <DIV class=com_c>
- <form action="{dede:field name='phpurl'/}/feedback.php" method="post" name="feedback">
- <input type="hidden" name="action" value="send" />
- <input type="hidden" name="comtype" value="comments">
- <input type="hidden" name="aid" value="{dede:field name="id"/}" />
- <input type="hidden" name="isconfirm" value="yes" />
- <div id="_ajax_feedback">
- <TABLE class=com_c border=0 cellSpacing=2 cellPadding=0 width="100%">
- <TBODY>
- <TR>
- <TD width="56%" align=left>用户名: <INPUT class=inputText size=16 type=text name=username></TD>
- <TD width="44%" align=left>密码: <INPUT class=inputText size=16 type=password name=pwd></TD></TR>
- <TR>
- <TD align=left>验证码: <INPUT class=inputText size=10 type=text name=validate style="text-transform: uppercase;">
- <IMG align=absMiddle src="{dede:global.cfg_cmsurl/}/include/vdimgck.php">
- </TD>
- <TD align=left><INPUT id="dcmp-submit-guest" value=1 CHECKED type=checkbox name=notuser> 匿名发表</TD>
- </TR>
- </TBODY>
- </TABLE>
- </div>
- <script language="javascript" type="text/javascript">CheckLogin1();</script>
- <TEXTAREA rows=4 name=msg></TEXTAREA>
- <INPUT src="{dede:global.cfg_templets_skin/}/images/sub_tjly.gif" type=image name=imageField>
- </form>
- <DIV class=clear></DIV>
- </DIV>
- </DIV>