?> <!--疾病详解 end--> <!--医生随想 start--> <div class="cate_box2 mb25"> <div class="clearfix cate_title2 mb20"> <p class="module2"><a href="/disease/articleofrenwenlist?lableid=501" target="_blank">医生随想</a></p> <p class="fr pt5"> <a href="/disease/articleofrenwenlist?lableid=501" target="_blank" class="pt10 fs">更多<span class="f8">>></span></a> </p> <i class="b_arrow3"></i> </div> <ul class="article fs"> <?php $articles = Article::getArticlesByLableId(LableDefine::getLableIdByTitle('医学人文'), 10, 2); $i = 0; // $count = DiseasePage::isDiseaseWithNfs($disease->id) ? 6 : 5; foreach($articles as $a) { $cla = 2 > $i ? 'b_dot' : 'g_dot'; $i ++; if (4 < $i) { break; } $_title = $a->showTitle; ?> <li class="<?=$cla?>"><a target="_blank" href="<?=$a->getUrl()?>"><?=XString::truncate($_title, 36)?></a></li>
public function ajaxDeleteLable($request, $response) { $tag = mb_convert_encoding($request->tag, 'gbk', 'utf-8'); $objId = $request->objid; $type = $request->type; $tmp = explode(':', $tag); $lableId = LableDefine::getLableIdByTitle($tmp['0']); $diseaseName = $tmp['1']; DiseaseClient::getInstance()->deleteDiseaseLable($diseaseName, $lableId, $objId, $type); // $disease = DAL::get()->find_by_name('disease', $diseaseName); // ThesisClient::getInstance()->deleteDiseaseTag($disease->id, $objId , $type); echo json_encode(true); exit; }
public function ajaxDeleteLable($request, $response) { /*{{{*/ $user = $this->curOperatorUser; $tag = mb_convert_encoding($request->tag, 'gbk', 'utf-8'); $objId = $request->objid; $type = $request->type; $tmp = explode(':', $tag); $lableId = LableDefine::getLableIdByTitle($tmp['0']); $diseaseName = $tmp['1']; DiseaseClient::getInstance()->deleteDiseaseLable($diseaseName, $lableId, $objId, $type, $user->id); echo json_encode(true); exit; }