示例#1
0
         $level = 1;
     }
     $prod_now = prod_fusion($aktplanet['b' . $gid], $GlobalUser['r113'], 1);
     $cons_now = -cons_fusion($aktplanet['b' . $gid], 1);
     for ($i = $level; $i < $level + 15; $i++) {
         $prod = prod_fusion($i, $GlobalUser['r113'], 1);
         $cons = -cons_fusion($i, 1) * $speed;
         if ($i == $aktplanet['b' . $gid]) {
             echo "<tr> <th> <font color=#FF0000>{$i}</font></th> ";
         } else {
             echo "<tr> <th> {$i}</th> ";
         }
         echo "<th> " . nicenum($prod) . "</th> ";
         echo "<th> " . rgnum($prod - $prod_now) . "</th> \n";
         echo "<th> " . nicenum($cons) . "</th> ";
         echo "<th> " . rgnum($cons - $cons_now) . "</th> </tr> \n";
     }
     echo "</table></center></tr></th>";
 } else {
     if ($gid == 22 || $gid == 23 || $gid == 24) {
         echo "<tr><th><p><center><table border=1 ><tr><td class='c'>Уровень</td><td class='c'>Вместимость</td><td class='c'>Разница</td></tr>\n";
         $level = $aktplanet['b' . $gid];
         $cap_now = store_capacity($aktplanet['b' . $gid]) / 1000;
         for ($i = $level; $i < $level + 15; $i++) {
             $cap = store_capacity($i) / 1000;
             if ($i == $aktplanet['b' . $gid]) {
                 echo "<tr> <th> <font color=#FF0000>{$i}</font></th> <th>" . nicenum($cap) . " k</th> <th>0</th> </tr>\n";
             } else {
                 echo "<tr> <th> {$i}</th> <th>" . nicenum($cap) . " k</th> <th> <font color=\"#00FF00\">" . nicenum($cap - $cap_now) . " k</font></th> </tr>\n";
             }
         }
示例#2
0
echo "  <tr>     <th colspan=\"6\" height=\"4\"></th>   </tr> \n";
// Общая выработка
echo "  <tr> \n";
echo "    <th colspan=\"2\">" . loca("RES_PER_HOUR") . "</th> \n";
echo "    <td class=\"k\">" . rgnum($m_total) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($k_total) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($d_total) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($planet['e']) . "</td> \n";
echo "  </tr> \n";
echo "  <tr> \n";
echo "    <th colspan=\"2\">" . loca("RES_PER_DAY") . "</th> \n";
echo "    <td class=\"k\">" . rgnum($m_total * 24) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($k_total * 24) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($d_total * 24) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($planet['e']) . "</td> \n";
echo "  </tr> \n";
echo "  <tr> \n";
echo "    <th colspan=\"2\">" . loca("RES_PER_WEEK") . "</th> \n";
echo "    <td class=\"k\">" . rgnum($m_total * 24 * 7) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($k_total * 24 * 7) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($d_total * 24 * 7) . "</td> \n";
echo "    <td class=\"k\">" . rgnum($planet['e']) . "</td> \n";
echo "  </tr>\n";
echo "  </table> \n";
// ***********************************************************************
echo "<br><br><br><br>\n";
echo "</center>\n";
echo "</div>\n";
echo "<!-- END CONTENT AREA -->\n";
PageFooter();
ob_end_flush();