Location: PHPKode > projects > iLP System > Release 2.2/upload/lib/templates/tpl.settings.form.php
<?php
/**
 * iLP System Template: Formularüberprüfungen für die Benutzerinstellungen
 * 
 * Autor:		Florian "ApoY2k" Peschka
 * Projekt:		iLP System
 * Paket:		apoy2k.ilp.wrynn.lib.tpl
 * Lizenz:		CreativeCommons (by-nc-sa)
 * Kontakt:		hide@address.com
 * Version:		2.1.1
 */
echo '<script type="text/javascript">
	$(document).ready(function () {
		$("#userform").validate({
			onfocusout: false,
			onkeyup: false,
			showErrors: function (errorMap, errorList) {
				$("#errorMessage.user").show();
				this.defaultShowErrors();
			},
			errorContainer: "#errorMessage.user",
			errorLabelContainer: "#errorMessage.user ul",
			wrapper: "li",
			rules: {
				settings_password: {
					required: true
				},
				settings_login: {
					required: true
				},
				settings_new_password: {
					equalTo: "#settings_new_password_confirm"
				}
			},
			messages: {
            	settings_password: "<label for=\'settings_password\'><img src=\'images/icons/key_go.png\' alt=\'icon\' /> <strong>'.$lang['settings']['old_pw']['head'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
            	settings_login: "<label for=\'settings_login\'><img src=\'images/icons/cog.png\' alt=\'icon\' /> <strong>'.$lang['settings']['username'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
            	settings_new_password: "<label for=\'settings_login\'><img src=\'images/icons/cog.png\' alt=\'icon\' /> <strong>'.$lang['settings']['pw_confirm'].'<\/strong> '.$lang['settings']['pw_confirmnote'].'<\/label>"
            }
		});
		
		$("#charform").validate({
			onfocusout: false,
			onkeyup: false,
			showErrors: function (errorMap, errorList) {
				$("#errorMessage.char").show();
				this.defaultShowErrors();
			},
			errorContainer: "#errorMessage.char",
			errorLabelContainer: "#errorMessage.char ul",
			wrapper: "li",
			rules: {
				settings_char_name: {
					required: true
				},
				settings_char_msg: {
					required: true
				}
			},
			messages: {
            	settings_char_name: "<label for=\'settings_char_name\'><img src=\'images/icons/vcard.png\' alt=\'icon\' /> <strong>'.$lang['settings']['char']['newname'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
            	settings_char_msg: "<label for=\'settings_char_msg\'><img src=\'images/icons/vcard.png\' alt=\'icon\' /> <strong>'.$lang['list']['req']['message'].'<\/strong> '.$lang['error']['notempty'].'<\/label>"
            }
		});
	});
</script>';
?>
Return current item: iLP System