Location: PHPKode > projects > Free Ads Manager Script > templates/add_adstemp.html
<a name="theprm">&nbsp;</a>
<h2>$phrase"add_new_ads" $ads_type</h2>
<br />
                <form action="index.php?do=url" method="post" id="submitform">
                <input type="hidden" name="ads_typ" value="$ads_vals" />
                    <table width="90%" align="center" border="0">
                        <tr>
                            <td>$phrase"name" : </td>
                            <td><input type="text" name="gustname" id="gustname" size="15" /></td>
                        </tr>
                        <tr>
                            <td>$phrase"email" : </td>
                            <td><input type="text" name="email" id="email" size="15" /></td>
                        </tr>
                        <tr>
                            <td>$phrase"title" : </td>
                            <td><input type="text" name="titl" id="titl" size="15" /></td>
                        </tr>
                        <tr>
                            <td>$phrase"Category": </td>
                            <td>
                                <select name="nam" id="nam">
                                    $Categorys
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>$phrase"Website" : </td>
                            <td><input type="text" name="website" id="website" size="15" /> </td>
                        </tr>
                        <tr>
                            <td colspan="2">$phrase"Data_txt" :<br />
                                <textarea name="data" id="data" style="width: 200px; height: 100px;"></textarea>
                            </td>
                        </tr>

                        <tr>
                            <td colspan="2" id="cap" onclick="get_captcha(this);" style="cursor: pointer;">&nbsp;</td>
                        </tr>
                        <script>
                        function get_captcha(me)
                        {
                            $(me).html('<img src="images/progress.gif" width="16" height="16" alt="" />');
                            $(me).load("image/index.php", {limit: 25}, function()
                            {
                                this.innerHTML = "<label style=\"text-align: left;\" for=\"cap\">$phrase"clk_img"</label><br>" + this.innerHTML;
                            });
                        }
                        get_captcha($("#cap"));
                        </script>
                        <tr>
                            <td colspan="2">
                            <label style="text-align: left;" for="captxt">$phrase"typ_img"</label>
                            <br />
                            <input type="text" name="cap" id="captxt" size="12" maxlength="6" /> </td>
                        </tr>


                        <tr>
                            <td id="loading" style="display: none;" colspan="2"><img src="images/progress.gif" width="16" height="16" alt="" /> $phrase"Loading" </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="submit" id="titl" class="butn" value=" post " onclick="$('#hiddendata').html('');" />
                                <input type="reset" id="titl" class="butn" value=" reset " />
                            </td>
                        </tr>
                    </table>
                </form>
                <script>
                  $("#submitform").validate
                  ({

                        rules:
                        {
                            gustname:
                            {
                                required: true,
                                minlength: 4,
                                maxlength: 25
                            },
                            email:
                            {
                                required: true,
                                email: true
                            },
                            titl:
                            {
                                required: true,
                                minlength: 4,
                                maxlength: 200
                            },
                            website:
                            {
                                required: true,
                                url: true
                            },
                            data:
                            {
                                required: true,
                                minlength: 10,
                                maxlength: $numfeewrd
                            }
                            ,
                            cap:
                            {
                                required: true,
                                minlength: 6
                            }
                        },
                        messages:
                        {
                            gustname:
                            {
                               required: '<br><font color="red">$phrase"req_feilds"</font>',
                               minlength: '<br><font color="red">$phrase"plz_notless" 4 $phrase"characters"</font>',
                               maxlength: '<br><font color="red">$phrase"plz_notmore" 25 $phrase"characters"</font>'
                            },
                            email:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                email: '<br><font color="red">$phrase"plz_err_mal"</font>'
                            },
                            titl:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                minlength: '<br><font color="red">$phrase"plz_notless" 4 $phrase"characters"</font>',
                                maxlength: '<br><font color="red">$phrase"plz_notmore" 200 $phrase"characters"</font>'
                            },
                            website:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                url: '<br><font color="red">$phrase"plz_err_url"</font>'
                            },
                            data:
                            {
                                required: '<font color="red">$phrase"req_feilds"</font>',
                                minlength: '<font color="red">$phrase"plz_notless" 10 $phrase"characters"</font>',
                                maxlength: '<font color="red">$phrase"plz_notmore" $numfeewrd $phrase"characters"</font>'
                            }
                            ,
                            cap:
                            {
                                required: '<br><font color="red">$phrase"req_feilds"</font>',
                                minlength: '<br><font color="red">$phrase"plz_notless" 6 $phrase"characters"</font>'
                            }

                        }
                  });
                </script>
                <div id="hiddendata" style="text-align: left;">&nbsp;</div>
Return current item: Free Ads Manager Script