Differences

This shows you the differences between two versions of the page.

library:about:suggestions_old [2016/05/23 11:22] (current)
Line 1: Line 1:
 +====== Suggestions ======
 +**We look for CGI faculty members and students to give us some comments, to ask questions and to request for service from CGI Learning Center staff.\\ Please feel free to contact us through this suggestion box, and we will respond the fastest we can.\\ Thank you in advance.**
  
 +<HTML>
 +<script type="text/javascript">
 +function show_alert()
 +{
 +   if (document.suggestionForm.suggestion_textarea.value=="" || document.suggestionForm.nameSuggestionText.value=="" || document.suggestionForm.emailSuggestionText.value=="") {
 +    alert("Please fill in the form completely.");
 +   }
 +   else {
 +     document.suggestionForm.submit()
 +   }
 +}
 +function validateEmail(emailSuggestionText){
 +   var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
 +   var isvalid = emailPattern.test(emailSuggestionText); 
 +   return isvalid; 
 + 
 +   if (!isvalid) {
 +      alert("Invalid Email.")
 +   }
 +}
 +
 +</script>
 + <form action="http://www.cgi.ac.th/suggestions.php" method="post" name="suggestionForm">
 + <table width="50%" border="0">
 + <tr>
 +           <td>
 + <table width="100%" border="0">
 + <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 +                <tr><td valign="top">&nbsp;&nbsp;Suggestion:</td>
 +            <td><textarea name="suggestion_textarea" cols="60" rows="5"></textarea></td>
 +                </tr>
 + <tr><td width="10%">&nbsp;&nbsp;Name: </td>
 +     <td><input name="nameSuggestionText" type="text" size="50"/></td>
 +                </tr>
 +                <tr><td>&nbsp;&nbsp;Email:</td>
 +            <td><input name="emailSuggestionText" id="emailSuggestionText" type="text" size="40" onblur="validateEmail(emailSuggestionText)"/></td>
 +                </tr>
 + <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 + <tr><td>&nbsp;</td>
 +            <td><input name="sendSubmit" type="button" onclick="show_alert()" value="Send" />
 + <input name="sendHide" type="hidden" value="send" />
 +
 +                    </td>
 +                </tr>
 +                </table>
 +            </td>
 +    </tr>
 +    </table>
 +    </form>
 +</HTML>
 +
 +Twitter: http://twitter.com/cgilearn\\
 +Facebook: http://www.facebook.com/CgiLearningCenter \\
 +Blog: CGI Learn's Info Desk http://cgilearn.wordpress.com/