Location: PHPKode > projects > iLP System > Release 2.2/upload/_backend/lib/templates/tpl.system.form.php
<?php
/**
 * Form validation script for system changes
 * 
 * @author:  Florian "ApoY2k" Peschka <hide@address.com>
 * @package: apoy2k.ilp.wrynn.lib.tpl
 * @license: CreativeCommons (by-nc-sa)
 * @version: 2.2
 */
 
echo '<script type="text/javascript">
	$(document).ready(function () {
		$("#systemform").validate({
			onfocusout: false,
			onkeyup: false,
			showErrors: function (errorMap, errorList) {
				$("#errorMessage").show();
				this.defaultShowErrors();
			},
			errorContainer: "#errorMessage",
			errorLabelContainer: "#errorMessage ul",
			wrapper: "li",
			rules: {
				system_guild_name: {
					required: true
				},
				system_guild_realm: {
					required: true
				},
				system_list_slots: {
					required: true,
					number: true
				},
				system_display_loots: {
					required: true,
					number: true
				},
				system_display_events: {
					required: true,
					number: true
				}
			},
			messages: {
      	system_guild_name: "<label for=\'system_guild_name\'><img src=\'../images/icons/user_gray.png\' alt=\'icon\' /> <strong>'.$lang['system']['settings']['guild_name'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
      	system_guild_realm: "<label for=\'system_guild_realm\'><img src=\'../images/icons/user_gray.png\' alt=\'icon\' /> <strong>'.$lang['system']['settings']['guild_realm'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
      	system_list_slots: "<label for=\'system_list_slots\'><img src=\'../images/icons/cart.png\' alt=\'icon\' /> <strong>'.$lang['system']['settings']['list_slots'].'<\/strong> '.$lang['error']['number'].'<\/label>",
      	system_display_loots: "<label for=\'system_display_loots\'><img src=\'../images/icons/newspaper.png\' alt=\'icon\' /> <strong>'.$lang['system']['settings']['display_loots'].'<\/strong> '.$lang['error']['number'].'<\/label>",
      	system_display_events: "<label for=\'system_display_events\'><img src=\'../images/icons/newspaper.png\' alt=\'icon\' /> <strong>'.$lang['system']['settings']['display_events'].'<\/strong> '.$lang['error']['number'].'<\/label>"
      }
		});
	});
</script>';

?>
Return current item: iLP System