Ejemplo n.º 1
0
		//

			$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>";

						}

						$test=!$test;

					}
Ejemplo n.º 2
0
									$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){

												$tmp_date = explode(" ", $results_array[$i]['date']);

												$date = $common->DateFormat($tmp_date[0], "M j", $cfg->default_tz);

												if ($test==true) {

													print "<li class='odd'><a href='../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='../newsevents/?theid=".$results_array[$i]['id']."&type=".$results_array[$i]['type']."'><span class='date'>".$date."</span>".$results_array[$i]['title']."</a></li>";

												}

												$test=!$test;

											}