<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>    
    <title><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %><%: Html.Language("Company")%><% } else { %><%: Html.Language("ProductName")%><% }%></title>
    <% if (Request.Url.Host.IndexOf("hogood") > -1)
       { %><link href="/Styles/login_zhuhao.css" rel="stylesheet" type="text/css" /><% }
       else if (Request.Url.Host.IndexOf("szactop") > -1)
       { %><link href="/Styles/login_zhuohao.css" rel="stylesheet" type="text/css" /><% }
       else if (Request.Url.Host.IndexOf("blv") > -1 || Request.Url.Host.IndexOf("boo-sys") > -1)
       { %><link href="/Styles/login_blv.css" rel="stylesheet" type="text/css" /><% }
       else if (Request.Url.Host.IndexOf("xuanzhu") > -1)
       { %><link href="/Styles/login_xuanzhu.css" rel="stylesheet" type="text/css" /><% }
       else
       { %><link href="/Styles/login_blw.css" rel="stylesheet" type="text/css" /><% } %>
    <script src="/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="/Scripts/login.js" type="text/javascript"></script>
    <% switch ((Domain.Language)ViewData["Language"])
       {
           case Domain.Language.EN: %><script type="text/javascript" src="/Scripts/en-US.js"></script><% break;
           case Domain.Language.ZH_TW: %><script type="text/javascript" src="/Scripts/zh-TW.js"></script><% break;
           default: %><script type="text/javascript" src="/Scripts/zh-CN.js"></script><% break;
       } %>
</head>
<body>
    <div id="container">
        <%--<div>
            <%: ViewData["HotelName"] %>
        </div>--%>
        <div class="login-box">
            <form id="loginForm" method="post" action="/Home/LogOnByAndPassword/">
            <table>
                <col style="width: 80px;" />
                <tr>
                    <th>
                        <label for="txtAccount">
                            <%: Html.Language("Account")%>：</label>
                    </th>
                    <td>
                        <input id="txtAccount" name="Account" type="text" value="<%: ViewData["Account"] %>" />
                    </td>
                </tr>
                <tr>
                    <th>
                        <label for="txtPassword">
                            <%: Html.Language("Password")%>：</label>
                    </th>
                    <td>
                        <input id="txtPassword" name="Password" type="password" />
                    </td>
                </tr>
                <tr>
                    <th>
                        <label for="txtCode">
                            <%: Html.Language("VerificationCode")%>：</label>
                    </th>
                    <td>
                        <input id="txtCode" name="Code" type="text" maxlength="4" />
                        <img class="verify-code" src="/Home/ValidateCode/" alt='<%: Html.Language("ClickRefresh")%>'
                            title='<%: Html.Language("ClickRefresh")%>' onclick="this.src=this.src+'?';" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center;">
                        <a id="btnLogin" href="javascript:void(0);" onclick="logOn();">
                            <%: Html.Language("Login") %></a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div id="lanuagebar">
                            <select id="selLanguage" onchange="switchLanuage(this.value)" style="width: 241px;
                                height: 36px; font-size: 15px; border: 1px solid #C7D9E7; color: black; background: #EBEBEB;">
                                <option value="zh-cn" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.CN) ? "selected='selected'" : "" %>>
                                    简体中文</option><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %>
                                <option value="zh-tw" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.ZH_TW) ? "selected='selected'" : "" %>>
                                    繁体中文</option>
                                <option value="en" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.EN) ? "selected='selected'" : "" %>>
                                    ENGLISH</option><% } %>
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="checkbox" id="isSaveMsg" name="RememberMe" <%: (ViewData["RememberMe"] as bool?).Value ? "checked='checked'" : "" %>
                            style="vertical-align: middle" />
                        <label dir="ltr" for="checkbox" style="font-size: 14px; line-height: 14px">
                            <%: Html.Language("RememberMe")%></label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label id="msg">
                        </label>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
    <div id="footer"><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %>
        Copyright 2015 - 宝来威智能（广东）有限公司 版权所有&nbsp;&nbsp;<a href="http://beian.miit.gov.cn" target="_blank">粤ICP备17103944号</a>
        <%}else if (Request.Url.Host.IndexOf("hogood") > -1) { %>
        Copyright 2015 - 住好智能科技（深圳）有限公司 版权所有&nbsp;&nbsp;<a href="http://beian.miit.gov.cn" target="_blank">粤ICP备20063828号-3</a>
        <%}%>
    </div>
</body>
</html>
