source: extensions/database_migration/template/admin_config.tpl @ 6222

Last change on this file since 6222 was 6222, checked in by nikrou, 14 years ago

Database migration plugin : first public version

File size: 1.3 KB
Line 
1{known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"}
2{html_head}
3<script type="text/javascript" src="{$DM_JS}/admin.js"></script>
4{/html_head}
5
6<ul class="actions">
7  <li><a href="{$U_DM_LIST}">{'List'|@translate}</a>|</li>
8  <li><a href="{$U_DM_ADD_CONNECTION}">{'New'|@translate}</a></li> 
9</ul>
10
11{if (($DM_ACTION=='add') || ($DM_ACTION=='edit'))}
12{include file="$DM_TPL/form.tpl"}
13{/if}
14
15<table class="table2">
16  <thead>
17    <tr class="throw">
18      <th>{'Database type'|@translate}</th>
19      <th colspan="2"></th>
20    </tr>
21  </thead>
22  <tbody>
23    {foreach from=$CONNECTIONS key=dblayer item=connection name=connection_loop}
24    <tr class="{if $smarty.foreach.connection_loop.index is odd}row1{else}row2{/if}">
25      <td>
26        {$F_DB_ENGINES.$dblayer}
27      </td>
28      <td>
29        <a href="{$U_DM_EDIT_CONNECTION}{$dblayer}"><span>{'Edit'|@translate}</span></a>
30      </td>
31      <td>
32        <a class="confirm" title="{'Are you sure ?'|@translate}" href="{$U_DM_DELETE_CONNECTION}{$dblayer}"><span>{'Delete'|@translate}</span></a>
33      </td>
34    </tr>
35    {foreachelse}
36    <tr>
37      <td colspan="3">
38        <p>{'No connection defined'|@translate}</p>
39        <p>{'First we will create new configuration file for your new database.'|@translate}</p>
40      </td>
41    </tr>
42    {/foreach}
43  </tbody>
44</table>
Note: See TracBrowser for help on using the repository browser.