修复投影处理错误,设置DOC默认字体为宋体

This commit is contained in:
wlx 2011-10-23 09:45:26 +00:00
parent 61ebcda5af
commit e95557c058
1 changed files with 5 additions and 4 deletions

View File

@ -1398,11 +1398,12 @@ class DataController extends Zend_Controller_Action
if (is_numeric($row['projection'])) if (is_numeric($row['projection']))
{ {
$sql="select proj4text from spatial_ref_sys where auth_srid=?"; $sql="select proj4text from spatial_ref_sys where auth_srid=?";
$rs=$this->db->fetchRow($sql,array((int)$row['projection'])); $rs=$this->db->fetchRow($sql,array($row['projection']));
if ($rs) $projection=$rs['proj4text']; if ($rs) $projection=$rs['proj4text'];
} }
if (empty($prjection)) $projection=$row['projection']; if (empty($projection)) $projection=$row['projection'];
} } else
$projection='';
$dom = new DOMDocument(); $dom = new DOMDocument();
$dom->loadXML($row['data']); $dom->loadXML($row['data']);
@ -1428,7 +1429,7 @@ class DataController extends Zend_Controller_Action
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'; <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
$content.='<title>'.$row['title'].'</title>'; $content.='<title>'.$row['title'].'</title>';
$content.='<style> $content.='<style>
body{MARGIN-RIGHT: auto;MARGIN-LEFT: auto;font-size:14px;line-height:22px;} body{MARGIN-RIGHT: auto;MARGIN-LEFT: auto;font-size:14px;line-height:22px;font-family:宋体,Arial;}
span{font-size:14px;} span{font-size:14px;}
div{clear: both;margin: 0 auto;width:100%;vertical-align:baseline;} div{clear: both;margin: 0 auto;width:100%;vertical-align:baseline;}
#uuid{text-align: right;} #uuid{text-align: right;}