Repeat Selection For All Records
Hi,
When I choose ALL records in the Repeat Selection it shows the alternativ (else) text, too.
What was the trick. I know that there was a trick.
<?php
// RepeatSelectionCounter_1 Initialization
$RepeatSelectionCounter_1 = 0;
$RepeatSelectionCounterBasedLooping_1 = false;
$RepeatSelectionCounter_1_Iterations = "-1";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
</head>
<body>
<form id="formBandGenre" name="formBandGenre" method="post">
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_allGenre){
?>
<input type="hidden" name="WADA_RepeatID_id_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_id_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_allGenre["id"]; ?>" />
<input <?php if (!(strcmp($row_allGenre['id'],WA_AB_returnPreSelectValue($WA_PreSelect_RelationalTable_1, $row_allGenre['id'])))) {echo "checked=\"checked\"";} ?> name="genre_<?php echo $RepeatSelectionCounter_1; ?>" type="checkbox" id="genre_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_allGenre['id']; ?>" />
<?php echo $row_allGenre['genre']; ?><br />
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
nix
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_allGenre && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_allGenre = mysql_fetch_assoc($allGenre);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
<input type="submit" name="button" id="button" value="Senden" />
</form>
</body>
Cheers,
Denis