<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
	<head>
		<meta http-equiv="content-type" content='text/html; charset="utf-8"' />
		<meta http-equiv="content-style-type" content="text/css" />
		<title>ステップ１：セットアップ</title>
		<style type="text/css" media="screen">
/**************************/
BODY	{	/* ボディー */
	color: black;	margin: 0px 0px 20px 0px;	background-color: #444444;	text-align: center;
}
#header {	/* ヘッダー */
	width: 800px;	height: 134px;	color: white;	font-size:0.8em;	background-color: #444444;
	background-image: url(<?php e(BASE_URL); ?>developers/header.jpg);	background-repeat: no-repeat;
	margin: 0px auto;	padding:0px;
}
#header A:link	{ color: white; }
#header A:visited { color: white; }
#header A:active  { color: white; }
#header A:hover   { color: black; background-color: white; }

#content	{	/* コンテンツ */
	width: 798px;	color: white;	background-color: black;	text-align: left;	margin: 0px auto;
	padding: 0px;	border-left: 1px solid #072D87;	border-right: 1px solid #072D87;	font-size:0.8em;
}
#footer {	/* フッター */
	width: 800px;	height: 10px;	color: white;	background-color: #444444;
	background-image: url(<?php e(BASE_URL); ?>developers/bottom.gif);	background-repeat: no-repeat;
	text-align: left;	margin: 0px auto;	padding: 0px;
}
DIV.copyright {	/* 各ページ設定 */
	width: 300px;	height: 10px;	font-size: 11px;	margin: 0px auto;	padding-top: 0px;	padding-bottom: 2px;
}
/**************************/
UL.horizontal {	/* 横並びリスト */
	margin: 0;	padding: 0;	list-style: none;
}
UL.horizontal LI {
	float: left;	display: block;	margin: 0;	padding: 0;
}
TH.column {	/* テーブル */
	width: 160px;	background-color: #01133C;	padding: 3px;	text-align: right;
}
TD.data {	/* テーブル */
	background-color: #01133C;	padding: 3px;	text-align: left;
}
TD.button {	/* テーブル */
	background-color: #01133C;	padding: 3px;	text-align: center;
}
DIV.title {	/* タイトル			   */
	width:740px;	color: #C9FEE6;	background-color: #002B39;	margin: 0px auto;	padding: 0;
	text-align: center;	font-weight: bold;	font-size: 1.1em;
}
.blank	{	/* 空白 */
	clear: both;	font-size:1px;	height: 1px;
}
.alert	{	/* 警告 */
	color: #FF9999;
}
A:link		{ color: #7777FF; }
A:visited	{ color: #FF77FF; }
A:active	{ color: white; }
A:hover		{ color: white; }
		</style>
	</head>
	<body>
		<!-- start:ヘッダー -->
		<div id="header">
			<div>&nbsp;</div>
			<ul class="horizontal" style="margin-left:560px; margin-top:100px;">
				<li><a href="<?php e($_SERVER['PHP_SELF']); ?>">Step1</a>&nbsp;&nbsp;</li>
				<li><a href="<?php e($_SERVER['PHP_SELF']); ?>">Step2</a>&nbsp;&nbsp;</li>
				<li><a href="<?php e($_SERVER['PHP_SELF']); ?>">Step3</a></li>
			</ul>
		</div><br />
		<!-- /finish:ヘッダー -->
		

		<!-- start:トップ -->
		<div id="top"><img alt="--" src="<?php e(BASE_URL); ?>developers/top.gif" width="800" height="10" /></div>
		<!-- /finish:トップ -->

		<!-- start:メインコンテンツ -->
		<div id="content">
			<div class="title"><img src="<?php e(BASE_URL); ?>developers/h_top.gif" width="740" height="10" /><?php _e('View setting'); ?>&nbsp;:&nbsp;[&nbsp;<?php e($this->_vars['request']['table']); ?>&nbsp;]<img src="<?php e(BASE_URL); ?>developers/h_bottom.gif" width="740" height="10" /></div>
			<br />

			<form name="edit" method="post" action="<?php e($_SERVER['PHP_SELF'].'?page=manip&amp;table='.urlencode($this->_vars['table']).'&amp;path='.urlencode($this->_vars['request']['path'])); ?>">
				<input type="hidden" name="page" value="view" />
				<input type="hidden" name="table" value="<?php e($this->_vars['table']); ?>" />
				<input type="hidden" name="path" value="<?php e($this->_vars['request']['path']); ?>" />

				<table align="center" cellpadding="0" cellspacing="0"><tbody>
					<tr><td colspan="4"><img src="<?php e(BASE_URL); ?>developers/l_top.gif" width="740" height="10" /></td></tr>
<?php if ($this->_vars['complete']): ?>
					<tr><td class="data" colspan="4" style="text-align:center;"><br /><br /><br />
					    <?php _e('Complete'); ?><br /><br />
					    <?php if (!empty($this->_vars['request']['path'])): ?><a href="<?php e(substr(HTTP_ACTION, 0, -1).$this->_vars['request']['path']); ?>"><?php e($this->_vars['request']['path']); ?></a><?php endif; ?><br /><br />
					</td></tr>
<?php else: ?>
					<tr>
						<th class="column"><?php _e('Column'); ?></th>
						<th class="column" style="text-align:left;"><?php _e('Expression'); ?></th>
						<th class="column" style="text-align:left;"><?php _e('Key'); ?></th>
						<th class="column" style="text-align:left;"><?php _e('Reference'); ?></th>
					</tr>
<?php foreach ($this->_vars['columns'] as $row): ?>
					<tr>
						<th class="column"><?php e($row['column']); ?>：</th>
						<td class="data">
							<select name="operator[<?php e($row['column']); ?>]"><?php HTML::options($this->_vars['operators']); ?></select>
					    </td>
						<td class="data">
                            <input name="<?php e($row['column']); ?>" type="text" value="<?php e($row['column']); ?>" size="32" />
					    </td>
						<td class="data">
<?php if ($row['reference']): ?>
							<select name="reference[<?php e($row['column']); ?>]"><?php HTML::options($this->_vars['tables'], $row['reference']); ?></select>
<?php endif; ?><br />
					    </td>
					</tr>
<?php endforeach; ?>
					<tr><td colspan="4"  class="button"><input type="submit" name="manip" value="<?php _e('submit'); ?>" /></td></tr>
<?php endif; ?>
					<tr><td colspan="4"><img src="<?php echo BASE_URL; ?>developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />
			</form>

			<div class="copyright">Copyright (C) 2007 `Yujiro Takahashi' All Rights Reserved.</div>
			<div style="clear: both;"><img alt=" " src="<?php echo BASE_URL; ?>developers/blank.gif" width="600" height="1" /></div>
		</div>
		<!-- /finish:メインコンテンツ -->

		<!-- start:フッター -->
		<div id="footer"><br /></div>
		<!-- /finish:フッター -->
	</body>
</html>

