<h1>Import Users</h1>


<flexy:switch var="{msg}">
<flexy:case value="error_connect">
    <b>Error: Can't connect to DB</b>
    <flexy:break>
<flexy:case value="error_select">
    <b>Can't select database</b>
    <flexy:break>
<flexy:case value="success">
    <b>Import status:</b><br>
    {total} total users processed<br>
    {imported} users imported<br>
    {duplicated} duplicated records found<br>
    <flexy:break>
<flexy:end>
<br>


<form action="{zoner}" method="POST">
<flexy:component name="ff" class="fill_hidden" exclude="mode">
<input type=hidden name=action value="import">

<table border=0>
<tr>
    <td width=100><b>Host:</b></td>
    <td><input type=text name=dbhost size=40></td>
    <td><flexy:component class="validator_not_empty" name="dbhost"></td>
</tr>
<tr>
    <td><b>Database:</b></td>
    <td><input type=text name=dbname size=40></td>
    <td><flexy:component class="validator_not_empty" name="dbname"></td>
</tr>
<tr>
    <td><b>User:</b></td>
    <td><input type=text name=dbuser size=40></td>
    <td><flexy:component class="validator_not_empty" name="dbuser"></td>
</tr>
<tr>
    <td><b>Password:</b></td>
    <td><input type=text name=dbpwd size=40></td>
    <td></td>
</tr>
<tr>
    <td><b>Table name:</b></td>
    <td><input type=text name=dbtable size=40></td>
    <td><flexy:component class="validator_not_empty" name="dbtable"></td>
</tr>
<tr>
    <td><b>E-mail field:</b></td>
    <td><input type=text name=femail size=40></td>
    <td><flexy:component class="validator_not_empty" name="femail"></td>
</tr>
<tr>
    <td><b>Password field:</b></td>
    <td><input type=text name=fpwd size=40></td>
    <td><flexy:component class="validator_not_empty" name="fpwd"></td>
</tr>
<tr>
    <td> </td>
    <td><input type=submit value=" Import "></td>
</tr>
</table>

</form>
