Sabtu, 07 September 2013

PHP Indonesia - Facebook: Assalamu'alaikum... permisi master2 semua.. numpan...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
LSAT prep from HLS-educated instructors

LSATMax includes video lessons, unlimited personal attention & support, and over 6,000 real questions from previous LSAT's. Enroll for just $299.
From our sponsors
Assalamu'alaikum... permisi master2 semua.. numpan...
Sep 8th 2013, 05:21, by Goes Ukie

Goes Ukie 5:21am Sep 8
Assalamu'alaikum...
permisi master2 semua..
numpang tanya..??
kenapa ea checbox yg berfungsi hanya yg paling atas sedangkan yg selanjutx tidak berfungsi kira2 dmn ya letak kesalahanx.....

Fandri Samudra 5:25am Sep 8
loopingnya mungkin

Goes Ukie 5:27am Sep 8
<?php
}
//untuk menampilkan
$view = mysql_query("select * from pengadaan_lahan order by kd_pgd1 asc")
?>
<table id="table-zebra">
<tr>
<th>NO</th>
<th>Kode</th>
<th width="300">Nama Lahan</th>
<th>Panjang</th>
<th>Lebar</th>
<th>Luas</th>
<th>Tgl Pengadaan</th>
<th>Kepemilikan</th>
<th colspan="3">Aksi</th>
</tr>
<?php
while($row=mysql_fetch_array($view)) {
?>
<tr>
<td align="center"><?php echo $c=$c+1; ?></td>
<td><?php echo $row['kd_pgd1']; ?><input type="hidden" id="kd" value="<?php echo $row['kd_pgd1']; ?>" /></td>
<td><?php echo $row['nm_lahan']; ?><input type="hidden" id="nm_lahan" value="<?php echo $row['nm_lahan']; ?>" /></td>
<td align="center"><?php echo $row['panjang'];?> <input type="hidden" id="panjang" value="<?php echo $row['panjang'];?>" /> M</td>
<td align="center"><?php echo $row['lebar'];?> <input type="hidden" id="lebar" value="<?php echo $row['lebar'];?>" />M</td>
<td align="center"><?php echo $row['luas'];?> <input type="hidden" id="luas" value="<?php echo $row['luas'];?>" />M</td>
<td><?php echo $row['tanggal']; ?></td>
<td>
<select name="optstatus" class="opt" id="kepemilikan">
<option value="0" selected="selected">-- Pilih --</option>
<option value="MILIK SENDIRI">MILIK SENDIRI</option>
<option value="MILIK NEGARA">MILIK NEGARA</option>
<option value="HIBAH">HIBAH</option>
</select>
</td>
<td width="30" align="center">
<? if($row['sts']=='true'){?>

<select name="acc" onchange="pilihan()" id="acc">
<option value="0"></option>
<option value="True" selected="selected">True</option>
<option value="False">False</option>
</select>
<? }else{ ?>

<select name="acc" onchange="pilihan()" id="acc">
<option value="True">True</option>
<option value="False" selected="selected">False</option>
</select>
<? } ?>
</td>
<td width="30" align="center">
<a href="?page=pengadaan-lahan&act=edit&kode=<?php echo $row['kd_pgd1']; ?>" title="Edit"><img src="images/edit.png" width="25" /></a>
</td>
<td width="30" align="center">
<a href="?page=pengadaan-lahan&act=delete&kode=<?php echo $row['kd_pgd1']; ?>" title="Hapus"><img src="images/delete.png" width="25" /></a>
</td>
</tr>
<?php
}
?>
</table>

INI sudah betul pa mc ad yg salah ea gan..

Gembel Berkelas 5:29am Sep 8
Checkbox nya yg mana sih om ??

Goes Ukie 5:30am Sep 8
<td width="30" align="center">
<? if($row['sts']=='true'){?>

<select name="acc" onchange="pilihan()" id="acc">
<option value="0"></option>
<option value="True" selected="selected">True</option>
<option value="False">False</option>
</select>
<? }else{ ?>

<select name="acc" onchange="pilihan()" id="acc">
<option value="True">True</option>
<option value="False" selected="selected">False</option>
</select>
<? } ?>
</td>

Gembel Berkelas 5:32am Sep 8
Maksudna dropdown / selectbox ??

btw, katanya ndak berfungsi, emang fungsi nya apa ???

Goes Ukie 5:34am Sep 8
itu fungsinya adalah..ketika kita pilih true data akan masuk ketabel yg lain tapi masalahx yb bis hanya yg paling atas..untuk selanjutx tdak bisa..

Ian Hehe Lubis 5:37am Sep 8
Salahnya ialah : tidak mensdkripsikan dengan lengkap kendalanya apa.

Checkbox atau dropdown ?

Arwani Aveiro 5:37am Sep 8
mungkin gini -> id="namaid[ ]"

Goes Ukie 5:40am Sep 8
kendalax ketika mau pilih data yg nomor dua tidak ada reaksi..
maksudx pilihan true dan false tidak berfugsi..
kalau data yg pertama sudah bisa data sudah masuk ke tabel yg lain..ketika di true checbox nya

Gembel Berkelas 5:40am Sep 8
masalahnya ane ndak tau proses nya kayak gmana ???
disitu ada onchange, ane ndak tau onchange nya bijimane,,,

Arwani Aveiro 5:42am Sep 8
itu checkboxnya pake pengulangan , jadi mesti ada '[ ]' di value listboxnya...

Goes Ukie 5:46am Sep 8
maaf semua maksud sy bukan checbox tp onchage option value yd ada pilihan true dan falsenya..seperti digambar...
mf salah maksud...:D

Adjhi Adjha 5:46am Sep 8
"pilihan()" tu ngelinkx k ajak Ƴɑ̤̥̈̊ªª bos?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar