<block id='0' name='Global_Menu' description='The_main_menu_for_the_site' default='2'></block>
			</div>
		</div>
		<div id="content">
			<div id="subtop">
				<img src="<? echo $depth;?>_images/programs_main.jpg" alt="#" />
				<div id="subtopleft"></div>
			</div>
			<table>
				<tr>
					<td id="fullcontent">
						<?
							//GRAB OUR KEYWORDS
								$keywords = $_REQUEST['keys'];
							//CREATE OUR FACE NEWS
								$face_news = new face_news($db, $cfg, $time);
								$face_blocks = new face_blocks($db, $cfg, $time);
							//GRAB OUR NEWS
								$news_array = array();
								$news_array = $face_news->search($keywords,$start,$limit);
							//WE MUST LIMIT OUR PAGE RETURNS WITH HOW MANY NEWS ARTICLES WE GET BACK
								$new_limit = $limit - $news_array[0]['totals'];
							//GRAB OUR PAGES
								$pages_array = array();
								$pages_array = $face_blocks->search($keywords,$start,$new_limit);
							//MERGE OUR ARRAYS
								$search_array = array();
								$search_array = array_merge($news_array, $pages_array);
							//CYCLE THROUGH NEWS ARRAY AND PRINT OUT THE DATA
								if($search_array[0]["title"]==""){
									print "<h1>There were no results in the search.</h1>";
Example #2
0
			$events = new face_events($db, $cfg, $time);

			$events_list = array();

			$time = time();

			$year = date('Y', $time);

			$month = date('n', $time);

			$events_list = $events->view_month_events($year, $month, 0, 4);

		//NEWS

			$news = new face_news($db, $cfg, $time);

			$news_list = array();

			$news_list = $news->view(0,0,4);

		//

			$results_array = array_merge($events_list, $news_list);

		//

			if(count($results_array)>0){

				$test=true;
Example #3
0
			</div>
			<div id="content">
				<div id="htop"></div>
				<div id="hnews" style="height:262px;">
					<!-- <block></block> -->
                    <h4>News/Events</h4>
<ul><?
		//EVENTS
			$events = new face_events($db, $cfg, $time);
			$events_list = array();
			$time = time();
			$year = date('Y', $time);
			$month = date('n', $time);
			$events_list = $events->view_month_events($year, $month, 0, 4);
		//NEWS
			$news = new face_news($db, $cfg, $time);
			$news_list = array();
			$news_list = $news->view(0,0,5);
		//
			$results_array = array_merge($events_list, $news_list);
		//
			if(count($results_array)>0){
				$test=true;
				for($i=0;$i<count($results_array);$i++){
					if($results_array[$i]['id']>0){
						$date = $common->DateFormat($results_array[$i]['date'], "M j");
						if ($test==true) {
							print "<li class='odd'><a href='".$depth."newsevents/?theid=".$results_array[$i]['id']."&type=".$results_array[$i]['type']."'><span class='date'>".$date."</span>".$results_array[$i]['title']."</a></li>";
						}else {
							print "<li class='even'><a href='".$depth."newsevents/?theid=".$results_array[$i]['id']."&type=".$results_array[$i]['type']."'><span class='date'>".$date."</span>".$results_array[$i]['title']."</a></li>";
						}
Example #4
0
									$events = new face_events($db, $cfg, $time);

									$events_list = array();

									$time = time();

									$year = date('Y', $time);

									$month = date('n', $time);

									$events_list = $events->view_month_events($year, $month, $start, $limit);

								//NEWS

									$news = new face_news($db, $cfg, $time);

									$news_list = array();

									$news_list = $news->view(0, $start, $limit);

								//

									$totals = $news_list[0]['totals'] + $events_list[0]['totals'];

								//

									$results_array = array_merge($events_list, $news_list);

								//
Example #5
0
		
		?>

		<meta name="description" content="<? echo strip_tags($final_description); ?>"/>

		<meta name="robots" content="index, follow" />

		<link href="_scripts/master.css" rel="stylesheet" type="text/css" />
        
        

		<?

			//SPIT OUT OUR RSS FEEDS

				$face_news = new face_news($db, $cfg, $time);

				$cats = array();

				$cats = $face_news->getCategories();

				for($i=0;$i<count($cats);$i++){

					print "<link rel='alternate' type='application/rss+xml' href='_files/rss/rss_".$cats[$i]['id'].".xml' title='".$cats[$i]['name']." rss feed' />";

				}

		?>

	</head>