2012-12-03 10:08:25 +00:00
|
|
|
|
<?php
|
|
|
|
|
$config = Zend_Registry::get('config');
|
|
|
|
|
$this->headTitle($config->title->site);
|
|
|
|
|
$this->headTitle($this->infos['title']);
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/news.css');
|
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
2012-12-28 03:33:36 +00:00
|
|
|
|
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
2012-12-04 09:31:14 +00:00
|
|
|
|
$this->breadcrumb('<a href="/archives/'.$this->ptype.'/'.$this->type.'">'.$this->infos['typename'].'</a>');
|
2012-12-03 10:08:25 +00:00
|
|
|
|
$this->breadcrumb($this->infos['title']);
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
|
|
|
|
|
$this->headMeta()->appendName('keywords', $keyword);
|
|
|
|
|
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
|
|
|
|
?>
|
|
|
|
|
<div class="full center clear" id="body">
|
|
|
|
|
<div class="w300 Lfloat clear">
|
|
|
|
|
<div class="tbox">
|
|
|
|
|
<div class="title">栏目导航</div>
|
|
|
|
|
<div class="content navmenu">
|
|
|
|
|
<ul>
|
|
|
|
|
<?php
|
|
|
|
|
if(count($this->types))
|
|
|
|
|
{
|
|
|
|
|
foreach($this->types as $k=>$v)
|
|
|
|
|
{
|
|
|
|
|
$haed = "";
|
|
|
|
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
|
|
|
|
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
|
|
|
|
$haed = "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="Rfloat clear archive_body" id="archive_body">
|
|
|
|
|
|
|
|
|
|
<div class="title"><?php echo $this->infos['title'];?></div>
|
2012-12-05 07:31:51 +00:00
|
|
|
|
<div class="info">时间 : <?php echo date("Y-m-d H:i",strtotime($this->infos['ts_published']));?> 来源 : <?php echo $this->infos['source'];?></div>
|
2012-12-05 07:12:38 +00:00
|
|
|
|
<?php if(!empty($this->mdinfo)){?>
|
2012-12-07 07:49:37 +00:00
|
|
|
|
<?php foreach($this->mdinfo as $v){ ?>
|
|
|
|
|
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
|
|
|
|
<?php } } ?>
|
2012-12-03 10:08:25 +00:00
|
|
|
|
<div class="archive_content">
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2012-12-04 04:34:47 +00:00
|
|
|
|
<?php
|
|
|
|
|
if(!empty($this->infos['image']))
|
|
|
|
|
{
|
|
|
|
|
echo '<div style="width:100%;text-align:center"><img src="'.$this->infos['image'].'" /></div>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
2012-12-03 10:08:25 +00:00
|
|
|
|
<?php echo $this->infos['body'];?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
$('#archive_body').width($('#body').width()-320);
|
|
|
|
|
$('#archive_body .archive_content img').css("max-width",$('#archive_body').width());
|
|
|
|
|
</script>
|