}
    }
    if ($checked) {
        if (isset($rohA)) {
            ?>
<form action="buildorbit.php?pid=<?php 
            echo $pid;
            ?>
&modul=<?php 
            echo $modulid;
            ?>
"  method="post">
<div class="rahmen"><h4>Solarsatellit bauen:</h4>
<table>
<tr><td>Kosten Rohstoff A: </td><td><?php 
            echo kostenA('orbit', $rohA + 1), ' (', $aktPlanet->rohstoffa, ')</td></tr>';
            ?>
<tr><td>Kosten Rohstoff B: </td><td><?php 
            echo kostenB('orbit', $rohA + 1), ' (', $aktPlanet->rohstoffb, ')</td></tr>';
            ?>
<tr><td>Effekt: </td><td><span style="color:green;font-weight;">+<?php 
            echo output('orbit', $rohA + 1);
            ?>
 Energie</span></td></tr>
<tr><td>Dauerkosten: </td><td><span style="color:red;">-<?php 
            echo $rohA + 1;
            ?>
 Deuterium</span></td></tr>
</table>
<?php 
            $bool = bezahlbar('orbit', $pid, $rohA + 1);
</form></div><br />
<?php 
        }
        if (isset($rohB)) {
            ?>
<form action="build.php?pid=<?php 
            echo $pid;
            ?>
&modul=<?php 
            echo $modulid;
            ?>
"  method="post">
<div class="rahmen"><h4>Rohstoff B Fabrik bauen:</h4>
<table>
<tr><td>Kosten Rohstoff A: </td><td><?php 
            echo kostenA('rohB', $rohB + 1), ' (', $aktPlanet->rohstoffa, ')</td></tr>';
            ?>
<tr><td>Kosten Rohstoff B: </td><td><?php 
            echo kostenB('rohB', $rohB + 1), ' (', $aktPlanet->rohstoffb, ')</td></tr>';
            ?>
<tr><td>Effekt: </td><td><span style="color:green;font-weight;">+<?php 
            echo 5 * ($rohB + 1);
            ?>
 Rohstoff-B</span></td></tr>
</table>
<?php 
            $bool = bezahlbar('rohB', $pid, $rohB + 1);
            ?>
<input type="hidden" name="sub" value="2">
<input type="submit" value="Rohstoff B Fabrik(<?php 
            echo $rohB + 1;