Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href="css/styles.css" rel="stylesheet" type="text/css" />
- <script src="js/jquery-1.7.2.min.js"></script>
- <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
- <script type='text/javascript' src='js/example.js'></script>
- <link type="image/gif" href="image/kecil_879522dinas-perhubungan.jpg" rel="icon"/>
- </head>
- <SCRIPT language="Javascript">
- $(document).ready(function(){
- $('#bglb,#trgt').hide();
- $("#link").click(function(){
- $('#bglb,#trgt').fadeIn('fast');
- });
- $('#bglb,.cllb').click(function(){
- $('#bglb,#trgt').fadeOut('fast');
- });
- $('tr.datapeg').click(function(){
- $('#txtnip').val(($('#n'+this.id).html()));
- $('#txtnama').val(($('#m'+this.id).html()))
- });
- });
- </script>
- <body>
- <div id="bglb"></div>
- <div id="trgt">
- <table border=1 align=center >
- <tr>
- <th align=center>Nip</th>
- <th align=center>Jenis Nama</th>
- </tr>
- <?php
- include "config/koneksi.php";
- $query="select NIP, NAMA from pegawai";
- $sql = mysql_query($query);
- while($data = mysql_fetch_array($sql)){
- echo "<tr class='datapeg' id='".$data['NIP']."'>
- <td><span id='n".$data['NIP']."'>".$data['NIP']."</span></td>
- <td><span id='m".$data['NIP']."'>".$data['NAMA']."</span></td>
- </tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <form action="" method="post" name="input">
- <p><label><span>Npwp</span></label><input type="text" name="txtnpwp" ></p>
- <tr>
- <td width=200><font color=#FFFFFF>Nip</font></td>
- <td> <input type='text' name='txtnip' size=25 id="txtnip" />
- <input type='text' name='txtnama' size=30 id="txtnama">
- <input type=button name=Input value=Browse id='link'>
- </td>
- </tr>
- <p><label>Jenis Bendahara</label><input type="text" name="txtjenis_bendahara" /></p>
- <p><label>Nama Bank</label><input type="text" name="txtnama_bank"/></p>
- <p><label >No Rekening</label><input type="text" name="txtno_rekening" /></p>
- <p class="submit-wrap"><input type="submit" id="ftp-submit" class="button" value="Save" name="input" /></p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement