?> </span></nobr></td> <td valign="top"><?php echo $disease->thesaurus; ?> </td> <td valign="top"><?php echo parselink($disease->related, $disease->id); ?> </td> <td valign="top"><?php echo parselink($disease->relatedWords, $disease->id); ?> </td> <td valign="top"><?php echo parselink($disease->parentName . "|" . $disease->parentKey, $disease->id); ?> </td> <td valign="top"><a href="/disease/detail?id=<?php echo $disease->id; ?> " onclick="">编辑</a><br /> <a href="/disease/contentlist?key=<?php echo $disease->key; ?> " target="_blank">文章</a><br /> <table width="37" border="0" cellspacing="2" cellpadding="0"> <tr> <td height="5" width="5" bgcolor="<?php echo $disease->contentStatus & 1 ? '#009966' : '#FF0000'; ?>
function simplepage($pagecount, $curpage, $mpurl, $style, $lang = array('prev' => '上一页', 'next' => '下一页')) { $return = ''; $next = $pagecount > $curpage ? '<a class="prev" href="' . parselink($mpurl, $curpage + 1) . '">' . $lang['next'] . '</a>' : ''; $prev = $curpage > 1 ? '<a class="next" href="' . parselink($mpurl, $curpage - 1) . '">' . $lang['prev'] . '</a>' : ''; if ($next || $prev) { $return = '<div class="' . $style . '">' . $prev . $next . '</div>'; } return $return; }
function theme_result($result, $keyword = '', $admin = false) { include_once "login.inc.php"; include_once "hot.inc.php"; if (user_is_authenticated()) { include_once "like.inc.php"; $allfav = get_likes(32767, ""); include_once "apply_sent.inc.php"; $allapp = get_sent_applies(32767, ""); } $content = ""; foreach ($result as $r) { if ($keyword) { $jg = parsekeyword($keyword, parselink(str_replace(array("<", ">"), array("<", ">"), $r['content']))); } else { $jg = parselink(str_replace(array("<", ">"), array("<", ">"), $r['content'])); } $tags = get_tags($r['tweet_id']); if (strstr($r['source'], '<')) { $source = str_replace("<a ", '<a target="_blank" class="left microblog-item-position"', $r['source']); } else { $source = '<a class="left microblog-item-position" target="_blank">' . $r['source'] . '</a>'; } $content .= '<div class="microblog-item" id="' . strtotime($r['post_datetime']) . '"> <div class="left microblog-item-pic"> <a target="_blank" href="' . BASE_URL . 'profile/' . $r['post_screenname'] . '"><img alt="" width="50" height="50" src="' . $r['profile_image_url'] . '"/></a> </div> <div class="left microblog-item-content"> <div class="microblog-item-blog"> <a class="microblog-item-blog-name" target="_blank" href="' . BASE_URL . 'profile/' . $r['post_screenname'] . '">' . $r['post_screenname'] . '</a>:' . $jg . ' </div>'; if ($r['thumbnail']) { $content .= ' <div><a onclick="ShowMiddlePic(\'' . str_replace("/thumbnail/", "/bmiddle/", $r['thumbnail']) . '\')"><img src="' . $r['thumbnail'] . '" /></a></div>'; } $content .= ' <div class="microblog-item-other"> <a target="_blank" href="http://api.t.sina.com.cn/' . $r['user_site_id'] . '/statuses/' . $r['tweet_site_id'] . '" class="left microblog-item-time">' . time_tran($r['post_datetime']) . '</a> ' . $source; if ($admin) { $content .= '<a class="right item-control last delete" onclick="DeleteTweet(\'' . $r['tweet_id'] . '\', this)">删除</a>'; } else { if (user_is_authenticated()) { $fav = 0; $app = 0; foreach ($allfav as $f) { if ($f['tweet_id'] == $r['tweet_id']) { $fav = 1; break; } } foreach ($allapp as $f) { if ($f['tweet_id'] == $r['tweet_id']) { $app = 1; break; } } if (!$fav) { $content .= '<a class="right microblog-item-control like" onclick="JobLike(this,\'' . $r['tweet_id'] . '\')">收藏</a><a class="right microblog-item-control unlike" style="display: none;" onclick="JobUnLike(this,\'' . $r['tweet_id'] . '\')">取消收藏</a> '; } else { $content .= '<a class="right microblog-item-control like" style="display: none;" onclick="JobLike(this,\'' . $r['tweet_id'] . '\')">收藏</a><a class="right microblog-item-control unlike" onclick="JobUnLike(this,\'' . $r['tweet_id'] . '\')">取消收藏</a> '; } $role = get_current_user_role(); if ($role == 1) { if ($r['type'] != 1 and !$app) { $content .= '<a class="right microblog-item-control microblog-item-apply apply" onclick="JobApply(this,\'' . $r['tweet_id'] . '\',\'' . $r['post_screenname'] . '\')"> 申请该职位</a><a class="right microblog-item-control microblog-item-apply unapply" style="display: none;" onclick="JobUnApply(this,\'' . $r['tweet_id'] . '\')"> 取消申请</a>'; } elseif ($app) { $content .= '<a class="right microblog-item-control microblog-item-apply apply" style="display: none;" onclick="JobApply(this,\'' . $r['tweet_id'] . '\',\'' . $r['post_screenname'] . '\')"> 申请该职位</a><a class="right microblog-item-control microblog-item-apply unapply" onclick="JobUnApply(this,\'' . $r['tweet_id'] . '\')"> 取消申请</a>'; } } } if ($tags) { $content .= '</div><div class="microblog-item-other1"> <span class="left microblog-item-relate">相关职位:</span> '; foreach ($tags as $t) { $content .= '<a class="left keyword microblog-item-relate" onclick="SearchContent(false, \'' . $t . '\', 0, 0)">' . $t . '</a>'; } } } $content .= ' </div> </div> </div>'; } return $content; }
function received_apply_show() { include_once "theme.inc.php"; $key = get_post('page'); $content = ''; $results = get_received_tweets(10, $key); foreach ($results as $r) { if (strstr($r['source'], '<')) { $source = str_replace("<a ", '<a target="_blank" class="left microblog-item-position"', $r['source']); } else { $source = '<a class="left microblog-item-position" target="_blank">' . $r['source'] . '</a>'; } $g = received_apply_count_tweet($r['tweet_id']); $content .= '<div class="item item-noclose" id="' . $r['tweet_id'] . '"> <div class="item-delete"> <a class="right"></a> </div> <div class="left item-pic"> <a target="_blank" href="' . BASE_URL . 'profile/' . $r['post_screenname'] . '"><img alt="" width="50" height="50" src="' . $r['profile_image_url'] . '"/></a> </div> <div class="left item-content"> <div class="item-blog"> <a class="microblog-item-blog-name" target="_blank" href="' . BASE_URL . 'profile/' . $r['post_screenname'] . '">' . $r['post_screenname'] . '</a>:' . parselink($r['content']) . ' </div> <div class="item-other"> <span class="left item-time">' . time_tran($r['post_datetime']) . '</span> ' . $source . ' <a class="right item-control last applys" id="' . $g . '"> 申请数(' . $g . ')</a> </div> <div class="item-applys close"></div><div class="item-page"></div>'; $content .= ' </div> <div class="clear"> </div> </div>'; } echo $content; }