<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<!-- BEGIN {$smarty.template} -->

<title>{t}phpaga: Installation{/t}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="robots" content="noarchive,nofollow,noindex" />
<style type="text/css" title="{$userskin}">@import "styles/{$smarty.const.PHPAGA_DEFAULT_SKIN}.css";</style>
</head>
<body>

<div id="install">

<h1>phpaga | {t}Welcome{/t}</h1>

<p>{t}Welcome to phpaga. Fill out and submit the following form in order to create the database structure and populate it with the default data.{/t}</p>
<p>{t}The database access credentials you provide need not be the ones you use in etc/config.local.php, but this user needs to have the necessary permission to create data structures.{/t}</p>


{if $errmsg}<p class="errormsg">{$errmsg}</p>{/if}

<form action="{$SELF}" method="post">
<div>

<input type="hidden" name="action" value="{$smarty.const.ACTION_CREATEDBSTRUCT}" />

<table class="stdtable" cellspacing="0">
  <caption><em>{t}Database{/t}</em></caption>
  <tr>
    <td class="label"> {t}System{/t}: </td>
    <td class="data"> {$dbdata.dbsystem|wash} </td>
  </tr>
  <tr>
    <td class="label"> {t}Host{/t}: </td>
    <td class="data"> {$dbdata.dbhost|wash} </td>
  </tr>
  <tr>
    <td class="label"> {t}Database{/t}: </td>
    <td class="data"> {$dbdata.dbname|wash} </td>
  </tr>
  <tr>
    <td class="label"> {t}Username{/t}: </td>
    <td class="data"> <input type="text" class="tinput" name="dbuser" value="{$dbdata.dbuser|wash}" size="30" maxlength="50" /> </td>
  </tr>
  <tr>
    <td class="label"> {t}Password{/t}: </td>
    <td class="data"> <input type="password" name="dbpasswd" value="{$dbdata.dbpasswd|wash}" size="30" maxlength="100" /> </td>
  </tr>
</table>

<div class="buttons">
  <input type="submit" name="submit" value="{t}Submit{/t}" />
</div>

</div>
</form>

<div class="footer"><a href="http://phpaga.net/" title="phpaga.net">phpaga.net</a></div>

</div>
</body>
</html>

<!-- END {$smarty.template} -->
