Changed class Router to Routes to clarify its purpose. Decode the referrer url in the contact form email.

This commit is contained in:
rjy7 2010-05-19 21:08:48 +00:00
parent 947c6841c9
commit 4f77fa419e
9 changed files with 61 additions and 59 deletions

View file

@ -1,3 +1,22 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Comment form email response -->
<#-- Comment form email response -->
<#-- Only inline styles seem to work in email. Can't get styles for margin to work, though. -->
<html>
<head>
<title>${subject}</title>
</head>
<body>
<h3>${subject}</h3>
<p>
<strong>From:</strong> ${name}<br />
<strong>Email address:</strong> ${emailAddress}<br />
<strong>IP address:</strong> ${ip}<br />
<#if referrer??>
<em>Likely viewing page: ${referrer}</em><br />
</#if>
<strong>Comments:</strong> ${comments}
</body>
</html>

View file

@ -27,7 +27,7 @@
</p>
</#if>
<form name="contact_form" action="sendMail" method="post" onsubmit="return ValidateForm('contact_form');">
<form name="contact_form" action="submitFeedback" method="post" onsubmit="return ValidateForm('contact_form');">
<input type="hidden" name="home" value="${portalId}"/>
<input type="hidden" name="RequiredFields" value="webusername,webuseremail,s34gfd88p9x1"/>
<input type="hidden" name="RequiredFieldsNames" value="Name,Email address,Comments"/>