Пример #1
0
    $jatahcuti = $data['jatahcuti'];
    $norek = $data['norek'];
    $namarek = $data['namarek'];
    $npwp = $data['npwp'];
    $admin .= '<form class="form-inline" method="post" action="" enctype ="multipart/form-data" id="posts">
<table class="table table-striped table-hover">
<tr>
	<td>NIP</td>
	<td><input type="text" name="nip" value="' . $nip . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Nama Lengkap</td>
	<td><input type="text" name="nama" value="' . $nama . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Kota Lahir</td>
	<td><input type="text" name="kotalahir" value="' . $kotalahir . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Tanggal Lahir</td>
	<td><input type="text" name="tgllahir" id="tgllahir" value="' . $tgllahir . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Jenis Kelamin</td>
	<td><select name="kelamin" class="form-control">';
    $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_kelamin ORDER BY kelamin");
    $admin .= '<option value="-">== Jenis Kelamin ==</option>';
    while ($datas = $koneksi_db->sql_fetchrow($hasil)) {
        $pilihan = $datas['id'] == $kelamin ? "selected" : '';
        $admin .= '<option value="' . $datas['id'] . '" ' . $pilihan . '>' . $datas['kelamin'] . '</option>';
    }
Пример #2
0
<tr class="border">
<td class="text-center">'.$no.'</td>
            <td>'.$kode.'</td>
            <td>'.$nama.'</td>
            <td>'.getdepartemen($departemen).'</td>
            <td>'.getkelompok($kelompok).'</td>
			<td>'.$tgllahir.'</td>
            <td>'.$namaortu.'</td>
			<td>'.$alamat.'</td>
			<td>'.$kota.'</td>
			<td>'.$telp.'</td>
			<td>'.$hp.'</td>
			<td>'.$ket.'</td>
			<td>'.$asalsekolah.'</td>
			<td>'.$info.'</td>
			<td>'.getkelamin($kelamin).'</td>
			<td>'.getgelombang($gelombang).'</td>
</tr>';
$no++;
}
echo '</tr>';
echo '</table>';
}
/****************************/
echo "</body</html>";

if (isset($_GET['gelombang'])){
echo "<script language=javascript>
window.print();
</script>";
}