<?php
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
$formname    = "form_mandant_list";
$inputname   = "input_id";
?>
    <ul class="toolbar_menu">
        <?= button("new", $translation->get("new"), $formname, "loadCard('new', true)"); ?>
        <?= button("import", $translation->get("import"), $formname, "loadCard('import', true)"); ?>
    </ul>

<div id="mainContent">

    <?php echo current_website_language($site, $language); ?>
    <h1><?php echo get_translation('top_mandant'); ?></h1>

    <form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
        <input type="hidden" class="selected_linklist_row" name="input_id" value="" />

        <div class="requestLoader"></div>
        <?
        $query  = "SELECT id, description AS '" . $translation->get("name") . "', address AS '" . $translation->get("address") . "', link_website AS '" . $translation->get("link_website") . "' FROM main_mandant ORDER BY description ASC";
        $format = array("option", "text", "text", "text");
        if ($result = mysqli_query($GLOBALS['mysql_con'], $query)) {
            linklist($result, "form_mandant_list", $format);
        }
        ?>

    </form>
</div>