Location: PHPKode > projects > Esvon Personals > esvon-personals/modules/Reviews/tpl/feedback.htm
<!-- TITLE: Write a review -->

<script LANGUAGE="JavaScript">

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
  field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else countfield.value = maxlimit - field.value.length;
}

function validate() {

var error = "";
var f = document.frm;

if (f.caption.value == "") {
  error += "Enter a title for your review.\n";
}
if (f.name.value == "") {
  error += "Please enter your name so we can reply to you personally.\n";
}
if(f.email.value.indexOf(".")<1 || f.email.value.indexOf("@") < 1) {
  error += "Enter your email address so we can reply to you.\n";
}
if (f.comments.value == "") {
  error += "Enter your comments of up to 1000 chars.\n";
}

if (!error) return true;
else{
	msg = "Oops! There were errors with your form.\n\n" + error;
	window.alert(msg);
	return false;
    }
}


function CommentsChange(){
  var f = document.frm;
  txtCount(f.comments,f.commentsleft,1000);
}

</script>

<p class=pagetitle>Write a review</p>

<b>Bold fields are required</b>

<form name=frm method="POST" onSubmit="return validate()" ##enc_type##>

<input type=hidden name=go value=1>
<input type=hidden name="id" value="##id##">
<input type=hidden name="email" value="##email##">

<span class=err>##err_msg##</span>

<p>

<table border=0 cellspacing=0 cellpadding=0 width=415>

<tr><td align="right" valign="top"><b>Title:</b>&nbsp;&nbsp;</td>
<td><input name=caption value="##caption##" size="30"></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;Please enter a title for your review</td></tr>

<tr><td colspan=2>&nbsp;</td></tr>

<tr><td align="right" valign="top"><b>Name:</b>&nbsp;&nbsp;</td>
<td><input name=name value="##name##" size="30"></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;Your Full Name.</td></tr>

<!-- IF ##SES_UID## -->

<tr><td colspan=2>&nbsp; <input name=email value="##email##" type=hidden> </td></tr>

<!-- ELSE -->

<tr><td colspan=2>&nbsp;</td></tr>

<tr><td align="right" valign="top"><b>Email:</b>&nbsp;&nbsp;</td>
<td><input name=email value="##email##" size=30></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;Email address we should reply to.</td></tr>

<tr><td colspan=2>&nbsp;</td></tr>

<!-- ENDIF -->


<tr><td align="right" valign="top">Your URL:&nbsp;&nbsp;</td>
<td><input name=url value="##url##" size=30></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;URL of your site (optional)</td></tr>

<tr><td colspan=2>&nbsp;</td></tr>

<tr><td align="right" valign="top">Found Us:&nbsp;&nbsp;</td>
<td><input name=foundus value="##foundus##" size=30></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;How did you find us? (optional)</td></tr>

<tr><td colspan=2>&nbsp;</td></tr>

<tr><td align="right" valign="top"><b>Comments:</b>&nbsp;&nbsp;</td>
<td><textarea wrap="virtual" name=comments rows=7 cols=40 
onKeyDown="CommentsChange()" onKeyUp="CommentsChange()">##comments##</textarea>
</td></tr>

<tr><td>&nbsp;</td><td>&nbsp;Your message, 
<input readonly type=text name=commentsleft size=3 maxlength=3 value="1000" tabindex=5000>
 characters left</td></tr>

<tr><td colspan=2>##media_files_upload##</td></tr>

<tr><td colspan=2>&nbsp;</td></tr>

<!-- IF ##EN_IMG_VER## -->

<tr>
<td colspan=2 class=txt8>
Security Measure: <br>
Type characters as shown in the box. Characters are not case sensitive 
</td>
</tr>

<tr>
<td><b>Verification Code:</td>
<td>

<table border=0>
<tr>
<td>
<input name="img_text" size=20>
</td>
<td>
<img src="index.php?page=image_verify" id="img_ver">
</td>
<td>
<a href="#" OnClick="reloadImage('img_ver');return false;" class=txt8>Refresh</a>
</td>
</tr>
</table>

</td>
</tr>
<!-- ENDIF -->


<tr><td colspan=2 align=center><br />


<table width=400>
<tr><td>
<B>PLEASE READ THE FOLLOWING TERMS AND CONDITIONS CAREFULLY.</B><P>
By submitting this feedback form ("Feedback") to us, you agree to these terms and conditions.  
If you do not agree, you should not submit this form.  By submitting this form, you grant to us the 
following rights to the Content including but not limited to: (i) the right to electronically publish 
and distribute the Content in all versions of the Site in any language and the right to translate 
and electronically publish and distribute the Content to other Internet Sites under license or 
contract with us; (ii) the right to include the Content and/or your name in advertising and 
promotion; (iii) the right to include the Content in print and non-print products.  (iiii)  
Finally, we may edit, modify, or delete your Content at any time.<p>

<a name="agree"></a>

<center><input type=submit class=button value="Submit"></a></center>

</td></tr></table>

				</td></tr>
			</table>

</form>


<script>
CommentsChange();
</script>
Return current item: Esvon Personals