<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<script type="text/javascript" src="<c:url value='/resources/js/mobile/login/login.js' />"></script>
<script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery-2.1.4.min.js" />"></script>

<!-- 부트스트랩 css및 스크립트 -->
<link rel="stylesheet" href="/mcare-plus/resources/plugins/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/mcare-plus/resources/plugins/bootstrap/css/bootstrap-select.min.css">
<script src="/mcare-plus/resources/plugins/bootstrap/js/bootstrap-select.min.js"></script>
<script src="/mcare-plus/resources/plugins/bootstrap/js/bootstrap.min.js"></script>

<link rel="stylesheet" href="/mcare-plus/resources/css/mobile/consent/common.css">
<script src="/mcare-plus/resources/js/mobile/consent/common.js"></script>
<div data-role="content">
	<div class="logo-wrap">
		<img src="/mcare-plus/resources/css/images/fatima_logo.png" alt="" id="fatimalogo" height="40">
		<img src="/mcare-plus/resources/css/images/mcarePlus.png" alt="" id="mcarelogo" height="30">
	</div>

	<div class="login-box">
		<h1 class="logo">
			<img src="/mcare-plus/resources/css/images/fatima_logo.png" alt="" height="50">
		</h1>
		<div class="form-horizontal m-t-20">
			<div class="form-group ">
				<div class="col-xs-12">
					<input class="form-control" type="text" placeholder="아이디" id="txtUserId">
				</div>
			</div>

			<div class="form-group">
				<div class="col-xs-12">
					<input class="form-control" type="password" placeholder="패스워드" id="txtPasswd">
				</div>
			</div>
			<!-- 
                <div class="form-group ">
                    <div class="col-xs-12">
                        <div class="checkbox3  checkbox-check checkbox-light">
                               <input type="checkbox" id="rememberMe" checked>
                                <label for="rememberMe">자동 로그인</label>
                          </div>                        
                    </div>
                </div>
                 -->
			<div class="form-group text-center m-t-40">
				<div class="col-xs-12">
					<button class="btn btn-info btn-block" id="loginBtn">로그인</button>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	//다국어
	var i18n = function() {
		var message = {
			"common006" : "<s:message code='mobile.message.common006'/>",
			"login005" : "<s:message code='mobile.message.login005'/>",
			"login006" : "<s:message code='mobile.message.login006'/>"
		};
		this.getMessage = function(code) {
			return message[code];
		};
	};
	$(document).ready(function() {
		sessionStorage.clear();
		var mcare = new mcare_mobile(); 
		if( mcare.isAndroid() ){
			// 앱으로 로그아웃 메시지 보냄
			var logoutMsg = {
					"type":"command", 
					"functionType":"logout"
			};
			mcare.toNative(logoutMsg);	
		}
		var login = new mcare_mobile_login();
		login.setGlobal(login);
		login.init();
	});

	
</script>