Last change
on this file since 31950 was
6222,
checked in by nikrou, 15 years ago
|
Database migration plugin : first public version
|
File size:
1.5 KB
|
Line | |
---|
1 | <div id="add-form"> |
---|
2 | <form action="" method="post"> |
---|
3 | <fieldset> |
---|
4 | {if $DM_ACTION=='edit'} |
---|
5 | <legend>{'Edit database configuration'|@translate}</legend> |
---|
6 | <p class="field"> |
---|
7 | <label>{'Database type'|@translate}</label> |
---|
8 | <span class="value">{$F_DB_ENGINES.$DBLAYER}</span> |
---|
9 | <input id="dblayer" type="hidden" name="dblayer" value="{$DBLAYER}"> |
---|
10 | </p> |
---|
11 | {else} |
---|
12 | <legend>{'New database configuration'|@translate}</legend> |
---|
13 | <p class="field"> |
---|
14 | <label>{'Database type'|@translate} |
---|
15 | <select name="dblayer" id="dblayer"> |
---|
16 | {html_options options=$F_DB_ENGINES selected=$DBLAYER} |
---|
17 | </select> |
---|
18 | </label> |
---|
19 | </p> |
---|
20 | {/if} |
---|
21 | <p class="field"> |
---|
22 | <label>{'Host'|@translate} |
---|
23 | <input type="text" name="db_host" value="{$DB_HOST}" tabindex="1"> |
---|
24 | </label> |
---|
25 | </p> |
---|
26 | <p class="field"> |
---|
27 | <label>{'User'|@translate} |
---|
28 | <input type="text" name="db_user" value="{$DB_USER}" tabindex="2"> |
---|
29 | </label> |
---|
30 | </p> |
---|
31 | <p class="field"> |
---|
32 | <label>{'Password'|@translate} |
---|
33 | <input type="text" name="db_password" value="{$DB_PASSWORD}" tabindex="3"> |
---|
34 | </label> |
---|
35 | </p> |
---|
36 | <p class="field"> |
---|
37 | <label>{'Database name'|@translate} |
---|
38 | <input type="text" name="db_base" value="{$DB_BASE}" tabindex="4"> |
---|
39 | </label> |
---|
40 | </p> |
---|
41 | <p class="field"> |
---|
42 | <label>{'Database table prefix'|@translate} |
---|
43 | <input type="text" name="prefix" value="{$PREFIX}" tabindex="5"> |
---|
44 | </label> |
---|
45 | </p> |
---|
46 | </fieldset> |
---|
47 | <p> |
---|
48 | <input class="submit" type="submit" name="submit" value="{'Submit'|translate}" tabindex="6"> |
---|
49 | </p> |
---|
50 | </form> |
---|
51 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.