20201112
This commit is contained in:
@@ -538,6 +538,24 @@ class Article extends Controller {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取liferesearch的文章详情
|
||||
*/
|
||||
public function getLifeResearch(){
|
||||
echo "<h2>Life Research</h2>";
|
||||
$list = $this->article_obj->where('journal_id',14)->where('state',0)->select();
|
||||
echo "<span>Total number of articles:". count($list)."</span><br><br><br>";
|
||||
foreach ($list as $k => $v) {
|
||||
echo '<strong>'.($k+1).'. '.$v['title'].'</strong>('.$v['type'].')<br>';
|
||||
$au = $this->article_author_obj->where('article_id',$v['article_id'])->where('state',0)->select();
|
||||
foreach ($au as $val){
|
||||
echo ' ';
|
||||
echo $val['author_name'].'('.$val['author_country'].')<br>';
|
||||
}
|
||||
echo '<br>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取文章text文件
|
||||
* @description 获取文章text文件
|
||||
|
||||
Reference in New Issue
Block a user