Example #1
0
File: index.php Project: DbyD/cruk
    ?>
							</div>
							<div class="tableColumn-9">
								<?php 
    echo getName($list->NominatedEmpNum);
    ?>
							</div>
						</div>
						<?php 
}
?>
					</div>
					<div class="medium-6 columns leftnp rightnp">
						<?php 
// get top 5-10 nominees
$nominees = getTopTen(5);
foreach ($nominees as $list) {
    $x++;
    ?>
						<div class="tableRow">
							<div class="tableColumn-2">
								<?php 
    echo $x . '<sup>th</sup>';
    ?>
							</div>
							<div class="tableColumn-9">
								<?php 
    echo getName($list->NominatedEmpNum);
    ?>
							</div>
						</div>
<?php

include_once "../base/bd_configuracion.php";
include_once "../base/funcionesBase.php";
include_once "../sharedfunctions/SharedFunctions.php";
include_once "/Tournament.php";
include_once "../sharedfunctions/fileFunctions.php";
$con = new bd_configuracion();
$con->conectar();
$stringArchivo = uploadFile();
if ($stringArchivo != "") {
    $stringWinnersArray = tournament(str_replace(' ', '', $stringArchivo));
    setWinnerPoints(getNameWinner($stringWinnersArray));
}
$resultado = getTopTen();
?>

<html lang="en">

	<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5"> 
	 <script src="//use.edgefonts.net/poiret-one.js"></script>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
	<head>

	<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>	
	<script type="text/javascript" src="javascript/TournamentJS.js"></script>
	<script type="text/javascript" src="javascript/PaperSiccorsRockRules.js"></script>
	<!-- <script>var gameListInput = '<?php 
echo $stringArchivo;
?>
';</script> -->
Example #3
0
    $SEARCHVALUE = isset($_POST["searchvalue"]) ? $_POST["searchvalue"] : "0";
    if ($SEARCHVALUE) {
        $searchresults = getSearchResults($SEARCHVALUE);
    }
    include_once './template/search.php';
    #echo $template;
} else {
    // show the top ten
    $LASTUPDATE = 0;
    $NEXTUPDATE = 0;
    if (isCached('home')) {
        $template = getCache('home');
        $LASTUPDATE = intToTime(getLastUpdate(getcwd() . '/cache/home.cache'));
        $NEXTUPDATE = intToTime(getNextUpdate(getcwd() . '/cache/home.cache', RANKING_REFRESH_TIME));
    } else {
        $topten = getTopTen();
        include_once './template/home.php';
        // write cache file
        writeCache('home', $template);
        $LASTUPDATE = intToTime(0);
        $NEXTUPDATE = intToTime(RANKING_REFRESH_TIME);
    }
    $template = str_replace('{:LASTUPDATE:}', $LASTUPDATE, $template);
    $template = str_replace('{:NEXTUPDATE:}', $NEXTUPDATE, $template);
}
/***************************************************************
 * CLOSE DATABASE CONNECTION AND PROCESS PAGE LOAD TIME
 ***************************************************************/
mysql_close($link);
//processing page END
$time_end = microtime(true);