Buenas,
Tengo esto:
Código PHP:
Ver originalwhile ($row = mysql_fetch_array($result, MYSQL_ASSOC)){
if($i++%2==0){
$color="#FFFFFF";
}else{
$color="#CCCCCC";
}
?>
<tr bgcolor='<?php echo $color; ?>' onmouseover="this.style.background='#ABFB04';" onmouseout="this.style.background='<?php echo $color; ?>';">
<?php
echo "<td class=tablelist>";
echo $row["ICAO"] . '</td><td class=tablelist>';
echo $row["Name"] . '</td><td class=tablelist>';
echo $row["WeightEmpty"] . '</td><td class=tablelist>';
echo $row["WeightFull"] . '</td><td class=tablelist>';
echo $row["CargoFull"] . '</td><td class=tablelist>';
echo $row["Range"] . '</td><td class=tablelist>';
echo $row["Price"] . '</td><td class=tablelist>';
echo $row["FirstClassSeats"] . '</td><td class=tablelist>';
echo $row["BusinessClassSeats"] . '</td><td class=tablelist>';
echo $row["EconomyClassSeats"]. '</td><td class=tablelist>';
echo "<img class='editaircraft' src='./images/info.png'></td></tr>";
?>
<script>
$(function() {
$( "#editaircraftdialog" ).dialog({
autoOpen: false,
width: 425
});
$( ".editaircraft" ).click(function() {
$( "#editaircraftdialog" ).dialog( "open" );
return false;
});
});
</script>
<div id="editaircraftdialog" title="Edit Aircraft">
<?php include('./new_aircraft.php'); ?>
</div>
<?php
}
echo "</table>";
$pagination->render();
?>
El problema es que el include no se me muestra dentro del diálogo JQuery y el contenido de este se muestra fuera. Así:
Si sustituyo el include por texto o si pongo el <div> fuera del while no pasa nada.
El while al llegar al <div> se para!