<?php
/* 
	osCommerce, Open Source E-Commerce Solutions 
	http://www.oscommerce.com 
	
	Copyright (c) 2003 osCommerce 
	
	osCommRes, Services Oline 
	http://www.oscommres.com 
	Copyright (c) 2005 osCommRes 
	
	Freeway eCommerce 
	http://www.zac-ware.com/freeway 
	Copyright (c) 2007 ZacWare 
	
	Released under the GNU General Public License 
*/ 
$current_step="install";
?>
<form name="install" action="install.php?step=2" method="post">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top">
		<?php echo osc_draw_box_start(480) ;?>
		<table width="100%" cellpadding="5" cellspacing="0" border="0">
			<tr>
				<td>
				   <?php osc_title_bar('Please customize the new installation with the following options:');?>
				 </td>
			</tr>
			<tr height="10">
				<td>
			</tr>
			<tr>
				<td style="padding-left:10px;padding-right:15px">
				<table width="100%" border="0" cellpadding="2" class="formPage">
				  <tr>
					<td width="30%" valign="top">Import Catalog Database:</td>
					<td width="70%" class="smallDesc">
					  <?php echo osc_draw_checkbox_field('install[]', 'database', true); ?>
					  <img src="images/layout/help_icon.gif" onClick="toggleBox('dbImport');"><br>
					  <div id="dbImportSD">Install the database and add the sample data</div>
					  <div id="dbImport" class="longDescription">Checking this box will import the database structure, required data, and some sample data. (required for first time installations)</div>
					</td>
				  </tr>
				  <tr height="10">
					<td></td>
				  </tr>
				  <tr>
					<td width="30%" valign="top">Automatic Configuration:</td>
					<td width="70%" class="smallDesc">
					  <?php echo osc_draw_checkbox_field('install[]', 'configure', true); ?>
					  <img src="images/layout/help_icon.gif" onClick="toggleBox('autoConfig');"><br>
					  <div id="autoConfigSD">Save configuration values</div>
					  <div id="autoConfig" class="longDescription">Checking this box will save all entered data during the installation procedure to the appropriate configuration files on the server.</div>
					</td>
				  </tr>
				</table>
				</td>
			</tr>
		</table>
		<?php echo osc_draw_box_end() ;?>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
		  <tr>
			<td align="left"><a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel"></a></td>
			<td align="right">
			<?php
			if (isset($HTTP_POST_VARS["compat_test_pass"])){ 
				echo osc_draw_hidden_field('DB_SERVER',$DB_SERVER) .
							osc_draw_hidden_field('DB_SERVER_USERNAME',$DB_SERVER_USERNAME) .
							osc_draw_hidden_field('DB_SERVER_PASSWORD',$DB_SERVER_PASSWORD) .
							'<input type="hidden" name="compat_test_pass" value="1"/>';
			}
			?>
			<input type="image" src="images/button_continue.gif" border="0" alt="Continue" class="imageButton">
			</td>
		</tr>
		</table>
		</td>
	</tr>
</table>
</form>
