<?php
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
?>
<div class="listArea">
    <table width="100%" cellspacing="0" class="list">
        <tr>
            <th class="min"><?php echo $this->lmsg('components.forms.backup.conflict-database.serverType'); ?></th>
            <th><?php echo $this->lmsg('components.forms.backup.conflict-database.hostName'); ?></th>
            <th><?php echo $this->lmsg('components.forms.backup.conflict-database.port'); ?></th>
            <th><?php echo $this->lmsg('components.forms.backup.conflict-database.destinationDbServer'); ?></th>
        </tr>
        <?php foreach($this->dbMapping as $id => $db): ?>
        <tr>
            <td class="min"><?php echo $db['type'] ?></td>
            <td><?php echo $db['host'] ?></td>
            <td><?php echo $db['port'] ?></td>
            <td>
                <?php
                    if ($this->element->getElement($id)->getType() == 'CommonPanel_Form_Element_Hidden') {
                        echo $this->lmsg('components.forms.backup.conflict-database.migrationDbServerNotFind');
                    };
                    echo $this->elementPart($this->element->getElement($id))->content();
                ?>
            </td>
        </tr>
        <?php endforeach ?>
    </table>
</div>