<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

?>
<div class="row nm" id="step_db">
	<div class="ui form">
		<h3>Database Configurations</h3>
		<h4>Create a Mysql Database for OutputBooks and provide the database connection information.</h4>
		<form name="form_db" id="form_db">
			<table class="db_table">
				<colgroup>
					<col style="width:125px;" />
					<col style="width:auto;" />
				</colgroup>
				<tbody>
					<!-- tr>
						<td>Database Driver</td>
						<td>
							<div class="ui field">
								<select id="dbdriver" name="dbdriver">
									<option value="mysqli">mysqli</option>
								</select>
							</div>
						</td>
					</tr -->
					<tr>
						<td>Host Name *</td>
						<td>
							<div class="ui required field">
								<input type="text" id="hostname" placeholder="Host Name" name="hostname" value="<?php echo !empty($dbconfig) ? $dbconfig['hostname'] : 'localhost'; ?>" required />
							</div>
						</td>
					</tr>
					<tr>
						<td>User Name *</td>
						<td>
							<div class="ui required field">
								<input type="text" id="username" laceholder="User Name" name="username" value="<?php echo !empty($dbconfig) ? $dbconfig['username'] : 'root'; ?>" autocomplete="off" required />
							</div>
						</td>
					</tr>
					<tr>
						<td>Password</td>
						<td>
							<div class="ui field">
								<input type="password" id="password" placeholder="Password" name="password" value="<?php echo !empty($dbconfig) ? $dbconfig['password'] : ''; ?>" autocomplete="off" />
							</div>
						</td>
					</tr>
					<tr>
						<td>Database Name *</td>
						<td>
							<div class="ui required field">
								<input type="text" id="database" placeholder="Database Name" name="database" value="<?php echo !empty($dbconfig) ? $dbconfig['database'] : 'outputbooks'; ?>" autocomplete="off" required />
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</div>
