コード例 #1
0
	<td><input type="text" name="telepon" value="' . $telepon . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Handphone</td>
	<td><input type="text" name="handphone" value="' . $handphone . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Pendidikan Terakhir</td>
	<td><select name="pendidikan_terakhir" class="form-control">';
    $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_pendidikan ORDER BY id");
    $admin .= '<option value="-">== Pendidikan Terakhir ==</option>';
    while ($datas = $koneksi_db->sql_fetchrow($hasil)) {
        $pilihan = $datas['id'] == $pendidikan_terakhir ? "selected" : '';
        $admin .= '<option value="' . $datas['id'] . '" ' . $pilihan . '>' . $datas['nama'] . '</option>';
    }
    $admin .= '</select></td>
</tr>
<tr>
	<td>Foto</td>
	<td><input type="file" name="foto" size="53"><p class="help-block">Extensi foto harus JPG</p></td>
</tr>';
    if (!$fotolama) {
        $fotolama = 'profile-default.jpg';
    }
    $admin .= '<tr>
	<td></td>
	<td><img src="mod/karyawan/images/normal/' . $fotolama . '" height="120">
	<input type="hidden" name="fotolama" value="' . $fotolama . '"></td>
</tr>
<tr>
	<td>Departemen</td>
コード例 #2
0
ファイル: cetak_slip.php プロジェクト: rekysda/sistermetta
<?php

include 'includes/config.php';
include 'includes/mysql.php';
$idkary = int_filter($_GET['idkary']);
$id = int_filter($_GET['id']);
global $koneksi_db, $translateKal, $url_situs;
$hasil = $koneksi_db->sql_query("SELECT * FROM hrd_karyawan WHERE id='{$idkary}'");
$data = $koneksi_db->sql_fetchrow($hasil);
$nama = $data['nama'];
$jabatan = getjabatan($data['jabatan']);
$departemen = getdepartemen($data['departemen']);
$status = getstatus($data['status']);
$golongan = getgolongan($data['golongan']);
$nip = $data['nip'];
$norek = $data['norek'];
$namarek = $data['namarek'];
$hasil2 = $koneksi_db->sql_query("SELECT * FROM hrd_penggajian WHERE id='{$id}'");
$data2 = $koneksi_db->sql_fetchrow($hasil2);
$bulan = getbulan($data2['bulan']);
$tahun = $data2['tahun'];
$gajipokok = $data2['gajipokok'];
$tstruktural = $data2['tstruktural'];
$tfungsional = $data2['tfungsional'];
$tpengabdian = $data2['tpengabdian'];
$tistrianak = $data2['tistrianak'];
$tuangtransport = $data2['tuangtransport'];
$tbebantugas = $data2['tbebantugas'];
$twalikelas = $data2['twalikelas'];
$tkhusus = $data2['tkhusus'];
$tlain = $data2['tlain'];
コード例 #3
0
ファイル: cetaktahap1.php プロジェクト: nickohappy7/sister
$alamat=$data['alamat'];
$kota=$data['kota'];
$telp=$data['telp'];
$hp=$data['hp'];
$ket=$data['ket'];
$asalsekolah=$data['asalsekolah'];
$info=$data['info'];
$kelamin=$data['kelamin'];
$gelombang=$data['gelombang'];
$urutan = $no + 1;
echo '
<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++;
}
コード例 #4
0
	<td><img src="mod/karyawan/images/normal/' . $fotolama . '" height="120">
	<input type="hidden" name="fotolama" value="' . $fotolama . '"></td>
</tr>
<tr>
	<td>NIP</td>
	<td><input type="hidden" name="nip" value="' . $nip . '">' . $nip . '</td>
</tr>
<tr>
	<td>Nama Lengkap</td>
	<td>
	<input type="hidden" name="nama" value="' . $nama . '">' . $nama . '
	</td>
</tr>
<tr>
	<td>Departemen</td>
	<td><input type="hidden" name="departemen" value="' . $departemen . '">' . getdepartemen($departemen) . '</td>
</tr>
<tr>
	<td>Jabatan</td>
	<td><input type="hidden" name="jabatan" value="' . $jabatan . '">' . getjabatan($jabatan) . '</td>
</tr>
<tr>
	<td>Status</td>
	<td><input type="hidden" name="status" value="' . $status . '">' . getstatus($status) . '</td>
</tr>
</table></form>';
}
if ($_GET['aksi'] == 'hapus_photo') {
    $idkary = int_filter($_GET['idkary']);
    $id = int_filter($_GET['id']);
    $hapus = mysql_query("DELETE FROM `hrd_pinjaman` WHERE `id`='{$id}'");
コード例 #5
0
ファイル: admin_prbatal.php プロジェクト: nickohappy7/sister
		<td>:</td>
		<td>'.tanggalindo($tgl).'</td>
		<td></td>
		</tr>';
$admin .= '
	<tr>
		<td>Nama PR</td>
		<td>:</td>
		<td>'.$namapr.'</td>
			<td></td>
	</tr>';	
$admin .= '
	<tr>
		<td>Departemen</td>
		<td>:</td>
		<td>'.getdepartemendaritingkat($departemenpr).' - '.getdepartemen($departemenpr).'</td>
			<td></td>
	</tr>';	
$admin .= '
	<tr>
		<td>Tujuan Pembelian</td>
		<td>:</td>
		<td>'.$tujuanpr.'</td>
			<td></td>
	</tr>';	
$admin .= '</table>		</form></div>';	
$admin .='<div class="panel panel-info">';
$admin .= '
<div class="panel-heading"><b>Detail PR</b></div>';	
$admin .= '
<table class="table table-striped table-hover">';
コード例 #6
0
ファイル: admin_absensi.php プロジェクト: nickohappy7/sister
	<td>Bulan / Tahun</td>
	<td><select name="bulan" class="form-control">';
    $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_bulan ORDER BY id");
    $admin .= '<option value="">== Pilih Bulan ==</option>';
    while ($datas = $koneksi_db->sql_fetchrow($hasil)) {
        $admin .= '<option value="' . $datas['id'] . '">' . $datas['bulan'] . '</option>';
    }
    $admin .= '</select>&nbsp;&nbsp;/&nbsp;&nbsp;<input type="text" name="tahun"value="' . $tahun . '" size="25" class="form-control"></td>
</tr>
<tr>
	<td>Masuk</td>
	<td><input type="text" name="masuk" size="25" class="form-control"> Hari</td>
</tr>
<tr>
	<td>Lembur</td>
	<td><input type="text" name="lembur" size="25" class="form-control"> Menit</td>
</tr>
<tr>
	<td>Sakit</td>
	<td><input type="text" name="sakit" size="25" class="form-control"> Hari</td>
</tr>
<tr>
	<td>Alpha</td>
	<td><input type="text" name="alpha" size="25" class="form-control"> Hari</td>
</tr>
<tr>
	<td>Terlambat</td>
	<td><input type="text" name="telat" size="25" class="form-control"> Menit</td>
</tr>
<tr>
	<td></td>
コード例 #7
0
    }
    $admin .= '</tbody></table>';
}
###################################
# Tambah Berkas
###################################
if ($_GET['aksi'] == "add_berkas") {
    $id = int_filter($_GET['id']);
    $s = $koneksi_db->sql_query("SELECT * FROM hrd_karyawan WHERE id={$id}");
    $datas = $koneksi_db->sql_fetchrow($s);
    $nama = $datas['nama'];
    $admin .= '<legend>Tambah Berkas karyawan dengan nama <strong>' . $nama . '</strong></legend>';
    if (isset($_POST['submit'])) {
        define("GIS_GIF", 1);
        define("GIS_JPG", 2);
        define("GIS_PNG", 3);
        define("GIS_SWF", 4);
        include "includes/hft_image.php";
        $nip = $_POST['nip'];
        $gambartambahan = $_FILES['gambartambahan']['name'];
        $total = $koneksi_db->sql_query("SELECT * FROM hrd_karyawan WHERE nip = '" . $_POST['nip'] . "' and id != '" . $id . "'");
        $jumlah = $koneksi_db->sql_numrows($total);
        $error = '';
        if ($jumlah) {
            $error .= "Error: NIP karyawan {$nip} sudah ada di dalam database!<br />";
        }
        if (!$nip) {
            $error .= "Error: NIP wajib diisi!<br />";
        }
        if ($error) {
            $admin .= '<div class="alert alert-danger">' . $error . '</div>';
コード例 #8
0
ファイル: admin_po.php プロジェクト: nickohappy7/sister
		<td>:</td>
		<td>'.getnamasupplier($_SESSION['kodesupplier']).'</td>';
}else{
$supplier = '
		<td></td>
		<td></td>
		<td></td>';	
	
}

if($_SESSION["kodepr"]!=''){
$datapr = '
		<tr>
		<td>Departemen</td>
		<td>:</td>
		<td>'.getdepartemen($_SESSION['departemenpr']).'</td>
		<td></td>
		<td></td>
		<td></td>
		</tr>
		';
}else{
$datapr = '';	
	
}

if(isset($_POST['batalpo'])){
porefresh();
$style_include[] ='<meta http-equiv="refresh" content="1; url=admin.php?pilih=po&mod=yes" />';
}
コード例 #9
0
ファイル: admin_karyawan.php プロジェクト: nickohappy7/sister
    $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_agama ORDER BY nama");
    $admin .= '<option value="-">== Agama ==</option>';
    while ($datas = $koneksi_db->sql_fetchrow($hasil)) {
        $admin .= '<option value="' . $datas['id'] . '">' . $datas['nama'] . '</option>';
    }
    $admin .= '</select></td>
</tr>
<tr>
	<td>Menikah</td>
	<td><select name="menikah" class="form-control">';
    $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_menikah ORDER BY nama");
    $admin .= '<option value="-">== Status ==</option>';
    while ($datas = $koneksi_db->sql_fetchrow($hasil)) {
        $admin .= '<option value="' . $datas['id'] . '">' . $datas['nama'] . '</option>';
    }
    $admin .= '</select></td>
</tr>
<tr>
	<td>Alamat Lengkap</td>
	<td><input type="text" name="alamat" value="' . $alamat . '" size="50" class="form-control"></td>
</tr>
<tr>
	<td>Kota</td>
	<td><input type="text" name="kota" value="' . $kota . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Kode Pos</td>
	<td><input type="text" name="kodepos" value="' . $kodepos . '" size="30" class="form-control"></td>
</tr>
<tr>
	<td>Propinsi</td>