$("#musteri_bul").click(function () { if($('#musteri_no').val()=='') { alert('Musteri No girmelisiniz.'); } else { var dialogOpts = { modal: true, height: 300, width: 650, draggable: true, resizeable: true, open: function() { $("#musteriler").load("siparis", { 'methodName':'musteri_bul', 'musteri_id': $('#musteri_no').val() } ); } }; $("#musteriler").dialog("destroy"); $("#musteriler").dialog(dialogOpts); } });
<table id="matrix" cellpadding="0" cellspacing="0" border='1' class="flt_table"> <thead> <tr> <th width='40px'>ID</th> <th width='60px'>Kodu</th> <th width='130px'>İl</th> <th width='130px'>İlçe</th> <th>Adres</th> </tr> </thead> <tbody> <tr> <th> </th> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <?php foreach($musteriler as $row):?> <tr> <th><?php echo $row['musteri_id'];?></th> <td><?php echo $row['sehir_kodu'];?></td> <td><?php echo $row['semt_kodu'];?></td> <td><?php echo $row['adres'];?></td> </tr> <?php endforeach;?> </tbody> </table>