|
Sie sind nicht im Startfenster! Fenster schließen? [Schließen X] |
Dateiname: tabelle.inc
Code - ab nachfolgender Zeile kopieren und unter tabelle.inc speichern:
<?php
echo "<table align='center' class='tips' style='width:820px;'
onmouseout='this.blur()'>";
echo "<tr onclick=" . $t_request . "() alt='Umsortieren'
title='Umsortieren' style='font-weight:bold; cursor:pointer;'>";
echo "<td>Name <img src='" . $image . "'/></td>";
echo "<td>Staße</td>";
echo "<td>Ort</td>";
echo "<td>Telefon</td>";
echo "<td>Email</td>";
echo "</tr>";
while($row = mysql_fetch_array($result)){
$i++;
if(round($i/2) == $i/2){
echo "<tr onClick=requesT_3(this.id); this.blur(); id='"
. $row['id'] ."' class='a' onmouseover=this.className='c'
onmouseout=this.className='a'><td>" . $row['name'] . "</td><td>"
. $row['strasse'] . "</td><td>" .$row['ort'] . "</td><td>"
. $row['telefon'] . "</td><td>" . $row['email'] . "</td></tr>";
}else{
echo "<tr onClick=requesT_3(this.id); this.blur(); id='"
. $row['id'] ."' class='b' onmouseover=this.className='c'
onmouseout=this.className='b'><td>" . $row['name'] . "</td><td>"
. $row['strasse'] . "</td><td>" .$row['ort'] . "</td><td>"
. $row['telefon'] . "</td><td>" . $row['email'] . "</td></tr>";
}
}
echo "<tr><td colspan=5 align='center'>";
echo "<br>";
echo "<form>";
echo "<b>Nur DHTML</b> <input type='radio'
name='ajax'></input> ";
echo "<b>AJAX DEMO 1</b> <input type='radio'
name='ajax' checked></input> ";
echo "<b>AJAX DEMO 2</b> <input type='radio'
name='ajax'></input>";
echo "</form>";
echo "</td></tr>";
echo "</table>";
?>
Code - bis zur obigen Zeile kopieren und unter tabelle.inc speichern:
|