<?php
include dirname(__FILE__) . '/elements/progress.php';
$STORAGE = &$_SESSION[$controller->defaultInstaller];
?>
<div class="i-wrap">
	<?php
	if (isset($_GET['err']) && !empty($_GET['err']) && isset($_SESSION[$controller->defaultErrors][$_GET['err']]))
	{
		?>
		<div class="i-status i-status-error">
			<div class="i-status-icon"><abbr></abbr></div>
			<div class="i-status-txt">
				<h2>安装错误</h2>
				<p class="t10"><?php echo @$_SESSION[$controller->defaultErrors][$_GET['err']]; ?></p>
			</div>
		</div>
		<?php
	}
	?>
	
	<p>设置后台管理员用户名密码</p>
	
	<form action="index.php?controller=pjInstaller&amp;action=pjActionStep5&amp;install=1" method="post" id="frmStep4" class="i-form">
		<input type="hidden" name="step4" value="1" />

		<table cellpadding="0" cellspacing="0" class="i-table t20">
		  <thead>
				<tr>
					<th>设置后台管理员用户名密码</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
						<p>
							<label class="i-title"><span class="i-red">*</span> E-Mail</label>
							<span class="pj-form-field-custom pj-form-field-custom-before">
								<span class="pj-form-field-before"><abbr class="pj-form-field-icon-email"></abbr></span>
								<input type="text" tabindex="1" name="admin_email" id="admin_email" class="pj-form-field w200" value="<?php echo isset($STORAGE['admin_email']) ? htmlspecialchars($STORAGE['admin_email']) : NULL; ?>" />
							</span>
						</p>
						<p>
							<label class="i-title"><span class="i-red">*</span> 密码</label>
							<span class="pj-form-field-custom pj-form-field-custom-before">
								<span class="pj-form-field-before"><abbr class="pj-form-field-icon-password"></abbr></span>
								<input type="text" tabindex="2" name="admin_password" id="admin_password" class="pj-form-field w200" value="<?php echo isset($STORAGE['admin_password']) ? htmlspecialchars($STORAGE['admin_password']) : NULL; ?>" />
							</span>
						</p>
					</td>
				</tr>
			</tbody>
		</table>
		
		<div class="t20">
			<p class="float_left pt5">如需帮助请联系客服<a href="http://www.rivuai.com/" target="_blank">QQ 32557246</a></p>
			<input type="submit" tabindex="3" value="下一步 &raquo;" class="pj-button float_right l5" />
			<input type="button" tabindex="4" value="&laquo; 上一步" class="pj-button float_right" onclick="window.location='index.php?controller=pjInstaller&amp;action=pjActionStep3'" />
			<br class="clear_both" />
		</div>
	</form>
</div>