<div class="box">
{#Step1_Inf#}
</div>


<script language="javascript" type="text/javascript">
<!--
{include file="$src/validate.txt"}

$.validator.setDefaults({ldelim}
	submitHandler: function() 
	{ldelim}
		document.forms['Form'].submit();
	{rdelim}
});

$().ready(function() 
{ldelim}
	$("#Form").validate({ldelim}
	rules: {ldelim}
				dbhost: {ldelim}required: true{rdelim},
				dbuser: {ldelim}required: true{rdelim},
				dbname: {ldelim}required: true{rdelim},
				dbprefix: {ldelim}required: true{rdelim}
			{rdelim}, 
	messages: 
			{ldelim}
			{rdelim}
	{rdelim});
{rdelim});
// -->
</script>

<div class="content">
<div class="headers">{#Step1#}</div>

{if $errors_path}
<div class="errorbox">
<h3>{#Errors#}</h3>
<br />
<strong>
{#Step1ErrInf#}
</strong></div>
<div class="eulas">
<div class="eula">
{foreach from=$error_not_writables item=nw}
<div class="error_nw">{$nw}</div>
{/foreach}
</div>
</div>
<div class="button_steps">
<form method="post" action="setup.php">
<input type="hidden" name="step" value="1" />
<input type="submit" value="{#Step1ErrB#}" />
</form>
</div>
{else}
<form autocomplete="off" name="Form" id="Form"  method="post" action="setup.php">



<div class="box">
{if $db_no_connection==1}
<div class="error_conn">
<img src="setup/warning.png" alt="" style="vertical-align:middle" />
{#Step1_NoConn#}
</div>
{/if}
  <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr>
      <td width="180"><span {popup width=400 text=$lang.Step1_ainf}> <img style="vertical-align:middle" src="setup/help.png" alt="" /> <strong>{#Step1_a#}</strong></span></td>
      <td><input class="input" type="text" name="dbhost" value="{$smarty.post.dbhost|koobispecialchars|default:'localhost'}" /></td>
    </tr>
    <tr>
      <td width="180"><span {popup width=400 text=$lang.Step1_binf}><img style="vertical-align:middle" src="setup/help.png" alt="" /> <strong>{#Step1_b#}</strong></span></td>
      <td><input class="input" type="text" name="dbuser" value="{$smarty.post.dbuser|koobispecialchars}" /></td>
    </tr>
    <tr>
      <td width="180"><span {popup width=400 text=$lang.Step1_cinf}><img style="vertical-align:middle" src="setup/help.png" alt="" /> <strong>{#Step1_c#}</strong></span></td>
      <td><input class="input" type="text" name="dbpass" value="{$smarty.post.dbpass|koobispecialchars}" /></td>
    </tr>
    <tr>
      <td width="180"><span {popup width=400 text=$lang.Step1_dinf}><img style="vertical-align:middle" src="setup/help.png" alt="" /> <strong>{#Step1_d#}</strong></span></td>
      <td><input class="input" type="text" name="dbname" value="{$smarty.post.dbname|koobispecialchars}" /></td>
    </tr>
    <tr>
      <td width="180"><span {popup width=400 text=$lang.Step1_einf}><img style="vertical-align:middle" src="setup/help.png" alt="" /> <strong>{#Step1_e#}</strong></span></td>
      <td><input class="input" type="text" name="dbprefix" value="{$smarty.post.dbprefix|koobispecialchars|default:'koobi7'}" /></td>
    </tr>
  </table>
</div>


<div class="button_steps">

<input type="hidden" name="step" value="2" />
<input type="submit" value="{#Step1_Button#}" />
</div>
</form>
{/if}



</div>