若数据无投影,则不显示投影

This commit is contained in:
wlx 2010-01-05 02:57:07 +00:00
parent d3e7af02b1
commit aa6b531f3d
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ echo '</ul></div>';
<li id="downtimes">下载:<?php echo $this->downloaded; ?></li>
<?php endif; ?>
<li id="viewtimes">浏览量:<?php echo $this->viewed; ?></li>
<?php if ($this->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影:
<?php
$p=explode(" ",$this->projection);
@ -71,6 +72,7 @@ else
echo $md->projection;
}
?></li>
<?php endif; ?>
<?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>
<?php endif; ?>