<!-- LOGIN BOX TITLE -->
<inp2:m_Capture to_var="header">
	<table class="fullwidth">
		<tr>
			<td class="side-box-title" align="left">
				<inp2:m_phrase name="lu_title_LoginBox"/>
			</td>
			<td align="right" class="login-status">

				<!-- IF LOGGED IN SHOW NAME -->
				<inp2:m_if check="m_LoggedIn">
					<a href="<inp2:m_Link template="platform/my_account/my_profile" m_cat_id="0" m_cat_page="1"/>"><inp2:u_Field name="FirstName"/> <inp2:u_Field name="LastName"/></a><br />
				<!-- /IF LOGGED IN SHOW NAME -->
				<inp2:m_else/>

					<table>
						<tr>
							<td width="11">
								<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/not_logged.gif" alt="" width="11" height="11" border="0" /><br />
							</td>
							<td class="login-status">
								&nbsp;<inp2:m_Phrase label="lu_NotLoggedIn"/>
							</td>
						</tr>
					</table>
				</inp2:m_if>
			</td>
		</tr>
	</table>
</inp2:m_Capture>
<!-- /LOGIN BOX TITLE -->

<!-- IF LOGGED! -->
<inp2:m_if check="m_LoggedIn">
	<table width="100%" style="border-width: 0px;">
		<tr>
			<td colspan="2"><strong><inp2:m_phrase name="lu_section_MyAccount"/></strong></td>
		</tr>

		<!-- SHOW MY PROFILE -->
		<inp2:m_RenderElement name="box_element" template="platform/my_account/my_profile" title="lu_MyProfile"/>
		<!-- /SHOW MY PROFILE -->

		<!-- SHOW MY FAVORITES -->
		<inp2:m_RenderElement name="box_element" template="platform/my_account/my_favorites" title="lu_MyFavorites"/>
		<!-- /SHOW MY FAVORITES -->

		<!-- SHOW MY PREFERENCES -->
		<inp2:m_RenderElement name="box_element" template="platform/my_account/my_preferences" title="lu_MyPreferences"/>
		<!-- /SHOW MY PREFERENCES -->

		<!-- INCLUDE "themes/default2007/[MODULE_NAME]/my_account/my_items.elm.tpl" FOR EACH INSTALLED MODULE -->
		<inp2:m_ModuleInclude template="my_account/my_items.elm" place="sidebox" section="1"/>
		<!-- /INCLUDE "themes/[MODULE_NAME]/my_account/my_items.elm.tpl" FOR EACH INSTALLED MODULE -->

		<tr>
			<td>
				<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/menu-li-2-level.gif" alt="" width="4" height="4" border="0" /><br />
			</td>
			<td>
				<a href="<inp2:u_LogoutLink template="index" />"><inp2:m_Phrase label="lu_logout"/></a>
			</td>
		</tr>

		<tr>
			<td colspan="2">
		<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" alt="" width="1" height="7" border="0" /><br />
			</td>
		</tr>

		<tr>
			<td colspan="2">
				<strong><inp2:m_phrase name="lu_section_MyItems"/></strong>
			</td>
		</tr>

		<inp2:m_ModuleInclude template="my_account/my_items.elm" place="sidebox" section="2"/>
	</table>

<!-- /IF LOGGED -->
<inp2:m_else/>
<!-- IF NOT LOGGED IN! -->

	<form method="post" action="<inp2:m_FormAction />">
		<inp2:m_if check="u_UseUsernames">
			<inp2:m_phrase label="lu_username"/><br />
			<input class="input-text" type="text" name="login" style="width:155px" /><br />
		<inp2:m_else/>
			<inp2:m_phrase label="lu_email"/><br />
			<input class="input-text" type="text" name="email" style="width:155px" /><br />
		</inp2:m_if>

		<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="5" alt=""/><br />

		<inp2:m_Phrase label="lu_Password"/><br />
		<input type="password" class="input-text" name="password" style="width:155px" /><br />

		<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" alt="" width="1" height="10" border="0" /><br />

		<table>
			<tr>
				<td width="10">
					<input class="button" name="events[u][OnLogin]" type="submit" value="<inp2:m_Phrase label='lu_Login' no_editing='1'/>" /><br />
				</td>
				<td align="left">
					<input type="checkbox" name="cb_remember_login" value="1"/> <span class="remember-login"><inp2:m_Phrase label="lu_remember_login"/></span>
				</td>
			</tr>
		</table>

		<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" alt="" width="5" height="5" border="0" /><br />
		<inp2:m_if check="u_HasError" field="any">
			<span class="field-error"><inp2:u_Error field="ValidateLogin"/></span><br />
		</inp2:m_if>

		<inp2:m_if check="u_RegistrationEnabled">
			<a href="<inp2:m_Link template="platform/login/register" m_cat_id="0" m_cat_page="1"/>" class="more-link" ><inp2:m_Phrase label="lu_Register"/></a> <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/side_link_str.gif" width="6" height="5" alt="" /><br />
		</inp2:m_if>

		<a href="<inp2:m_Link template="platform/login/forgot_password" m_cat_id="0" m_cat_page="1"/>" class="more-link" ><inp2:m_Phrase label="lu_ForgotPassword"/>?</a>  <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/side_link_str.gif" width="6" height="5" alt="" />
		<input type="hidden" name="next_template" value="<inp2:m_get var="next_template"/>" />
		<input type="hidden" name="pending_disabled_template" value="platform/login/login_pending_disabled" />
	</form>
</inp2:m_if>
<!-- /IF NOT LOGGED IN -->
