<?php
if(count(get_included_files()) ==1) exit("Direct access not permitted.");
$plg = basename(__FILE__, '.php');
$page->tbJs($plg);

$datarr=array("module"=>$mod);
$_SESSION['moduleload']=$mod;

$page->addLoad("pilihpegawai.init(".json_encode($datarr,true).")");

?>
<div id="box_pegawai" style="display:none;">
	<div style="padding: 10px;">
		<div class="box_button_atas">
			Baris: <select id="jumlah_hal_pegw" class="slkecil" onchange="pilihpegawai.loadepegw()">
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select> &nbsp;
			Hal: <select id="hal_ke_pegw" class="slkecil" onchange="pilihpegawai.loadpegw()"><option value="1">1</option></select>
			&nbsp;<input placeholder="Default: Nomor Pegawai" onkeypress="pilihpegawai.enterpegw(event)" id="cari_pegw" class="in_cari" />
			&nbsp;&nbsp;<span id="btcari_pegw" class="btnone btncari" onclick="pilihpegawai.loadepegw()">Cari</span>
		</div>
		<div id="grid_data_pegw"></div>
		<div id="box_loader_pegw" align="left" class="error"></div>
		<div class="box_button_bawah">
			<span class="btmerah medium" onclick="pilihpegawai.bataldatapegw()">BATAL</span>
			<span id="btprosesmulti" style="display: none">
				&nbsp;&nbsp;<span class="bthijau medium" onclick="pilihpegawai.prosespegawai()">PROSES</span>
			</span>
		</div>
	</div>
</div>
<div id="btdetailpegawai" style="display: none;">
	<div><b>#{nama}</b></div>
	<div>#{jeniskelamin}</div>
	<div>NIP <b>#{nip}</b></div>
	#('#{jabatanstruk}'=="")?'':'<div style="margin-top: 6px"><b>Jabatan Struktural</b></div><div>#{jabatanstruk}</div>'#
	#('#{jabatanfung}'=="")?'':'<div style="margin-top: 6px"><b>Jabatan Fungsional</b></div><div>#{jabatanfung}</div>'#
</div>
<span id="btstatus" style="display: none;cursor: default;background: #{bg}" class="medium">
	<span style="color: #{warna}">#{namastatus}</span>
</span>
<span id="btpilihtunggal" style="display: none;" stpilih="0" class="bt_next" onclick="pilihpegawai.pilihpegawai(#{id},##{jumlah_tabel},##{baris_tabel})"></span>
<span id="btpilihmulti" style="display: none;" stpilih="0" class="bt_tidak" onclick="pilihpegawai.pilihpegawaimulti(#{id},##{jumlah_tabel},##{baris_tabel})"></span>