Skip to content

Commit

Permalink
tiles化(importだけど)
Browse files Browse the repository at this point in the history
  • Loading branch information
secondarykey committed Jan 16, 2013
1 parent f464ff7 commit 990760b
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 115 deletions.
74 changes: 41 additions & 33 deletions war/css/global.css
Original file line number Diff line number Diff line change
@@ -1,45 +1,53 @@
@CHARSET "utf-8";

body { background-color: #EEEEEE; }

h1 {
height: 33px;
font-size: x-large;
font-family: "Times New Roman", Times, serif;
body {
padding:0px;
margin:0px;
background-color: #eeeef1;
font-family: arial,sans-serif;
}

ul li { list-style: square; }
a:hover { background-color: white; }

input.err { background-color: orange; }

#header{
width:760px;
background-color: orange;
#header {
padding:0px;
margin:0px;
background-color:#ABCDEF;
height:29px;
border-style:solid;
border-color:#bbbbcc;
border-width:0 0 1 0;
float:left;
width:100%;
}

#menu{
width:160px;
height:400px;
text-align:left;
vertical-align: top;
float:left;
background-color: aqua;
#footer {
clear: both;
background-color: #ABCDEF;
bottom: 0%;
position: fixed;
padding-top: 1px;
padding-right: 0px;
padding-bottom: 1px;
padding-left: 0px;
border-width: 0px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #bbbbcc;
text-align: center;
width:100%;
font-size:9px;
}

#body{
width:600px;
height:400px;
float:left;
background-color: white;
#mainMenu {
text-align:right;
padding:2px;
}

#footer{
width:760px;
text-align:left;
background-color: black;
color: white;
clear: left;
#content {
background-color:#fafafa;
display: block;
clear: both;
}


form {
display: inline;
}
24 changes: 11 additions & 13 deletions war/dashboard/index.jsp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>dashboard Index</title>
</head>
<body>
<p>Hello dashboard Index !!!</p>
</body>
</html>
<c:import url="../mainFrame.jsp">
<c:param name="title" value="ダッシュボード"/>
<c:param name="stylesheet">
</c:param>
<c:param name="javascript">
</c:param>
<c:param name="mainMenu">
</c:param>
<c:param name="content">
</c:param>
</c:import>
28 changes: 11 additions & 17 deletions war/index.jsp
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Index</title>
</head>
<body>


<ileaflet:login/>


</body>
</html>
<c:import url="mainFrame.jsp">
<c:param name="title" value="トップページ"/>
<c:param name="stylesheet">
</c:param>
<c:param name="javascript">
</c:param>
<c:param name="mainMenu">
</c:param>
<c:param name="content">
</c:param>
</c:import>
36 changes: 17 additions & 19 deletions war/login/create.jsp
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>login Create</title>
</head>
<body>

<c:import url="../mainFrame.jsp">
<c:param name="title" value="登録"/>
<c:param name="stylesheet">
</c:param>
<c:param name="javascript">
</c:param>
<c:param name="mainMenu">
</c:param>
<c:param name="content">
<form method="POST" action="./register">
<input type="text" name="identity" value="${identity}">
<input type="text" name="name" value="${name}">
<input type="text" name="mail" value="${mail}">
<input type="password" name="password">
<input type="password" name="password2">
<input type="submit">
id:<input type="text" name="identity" value="${identity}">
name:<input type="text" name="name" value="${name}">
mail:<input type="text" name="mail" value="${mail}">
pass:<input type="password" name="password">
pass:<input type="password" name="password2">
<input type="submit" value="">
</form>
</body>
</html>
</c:param>
</c:import>
28 changes: 12 additions & 16 deletions war/login/forget.jsp
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>login Forget</title>
</head>
<body>
<p>Hello login Forget !!!</p>

<c:import url="../mainFrame.jsp">
<c:param name="title" value="パスワード忘れ"/>
<c:param name="stylesheet">
</c:param>
<c:param name="javascript">
</c:param>
<c:param name="mainMenu">
</c:param>
<c:param name="content">
<form method="POST" action="./sendForgetMail">
<input type="text" name="mail">
mail:<input type="text" name="mail">
<input type="submit">
</form>

</body>
</html>
</c:param>
</c:import>
30 changes: 13 additions & 17 deletions war/login/index.jsp
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>login Index</title>
</head>
<body>

<c:import url="../mainFrame.jsp">
<c:param name="title" value="ログイン"/>
<c:param name="stylesheet">
</c:param>
<c:param name="javascript">
</c:param>
<c:param name="mainMenu">
</c:param>
<c:param name="content">
<form method="POST" action="./logon">
<input type="text" name="identity">
<input type="text" name="password">
id:<input type="text" name="identity">
pass:<input type="text" name="password">
<input type="hidden" name="redirect" value="${redirect}">
<input type="submit">
</form>

<a href="./?type=create">アカウントの新規作成</a>

<a href="./?type=forget">パスワードを忘れたら。。。</a>

</body>
</html>
</c:param>
</c:import>
33 changes: 33 additions & 0 deletions war/mainFrame.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${param.title}</title>
<link type="text/css" rel="stylesheet" href="/css/global.css" />
${param.stylesheet}
${param.javascript}
</head>
<body id="body">

<div id="header">
<div id="logo">
iLeaflet <ileaflet:login/>
</div>

<div id="mainMenu">
${param.mainMenu}
</div>
</div>

<div id="content">
<pre>
${param.content}
</pre>
</div>

<div id="footer">
&copy;2013 dogrun inc.
</div>

</body>
</html>

0 comments on commit 990760b

Please sign in to comment.