<?php
// +----------------------------------------------------------------------+
// | PHP version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2005 Snapshot Inc.                                |
// +----------------------------------------------------------------------+
// | License                                                              |
// | GNU General Public License                                           |
// +----------------------------------------------------------------------+
// | Authors: Takayuki Tanimoto <takayuki@snapshot.co.jp>                 |
// +----------------------------------------------------------------------+
//
// $Id: Regist_input.php,v 1.1 2005/06/20 09:31:27 snapshot Exp $
//
// Description:
// 2005/06/03
//
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=UTF-8" />
<link rel="stylesheet" href="files/css/main.css" type="text/css" />
<link rel="stylesheet" href="files/css/login.css" type="text/css" />
</head>
<body>
	<div id="container">
		<div id="login_header">
			<a id="logo_m" href="http://u-learning.jp/" target="_blank" style="background-color: transparent"><img src="files/images/logo_m.gif" alt="" /></a>
			<h2>かんたんテスト作成＆配信ツール</h2>
		</div>
		<div id="dialog">
			<h1>ユーザアカウントの作成</h1>
			<form action="<?= htmlspecialchars(TemplateUtils::createURL('Login', 'Regist')) ?>" method="post">
				<table>
					<tr>
						<th>ユーザ名:</th>
						<td><input name="aid" type="text" value="<?= (array_key_exists('aid', $template)) ? htmlspecialchars($template['aid']) : '' ?>" size="20" maxlength="100" /></td>
					</tr>
					<tr>
						<th>パスワード:</th>
						<td><input name="pass" type="password" value="<?= (array_key_exists('pass', $template)) ? htmlspecialchars($template['pass']) : '' ?>" size="20"  maxlength="100" /></td>
					</tr>
					<tr>
						<th>パスワード(確認):</th>
						<td><input name="pass2" type="password" value="<?= (array_key_exists('pass2', $template)) ? htmlspecialchars($template['pass2']) : '' ?>" size="20"  maxlength="100" /></td>
					</tr>
					<tr>
						<th>氏名:</th>
						<td><input name="name" type="text" value="<?= (array_key_exists('name', $template)) ? htmlspecialchars($template['name']) : '' ?>" size="20" maxlength="100" /></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="submit" value="登録" name="regist_submit" />
						</td>
					</tr>
				</table>
			</form>
<?php
if(array_key_exists('error', $template)) {
?>
			<div class="error">
				<?= nl2br(htmlspecialchars($template['error'])) ?>
			</div>
<?php
}
?>
			<div class="text_right margin10">
				<a href="<?= htmlspecialchars(TemplateUtils::createURL('Login', 'Login')) ?>" class="operation">ログイン画面へ</a>
			</div>
		</div>
	</div>

</body>
</html>
