实现联系人的邮件联系链接

This commit is contained in:
wlx 2010-06-28 00:53:56 +00:00
parent 0c729f8c51
commit 2ed4e31227
2 changed files with 3 additions and 3 deletions

View File

@ -597,7 +597,7 @@ class DataController extends Zend_Controller_Action
$sql=$db->quoteInto($sql,$uuid);
$this->view->ref=$db->fetchAll($sql);
//相关用户
$sql="select p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id";
$sql="select p.email,p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id";
$this->view->authors=$db->fetchAll($sql,array($uuid));
//数据限制信息
$sql="select u.* from uselimit u left join mdlimit m on u.id=m.lid where m.uuid=?";

View File

@ -121,12 +121,12 @@ if ($author['role']!=$r)
}
if ($i>0) echo '';
$i+=1;
echo '<strong title="'.$author['organisation'].'">';
echo '<a href="mailto:'.$author['email'].'"><strong title="'.$author['organisation'].'">';
if (!empty($author['individual']))
echo $author['individual'];
else
echo $author['organisation'];
echo '</strong>';
echo '</strong></a>';
if ($k+1==count($this->authors)) echo '</li>';
endforeach;
?>