<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: phpdisk.tpl.html 44 2011-03-29 02:20:23Z JL $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<div class="index_box">
<div class="l">
<div class="l_l"></div>
<div class="l_m">
<!--#$settings['open_gallery_index'] && show_gallery();#-->
<!--#show_announces();#-->
</div>
<div class="l_r"></div>
<div class="clear"></div>
<!--#show_tag();#-->
<!--#show_index_file();#-->
</div>
<div class="r">
<div class="r_l"></div>
<div class="r_m">
<div class="right_box">
<!--#if(!$pd_uid){#-->
<form name="user_form" action="{#urr("account","")#}" method="post" onSubmit="return dosubmit(this);">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="task" value="login" />
<input type="hidden" name="formhash" value="{$formhash}" />
<div class="title"><img src="images/login_nav.gif" align="absmiddle"> {$L['user_login']}</div>
<ul>
	<li class="li_input">{$L['username']}: <em class="u_em"><input class="u_input" type="text" name="username" value="" maxlength="20"></em></li>
	<li class="li_input">{$L['password']}: <em class="u_em"><input class="u_input" type="password" name="password" value="" maxlength="20"></em></li>
<!--#if($settings['login_verycode'] && $settings['open_verycode']){#-->  
	<li class="li_input">{$L['verycode']}: <input class="verycode" type="text" name="verycode" value="" maxlength="6"> <img style="cursor:pointer" id="imgcode" alt="{$L['refresh']}" border="0" onclick="chg_imgcode();" align="absbottom" /></li>
  <script type="text/javascript">
  getId('imgcode').src = 'includes/imgcode.inc.php?verycode_type={$settings['verycode_type']}';
  function chg_imgcode(){
  	getId('imgcode').src = 'includes/imgcode.inc.php?verycode_type={$settings['verycode_type']}&t='+Math.random();
  }
  </script>
	<!--#}#-->
	<li class="li_input2">&nbsp;<input type="submit" class="login_btn" value=""><input type="button" class="reg_btn" value="" onClick="go('{#urr("account","action=register")#}');" /></li>
	<!--#if($settings['open_demo_login']){#-->
	<li class="li_input3"><a href="{#urr("account","action=demologin")#}"><img src="images/demo_icon.gif" align="absmiddle" border="0"> {$L['demo_login']}</a></li>
	<!--#}#-->
</ul>
</form>
<script language="javascript">
document.user_form.username.focus();
function dosubmit(o){
	if(o.username.value.strtrim().length <2){
		alert("{$L['invalid_username']}");
		o.username.focus();
		return false;
	}
	if(o.password.value.strtrim().length <6){
		alert("{$L['invalid_password']}");
		o.password.focus();
		return false;
	}
<!--#if($settings['login_verycode']){#-->
	if(o.verycode.value.strtrim().length <4){
		alert("{$L['invalid_verycode']}");
		o.verycode.focus();
		return false;
	}
<!--#}#-->	
}
</script>
<!--#}else{#-->
<div class="title"><img src="images/login_nav.gif" align="absmiddle"> {$L['user_info']}</div>
<div class="l_info">
	<li>{$L['hello']} , <a href="{#urr("space","username=".rawurlencode($pd_username))#}">{$pd_username}</a></li>
	<li><span title="{$rank}{$L['rank']}">{#get_rank($rank)#}</span><div class="rank_info" title="{$L['next_rank_exp']}{$lv_tips}">
	<div style="background:#9EB6D8;width:{$exp_fill}px;"><span class="txtblue" style="font-size:9px">{$exp}/<b>{$this_exp}</b></span></div>
    </div></li>
	<li>&nbsp;</li>
	<li>{$L['total_folders']}: {$stats['total_folders']}</li>
	<li>{$L['total_files']}: {$stats['total_files']}</li>
	<li>{$L['total_share_files']}: {$stats['total_share_files']}</li>
	<li>{$L['file_size_total']}: {$stats['file_size_total']}</li>
	<li>{$L['last_login_ip']}: {$stats['last_login_ip']}</li>
</div>
<!--#}#-->
</div>
</div>
<div class="r_r"></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<!--#if($settings['show_stat_index']){#-->
<div class="f_link">
<div class="tit"><span><img src="images/stat_icon.gif" align="absmiddle" border="0" />{$L['site_stat']}</span></div>
<div class="ctn">{$L['welcome_member']}:<a href="{$a_last_user}" title="{$last['username_all']}"><b>{$last['username']}</b></a> , {$L['all_member']}: <b>{$stats['users_count']}</b> , {$L['all_file']}: <b>{$stats['all_files_count']}</b> , {$L['all_storage']}: <b>{$stats['total_storage_count']}</b>
</div>
</div>
<!--#}#-->
<!--#show_links();#-->
<div class="clear"></div>