$enpeople = array('Colonel Mustard', 'Professor Plum', 'Mr. Green', 'Mrs. Peacock', 'Miss Scarlet', 'Mrs. White');
$enweapons = array('Knife', 'Candlestick', 'Revolver', 'Rope', 'Lead Pipe', 'Wrench');
$enrooms = array('Hall', 'Lounge', 'Dinning Room', 'Kitchen', 'Ballroom', 'Conservatory', 'Billiard Room', 'Library', 'Study');
$en = array('Suspects'=>$enpeople,'Weapons'=>$enweapons,'Rooms'=>$enrooms);
$skpeople = array('Plukovník Mustard', 'Profesor Plum', 'Mr. Green', 'Mrs. Peacocková', 'Miss Scarletová', 'Mrs. Whiteová');
$skweapons = array('Nôž', 'Svietnik', 'Revolver', 'Povraz', 'Roztáčacia Kľuka', 'Francúzsky kľúč');
$skrooms = array('Hala', 'Salónik', 'Jedáleň', 'Kuchyňa', 'Tanečná sála', 'Skleník', 'Herňa na billiard', 'Knihovňa', 'Pracovňa');
$sk = array('Podozriví'=>$skpeople,'Zbrane'=>$skweapons,'Miestnosti'=>$skrooms);
$data = $en;
if ($_GET['l']==='sk' || $argv[1]==='sk') $data = $sk;
$onecell = ' | ';
$multicell = $onecell.$onecell.$onecell.$onecell.$onecell.$onecell.$onecell.$onecell;
function mktbl($style) { global $data,$multicell;?>
Cluedo | //echo $multicell; ?>
foreach ($data as $cat => $list) {
echo "$cat | $multicell
\n";
foreach ($list as $line) {
echo "$line | $multicell
\n";
}
}
?>
}
mktbl('float:left');
mktbl('float:right');
mktbl('margin:auto');
if (isset($_GET['multi'])) {
echo '
';
mktbl('float:left');
mktbl('float:right');
mktbl('margin:auto');
}
?>