Merge branch 'erp5-component' into erp5
[slapos.git] / software / fengoffice / config-form.php.in
1 ?>
2 <h1 class="pageTitle"><span>Step <?php echo $current_step->getStepNumber() ?>:</span> System settings</h1>
3 <table class="formBlock">
4 <tr>
5 <th colspan="2">Database connection</th>
6 </tr>
7
8 <tr>
9 <td class="optionLabel"><label for="configFormDatabaseType">Database type:</label></td>
10 <td>
11 <select name="config_form[database_type]" id="configFormDatabaseType">
12 <option value="mysql">MySQL</option>
13 <option value="pdo_mysql">PDO MySQL</option>
14 </select>
15 </td>
16 </tr>
17
18 <tr>
19 <td class="optionLabel"><label for="configFormDatabaseHost">Host name:</label></td>
20 <td><input type="text" name="config_form[database_host]" id="configFormDatabaseHost" value="%(mysql_ip)s" readonly /></td>
21 </tr>
22
23 <tr>
24 <td class="optionLabel"><label for="configFormDatabaseUser">Username:</label></td>
25 <td><input type="text" name="config_form[database_user]" id="configFormDatabaseUser" value="%(mysql_user)s" readonly /></td>
26 </tr>
27
28 <tr>
29 <td class="optionLabel"><label for="configFormDatabasePass">Password:</label></td>
30 <td><input type="password" name="config_form[database_pass]" id="configFormDatabasePass" value="%(mysql_password)s" readonly /></td>
31 </tr>
32
33 <tr>
34 <td class="optionLabel"><label for="configFormDatabaseName">Database name:</label></td>
35 <td><input type="text" name="config_form[database_name]" id="configFormDatabaseName" value="%(mysql_database)s" readonly /></td>
36 </tr>
37
38 <tr>
39 <td class="optionLabel"><label for="configFormDatabasePrefix">Table prefix:</label></td>
40 <td><input type="text" name="config_form[database_prefix]" id="configFormDatabasePrefix" value="<?php echo array_var($config_form_data, 'database_prefix', 'fo_') ?>" /></td>
41 </tr>
42
43 <tr>
44 <td class="optionLabel"><label for="configFormDatabaseEngine">Database engine:</label></td>
45 <td>
46 <select name="config_form[database_engine]" id="configFormDatabaseEngine">
47 <option value="InnoDB">InnoDB</option>
48 <option value="MyISAM">MyISAM</option>
49 </select>
50 </td>
51 </tr>
52
53 <tr>
54 <td colspan="2">
55 <b>Note:</b> InnoDB engine is highly recommended. Use MyISAM only as a last resort, and at your own risk, if your database doesn't support InnoDB.<br /><br />
56 <b>Note:</b> If the database doesn't exist Feng Office will try to create it. However, if the database user you supply doesn't have permissions to create databases, you will have to manually create the database before you can continue.
57 </td>
58 </tr>
59 </table>
60
61 <table class="formBlock">
62 <tr>
63 <th colspan="2">Other settings</th>
64 </tr>
65
66 <tr>
67 <td class="optionLabel"><label for="configFormAbsoluteUrl">Absolute script URL:</label></td>
68 <td><input type="text" name="config_form[absolute_url]" id="configFormAbsoluteUrl" value="<?php echo array_var($config_form_data, 'absolute_url', $installation_url) ?>" /></td>
69 </tr>
70
71 <tr>
72 <td class="optionLabel"><label for="configFormPlugins">Plugins to install:</label></td>
73 <td class="pluginOptions">
74 <?php include_once 'plugins.php' ;?>
75 </td>
76 </tr>
77 </table>