require('../global.php');
if (!$auth->isAuthorized()) Header("Location: /login.php");
require('../header.html');
echo "
Known tickers
\n";
function printDir($dir,$name)
{
$classes = array("indexOddRow","indexEvenRow");
echo "$name
\n";
echo "\n";
$dirName = "../../data/$dir";
$dir = opendir($dirName);
$tickers = array();
$rowIdx = 0;
$names = array();
while($name = readdir($dir)) {
if (is_file("$dirName/$name")) $names[] = $name;
}
sort($names);
foreach($names as $name) {
$tickers[] = $name;
if (count($tickers) == 5) {
echo "".implode(" | ",$tickers)." |
";
$tickers = array();
$rowIdx = 1-$rowIdx;
}
}
closedir($dir);
if (count($tickers) > 0) echo "".implode(" | ",$tickers)." |
";
echo "
\n";
}
printDir("bcpp","BCPP");
printDir("nasdaq","FOREIGN");
?>
if ($_SESSION["USER_ID"] > 1) {
?>
}
else {
?>
Uživatelé přihlášení pod regulérním (nedemonstračním) účtem mají možnost přidat z této stránky libovolný ticker z finance.yahoo.com.
}
?>
<< Menu
require('../footer.html');
?>