<!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><?php _e('Configuration'); ?>:<?php _e('Setup 2'); ?></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(./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(./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;	vertical-align:top;
}
TD.data {	/* テーブル */
	background-color: #01133C;	padding: 3px;	text-align: left;	vertical-align:top;
}
TD.button {	/* テーブル */
	background-color: #01133C;	padding: 3px;	text-align: center;
}
TD.head {	/* テーブル */
	font-size:1.2em;	font-weight: bold;	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;
}
IMG	{	border: none; }
A			{ text-decoration:none; }
A:link		{ color: #7777FF; }
A:visited	{ color: #FF77FF; }
A:active	{ color: white; }
A:hover		{ color: white; }
		</style>
		<script type="text/javascript" src="./resource/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
	</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="./developers/top.gif" width="800" height="10" /></div>
		<!-- /finish:トップ -->

		<!-- start:メインコンテンツ -->
		<div id="content">
			<div class="title"><img src="./developers/h_top.gif" width="740" height="10" /><?php _e('Server Setting.'); ?><img src="./developers/h_bottom.gif" width="740" height="10" /></div>
			<br />

<?php if (empty($this->_vars['complete'])) : ?>
			<form name="edit" method="post" action="<?php e($_SERVER['PHP_SELF']); ?>">
				<input type="hidden" name="page" value="config" />

				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('System Info'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Administrator E-mail'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['administrator'])? '':_('Please enter E-mail.').'<br />'; ?></span>
							<input name="administrator" type="text" value="<?php e(ifNull($this->_vars['request']['administrator'], ADMINISTRATOR)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SNS Name'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['sns_name'])? '':_('Please enter Name.').'<br />'; ?></span>
							<input name="sns_name" type="text" value="<?php e(ifNull($this->_vars['request']['sns_name'], SNS_NAME)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('Copyright'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['copyright'])? '':_('Please enter Copyright.').'<br />'; ?></span>
							<input name="copyright" type="text" value="<?php e(ifNull($this->_vars['request']['copyright'], COPYRIGHT)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('System Invite'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['system_invite'])? '':_('Please select Invite.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['system_invite'], SYSTEM_INVITE);
?>
							<label><input type="radio" name="system_invite" value="1" <?php if ($_tmp) { e('checked="checked" '); } ?>/><?php _e('Invite'); ?></label>
							<label><input type="radio" name="system_invite" value="0" <?php if (!$_tmp) { e('checked="checked" '); } ?>/><?php _e('Open'); ?></label>
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Site URL'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Base URL'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['base_url'])? '':_('Please enter Base URL.').'<br />'; ?></span>
							<input name="base_url" type="text" value="<?php e(ifNull($this->_vars['request']['base_url'], BASE_URL)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SSL URL'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['ssl_url'])? '':_('Please enter SSL URL.').'<br />'; ?></span>
							<input name="ssl_url" type="text" value="<?php e(ifNull($this->_vars['request']['ssl_url'], SSL_URL)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('Link URL'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['path_info_key'])? '':_('Please select Link URL.').'<br />'; ?></span>
							<?php HTML::radio('path_info_key', $this->_vars['PathInfo'], ifNull($this->_vars['request']['path_info_key'], PATH_INFO_KEY), '<br />'); ?></select>
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Database'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('DB Driver'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['db_driver'])? '':_('Please select Driver.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['db_driver'], DB_DRIVER);
?>
							<label><input type="radio" name="db_driver" value="mysql" <?php if ($_tmp == 'mysql') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('mysql', 'display', 'block'); YAHOO.util.Dom.setStyle('nomysql', 'display', 'none'); YAHOO.util.Dom.setStyle('sqlite', 'display', 'none'); YAHOO.util.Dom.setStyle('nosqlite', 'display', 'block');" /><?php e('MySQL'); ?></label><br />
							<label><input type="radio" name="db_driver" value="pgsql" <?php if ($_tmp == 'pgsql') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('mysql', 'display', 'none'); YAHOO.util.Dom.setStyle('nomysql', 'display', 'block'); YAHOO.util.Dom.setStyle('sqlite', 'display', 'none'); YAHOO.util.Dom.setStyle('nosqlite', 'display', 'block');" /><?php e('PostgreSQL'); ?></label><br />
							<label><input type="radio" name="db_driver" value="sqlite" <?php if ($_tmp == 'sqlite') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('mysql', 'display', 'none'); YAHOO.util.Dom.setStyle('nomysql', 'display', 'none'); YAHOO.util.Dom.setStyle('sqlite', 'display', 'block'); YAHOO.util.Dom.setStyle('nosqlite', 'display', 'none');" /><?php e('SQLite'); ?></label><br />
						</td>
					</tr>
				</tbody></table>
				<table id="sqlite" style="margin: 0 29px; display: <?php e($_tmp == 'sqlite'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table>
				<table id="nosqlite" style="margin: 0 29px; display: <?php e($_tmp != 'sqlite'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('DB Name'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['db_name'])? '':_('Please enter DB Name.').'<br />'; ?></span>
							<input name="db_name" type="text" value="<?php e(ifNull($this->_vars['request']['db_name'], 'hitsuji')); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('DB Host'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['db_host'])? '':_('Please enter DB Host.').'<br />'; ?></span>
							<input name="db_host" type="text" value="<?php e(ifNull($this->_vars['request']['db_host'], 'localhost')); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('DB User'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['db_user'])? '':_('Please enter DB User.').'<br />'; ?></span>
							<input name="db_user" type="text" value="<?php e(ifNull($this->_vars['request']['db_user'], DB_USER)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('DB Password'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['db_password'])? '':_('Please enter Base URL.').'<br />'; ?></span>
							<input name="db_password" type="text" value="<?php e(ifNull($this->_vars['request']['db_password'], DB_PASSWORD)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2" style="background-color: #01133C;"><img src="./developers/blank.gif" width="740" height="1" /></td></tr>
				</tbody></table>
				<table id="nomysql" style="margin: 0 29px; display: <?php e($_tmp != 'mysql'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table>
				<table id="mysql" style="margin: 0 29px; display: <?php e($_tmp == 'mysql'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('MySQL Version'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['use_set_names'])? '':_('Please select Version.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['use_set_names'], USE_SET_NAMES);
?>
							<label><input type="radio" name="use_set_names" value="1" <?php if ($_tmp == '1') { e('checked="checked" '); } ?>/><?php _e('MySQL4.1 and up'); ?></label>
							<label><input type="radio" name="use_set_names" value="0" <?php if ($_tmp == '0') { e('checked="checked" '); } ?>/><?php _e('MySQL4.1 older'); ?></label>
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Encryption'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Pass Seed'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['pass_seed'])? '':_('Please select Seed.').'<br />'; ?></span>
							<input name="pass_seed" type="text" value="<?php e(ifNull($this->_vars['request']['pass_seed'], PASS_SEED)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('Passphrase'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['pass_phrase'])? '':_('Please enter Passphrase.').'<br />'; ?></span>
							<input name="pass_phrase" type="text" value="<?php e(ifNull($this->_vars['request']['pass_phrase'], PASS_PHRASE)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Service'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('AMAZON AssociateID'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['amazon_associateid'])? '':_('Please enter ID.').'<br />'; ?></span>
							<input name="amazon_associateid" type="text" value="<?php e(ifNull($this->_vars['request']['amazon_associateid'], AMAZON_ASSOCIATEID)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('GNAVI AccessKey'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['gnavi_access_key'])? '':_('Please enter AccessKey.').'<br />'; ?></span>
							<input name="gnavi_access_key" type="text" value="<?php e(ifNull($this->_vars['request']['gnavi_access_key'], GNAVI_ACCESS_KEY)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Image'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Resizable Driver'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['use_set_names'])? '':_('Please select Driver.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['image_driver'], IMAGE_DRIVER);
?>
							<label><input type="radio" name="image_driver" value="GD" <?php if ($_tmp == 'GD') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('gd', 'display', 'block'); YAHOO.util.Dom.setStyle('imagic', 'display', 'none');" /><?php e('GD'); ?></label>
							<label><input type="radio" name="image_driver" value="ImageMagick" <?php if ($_tmp == 'ImageMagick') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('gd', 'display', 'none'); YAHOO.util.Dom.setStyle('imagic', 'display', 'block');" /><?php e('ImageMagick'); ?></label>
						</td>
					</tr>
				<table id="gd" style="margin: 0 29px; display: <?php e($_tmp == 'GD'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table>
				<table id="imagic" style="margin: 0 29px; display: <?php e($_tmp == 'ImageMagick'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('ImageMagick Path'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['imagemagick_path'])? '':_('Please enter Path.').'<br />'; ?></span>
							<input name="imagemagick_path" type="text" value="<?php e(ifNull($this->_vars['request']['imagemagick_path'], IMAGEMAGICK_PATH)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Send Mail'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Mail Driver'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['used_smtp'])? '':_('Please select Driver.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['used_smtp'], USED_SMTP);
?>
							<label><input type="radio" name="used_smtp" value="0" <?php if (empty($_tmp)) { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('send', 'display', 'block'); YAHOO.util.Dom.setStyle('smtp', 'display', 'none');" /><?php e('Default'); ?></label>
							<label><input type="radio" name="used_smtp" value="1" <?php if ($_tmp)  { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('send', 'display', 'none'); YAHOO.util.Dom.setStyle('smtp', 'display', 'block');" /><?php e('SMTP'); ?></label>
						</td>
					</tr>
				</tbody></table>
				<table id="send" style="margin: 0 29px; display: <?php e(empty($_tmp)? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table>
				<table id="smtp" style="margin: 0 29px; display: <?php e(!empty($_tmp)? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('SMTP Host'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['smtp_host'])? '':_('Please enter Host.').'<br />'; ?></span>
							<input name="smtp_host" type="text" value="<?php e(ifNull($this->_vars['request']['smtp_host'], SMTP_HOST)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SMTP Port'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['smtp_port'])? '':_('Please enter Port.').'<br />'; ?></span>
							<input name="smtp_port" type="text" value="<?php e(ifNull($this->_vars['request']['smtp_port'], SMTP_PORT)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SMTP Auth'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['smtp_auth'])? '':_('Please select Auth.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['smtp_auth'], SMTP_AUTH);
?>
							<label><input type="radio" name="smtp_auth" value="0" <?php if (!$_tmp) { e('checked="checked" '); } ?>/><?php e('Default'); ?></label>
							<label><input type="radio" name="smtp_auth" value="1" <?php if ($_tmp)  { e('checked="checked" '); } ?>/><?php e('Auth'); ?></label>
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SMTP Account'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['smtp_account'])? '':_('Please enter Account.').'<br />'; ?></span>
							<input name="smtp_account" type="text" value="<?php e(ifNull($this->_vars['request']['smtp_account'], SMTP_ACCOUNT)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('SMTP Password'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['smtp_password'])? '':_('Please enter Password.').'<br />'; ?></span>
							<input name="smtp_password" type="text" value="<?php e(ifNull($this->_vars['request']['smtp_password'], SMTP_PASSWORD)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />


				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="head"><?php _e('Attach (image import) Mail'); ?></td></tr>
					<tr>
						<th class="column"><?php _e('Attach Driver'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['attach_driver'])? '':_('Please select Auth.').'<br />'; ?></span>
<?php 
    $_tmp = ifNull($this->_vars['request']['attach_driver'], ATTACH_DRIVER);
?>
							<label><input type="radio" name="attach_driver" value="POP3" <?php if ($_tmp == 'POP3') { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('pop3', 'display', 'block'); YAHOO.util.Dom.setStyle('box', 'display', 'none');" /><?php e('POP3'); ?></label>
							<label><input type="radio" name="attach_driver" value="Box" <?php if ($_tmp == 'Box')  { e('checked="checked" '); } ?>onchange="YAHOO.util.Dom.setStyle('pop3', 'display', 'none'); YAHOO.util.Dom.setStyle('box', 'display', 'block');" /><?php e('Mail Box'); ?></label>
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('Attach E-mail'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['attach_mail'])? '':_('Please enter E-mail.').'<br />'; ?></span>
							<input name="attach_mail" type="text" value="<?php e(ifNull($this->_vars['request']['attach_mail'], ATTACH_MAIL)); ?>" size="60" />
						</td>
					</tr>
				</tbody></table>
				<table id="pop3" style="margin: 0 29px; display: <?php e($_tmp == 'POP3'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('POP3 Host'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['pop3_host'])? '':_('Please enter Host.').'<br />'; ?></span>
							<input name="pop3_host" type="text" value="<?php e(ifNull($this->_vars['request']['pop3_host'], POP3_HOST)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('POP3 Account'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['pop3_account'])? '':_('Please enter Account.').'<br />'; ?></span>
							<input name="pop3_account" type="text" value="<?php e(ifNull($this->_vars['request']['pop3_account'], POP3_ACCOUNT)); ?>" size="60" />
						</td>
					</tr>
					<tr>
						<th class="column"><?php _e('POP3_PASSWORD'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['pop3_password'])? '':_('Please enter Password.').'<br />'; ?></span>
							<input name="pop3_password" type="text" value="<?php e(ifNull($this->_vars['request']['pop3_password'], POP3_PASSWORD)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table>
				<table id="box" style="margin: 0 29px; display: <?php e($_tmp == 'Box'? 'block': 'none'); ?>;" align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr>
						<th class="column"><?php _e('Mail Box Path'); ?>：</th>
						<td class="data">
							<span class="alert"><?php echo empty($this->_vars['alert']['mail_box_dir'])? '':_('Please enter Path.').'<br />'; ?></span>
							<input name="mail_box_dir" type="text" value="<?php e(ifNull($this->_vars['request']['mail_box_dir'], MAIL_BOX_DIR)); ?>" size="60" />
						</td>
					</tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />

				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="button"><input type="submit" name="manip" value="<?php _e('submit'); ?>" style="width:120px;" /></td></tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />
			</form>
<?php else : ?>
				<table align="center" cellpadding="0" cellspacing="0" width="740"><tbody>
					<tr><td colspan="2"><img src="./developers/l_top.gif" width="740" height="10" /></td></tr>
					<tr><td colspan="2"  class="button"><br /><br />
						<a href="<?php e($_SERVER['PHP_SELF']); ?>?page=database">
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						<?php _e('Next'); ?>
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						<img src="./resource/img/icons/resultset_next.gif" width="16" height="16" align="absmiddle" />
						</a><br /><br />
					</td></tr>
					<tr><td colspan="2"><img src="./developers/l_bottom.gif" width="740" height="10" /></td></tr>
				</tbody></table><br />
<?php endif; ?>
			<div class="copyright">Copyright (C) 2007 `Yujiro Takahashi' All Rights Reserved.</div>
			<div style="clear: both;"><img alt=" " src="./developers/blank.gif" width="600" height="1" /></div>
		</div>
		<!-- /finish:メインコンテンツ -->

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