} else {
                ?>
<tr><?php 
            }
            ?>
<td><label><?php 
            echo $outer;
            ?>
:<?php 
            echo ' ' . $star;
            ?>
</label></td>
							<td>
							
		<?php 
            $foreignTable = $index->composeSelectBox($id);
            //return false if the table is not forien and return an array aff all values if its a forien
            if (($foreignTable || count($foreignTable) == '0') && $id != 'image_id') {
                //var_dump($item);
                ?>

							<select name="<?php 
                echo $table;
                ?>
[<?php 
                echo $id;
                ?>
]" id="<?php 
                echo $Table . '-' . $outer . $optional;
                ?>
"  >