<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Mai Kawasaki                                                |
// +----------------------------------------------------------------------+
//
// $Id: Login_input_pc.php,v 1.1 2005/06/20 09:31:26 snapshot Exp $
//
// Description:
// 2005/05/18
//
include(BASE_DIR."templates/header.php");
?>
<!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>
<title>Uラーニング</title>
<meta http-equiv="Content-Type" content="text/html; charset=SHIFT-JIS" />
<link rel="stylesheet" href="files/css/main.css" type="text/css" />

<style type="text/css">
#container {
	margin-top: 70px;
}

#dialog {
	background-color: white;
	width: 380px;
	border: 1px solid cornflowerblue;
}

#dialog h1 {
	font-size: medium;
	border-bottom: 1px dashed cornflowerblue;
	color: cornflowerblue;
	padding: 3px;
}

#dialog table {
	margin: 20px auto;
}

#dialog th {
	text-align: right;
}

#dialog td {
	text-align: left;
	font-size: small;
	color: gray;
}

#header {
	text-align: center;
	virtical-align: middle;
	margin: 4px auto;
}

#header a:hover {
	background-color: transparent;
}


#message {
	display:inline:
	text-align: center;
	width: 380px;
	margin: 0 auto;
	font-size: 90%;
}

#message h2 {
	margin: 3px;
	padding-left: 7px;
	display: inline;
	font-size: small;
	font-weight: normal;
	color: white;
	width: 10px;
}



</style>

</head>
<body>
	<div id="container">
		<div id="header">
			<a id="logo_m" href="http://u-learning.jp/" target="_blank" style="background-color: transparent"><img src="files/images/logo_pc.gif" alt="" /></a>
		</div>
		<div id="message">
			<h2><?= htmlspecialchars($template['admin']->message) ?></h2>
		</div>
		<div id="dialog" style="margin: 0 auto;">
			<h1>ログイン</h1>
			<form action="<?= htmlspecialchars(TemplateUtils::createURL('Login', 'Login')) ?>" method="post">
				<table>
					<tr>
						<th>ユーザ:</th>
						<td><input type="text" name="uid" size="5" maxlength="6" value="<?= htmlspecialchars($template['uid']) ?>" /></td>
					</tr>
					<tr>
						<th>パスワード:</th>
						<td><input type="text" name="pass" size="5" maxlength="6" value="<?= htmlspecialchars($template['pass']) ?>" /></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="submit" name="login" value="ログイン" /><input type="hidden" name="aid" value="<?= htmlspecialchars($template['aid']) ?>"  />
						</td>
					</tr>
				</table>
				<div class="error">
					<?= (array_key_exists('error', $template)) ? htmlspecialchars($template['error']) : '' ?>
				</div>
				<div id="main_block">
					<a href="<?= htmlspecialchars(TemplateUtils::createURL('Entry','Input', array("aid" => $template['aid']))) ?>" class="operation">ユーザ登録をする</a>
				</div>
			</form>
		</div>
	</div>

</body>
</html>
