<style type="text/css">
    body{background: none;}
</style>
<link type="text/css" rel="stylesheet" href="/css/webht/jquery.suggest.css" />
<link type="text/css" rel="stylesheet" href="/css/webht/jquery-ui-1.10.0.custom.css">
<script src="/js/jquery-ui.min.js?v=1"></script>
<script type="text/javascript" src="/js/jquery.suggest.js"></script>    
<script type="text/javascript">
    $(document).ready(function() {
        $('#from_date,#to_date').datepicker({
            inline: true,
            dateFormat: 'yy-mm-dd'
        });
    });
</script>
<div class="container" style="padding-bottom:100px;">
    <div class="row">
        <div class="col-xs-24 btn-lg"></div>
        <div class="col-xs-24">
            <h3>榜样录评选事迹表 
                <small>
                    <form name="form_search_value" class="pull-right" method="post" action="<?php echo site_url('apps/outlook/index/example_table'); ?>" >
                        <input type="text" id="from_date" name="from_date" placeholder="起始日期" value="<?php echo empty($from_date) ? false : date('Y-m-d', $from_date); ?>" autocomplete="off">
                        <input type="text" id="to_date" name="to_date" placeholder="截止日期" value="<?php echo empty($to_date) ? false : date('Y-m-d', $to_date); ?>" autocomplete="off">
                        <button class="btn" type="submit">搜索</button>
                    </form>
                </small> 
            </h3>



            <table class="table table-bordered" style="font-size: 16px;">
                <tbody>
                    <?php foreach ($mail_text as $name => $mail) { ?>
                        <tr>
                            <td class="col-xs-3 text-center" style="border-color:#e26a05;"><?php echo preg_replace("/\(.*\)/", '', $name); ?></td>
                            <td style="border-color:#e26a05;">
                                <?php
                                $col_nums = count($mail);
                                foreach ($mail as $key => $m) {
                                    ?>
                                    <p><a href="<?php echo site_url('apps/outlook/index/like/' . $m->whm_identify . '/comment') ?>"><?php echo $m->whm_subject; ?></a></p>
                                    <?php if ($col_nums > 1 && $key != $col_nums - 1) { ?>
                                        <div class="row" style="margin:0 -9px;">
                                            <legend style="border-color:#e26a05;margin-bottom:10px;"></legend>
                                        </div>
                                    <?php } ?>
                                <?php } ?>
                            </td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
</div>