<div class="container-fluid">
    <div class="row">
        <div class="col-md-6">
            <?php if (isset($lastEditList)) { ?>
                <table class="table table-striped">
                    <caption>最新编辑</caption>
                    <thead>
                    <tr>
                        <th class="col-md-4">#</th>
                        <th class="col-md-16">标题</th>
                        <th class="col-md-4">时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($lastEditList as $key => $item) { ?>
                        <tr>
                            <td><?php echo $key + 1; ?></td>
                            <td>
                                <a href="<?php echo site_url('information/edit/' . $item->is_id); ?>"><?php echo $item->ic_url_title; ?></a>
                            </td>
                            <td><?php echo date('m/d/Y', strtotime($item->ic_datetime)); ?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
            <?php } ?>
        </div>
        <div class="col-md-16">
            <?php if ($this->config->item("site_code")=="chinatravel" || $this->config->item("site_code")=="shanghai"  ){ ?>
                <div class="row">
                        <div class="col-md-24">
                            <div class="panel panel-default">
                            <div class="panel-heading">此处用来添加根节点，点击右侧按钮<span class="pull-right" title="添加版块根节点"><a href="<?php echo site_url('welcome/AddRootNote/') ?>">添加版块根节点</a></span>
                                </div>
                         
                            </div>
                        </div>
                </div>
            <?php } ?>
            <?php foreach ($groupList as $item) {
                if ($item->is_level == 0) { ?>
                    <div class="row">
                        <div class="col-md-24">
                            <div class="panel panel-default">
                                <div class="panel-heading"><a href="<?php echo site_url('information/edit/'.$item->is_id) ?>"> <?php echo $item->ic_title; ?></a> <span class="pull-right" title="添加节点"><a href="<?php echo site_url('city/addnode/'.$item->is_id) ?>">+</a></span>
                                </div>
                                <div class="panel-body">
                                    <ul class="list-inline">
                                        <?php if ($item->is_level == 0) {
                                            foreach ($groupList as $item_child) {
                                                if ($item_child->is_parent_id == $item->is_id) {
                                                    echo ' <li><a href="' . site_url('information/edit/' . $item_child->is_id) . '">' . $item_child->ic_url_title . '</a></li> ';
                                                }
                                            }
                                        } ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php }
            } ?>
        </div>
        <div class="col-md-2">.col-xs-6 .col-md-4</div>
    </div>
</div>
