List

Try: ca/tecreations/ViewFile.php


<html>
    <head>
        <meta charset="UTF-8">
        <style>
            td {
                min-width: 100; 
                min-height: 100;
            }
        </style>
    </head>

    <body>

<?php
$bees = array();
$eyes = array();
$enns = array();
$gees = array();
$ohs = array();

for($i = 1; $i <= 15;$i++) array_push($bees,$i);
for($i = 16; $i <= 30;$i++) array_push($eyes,$i);
for($i = 31; $i <= 45;$i++) array_push($enns,$i);
for($i = 46; $i <= 60;$i++) array_push($gees,$i);
for($i = 61; $i <= 75;$i++) array_push($ohs,$i);

$randomBees = array();
for($i = 0; $i < 5;$i++) {
    $random = rand(0,100);
    array_push($randomBees,$bees[((int)$random * 15 / 100)]);
}

$randomEyes = array();
for($i = 0; $i < 5;$i++) {
    $random = rand(0,100);
    array_push($randomEyes,$eyes[((int)$random * 15 / 100)]);
}

$randomEnns = array();
for($i = 0; $i < 5;$i++) {
    $random = rand(0,100);
    array_push($randomEnns,$enns[((int)$random * 15 / 100)]);
}

$randomGees = array();
for($i = 0; $i < 5;$i++) {
    $random = rand(0,100);
    array_push($randomGees,$gees[((int)$random * 15 / 100)]);
}

$randomOhs = array();
for($i = 0; $i < 5;$i++) {
    $random = rand(0,100);
    array_push($randomOhs,$ohs[((int)$random * 15 / 100)]);
}

?>
<html>
<body> 
<table>
    <thead>
        <tr bgcolor="#CCCCCC">
            <td align="center">B</td>
            <td align="center">I</td>
            <td align="center">N</td>
            <td align="center">G</td>
            <td align="center">O</td>
        </tr>
    </thead>

<?php
    for($i = 0; $i < 5; $i++) {
         if ($i == 2) {
              print("        <tr>\n");
              print("            <td align='center'>" . $randomBees[$i] . "</td>\n");
              print("            <td align='center'>" . $randomEyes[$i] . "</td>\n");
              print("            <td align='center'>FREE</td>\n");
              print("            <td align='center'>" . $randomGees[$i] . "</td>\n");
              print("            <td align='center'>" . $randomOhs[$i] . "</td>\n");
              print("        </tr>\n");
         } else {
             print("        <tr>\n");
             print("            <td align='center'>" . $randomBees[$i] . "</td>\n");
             print("            <td align='center'>" . $randomEyes[$i] . "</td>\n");
             print("            <td align='center'>" . $randomEnns[$i] . "</td>\n");
             print("            <td align='center'>" . $randomGees[$i] . "</td>\n");
             print("            <td align='center'>" . $randomOhs[$i] . "</td>\n");
             print("        </tr>\n");
         }
    }
?>
    </table>
</body>
</html>