94ddf8292deac43670cec252dc59c310b1880bbc
[kivitendo-erp.git] / templates / webpages / admin / create_dataset.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3   <h2>[% title %]</h2>
4
5   <form method="post" action="admin.pl">
6    <p><a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a></p>
7    <p>
8     [% 'You can either create a new database or chose an existing database.' | $T8 %]
9     [% 'In the latter case the tables needed by Lx-Office will be created in that database.' | $T8 %]
10    </p>
11
12    <table border="0">
13     <tr>
14      <th valign="top" align="right" nowrap>[% 'Existing Datasets' | $T8 %]</th>
15      <td valign="top">[% HTML.escape(dbsources) %]</td>
16     </tr>
17
18     <tr>
19      <th align="right" nowrap>[% 'Create Dataset' | $T8 %]</th>
20      <td><input name="db"></td>
21     </tr>
22
23     <tr>
24      <th align="right" nowrap>[% 'Multibyte Encoding' | $T8 %]</th>
25      <td>
26       [%- IF FORCE_DBENCODING %]
27       <input type="hidden" name="encoding" value="[% HTML.escape(FORCE_DBENCODING) %]">
28       [% HTML.escape(FORCE_DBENCODING) %]
29       [%- ELSE %]
30       <select name="encoding">
31        [% FOREACH row = DBENCODINGS %]<option value="[% HTML.escape(row.dbencoding) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
32       </select>
33       [%- END %]
34      </td>
35     </tr>
36
37     <tr>
38      <th valign="top" align="right" nowrap>[% 'Create Chart of Accounts' | $T8 %]</th>
39      <td>
40       <select name="chart" onChange="comment_selected_chart(this.value)">
41        [% FOREACH row = CHARTS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>[% END %]
42       </select>
43      </td>
44     </tr>
45
46     <tr>
47      <th valign="top" align="right" nowrap>[% 'Accounting method' | $T8 %] *</th>
48      <td>
49       <select name="accounting_method">
50        [% FOREACH row = ACCOUNTING_METHODS %]<option value=[% HTML.escape(row.name) %] [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) | $T8 %]</option>[% END %]
51       </select>
52      </td>
53     </tr>
54     <tr>
55      <th valign="top" align="right" nowrap>[% 'Inventory system' | $T8 %] *</th>
56      <td>
57       <select name="inventory_system">
58        [% FOREACH row = INVENTORY_SYSTEMS %]<option value=[% HTML.escape(row.name) %] [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) | $T8 %]</option>[% END %]
59       </select>
60      [% '* there are restrictions for the perpetual method, look at chapter "Bemerkungen zu Bestandsmethode"  in' | $T8 %] <a href="doc/kivitendo-Dokumentation.pdf">kivitendo-Dokumentation.pdf</a>.
61      </td>
62
63     </tr>
64
65     <tr>
66      <th valign="top" align="right" nowrap>[% 'Profit determination' | $T8 %] *</th>
67      <td>
68       <select name="profit_determination">
69        [% FOREACH row = PROFIT_DETERMINATIONS %]<option value=[% HTML.escape(row.name) %] [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) | $T8 %]</option>[% END %]
70       </select>
71      </td>
72    </tr>
73     <tr>
74     <td colspan="2">
75     [% '*) Since version 2.7 these parameters ares set in the client database and not in the configuration file, details in chapter:' | $T8 %] <a href="doc/kivitendo-Dokumentation.pdf">Kapitel Konfiguration zur Einnahmen&uuml;berschussrechnung/ Bilanzierung: EUR</a>
76     </td>
77     </tr>
78    </table>
79
80    <input type="hidden" name="dbdriver"  value="[% HTML.escape(dbdriver) %]">
81    <input type="hidden" name="dbuser"    value="[% HTML.escape(dbuser) %]">
82    <input type="hidden" name="dbhost"    value="[% HTML.escape(dbhost) %]">
83    <input type="hidden" name="dbport"    value="[% HTML.escape(dbport) %]">
84    <input type="hidden" name="dbpasswd"  value="[% HTML.escape(dbpasswd) %]">
85    <input type="hidden" name="dbdefault" value="[% HTML.escape(dbdefault) %]">
86
87    <input type="hidden" name="callback" value="admin.pl?action=list_users">
88
89    <input type="hidden" name="nextsub" value="dbcreate">
90
91    <hr size="3" noshade>
92
93    <p><input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]"></p>
94
95   </form>
96
97   <script type="text/javascript">
98     <!--
99
100     function comment_selected_chart(s) {
101       if (s == 'Austria') {
102         alert("SKR07 Austria ist noch Stand 2002." +
103               "\n" +
104               "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
105               "\n" +
106               "fuer Kunden im Ausland." +
107               "\n" +
108               "Hinweis vom 20.09.2011");
109       }
110       if (s == 'Swiss-German') {
111         alert("Hinweis: Das ist weder ein Schweizer Kontorahmen nach Kaefer noch ein " +
112               "Schweizer KMU-Kontenrahmen, sondern ein angelehnter KMU-Kontenrahmen fuer " +
113               "ein EDV-Dienstleistungsunternehmen mit Stand 2006 (Bspw. 32001 Hardware, " +
114               "statt 3200 Warenertrag)." +
115               "\n" +
116               "Ferner sind keine Buchungsgruppe vorkonfiguriert, somit wird " +
117               "standardmaessig keine Rechnung mit Steuer ausgewiesen." +
118               "\n" +
119               "Zum schnellen Testen und Zusammenhaenge verstehen waehlen Sie lieber einen " +
120               "deutschen Kontenrahmen aus (SKR03 oder SKR04) und passen die Steuer an." +
121               "\n" +
122               "Hinweis vom 21.09.2011");
123       }
124     return true;
125     }
126
127     -->
128   </script>