fix ticket #114. 改变投影展示方式

This commit is contained in:
wlx 2009-12-30 03:42:22 +00:00
parent 8a86a91a11
commit 2ee8e4195b
1 changed files with 12 additions and 1 deletions

View File

@ -49,7 +49,18 @@
<li id="downtimes">下载:<?php echo $this->downloaded; ?></li> <li id="downtimes">下载:<?php echo $this->downloaded; ?></li>
<?php endif; ?> <?php endif; ?>
<li id="viewtimes">浏览量:<?php echo $this->viewed; ?></li> <li id="viewtimes">浏览量:<?php echo $this->viewed; ?></li>
<li id="projection" title="<?= $this->projection; ?>">数据投影:<?php if (is_numeric($md->projection)) echo 'EPSG_CODE_'; echo $md->projection; ?></li> <li id="projection" title="<?= $this->projection; ?>">数据投影:
<?php
$p=explode(" ",$this->projection);
$p=explode("=",$p[0]);
if (!empty($p[1]))
echo $p[1];
else
{
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
echo $md->projection;
}
?></li>
<?php if (!empty($md->timebegin)) : ?> <?php if (!empty($md->timebegin)) : ?>
<li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li> <li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
<?php endif; ?> <?php endif; ?>