westdc-zf1/application/admin/views/scripts/data/newsletter.phtml

40 lines
1.4 KiB
PHTML
Raw Permalink Normal View History

2009-03-06 03:20:46 +00:00
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据通讯管理</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
数据通讯上传格式要求PDF文件名称为newsletter_N.pdf格式其中N为数字代表第几期。
<?= $this->form; ?>
<?php
foreach ($this->newsletters as $nl){
$name=basename($nl,'.pdf');
list(,$num)=explode("_",$name);
?>
<div class="newsletter">
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">
<img src="/images/newsletter/<?php echo $name; ?>.jpg" /></a><br />
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank"><?php echo $num;?>期数据通讯</a>
</div>
<?php } ?>
</div>