{include file="header.tpl"}
{if $admin}
<div id="sidebar">
{include file="sidebar.tpl"}
</div>

<div class="mainContent">
 
<h1>Admin Center</h1>
<h2>Logged in as {$username}</h2>

<h3>{$smarty.const.UPDATE_ENV}</h3>
	<p>{$smarty.const.ENV_EXPLAINED}</p>

{if $success}
	<p class="green"><strong>{$success}</strong></p>
{elseif $error_message}
	<p class="red"><strong>{$error_message}</strong></p>
{/if}

<fieldset>
<legend>{$smarty.const.UPDATE_ENV_LEGEND}</legend>

<form action="settings.php" method="post">

<p>{$smarty.const.SITE_URL_UPDATE_SHORTDESC}</p>
<p><label for="url">{$smarty.const.SITE_URL_UPDATE}</label>
<input id="url" name="url" type="text" size="35" maxlength="50" value="{$site_url}" />
</p>
<hr />
<p>{$smarty.const.ADMIN_NAME_UPDATE_SHORTDESC}</p>
<p><label for="admin_name">{$smarty.const.ADMIN_NAME_UPDATE}</label>
<input id="admin_name" name="admin_name" type="text" size="30" maxlength="30" value="{$admin_name}" />
</p>
<hr />
<p>{$smarty.const.ADMIN_EMAIL_UPDATE_SHORTDESC}</p>
<p><label for="admin_email">{$smarty.const.ADMIN_EMAIL_UPDATE}</label>
<input id="admin_email" name="admin_email" type="text" size="30" maxlength="30" value="{$admin_email}" />
</p>
<hr />
<p>{$smarty.const.SITE_MODE_UPDATE_SHORTDESC}</p>
<p><label for="site_mode">{$smarty.const.SITE_MODE_UPDATE}</label>
<input id="site_mode" name="site_mode" type="text" size="5" maxlength="2" value="{$site_mode}" />
</p>
<hr />
<p>{$smarty.const.SITE_LISTINGS_PER_PAGE}</p>
<p><label for="listings_per_page">{$smarty.const.SITE_LISTINGS_LIST}</label>
<input id="listings_per_page" name="listings_per_page" type="text" size="5" maxlength="2" value="{$listings_per_page}" />
</p>
<hr />
<p>{$smarty.const.SITE_USERS_PER_PAGE}</p>
<p><label for="users_per_page">{$smarty.const.SITE_USERS_LIST}</label>
<input id="users_per_page" name="users_per_page" type="text" size="5" maxlength="2" value="{$users_per_page}" />
</p>
<hr />
<p>{$smarty.const.SITE_LISTINGS_STORE_PATH_DESC}</p>
<p><label for="listings_stored_path">{$smarty.const.SITE_LISTINGS_STORED_PATH}</label>
<input id="listings_stored_path" name="listings_stored_path" type="text" size="30" maxlength="30" value="{$listings_stored_path}" />
</p>
<hr />
<p>{$smarty.const.SITE_USERS_STORE_PATH_DESC}</p>
<p><label for="users_stored_path">{$smarty.const.SITE_USERS_STORED_PATH}</label>
<input id="users_stored_path" name="users_stored_path" type="text" size="30" maxlength="30" value="{$users_stored_path}" />
</p>

<hr />
<p>{$smarty.const.SITE_NAME_UPDATE_SHORTDESC}</p>
<p><label for="site_name">{$smarty.const.SITE_NAME_UPDATE}</label>
<input id="site_name" name="site_name" type="text" size="30" maxlength="50" value="{$site_name}" />
</p>
<hr />
<p>{$smarty.const.DESCRIPTION_UPDATE_SHORTDESC}</p>
<p><label for="description">{$smarty.const.DESCRIPTION_UPDATE}</label>
<textarea id="description" name="description" cols="30" rows="4" >{$description}</textarea>
</p>
<hr />
<p>{$smarty.const.KEYWORDS_EDIT_SHORTDESC}</p>
<p><label for="keywords">{$smarty.const.KEYWORDS_EDIT}</label>
<input id="keywords" name="keywords" type="text" size="30" maxlength="255" value="{$keywords}" />
</p>
<hr />
<p>{$smarty.const.SITE_LANG_EDIT_SHORTDESC}</p>
<p><label for="site_lang">{$smarty.const.SITE_LANG_EDIT}</label>
<input id="site_lang" name="site_lang" type="text" size="5" maxlength="3" value="{$site_lang}" />
</p>

<p><input name="submit" type="submit" value="{$smarty.const.SUBMIT}" />
</p>
</form>
</fieldset>

</div>
{/if}
{include file="footer.tpl"}
