您当前的位置:首页 > 帝国CMS教程

帝国cms留言板

来源:帝国CMS教程发布者:帝国CMS模板网时间:2010-10-22

  <SCRIPT language=JavaScript1.2>
function check(theForm,textlengh) {
  
 if(theForm.name.value == "") {
  alert("对不起!您的姓名不能为空!");
  return false;
 }
 if (theForm.call.value.length == ""){
  alert("对不起!您的电话不能为空!");
  return false;
 } 
 if(theForm.email.value == "") {
  alert("对不起!电子邮件不能为空!");
  return false;
 }
 if (theForm.content.value.length == ""){
  alert("对不起!咨询或建议不能为空!");
  return false;
 } 
 if(theForm.lytext.value.length > textlengh) {
  alert("对不起!咨询或建议长度不能超过" + textlengh + "字符!");
  return false;
 }
}
</SCRIPT>

      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD>
            <P align=center><FONT face=宋体 color=#000000
          size=3></FONT>&nbsp;</P></TD></TR></TBODY></TABLE><BR>
      <TABLE cellSpacing=1 cellPadding=0 width="80%" align=center
      bgColor=#cccccc border=0>
               <form action="../../enews/index.php" method="post" name="form1" id="form1">

        <TBODY>
        <TR align=middle bgColor=#eeeeee>
          <TD colSpan=2 height=24><FONT color=#000000>在线留言</FONT></TD></TR>
       
        <TR>
          <TD align=right width="29%" bgColor=#ffffff height=26><FONT
            color=#000000>您的姓名:</FONT></TD>
          <TD width="71%" bgColor=#ffffff height=24>&nbsp;<INPUT maxLength=15
            size=30 name=name> <FONT color=#ff0000>*</FONT> </TD></TR>
        <TR>
          <TD align=right bgColor=#ffffff height=26><FONT
            color=#000000>您的电话:</FONT></TD>
          <TD bgColor=#ffffff height=24>&nbsp;<INPUT maxLength=15 size=30
            name=call> <FONT color=#ff0000>*</FONT> </TD></TR>
        <TR>
          <TD align=right bgColor=#ffffff height=26><FONT
            color=#000000>电子邮件:</FONT></TD>
          <TD bgColor=#ffffff height=24>&nbsp;<INPUT maxLength=50 size=30
            name=email> <FONT color=#ff0000>*</FONT> </TD></TR>
        <TR>
          <TD align=right bgColor=#ffffff height=24><FONT
            color=#000000>咨询或建议:</FONT></TD>
          <TD bgColor=#ffffff height=24>&nbsp;<TEXTAREA name=lytext rows=5 cols=29></TEXTAREA>
            <FONT color=#ff0000>*</FONT> </TD></TR>
        <TR bgColor=#ffffff>
          <TD align=middle colSpan=2 height=30><INPUT onClick="return check(this.form,'200')" type=submit value="提 交" name=Submit3>
<INPUT type=reset value="重 置" name=Submit2> <input name="enews" type="hidden" id="enews" value="AddGbook" />
      </TD></TR></FORM></TBODY></TABLE>