Beispiel #1
0
	// Icon image
	if ( $articles[$i]->showTopicimg() ) {
		$story['topic_url'] = $articles[$i]->imglink($bulletin_topicon_path);
		$story['align']     = $articles[$i]->getTopicalign();
	}

	$xoopsTpl->append('stories', $story);
}

// Page Navigation
if( !empty($caldate) && preg_match('/([0-9]{4})-([0-9]{2})-([0-9]{2})/', $caldate, $datearr) ){
	$totalcount = Bulletin::countPublishedByDate( $mydirname , $caldate , true);
	$query      = 'caldate='.$caldate;
}else{
	$totalcount = Bulletin::countPublished( $mydirname , $storytopic , true ,true);
	$query      = 'storytopic='.$storytopic;
}
if ( $totalcount > $scount ) {
	require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
	$pagenav = new XoopsPageNav($totalcount, $storynum, $start, 'start', $query);
	$xoopsTpl->assign('pagenav', $pagenav->renderNav());

} else {
	$xoopsTpl->assign('pagenav', '');
}

$xoopsTpl->assign($assing_array);

if($bulletin_assing_rssurl_head){
	$xoopsTpl->assign('xoops_module_header', $rss_feed . $xoopsTpl->get_template_vars( "xoops_module_header" ));
Beispiel #2
0
             $mode = 'newsubmission';
             break;
         case 'autostory':
             $total = Bulletin::countAutoStory($mydirname);
             $story_list = newSubmissions('autoStories', $limit, $start);
             $table_title = _AM_AUTOARTICLES;
             $mode = 'autostory';
             break;
         case 'expstory':
             $total = Bulletin::countExpired($mydirname);
             $story_list = newSubmissions('Expired', $limit, $start);
             $table_title = _AM_EXPARTS;
             $mode = '';
             break;
         default:
             $total = Bulletin::countPublished($mydirname);
             $story_list = newSubmissions('Published', $limit, $start);
             $table_title = _AM_PUB_ARTICLES;
             $mode = '';
             break;
     }
     $navi = '';
     if ($total > $limit) {
         $pagenav = new XoopsPageNav($total, $limit, $start, 'start', 'op=listall&statu=' . $statu);
         $navi = $pagenav->renderNav();
     }
     $asssigns = array('table_title' => $table_title, 'stories' => $story_list, 'mode' => $mode, 'navi' => $navi);
     break;
     //Allow each group configuration screen post
 //Allow each group configuration screen post
 case 'permition':