<?php } } else { } } ?>
Czy ktos wie jak je zastapic obrazkiem ze jak sie na jego kliknie akcja sie wykona jak w przypadku linku??
Pytam bo nie znam js/css ani tych bajerow
<?php } } else { } } ?>
<?php public function Pokaz_ksiege($liczba=50) { switch ($_GET['action']) { case 'usun': $ask = ('delete from ksiega_gosci where id='.(int)$_GET['id'].' AND kod="'.addslashes($_GET['kod']).'"'); break; case 'edytuj': $ask1 = ('select * from ksiega_gosci where id='.(int)$_GET['id'].''); <head><meta http-equiv="content-type" charset="utf-8" /><title>GuEsT bY MARCIO</title> <style type="text/css"> a {color:#FDEDF2} body {color:#FDEDF2} </style> <form method="post" action="?strona='.$strona.'&action=aktualizuj&id='.$_GET['id'].'&kod="'.$_GET['kod'].'""> <table valign="top" width="200" bgcolor="#4E4E68" align="center" > <tr> <td>Podaj nick</td> <td><input type="text" name="nick" size="70" value="'.$qwe['nick'].'" style="background-color:#000000; color:#CCCCCC;"/></td> </tr> <tr> <td>Wiadomosc</td> <td><textarea name="message" rows="3" cols="70" style="background-color:#000000; color:#CCCCCC";>'.stripslashes($qwe['message']).'</textarea></td></tr> <tr> <td align="center" valign="top"><INPUT TYPE=image VALUE=submit src="buttons.php" /></td></tr> </table> '); $id = (int)$_GET['id']; $ask2 = ('update ksiega_gosci set nick="'.$nick.'", message="'.$message.'", data="'.$date.'" where id='.$id.' AND kod="'.$kod.'"'); break; } } } $query = ("select * from ksiega_gosci"); $strona = $_GET['strona']; $id = (int)$_GET['id']; $kod = $_GET['kod']; $zap = ("select * from ksiega_gosci order by id desc limit ".$strona*$liczba.",".$liczba); if($tab['ip'] == $_SERVER['REMOTE_ADDR']) { echo('<table border="1" width="50%" bgcolor="#4E4E68" align="center"><tr><td width="40%">Dodal: '.stripslashes($tab['nick']).'</td><td width="26%">Dnia: '.$tab['data'].'</td></tr> <td><a href="?strona='.$strona.'&action=usun&id='.$tab['id'].'&kod='.$tab['kod'].'">usun</a> | <a href="?strona='.$strona.'&action=edytuj&id='.$tab['id'].'&kod='.$tab['kod'].'">edytuj</a></td> </tr> </table></form>'); } else { echo('<table border="1" width="50%" bgcolor="#4E4E68" align="center"><tr><td width="40%">Dodal: '.stripslashes($tab['nick']).'</td><td width="26%">Dnia:'.$tab['data'].'</td></tr> } } } else { } } } else { } } ?>