$title_a = $_SGLOBAL['db']->result($_SGLOBAL['db']->query('SELECT subject FROM '.tname('spaceitems').' WHERE itemid < \''.$itemid.'\' AND catid = \''.$thecat['catid'].'\' AND folder=\'1\' AND type=\'news\' ORDER BY itemid DESC LIMIT 0,1'), 0);
if(!$title_a) $title_a = '已经没有了';
//调用下一篇资讯标题
$title_b = $_SGLOBAL['db']->result($_SGLOBAL['db']->query('SELECT subject FROM '.tname('spaceitems').' WHERE itemid > \''.$itemid.'\' AND catid = \''.$thecat['catid'].'\' AND folder=\'1\' AND type=\'news\' ORDER BY itemid LIMIT 0,1'), 0);