Location: PHPKode > projects > iLP System > Release 2.2/upload/_backend/lib/templates/tpl.search.user.php
<?php
/**
 * iLP System Template: Sortierung, Formatierung und FormularĀŸberprĀŸfung der Benutzereinstellungen
 * 
 * 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 '<style type="text/css">
.lootlist tbody td + td + td + td {
	text-align: center;
}

#content table.itemlist tfoot tr td.listLocked, #content table.itemlist tfoot tr td.listUnlocked:hover {
	background-color: #ffe4de;
}

#content table.itemlist tfoot tr td.listLocked:hover, #content table.itemlist tfoot tr td.listUnlocked {
	background-color: #ccffd9;
}

#content table.itemlist tfoot tr td.listLocked a, #content table.itemlist tfoot tr td.listUnlocked a:hover {
	color: red;
}

#content table.itemlist tfoot tr td.listLocked a:hover, #content table.itemlist tfoot tr td.listUnlocked a {
	color: green;
}
</style>
<script type="text/javascript">
$(document).ready(function () {';

if (2 <= count($tpl['search']['user']['list']))
{
	echo '$(".itemlist").tablesorter({
		sortList: [[1,1]],
		headers: {
			2: {
				sorter: false
			}
		}
	});';
}
	
if (2 <= count($tpl['search']['user']['loots']))
{
	echo '$(".lootlist").tablesorter({
		sortList: [[1,1]],
		headers: {
			4: {
				sorter: false
			}
		}
	});';
}
	
echo '$("#userform").validate({
		onfocusout: false,
		onkeyup: false,
		showErrors: function (errorMap, errorList) {
			$("#errorMessage").show();
			this.defaultShowErrors();
		},
		errorContainer: "#errorMessage",
		errorLabelContainer: "#errorMessage ul",
		wrapper: "li",
		rules: {
			settings_char_name: {
				required: true
			},
			settings_new_password: {
				equalTo: "#settings_new_password_confirm"
			}
		},
		messages: {
			settings_char_name: "<label for=\'settings_char_name\'><img src=\'../images/icons/cog.png\' alt=\'icon\' /> <strong>'.$lang['search']['user']['settings']['char']['newname'].'<\/strong> '.$lang['error']['notempty'].'<\/label>",
			settings_new_password: "<label for=\'settings_new_password\'><img src=\'../images/icons/cog.png\' alt=\'icon\' /> <strong>'.$lang['search']['user']['settings']['pw_confirm'].'<\/strong> '.$lang['search']['user']['settings']['pw_confirmnote'].'<\/label>"
		}
	});
});
</script>';
?>
Return current item: iLP System