


<!-- "script/apps/Aquarius/Desktop/LoginPage.html?cmdredirect=" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LoginPage file, by LiXizhi, 2008/10/27</title>
</head>
<body>
<pe:mcml>
<script src="LoginPage.lua">
</script>
<script type="text/npl"><![CDATA[
-- MyCompany.Aquarius.LoginPage.OnInit();
function OnInit()
local self = document:GetPageCtrl();
local bRememberPassword = MyCompany.Aquarius.app:ReadConfig("rememberpassword", false);
self:SetNodeValue("rememberpassword", bRememberPassword);
if(bRememberPassword) then
self:SetNodeValue("username", System.User.Name);
self:SetNodeValue("password", System.User.Password);
end
end
OnInit()
commonlib.echo("script/apps/Aquarius/Desktop/LoginPage.html is depracated");
function OnClickConnect(btnName, values)
NPL.load("(gl)script/kids/3DMapSystemApp/Login/LoginProcedure.lua");
paraworld.ShowMessage("正在验证用户身份, 请等待...", function()
OnClickConnect(btnName, values)
end, _guihelper.MessageBoxButtons.RetryCancel)
local pageCtrl = document:GetPageCtrl();
MyCompany.Aquarius.LoginPage.Proc_Authentication(values, function ()
if(pageCtrl) then
paraworld.ShowMessage();
local cmdredirect = pageCtrl:GetRequestParam("cmdredirect");
pageCtrl:CloseWindow()
if(cmdredirect) then
System.App.Commands.Call(cmdredirect);
end
end
end, true);
end
-- register
function OnClickRegister()
document:GetPageCtrl():CloseWindow();
System.App.Commands.Call("Profile.Aquarius.Register");
end
]]></script>
<!--user is not logged in, show some news-->
<pe:if-is-user uid="notloggedinuser">
<pe:editor>
<div style="margin:10px;color:#006600">请输入用户名和密码</div>
<hr />
<div style="width:120px;float:left;text-align:right">用户名:</div><input type="text" name="username" style="width:125px"/><br />
<div style="width:120px;float:left;text-align:right">密码:</div><input type="password" name="password" style="width:125px"/><br />
<div style="margin-left:120px;"><input type="checkbox" name="rememberpassword"/>记住密码</div><br />
<div style="width:120px;float:left;text-align:right">域名: </div><select name="domain">
<option selected="selected" value="pala5.com">缺省域名</option>
<option value="pala5.com">pala5.com</option>
<option value="test.pala5.cn">test.pala5.cn</option>
</select>
<hr />
<div style="margin-left:120px;">
<input DefaultButton="true" class="defaultbutton" type="submit" name="login" value="登录" onclick="OnClickConnect"/>
<div style="float:left;margin-left:10px;"><a type="button" onclick="OnClickRegister">注册新用户</a></div>
</div>
</pe:editor>
</pe:if-is-user>
<!--user is online, show home page-->
<pe:if-is-user uid="loggedinuser">
<div style="background:;padding:10px" height="100%" width="100%" class="box">
<div style="float:left;">
<pe:profile-photo uid="loggedinuser" width="120" height="90"/>
</div>
<div style="float:left;margin-left:10px">
<a href="script/kids/3DMapSystemApp/profiles/ProfileRegPage.html" target="_mcmlblank"><pe:name uid="loggedinuser" useyou="false" linked="false" style="font-weight:bold;"/><span>(编辑档案)</span></a><span style="margin:5px">您已经成功登陆!</span><br />
<hr />
</div>
<hr />
<a href="LoggedInHomePage.html" target="_mcmlblank"><img style="margin-top:2px;margin-right:10px; background:url(Texture/3DMapSystem/common/rainbow.png);width:16px;height:16px;" />打开我的首页</a>
<hr />
</div>
</pe:if-is-user>
</pe:mcml>
</body>
</html>