<div class="col-xs-24 content mail_box">

    <ul class="row mail_list mail_box_title hidden-xs">
      <a href="javascript:void(0);" style="cursor:default;color:#000;">
      <li class="col-sm-6 nopadding-L"><strong>发件人</strong></li>
      <li class="col-sm-13 col-md-15"><strong>主题</strong></li>
      <li class="col-sm-5 col-md-3 nopadding-L"><strong>时间</strong></li>
      </a>
   </ul>
   <ul class="row mail_list mail_loading_box hidden">
      <li class="col-xs-24"><img src="/images/loading.gif"> <small class="text-muted">正在更新收件箱</small>...</li>
   </ul>
   <?php foreach ($list as $key => $mail) { ?>
     <ul class="row mail_list">
      <a class="<?php echo $mail->mail_seen==1?'seen':'unseen'; ?>" href="<?php echo site_url('mail/detail/'.$mail->mail_sn); ?>">
      <li class="col-sm-6 nopadding-L" style="overflow:hidden;"><?php echo $mail->mail_from; ?></li>
      <li class="col-sm-13 col-md-15"><?php echo str_replace('#@#', "'",$mail->mail_subject); ?></li>
      <li class="col-sm-5 col-md-3 nopadding-L"><?php echo date('Y-m-d H:i',strtotime($mail->mail_date)); ?></li>
      </a>
   </ul>
    <?php } ?>

    <div class="col-xs-24">
      <nav>
        <ul class="pager pull-left" data-search="<?php echo isset($condition) ? $condition : '1'; ?>">
            <?php echo isset($pageinfo['htmls'])?$pageinfo['htmls']:''; ?>
        </ul>
      </nav>
    </div>
    
  
</div>

<script type="text/javascript">
  update_mail_list();

  $(".pager>li>a").on('click',function(event){
    if ($(".pager").attr('data-search')!='1') {
      event.preventDefault();
      var url=$(this).attr('href');
      $("#form-search-mail").attr('action',url).submit();
    };
  });
</script>