sections.php 1.83 KB
<div id="static_page">
    <div class="inner"><?= $this->flash->output(); ?></div>
    <div class="inner">
        <div class="table_name header_gradient">Загрузка разделов</div>

        <div class="table_pages_wrapper">

            <form enctype="multipart/form-data" method="post" action="" id="email_event_add_edit">


                <div class="input-group">
                    <div class="label"><label for="name">Файл с данными</label></div>
                    <div class="input"><input type="file" name="table" id="name" value=''></div>
                </div>

                <div class="input-group">
                    <input type="submit" class="news_submit float" name="save" value="Сохранить">
                </div>

            </form>

        </div>

        <div class="table_pages_wrapper">

            <table class="table table-hover" data-url="">
                <thead>
                <tr>
                    <th>ID раздела</th>
                    <th>Название раздела</th>
                    <th>ID товара</th>
                    <th>Название товара</th>
                    <th>Цена</th>
                </tr>
                </thead>
                <tbody id="result">
                <?php foreach ($data as $item):?>
                    <tr>
                        <td><?=$item->parserSections->section_user_id; ?></td>
                        <td><?= $item->parserSections->section_name; ?></td>
                        <td><?= $item->parserItems->item_users_id ?></td>
                        <td><?= $item->parserItems->item_name ?></td>
                        <td><?= $item->parserItems->price ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>

        </div>

    </div>
</div>