Location: PHPKode > projects > Free Ads Manager Script > templates/contactus_temp.html
<form action="index.php?do=url" id="submit_contact" method="post">
<table width="95%" align="center" style="border: 1px solid #000; padding: 10px;">
    <tr>
        <th align="center" colspan="2"><h2>$phrase"contact_us"</h2></th>
    </tr>
    <tr>
        <td width="80">$phrase"name"</td>
        <td><input type="text" name="name_contact" /></td>
    </tr>
    <tr>
        <td>$phrase"email"</td>
        <td><input type="text" name="email_contact" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <textarea name="message_contact" style="width: 450px; height: 150px;"></textarea>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td id="cap_srch" onclick="get_captcha_srch(this);" style="cursor: pointer;">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td><label style="text-align: left;" for="captxt_contact">$phrase"typ_img"</label>
        <br /><input type="text" name="captxt_contact" id="captxt_contact" size="12" maxlength="6" /></td>
    </tr>
    <script>
            function get_captcha_srch(me)
            {
                $(me).html('<img src="images/progress.gif" width="16" height="16" alt="" />');
                $(me).load("image/index.php?do=srch", {limit: 25}, function()
                {
                    this.innerHTML = "<br>" + this.innerHTML;
                });
            }
            get_captcha_srch($("#cap_srch"));
    </script>
    <tr>
        <td colspan="2">
        <br />
            <input type="submit" value="$phrase"send"" class="butn" />&nbsp;
            <input type="reset" value="$phrase"reset"" class="butn" />
        </td>
    </tr>
</table>
</form>
<script>
                  $("#submit_contact").validate
                  ({

                        rules:
                        {
                            name_contact:
                            {
                                required: true,
                                minlength: 4,
                                maxlength: 30
                            },
                            email_contact:
                            {
                               required: true,
                               email: true
                            },
                            captxt_contact:
                            {
                                required: true,
                                minlength: 6
                            }
                        },
                        messages:
                        {
                            name_contact:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                minlength: '<br><font color="red">$phrase"plz_notless" 3 $phrase"characters"</font>',
                                maxlength: '<br><font color="red">$phrase"plz_notmore" 200 $phrase"characters"</font>'
                            },
                            email_contact:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                email: '<br><font color="red">$phrase"plz_err_mal"</font>'
                            },
                            captxt_contact:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                minlength: '<br><font color="red">$phrase"plz_notless" 6 $phrase"characters"</font>'
                            }

                        }
                  });
                </script>
Return current item: Free Ads Manager Script