<?php foreach ($list as $key => $g) { ?>
  <div class="panel-body feed_box nopadding">
      <div class="media">
        <div class="media-body">
          <h4 class=" result-title">订单号: <?php echo $g->COLI_ID; ?></h4>
          <p>订单类型：<?php echo $g->COLI_OrderType;?></p>
          <p>报价名称：<?php echo $g->PTI_Name;?></p>
          <p>订单人数：<?php echo $g->COLI_PersonNum;?></p>
          <p>预订天数：<?php echo $g->COLI_Days;?>，出发日期是<?php echo $g->COLI_OrderStartDate;?></p>
          <p>订单来源于<?php echo $g->COLI_OrderSource;?>，提交日期是<?php echo $g->COLI_ApplyDate;?></p>
        </div>
      </div>
      <div class="col-xs-24 nopadding">
        <a href="javascript:void(0);" class="guideinfomodal" data-url="<?php echo site_url('apps/partners/index/customerinfo/'.$g->Vkey);?>" style="border-right:1px solid #ddd;padding-right:10px;text-decoration: underline;">客人信息</a>
        <a href="javascript:void(0);" class="guideinfomodal" data-url="<?php echo site_url('apps/partners/index/groupinfo/'.$g->COLI_GRI_SN);?>" style="border-right:1px solid #ddd;padding:0 10px;text-decoration: underline;">团信息</a>
        <a href="javascript:void(0);" class="guideinfomodal" data-url="<?php echo site_url('apps/partners/index/guideinfo/'.$g->COLI_GRI_SN);?>" style="padding-left:10px;text-decoration: underline;">地接导游</a>
        <a href="javascript:void(0);" class="mailinfo_link guideinfomodal" data-action="<?php echo site_url('apps/partners/index/mail_info/'.$g->COLI_ID); ?>" style="padding-left:10px;text-decoration: underline;">来往邮件</a>
        <?php if(!empty($g->SFI_FileName)){ ?>
        <!-- \\202.103.68.102/h846513t\letter\  -->
        <!-- 原来的地址： http://www.chinahighlights.com/community/tourManager/letter <?php echo $g->SFI_Location.$g->SFI_FileName;?>.html -->
        <!-- http://202.103.68.35/letter/2019/6/Melissa-Trip-Proposal-CLA190611064-1.html -->
        <a target="_blank" href="http://202.103.68.35/letter<?php echo $g->SFI_Location.$g->SFI_FileName;?>.html" 
        style="padding-left:10px;text-decoration: underline;">确认信</a>
        <?php } ?>
      </div>
      <div class="col-xs-24 btn-lg"></div>
    </div>
  <?php } ?>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content guidemodalcontent">     
    </div>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function(){
  $(".guideinfomodal").click(function(){
    $(".guidemodalcontent").html('');
    var url=$(this).attr('data-url');
    $(".guidemodalcontent").load(url);
    $('#myModal').modal('show');
  });

  $("body").on("click",".mailinfo_link",function()
  {
      var url=$(this).attr('data-action');
      $.post(url,'',function(html){
        $(html).appendTo("body");
        $('.bs-example-modal-lg').modal({
          keyboard: true,
          backdrop: 'static'
        });
        $('.bs-example-modal-lg').modal('show');
      });
  });
});
</script>