|
|
<div class="col-xs-24 content mail_box">
|
|
|
|
|
|
|
|
|
<nav class="navbar navbar-default mail_action_nav">
|
|
|
<div class="container-fluid nopadding-L">
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
<div class="collapse navbar-collapse nopadding-L" id="bs-example-navbar-collapse-1" >
|
|
|
<ul class="nav navbar-nav">
|
|
|
<li><a href="<?php echo site_url('mail/reply/'.$mail_text->mail_sn.'/0') ?>">答复</a></li>
|
|
|
<li><a href="<?php echo site_url('mail/reply/'.$mail_text->mail_sn.'/1') ?>">全部答复</a></li>
|
|
|
<li><a href="<?php echo site_url('mail/reply/'.$mail_text->mail_sn.'/2') ?>">转发</a></li>
|
|
|
<li class="dropdown">
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span></a>
|
|
|
<ul class="dropdown-menu mail_more_action">
|
|
|
<li><a class="load-modal" data-modal="linkorderModal" data-href="<?php echo site_url('mail/link_orderno/'.$mail_text->mail_sn.'/'.$mail_text->mail_o_orderno) ?>" href="javascript:void(0);">关联订单</a></li>
|
|
|
<li role="separator" class="divider"></li>
|
|
|
<li><a onclick='do_submit("","<?php echo site_url('mail/delete/'.$mail_text->mail_sn); ?>");' href="javascript:void(0);">删除邮件</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
</div><!-- /.container-fluid -->
|
|
|
</nav>
|
|
|
|
|
|
<div class="col-xs-24 mail_detail_header">
|
|
|
<h4><strong><?php echo str_replace('#@#', "'",$mail_text->mail_subject); ?></strong><small class="pull-right <?php echo $mail_text->mail_o_orderno==0?'hidden':''; ?>"><a target="_blank" href="<?php echo site_url('index/detail/0/'.$mail_text->mail_o_orderno); ?>">查看订单信息:<?php echo $mail_text->mail_o_orderno;?></a></small></h4>
|
|
|
<p><span class="text-primary">发件人:</span><?php echo $mail_text->mail_from; ?></p>
|
|
|
<p><span class="text-primary">时 间:</span><?php $weekarr=array(0=>'日',1=>'一',2=>'二',3=>'三',4=>'四',5=>'五',6=>'六',); $datestring=strtotime($mail_text->mail_date); echo date('Y年m月d日',$datestring).'(星期'.$weekarr[date('w',$datestring)].')'.date('H:i',$datestring); ?></p>
|
|
|
<p><span class="text-primary">收件人:</span><?php echo htmlspecialchars($mail_text->mail_to); ?></p>
|
|
|
<p class="<?php echo empty($attachments[0])?'hidden':''; ?>">
|
|
|
<span class="text-primary">附 件:</span>
|
|
|
<?php foreach ($attachments as $a) { if(!empty($a)){ $attach=explode('|@@|', $a); ?>
|
|
|
<a href="<?php echo $attach[2]; ?>"><?php $attach_temp=explode(':', $attach[1]);echo str_replace('#@#', "'",$attach_temp[0]); ?></a>,
|
|
|
<?php } } ?>
|
|
|
</p>
|
|
|
</div>
|
|
|
<legend style="border-bottom:1px solid #aaa;"></legend>
|
|
|
<div class="col-xs-24">
|
|
|
<iframe id="iframepage" src="<?php echo site_url('mail/detail/'.$mail_text->mail_sn.'/1'); ?>" width="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" onLoad="init_iframe_height();"></iframe>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
function init_iframe_height() {
|
|
|
var ifm= document.getElementById("iframepage");
|
|
|
var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;
|
|
|
if(ifm != null && subWeb != null) {
|
|
|
ifm.height = subWeb.body.scrollHeight;
|
|
|
ifm.width = subWeb.body.scrollWidth;
|
|
|
}
|
|
|
}
|
|
|
</script>
|