Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/setup/templates/database.tpl
blob: f5e29a89d8fd667d8e4a260388c53a66fc7c0289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div>
<form action="index.php" method="post" name="database_form">
      <?php echo $message; ?>

      <h1><?= eL('databasesetup') ?></h1>
      <h2><?= eL('databaseconfiguration') ?><?php echo Filters::noXSS($version); ?></h2>
      <div class="installBlock">
            <table class="formBlock" style="width:auto">
            <tr>
               <td><?= eL('databasehostname') ?></td>
               <td align="left"><input required="required" type="text" name="db_hostname" value="<?php echo Filters::noXSS($db_hostname); ?>" /></td>
               <td><?= L('databasehostnamehint') ?></td>
            </tr>
            <tr>
               <td><?= eL('databasetype') ?></td>
               <td><select name="db_type">
                 <?php echo tpl_options(array_combine(array_map(create_function('$x', 'return $x[2];'), $databases), array_keys($databases)), $db_type); ?>
               </select>
               </td>
               <td><?= L('databasetypehint') ?></td>
            </tr>
            <tr>
               <td><?= eL('databasename') ?></td>
               <td align="left"><input required="required" type="text" name="db_name" value="<?php echo Filters::noXSS($db_name); ?>" /></td>
               <td><?= L('databasenamehint') ?></td>
            </tr>
            <tr>
               <td><?= eL('databaseusername') ?></td>
               <td align="left"><input required="required" type="text" name="db_username" value="<?php echo Filters::noXSS($db_username); ?>" /></td>
               <td rowspan="2"><?= L('databaseusernamehint') ?></td>
            </tr>
            <tr>
               <td><?= eL('databasepassword') ?></td>
               <td align="left"><input type="password" name="db_password" value="<?php echo Filters::noXSS($db_password); ?>" /></td>
            </tr>
            <tr>
               <td><?= eL('tableprefix') ?></td>
               <td align="left"><input type="text" maxlength="10" name="db_prefix" value="<?php echo Filters::noXSS($db_prefix); ?>" /></td>
               <td><?= L('tableprefixhint') ?></td>
            </tr>
            </table>

            <input type="hidden" name="action" value="administration" />
            <button class="button" type="submit" name="next" value="next"><?= eL('proceedtoadmin') ?></button>
      </div>
</form>
</div>