Location: PHPKode > projects > iLP System > Release 2.2/upload/lib/templates/tpl.settings.php
<?php
/**
 * iLP System Template: 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 '<h1>'.$lang['settings']['navi']['home'].'</h1>
		<p>
			'.$lang['settings']['text'].'
		</p>
		<div id="errorMessage" class="warning user">
			<h1><img src="images/icons/error.png" alt="icon" /> '.$lang['error']['header'].'</h1>
			<ul>
				<li><span class="note">'.$lang['error']['note'].'</span></li>
			</ul>
		</div>';
		
if (isset($tpl['url'][1]) && 'do' == $tpl['url'][1])
{
	if (isset($tpl['settings']['success']))
	{
		echo '<div class="correct">
			<h1>'.$lang['settings']['success']['head'].'</h1>
			<p>
				'.$lang['settings']['success']['text'].'
			</p>
			<p>
				<a href="?ilp='.ilpUrlEncode('settings').'">'.$lang['page']['back'].'</a>
			</p>
		</div>';
	}
	
	elseif (isset($tpl['settings']['info']))
	{
		echo '<div class="info">
			<h1>'.$lang['settings']['info']['head'].'</h1>
			<p>
				'.$lang['settings']['info']['text'].'
			</p>
			<p>
				<a href="?ilp='.ilpUrlEncode('settings').'">'.$lang['page']['back'].'</a>
			</p>
		</div>';
	}
}

else
{
	echo '<form method="post" action="?ilp='.ilpUrlEncode('settings;do').'" id="userform">
			<fieldset>
				<legend><img src="images/icons/key_go.png" alt="icon" /> '.$lang['settings']['old_pw']['head'].'</legend>
				<div class="inputGroup">
					<div class="inputField">
						<input type="password" name="settings_password" id="settings_password" />
						<div class="inputDesc">
							<label for="settings_password">
								'.$lang['settings']['old_pw']['text'].'
							</label>
						</div>
					</div>
				</div>
			</fieldset>
			<fieldset>
				<legend><img src="images/icons/cog.png" alt="icon" /> '.$lang['settings']['navi']['home'].'</legend>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_login">
							'.$lang['settings']['username'].'
						</label>
					</div>
					<div class="inputField">
						<input type="text" name="settings_login" id="settings_login" value="'.$tpl['user']['login'].'" />
						<div class="inputDesc">
							<label for="settings_login">
								'.$lang['settings']['usernote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_new_password">
							'.$lang['settings']['new_pw'].'
						</label>
					</div>
					<div class="inputField">
						<input type="password" name="settings_new_password" id="settings_new_password" />
						<div class="inputDesc">
							<label for="settings_new_password">
								'.$lang['settings']['pwnote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_new_password_confirm">
							'.$lang['settings']['pw_confirm'].'
						</label>
					</div>
					<div class="inputField">
						<input type="password" name="settings_new_password_confirm" id="settings_new_password_confirm" />
						<div class="inputDesc">
							<label for="settings_new_password_confirm">
								'.$lang['settings']['pw_confirmnote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_new_email">
							'.$lang['settings']['email'].'
						</label>
					</div>
					<div class="inputField">
						<input type="text" name="settings_new_email" id="settings_new_email" value="'.$tpl['user']['email'].'" />
						<div class="inputDesc">
							<label for="settings_new_email">
								'.$lang['settings']['mailnote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_lang">
							'.$lang['settings']['lang'].'
						</label>
					</div>
					<div class="inputField">
						<select name="settings_lang" id="settings_lang" size="1">';

foreach($tpl['settings']['lang_array'] as $key => $value)
{
	echo '<option value="'.$key.'"';
	
	if ($key == $tpl['user']['lang']) echo ' selected="selected"';
	
	echo '>'.$value.'</option>';
}
echo '</select>

						<div class="inputDesc">
							<label for="settings_lang">
								'.$lang['settings']['langnote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_tooltip_locale">
							'.$lang['settings']['tooltip'].'
						</label>
					</div>
					<div class="inputField">
						<select name="settings_tooltip_locale" id="settings_tooltip_locale" size="1">';

foreach($tpl['settings']['tooltip_locale_array'] as $key => $value)
{
	echo '<option value="'.$key.'"';
	
	if ($key == $tpl['user']['tooltip_locale']) echo ' selected="selected"';
	
	echo '>'.$value.'</option>';
}
echo '</select>

						<div class="inputDesc">
							<label for="settings_tooltip_locale">
								'.$lang['settings']['tipnote'].'
							</label>
						</div>
					</div>
				</div>
			</fieldset>
			<div>
				<input type="submit" value="'.$lang['settings']['submit'].'" />
			</div>
		</form>
		<p>
			'.$lang['settings']['char']['text'].'
		</p>
		<div id="errorMessage" class="warning char">
			<h1><img src="images/icons/error.png" alt="icon" /> '.$lang['error']['header'].'</h1>
			<ul>
				<li><span class="note">'.$lang['error']['note'].'</span></li>
			</ul>
		</div>
		<form method="post" action="?ilp='.ilpUrlEncode('settings;req').'" id="charform">
			<fieldset>
				<legend><img src="images/icons/vcard.png" alt="icon" /> '.$lang['settings']['char']['header'].'</legend>
				<div class="inputGroup">
					<div class="inputName">
						'.$lang['settings']['char']['current'].'
					</div>
					<div class="inputField">
						<span>
							<img src="images/icons/'.$tpl['user']['char']['class'].'.png" alt="wowicon" /><img src="images/icons/'.$tpl['user']['char']['class'].$tpl['user']['char']['spec'].'.png" alt="wowicon" /> <a href="?ilp='.ilpUrlEncode('search;user;'.$tpl['user']['id']).'" rel="http://armorylite.com/'.$_SESSION['config']['guild_region'].'/'.$_SESSION['config']['guild_realm'].'/'.$tpl['user']['char']['name'].'" class="class-'.$tpl['user']['char']['class'].'">'.$tpl['user']['char']['name'].'</a>
						</span>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_char_class">
							'.$lang['settings']['char']['newclass'].'
						</label>
					</div>
					<div class="inputField">
						<select name="settings_char_class" id="settings_char_class">
							<option value="0">'.$lang['page']['choose'].'</option>';
		
		foreach ($lang['classlist'] as $key => $row)
		{
			echo '<optgroup label="'.$row['title'].'">';
			
			for ($i=1;$i<=3;$i++)
			{
				echo '<option value="'.$key.$i.'">'.$row[$key.$i].'</option>';
			}
			
			echo '</optgroup>';
		}
		
		echo '</select>
						<div class="inputDesc">
							<label for="settings_char_class">
								'.$lang['settings']['char']['classnote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_char_name">
							'.$lang['settings']['char']['newname'].'
						</label>
					</div>
					<div class="inputField">
						<input type="text" name="settings_char_name" id="settings_char_name" />
						<div class="inputDesc">
							<label for="settings_char_name">
								'.$lang['settings']['char']['namenote'].'
							</label>
						</div>
					</div>
				</div>
				<div class="inputGroup">
					<div class="inputName">
						<label for="settings_char_msg">
							'.$lang['list']['req']['message'].'
						</label>
					</div>
					<div class="inputField">
						<textarea cols="45" rows="10" name="settings_char_msg" id="settings_char_msg"></textarea>
						<div class="inputDesc">
							<label for="settings_char_msg">
								'.$lang['settings']['char']['msgnote'].'
							</label>
						</div>
					</div>
				</div>
			</fieldset>
			<div>
				<input type="submit" value="'.$lang['list']['req']['submit'].'" />
			</div>
		</form>';
}
?>
Return current item: iLP System