private function getSitemapSourceUrl($spaceUserName,$sourceId,$sourceType)
 {/*{{{*/
     switch ($sourceType)
     {
         case Space::SPACE_SITEMAP_SOURCE_CASE :
             $url = Thread::getStaticUrl($spaceUserName,$sourceId);
             break;
         case Space::SPACE_SITEMAP_SOURCE_ARTICLE :
             $url = Article::buildUrl($spaceUserName,$sourceId);
             break;
         case Space::SPACE_SITEMAP_SOURCE_FLOW :
             $url = DoctorPatientRef::getStaticUrl($spaceUserName,$sourceId);
             break;
         default:
             $url = '';
     }
     return $url;
 }/*}}}*/
Example #2
0
<?php if(empty($articleList) == false || empty($spaceCaseList) == false) { ?>

<div class="yyright_s">
<div class="top_bg"><?=$doctor->name?>大夫最新文章和回复的咨询</div>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="listyy">
	<?php foreach($articleList as $article) { ?>
	<tr>
		<td width="10%" valign="top"><img
			src="http://i1.hdfimg.com/hz/images/sohu//document.gif" width="16"
			height="16" /></td>
		<td width="70%"><a
            href="<?=Article::buildUrl($doctor->space->user->name, $article->id) ?>" class="blue"><?=$article->title ?></a>
		</td>
		
	</tr>
	<?php } ?>
</table>
<hr color="#999" size="1"></hr>
<?php foreach($spaceCaseList as $spaceCase) { ?>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="listyy">
	<tr>
		<td width="10%" valign="top"><img
			src="http://i1.hdfimg.com/images/common/user1_message.png" width="16"
			height="16" /></td>
		<td width="70%"><a href="<?=$spaceCase->getUrl() ?>"
			class="blue"><?=$spaceCase->title ?></a></td>
		
	</tr>
</table>
<?php } ?>
</div>