<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Setup - <?php echo $set_product_name. " ". $set_product_version; ?></title>
<link href="kode_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/kode_functions.js"></script>
</head>
<body>
<div id="container">
<div id="head">
<div id="banner"><img src="images/top_head.gif" width="200" height="120" alt="Top" /></div>
<div id="logo"><img src="images/logo.png" width="216" height="80" alt="Logo" /></div>
</div>
<div id="area">Version: <?php echo $set_product_version; ?> </div>
<div id="main">
<div id="content_left">
<div class="title"> Database Configuration</div>
<form action="kode_operations.php" method="post" enctype="application/x-www-form-urlencoded" id="saveForm" name="saveForm">
<div class="btn-box">Please choose the type of database:
<input type="radio" name="db_type" id="db_type_mysql" value="mysql" checked="checked" />
MySQL
<input type="radio" name="db_type" id="db_type_sqlite" value="sqlite" />
SQLite
</div>
<div id="mysql_form">
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="140"><label>MySQL Host Address:</label></td>
<td><input name="mysql_host" id="mysql_host" type="text" value="<?php echo $set_default_mysql_host; ?>" /></td>
</tr>
<tr>
<td><label>MySQL Port:</label></td>
<td><input name="mysql_port" id="mysql_port" type="text" value="<?php echo $set_default_mysql_port; ?>" /></td>
</tr>
<tr>
<td><label>Database Name:</label></td>
<td><input name="mysql_db_name" id="mysql_db_name" type="text" value="<?php echo $set_default_db_name; ?>" /></td>
</tr>
<tr>
<td><label>Table Prefix:</label></td>
<td><input name="mysql_table_prefix" id="mysql_table_prefix" type="text" value="<?php echo $set_mysql_table_prefix; ?>" /></td>
</tr>
<tr>
<td><label>Database Account:</label></td>
<td><input name="mysql_username" id="mysql_username" type="text" value="" /></td>
</tr>
<tr>
<td><label>Database Password:</label></td>
<td><input name="mysql_password" id="mysql_password" type="password" value="" /></td>
</tr>
</table>
</div>
<div id="mysql_result" class="kode_box kode_box-warning">Warning</div>
<div class="btn-box">
<input name="Button" type="button" class="kode_button" value="Test Connect" onclick="connectMySQL()" />
</div>
</div>
<div id="sqlite_form">
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="140"><label>Database Name:</label></td>
<td><input name="sqlite_db_name" type="text" id="sqlite_db_name" value="<?php echo $set_sqlite_file_dump; ?>" readonly="readonly"/></td>
</tr>
</table>
</div>
<div id="sqlite_result" class="kode_box kode_box-warning">Warning</div>
<div class="btn-box">
<input type="button" value="Test Connect" class="kode_button" onclick="connectSQLite()" />
</div>
</div>
<div class="title">Set administrator and site information</div>
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="140">Login Account:</td>
<td><input name="admin_username" id="admin_username" type="text" value="admin" />
<br />
<small>Letter, numbers, spaces</small></td>
</tr>
<tr>
<td>Password:</td>
<td><input name="admin_password" id="admin_password" type="text" value="admin" /></td>
</tr>
<tr>
<td>Guestbook Name:</td>
<td><input name="page_tile" id="page_tile" type="text" value="PHPGuestbook" /></td>
</tr>
<tr>
<td>HomePage:</td>
<td><input name="home_page" id="home_page" type="text" value="<?php echo $baseurl; ?>" /></td>
</tr>
<tr>
<td>Install Path:</td>
<td><?php echo $basepath; ?></td>
</tr>
</table>
</div>
<div id="install_info"></div>
<div id="install_result"></div>
<div class="btn-box">
<input type="button" class="kode_button kode_button-green" value="Back" onclick="window.location.href='kode_core.php?step=2';" />
<input name="Submit" type="submit" class="kode_button kode_button-blue" value="Start install" />
<input name="action" type="hidden" id="kode_action" value="startInstall" />
</div>
</form>
</div>
<div id="content_right">
<div id="kode_step">
<div id="title">Installation Steps</div>
<ul>
<li>License</li>
<li>Requirements</li>
<li class="now">Configuration</li>
<li>Installing</li>
<li>Completed</li>
</ul>
</div>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div id="copyright"><?php echo $set_product_copyright ?></div>
</div>
</div>
</body>
</html>