1 [% USE HTML %]<body class="admin">
5 <form method="post" action="admin.pl">
8 <translate>You can either create a new database or chose an
9 existing database.</translate>
10 <translate>In the latter case the tables needed by Lx-Office will
11 be created in that database.</translate>
16 <th valign="top" align="right" nowrap><translate>Existing Datasets</translate></th>
17 <td valign="top">[% HTML.escape(dbsources) %]</td>
21 <th align="right" nowrap><translate>Create Dataset</translate></th>
22 <td><input name="db"></td>
26 <th align="right" nowrap><translate>Multibyte Encoding</translate></th>
28 [%- IF FORCE_DBENCODING %]
29 <input type="hidden" name="encoding" value="[% HTML.escape(FORCE_DBENCODING) %]">
30 [% HTML.escape(FORCE_DBENCODING) %]
32 <select name="encoding">
33 [% FOREACH row = DBENCODINGS %]<option value="[% HTML.escape(row.dbencoding) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
40 <th valign="top" align="right" nowrap><translate>Create Chart of Accounts</translate></th>
43 [% FOREACH row = CHARTS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>[% END %]
50 <input type="hidden" name="dbdriver" value="[% HTML.escape(dbdriver) %]">
51 <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
52 <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
53 <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
54 <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
55 <input type="hidden" name="dbdefault" value="[% HTML.escape(dbdefault) %]">
57 <input type="hidden" name="callback" value="admin.pl?action=list_users">
59 <input type="hidden" name="nextsub" value="dbcreate">
63 <p><input type="submit" class="submit" name="action" value="<translate>Continue</translate>"></p>