Differences

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

oit:channel_for_corruption_complaints [2019/03/15 07:15]
somsaktan created
oit:channel_for_corruption_complaints [2019/03/21 04:21] (current)
somsaktan
Line 1: Line 1:
 ====== ช่องทางแจ้งเรื่องร้องเรียนการทุจริต ====== ====== ช่องทางแจ้งเรื่องร้องเรียนการทุจริต ======
 +<HTML>
 +<script type="text/javascript">
 +function show_alert(inputText)
 +{
 +   var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
 +   if (document.suggestionForm.message.value=="" || document.suggestionForm.name.value=="" 
 +       || document.suggestionForm.email.value=="" || document.suggestionForm.captcha.value=="") {
 +    alert("Please fill in the form completely.");
 +   }
 +   else if(!(inputText.value.match(mailformat))){
 +    alert("You have entered an invalid email address!");
 +    document.suggestionForm.email.focus();
 +   }
 +   else {
 +    document.suggestionForm.submit()
 +   }
 +}
 +</script>
 + <form action="https://www.cgi.ac.th/mail_corruption_complaints.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;เรื่อง:</td>
 +            <td><textarea name="message" cols="60" rows="5"></textarea></td>
 +                </tr>
 + <tr><td width="10%">&nbsp;&nbsp;ชื่อ: </td>
 +     <td><input name="name" type="text" size="50"/></td>
 +                </tr>
 +                <tr><td>&nbsp;&nbsp;อีเมล:</td>
 +            <td><input name="email" id="emailSuggestionText" type="text" size="40"/></td>
 +                </tr>
 +                <tr><td></td>
 +                    <td><img src="/lib/tpl/cgi/captcha/captcha.php" id="captcha" /><br/>
 +                    <!-- CHANGE TEXT LINK -->
 +                    <a href="#cap" name="cap" onclick="
 +                    document.getElementById('captcha').src='/lib/tpl/cgi/captcha/captcha.php?'+Math.random();
 +                    document.getElementById('captcha-form').focus();"
 +                    id="change-image">ไม่สามารถอ่านได้? เปลี่ยนชุดตัวหนังสือ</a><br/><br/>
 +                    <input type="text" name="captcha" id="captcha-form" autocomplete="off" /><br/>
 +                    </td>
 +                </tr>
 + <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 + <tr><td>&nbsp;</td>
 +            <td><input name="sendSubmit" type="button" onclick="show_alert(document.suggestionForm.email)" value="Send" />
 + <input name="sendHide" type="hidden" value="send" />
  
 +                    </td>
 +                </tr>
 +                </table>
 +            </td>
 +    </tr>
 +    </table>
 +    </form>
 +</HTML>