<!DOCTYPE html>
<html class="no-js" lang="ja" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <title>Limited</title>
        <meta name="description" content=""/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <link rel="icon" href="images/favicon.png"/>
        <link rel="stylesheet" href="css/style.css" th:href="@{/css/style.css}"/>
    </head>
    <body>
	<!-- モーダル中身 -->
   	<div id="modal-content">
		<div id="modal-content-innar">
	        <!-- モーダルウィンドウのコンテンツ開始 -->
	        <div class="modalShow"><img class="modalShow" id="showImage" alt="productImage" width="300" height="200"/></div>
	        <div class="modalShow" id="showName"></div>
	        <div class="modalShow" id="showSize"></div>
	        <div class="modalShow" id="showPrice"></div>
	        <div class="modalShow" id="showId"></div>
	        <div class="modalShow" id="showStock"></div>
	        <div class="modalShow" id="showQuantity">
		        <span>Quantity</span>
		        <select name="quantity">
		        	<option value="1">1</option>
		        	<option value="2">2</option>
		        	<option value="3">3</option>
		        	<option value="4">4</option>
		        	<option value="5">5</option>
		        	<option value="6">6</option>
		        	<option value="7">7</option>
		        	<option value="8">8</option>
		        	<option value="9">9</option>
		        	<option value="10">10</option>
		        </select>
	        </div>
		        <a id="modal-close" class="button-link"><button class="cart-close-btn">Close</button></a>
		        <button type="button" class="cartBtn" id="cartBtn">Add Cart</button>
	      </div>
    </div>
    <!-- モーダルウィンドウのコンテンツ終了 -->
   

	    <section class="header-top-section">
	        <div class="container">
	            <div class="row">
	                <div  class="col-md-6">
	                    <div class="header-top-content">
	                        <ul class="nav nav-pills navbar-left">
	                            <li><a href="#"><i class="pe-7s-call"></i><span>123-123456789</span></a></li>
	                            <li><a href="#"><i class="pe-7s-mail"></i><span> info@mart.com</span></a></li>
	                        </ul>
	                    </div>
	                </div>
	                <div  class="col-md-6">
	                    <div class="header-top-menu">
	                        <ul class="nav nav-pills navbar-right">
	                        	<li><a sec:authorize="hasRole('ROLE_ADMIN')" th:href="@{/limited/admin/management}">Management</a></li>
	                            <!-- 履歴ページへ遷移 -->
	                            <li><a th:href="@{/limited/log/{id}(id=${user.id})}">My Purchase Log</a></li>
	                            <!-- カートページへ遷移 -->
	                            <li><a th:href="@{cart}">Cart</a></li>
	                            <!-- ログアウト -->
	                            <li><form th:action="@{/logout}" method="post"><input type="submit" value="logout" style="border:none;background-color:transparent;text-decoration:none;" class="logoutBtn"/></form></li>
	                        </ul>
	                    </div>
	                </div>
	            </div>
	        </div>
	    </section>

        <header class="header-section">
            <nav class="navbar navbar-default">
                <div class="container">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" th:href="@{/limited/top}"><b>L</b>imited</a>
                    </div>
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li><a th:href="@{/limited/top}">Home</a></li>
                            <li  class="active"><a th:href="@{/limited/list}">Shop</a></li>
                            <li><a th:href="@{/limited/log/{id}(id=${user.id})}">My Purchase Log</a></li>
                            <li><a th:href="@{/limited/wallets/{id}(id=${user.id})}">Wallets</a></li>
                        </ul>
                        <ul class="nav navbar-nav navbar-right cart-menu">
                        <li id="balance-li">Balance<span th:text="'&yen;' + ${wallets.amount}">10000</span></li>
                        <li><a class="search-btn"><i class="fa fa-search" aria-hidden="true"></i></a></li>
                        <li><a th:href="@{/limited/cart}"><span> Cart</span> <span class="shoping-cart" id="shoping-cart-span" th:text="${cartValue}">0</span></a></li>
                    </ul>
                    </div><!-- /.navbar-collapse -->
                </div>
            </nav>
        </header>

        <section class="search-section">
            <div class="container">
                <div class="row subscribe-from">
                    <div class="col-md-12">
                        <form class="form-inline col-md-12 wow fadeInDown animated">
                            <div class="form-group">
                                <input type="email" class="form-control subscribe" id="email" placeholder="Search..."/>
                                <button class="suscribe-btn" ><i class="pe-7s-search"></i></button>
                            </div>
                        </form><!-- end /. form -->
                    </div>
                </div><!-- end of/. row -->
            </div><!-- end of /.container -->
        </section><!-- end of /.news letter section -->
        <!--一覧-->
        <p id="cart-p-text"><span id="cart-text">Product List</span></p>
        <div class="listBox" id="limitedListBox">
        	<!--限定商品一覧-->
            <div class="productBox" th:each="limitedShoes : ${limitedShoes}">
                <div class="shoeImageDiv"><img class="shoeImage" th:src="@{/upload/{photo}(photo=${limitedShoes.photo})}" alt="productImage" width="300" height="200"/></div>
                <p th:text= "${limitedShoes.name}" class="shoeName shoeLimited">AirMAX</p>
                <p th:text="${limitedShoes.size} + ' cm'" class="shoeSize shoeLimited"></p>
                <p th:text = "'&yen;' +${limitedShoes.price}" class="shoePrice shoeLimited">￥10,000</p>
                <input type="hidden" th:value="${limitedShoes.id}"/>
                <input type="hidden" th:value="${limitedShoes.stock}"/>
                <div class="detailsBtn"><button type="button" id="modal-open" class="details">Datails</button></div>
                <!-- <button class="js-modal-open" id="sign-up">Details</button>-->
            </div>
        </div>
        <div class="listBox">
            <!--一般商品一覧-->
            <div class="productBox" th:each="generalShoes : ${generalShoes}">
                <div class="shoeImageDiv"><img class="shoeImage" th:src="@{/upload/{photo}(photo=${generalShoes.photo})}" alt="productImage" width="300" height="200"/></div>
                <p th:text= "${generalShoes.name}" class="shoeName">AirMAX</p>
                <p th:text="${generalShoes.size} + ' cm'" class="shoeSize"></p>
                <p th:text = "'&yen;' +${generalShoes.price}" class="shoePrice">￥10,000</p>
                <input type="hidden" th:value="${generalShoes.id}"/>
                <input type="hidden" th:value="${generalShoes.stock}" />
                <div class="detailsBtn"><button type="button" id="modal-open" class="details">Datails</button></div>
                <!-- <button class="js-modal-open" id="sign-up">Details</button>-->
            </div>
        </div>
        <footer class="footer" id="login-footer">
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <p class="center">Made with <a href="#" id="secret"><img th:src="@{/images/btn.png}" width="20" height="10"/></a> by <a href="#" target="_blank">Limited</a>. All Rights Reserved</p>
                        
                    </div>
                </div>
            </div>
        </footer>
        <!-- JQUERY -->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script src="js/list.js" th:src="@{/js/list.js}"></script>
    </body>
</html>
