<div class="row-fluid">
    <div class="span2">
        <ul class="nav nav-list">
            <li class="nav-header">微博关注</li>
            <li>
                <a href="http://weibo.com/u/1918723095" target="_blank"><img src="/css/images/100000<?php echo rand(0, 5); ?>.gif" /></a>
                <!--08987705 ycc-->
            </li>

            <li class="divider"></li>

            <li class="nav-header">信息模块</li>
            <li><a href="<?php echo site_url('home') ?>">首页</a></li>
            <li><a href="<?php echo site_url('special') ?>">专题管理</a></li>
            <li><a href="<?php echo site_url('link') ?>">交换链接</a></li>
            <li><a href="<?php echo site_url('airport') ?>">机场信息</a></li>
            <li><a href="<?php echo site_url('airline') ?>">航空公司</a> </li>
            <li><a href="<?php echo site_url('news') ?>">新闻</a></li>
            <li><a href="<?php echo site_url('festival') ?>">节庆管理</a></li>
            <li><a href="<?php echo site_url('embassy') ?>">大使馆</a></li>
            <li><a href="<?php echo site_url('railway') ?>">火车站信息</a></li>
            <li><a href="<?php echo site_url('groupon') ?>">团购信息</a></li>
            <li><a href="<?php echo site_url('faq') ?>">FAQ</a></li>
            <li><a href="<?php echo site_url('overseas') ?>">海外目的地</a></li>
            <?php if ($this->config->item('site_code') != 'cht') { ?>
                <li><a href="<?php echo site_url('cache/update'); ?>" target="_blank">静态化更新链接</a></li>
            <?php } else { ?>
                <li><a href="<?php echo site_url('welcome/create_all_urls') ?>">静态化更新链接</a></li>
            <?php } ?>
            <li><a href="<?php echo site_url('sitemap') ?>">生成Sitemap</a></li>
            <?php if ($this->config->item('site_code') == 'cht') { ?>
                <li><a href="<?php echo site_url('/coupon/zodiac') ?>">促销订单查询</a></li>
            <?php } ?>
            <li class="divider"></li>
            <li><a href="/sample/" target="_blank">sample</a> </li>
            <li><a href="<?php echo site_url('accessmanage') ?>">权限管理</a> </li>
            <li><a href="<?php echo site_url('analytics') ?>">首访统计</a></li>
            <li><a href="<?php echo site_url('look_order') ?>">技术值班</a></li>
            <li><a href="http://europe.chtcdn.com/designer/" target="_blank">SQL设计</a></li>
            <li><a href="/cht123-setup.exe">CHT123下载</a></li>
            <li><a href="http://202.103.68.49:89/" target="_blank">社媒分享数分析</a></li>
            <li><a href="<?php echo site_url('keyworlds/update_cdn') ?>" target="_blank">CDN定时更新</a> </li>
            <li><a href="<?php echo site_url('sendmail') ?>">订单邮件管理</a> </li>
            <li><a href="http://share.chtcdn.com/info.php/infoshare/" target="_blank">信息分享平台</a> </li>
            <li><a href="<?php echo site_url('welcome/create_all_urls') ?>" target="_blank">全站静态化更新</a> </li>
            <li><a href="<?php echo site_url('welcome/create_all_urls/amp') ?>" target="_blank">全站AMP更新</a> </li>
            <li class="divider"></li>


        </ul>

    </div>
    <div class="span8">
        <?php if (isset($lastEditList)) { ?>

            <legend>最新编辑信息</legend>
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th class="span1">#</th>
                        <th class="span7">标题</th>
                        <th class="span2">编辑</th>
                        <th class="span1">时间</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 get_author_name($item->ic_author); ?></td>
                            <td><?php echo date('m/d/Y', strtotime($item->ic_datetime)); ?></td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>
            <legend>国家：</legend>
            <div class="span12">
                <ul class="row">
                    <?php foreach ($countryList as $item) { ?>
                        <li style="display:inline-block;padding-right:15px;"><a href="<?php echo site_url('country/' . $item->COI_SN) ?>"> <?php echo $item->COI2_Country ?> </a></li>
                    <?php } ?>
                </ul>
                <div class="span12 btn-large"></div>
            </div>

            <legend>直辖市和特区</legend>
            <?php foreach ($city_list as $item) { ?>
                <li style="display:inline-block;padding-right:15px;"><a href="<?php echo site_url('city/' . $item->CII_SN) ?>"><?php echo $item->CII2_Name ?></a></li>
            <?php } ?>
            <div class="span12 btn-large"></div>

            <legend>省份</legend>
            <?php foreach ($provinceList as $item) { ?>
                <li style="display:inline-block;padding-right:15px;"><a href="<?php echo site_url('province/' . $item->PRI_SN) ?>"><?php echo $item->PRI2_Name ?></a></button></li>
            <?php } ?>


        <?php } ?>

        <?php if (isset($coupon)) { ?>
            <div class="span10">
                <legend>生肖促销订单</legend>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th width="2%" align="center">#</th>
                            <th>用户名</th>
                            <th>Email</th>
                            <th>优惠代码</th>
                            <th>优惠价格</th>
                            <th>IP地址</th>
                            <th>提交时间</th>
                            <th>失效时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $i = 0;
                        foreach ($coupon as $rsc) {
                            $i += 1;
                        ?>
                            <tr>
                                <td width="2%" align="center"><?php echo $i ?></td>
                                <td><?php echo $rsc->username ?></td>
                                <td><?php echo $rsc->useremail ?></td>
                                <td><?php echo $rsc->coupon_no ?></td>
                                <td><?php echo '$' . (int) $rsc->price ?></td>
                                <td><?php echo $rsc->userip ?></td>
                                <td><?php echo date("Y-m-d H:i:s", strtotime($rsc->addtime)) ?></td>
                                <td><?php echo date("Y-m-d H:i:s", strtotime($rsc->invalid_date)) ?></td>
                            </tr>
                        <?php } //end of foreach 
                        ?>
                    </tbody>
                </table>
            <?php } //end of $coupon
            ?>



            <?php if (isset($search_list)) { ?>
                <legend>搜索结果</legend>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th class="span1">#</th>
                            <th class="span7">标题</th>
                            <th class="span2">编辑</th>
                            <th class="span1">时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $is_ids = false;
                        foreach ($search_list as $key => $item) {
                            $is_ids .= $item->is_id . ',';
                        ?>
                            <tr class="<?php if (!empty($item->ic_content) && $item->ic_status == 1) {
                                            echo 'info';
                                        } ?>">
                                <td><?php echo $key + 1; ?></td>
                                <td><a href="<?php echo site_url('information/edit/' . $item->is_id); ?>"><?php if (empty($item->ic_url_title)) $item->ic_url_title = '编辑信息';
                                                                                                            echo $item->ic_url_title; ?></a></td>
                                <td><?php echo get_author_name($item->ic_author); ?></td>
                                <td><?php echo date('m/d/Y', strtotime($item->ic_datetime)); ?></td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
                <?php if (!empty($is_ids)) {
                    $is_ids .= '0'; ?>
                    <p> <a href="<?php echo site_url('welcome/create_infomation_urls_by_ids/?key=' . $is_ids); ?>" target="_blank" class="btn pull-right">批量更新搜索页面</a> </p>
                <?php } ?>
            <?php } ?>



            <?php if (isset($cityList)) { ?>
                <legend>省份城市列表</legend>
                <table class="table table-striped">
                    <caption><strong><a href="<?php echo site_url('province/edit/' . $province->PRI_SN) ?>"><?php echo $province->PRI2_Name ?></a></strong></caption>
                    <thead>
                        <tr>
                            <th class="span2">字母</th>
                            <th class="span10">城市列表</th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php for ($i = 65; $i <= 90; $i++) { ?>
                            <tr>
                                <td><?php echo chr($i); ?></td>
                                <td>

                                    <?php
                                    foreach ($cityList as $item) {
                                        if (substr($item->CII_Code, 0, 1) == chr($i)) {
                                    ?>
                                            <a href="<?php echo site_url('city/' . $item->CII_SN); ?>"><?php echo $item->CII2_Name; ?></a> ,
                                    <?php
                                        }
                                    }
                                    ?>

                                </td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            <?php } ?>

            <?php
            if (isset($seo_form_view)) {
                echo $seo_form_view;
            }
            ?>


            </div>

            <div class="span2">
                <?php if (isset($last_city_list)) { ?>
                    <legend>最新编辑城市</legend>
                    <div class="well span11" style="height:912px;">
                        <ul class="nav nav-list">
                            <?php
                            foreach ($last_city_list as $key => $item) {
                            ?>
                                <li><a href="<?php echo site_url('city/' . $item->CII2_CII_SN); ?>"><?php echo $item->CII2_Name; ?></a></li>
                            <?php } ?>
                        </ul>
                    </div>
                <?php } ?>
            </div>
    </div>