<div class="block">
    <button type="button" class="btn btn-primary add_route_item mb-1 hide">
        <i class="fa fa-fw fa-plus-square"></i> 添加
    </button>
    <div class="block-content p-0">
        <table class="js-table-sections table table-sm table-hover">
            <thead class="thead-dark">
                <tr>
                    <th style="width: 150px;"></th>
                    <th colspan="3">路由配置文件</th>
                </tr>
            </thead>
            <?php
            if (is_array($rs['route'])) foreach ($rs['route'] as $path => $route) { ?>
                <tbody class="js-table-sections-header">
                    <tr>
                        <td class="text-center">
                            <i class="fa fa-fw fa-angle-right text-muted"></i>
                        </td>
                        <th colspan="3"><i class=></i><?php echo $path; ?></th>
                    </tr>
                </tbody>
                <tbody class="font-size-sm">
                    <tr class="thead-light">
                        <th style="width: 150px;">路由</th>
                        <th>静态链接</th>
                        <th>动态链接</th>
                        <th></th>
                    </tr>
                    <?php $ridx = 0;
                    if (0) foreach ($route as $rkey => $rval) { ?>
                        <tr>
                            <td>
                                <div class="input-group input-group-sm">
                                    <input class="form-control" type="text" name="route[<?php echo $path; ?>][<?php echo $ridx; ?>][0]" value="<?php echo $rkey; ?>" />
                                    <div class="input-group-append">
                                        <button class="btn btn-sm btn-danger del_route" type="button"><i class="fa fa-fw fa-times"></i> </button>
                                    </div>
                                </div>
                            </td>
                            <td><input class="form-control" type="text" name="route[<?php echo $path; ?>][<?php echo $ridx; ?>][1]" value="<?php echo $rval[0]; ?>" /></td>
                            <td><input class="form-control" type="text" name="route[<?php echo $path; ?>][<?php echo $ridx; ?>][2]" value="<?php echo $rval[1]; ?>" /></td>
                        </tr>
                    <?php $ridx++;
                    } ?>
                </tbody>
            <?php
            } ?>
        </table>

    </div>
</div>
<script>
    jQuery(function() {
        One.helpers(['table-tools-sections']);
    });
</script>
<div class="form-group row">
    <label class="col-sm-1 col-form-label" for="config_iurl">内容网址</label>
    <div class="col-sm-8">
        <!-- <select name="menu" class="form-control" data-placeholder="请选择网址类型...">
            <option value="0">单入口模式[index.php?app=xxx&id=123]</option>
            <option value="1">主菜单[main]</option>
            <option value="2">主菜单[main]</option>
            <option value="3">主菜单[main]</option>
            <option value="4">主菜单[main]</option>
        </select> -->
        <textarea name="config[iurl]" id="config_iurl" class="form-control" style="height:120px;"><?php echo $rs['config']['iurl'] ? cnjson_encode($rs['config']['iurl']) : ''; ?></textarea>
    </div>
</div>