Hi

So wie ich das verstanden habe, willst du die Inputfelder nebeneinander mit einer Limitierung positionieren, richtig ?
Warum nicht einfach die float-Eigenschaft benutzen, die automatisch den Platz nutzt und ggf. in eine neue Ziele positioniert ?
<?php
settype( $projects, 'array' );
$result1 = sql_query( "SELECT project_id,project_name FROM " . $prefix . "_project_project_view where is_activ='1' AND user_priv!='2' " );
while( list( $id,$name ) = sql_fetch_row( $result1 ) ) {
$projects[$id] = $name;
}
?>
<?php
$anzeige = 2;
$z = 0;
?>
<?php if( count( $projects ) > 0 ) :?>
<table style="border:0; padding:0; width:100%">
<tr>
<td>
<?php foreach( $projects as $id => $project ) :?>
<div style="float:left; width:33%">
<input type="checkbox" name="prj_<?php echo $id ?>" value="ON" /> <?php echo $project ?>
</div>
<?php if( $anzeige === ++$z ) : ?>
<br style="clear:left;" />
<?php $z = 0; endif ;?>
<?php endforeach ;?>
</td>
</tr>
</table>
<?php endif ;?>
<?php if( count( $projects ) > 0 ) :?>
<table style="border:0; padding:0; width:100%">
<tr>
<td>
<?php foreach( $projects as $id => $project ) :?>
<div style="float:left; width:33%">
<input type="checkbox" name="prj_<?php echo $id ?>" value="ON" /> <?php echo $project ?>
</div>
<?php endforeach ;?>
</td>
</tr>
</table>
<?php endif ;?>
könnte mir dabei jemand helfen bitte ?
Merci
... de nada
