<?php
if(count(get_included_files()) ==1) exit("Direct access not permitted.");
if(!$statuslogin) exit;
$mod = basename(__FILE__, '.php');
$page->tbJs($mod);
$page->setJudul("Module akses management");
$page->addLoad("moduleakses.load()");
?>
<div class="box_button_atas">
	Jumlah baris: <select id="jumlah_hal" class="slkecil" onchange="moduleakses.loade()">
		<option value="30">30</option>
		<option value="50">50</option>
		<option value="100">100</option>
	</select> &nbsp;
	Hal: <select id="hal_ke" class="slkecil" onchange="moduleakses.load()"><option value="1">1</option></select>
	&nbsp;<input placeholder="Default: Nama Module" onkeypress="moduleakses.enter(event)" id="cari" class="in_cari" />
	&nbsp;&nbsp;<span id="btcari" class="btnone btncari" onclick="moduleakses.loade()">Cari</span>
	&nbsp;&nbsp<span class="btnone btncanggih" onclick="moduleakses.caricanggih()">Cari Detail</span>
</div>
<div id="grid_moduleakses"></div>

<span id="btakses" class="bthijau medium" style="display:none;cursor:pointer;" onclick="moduleakses.loadakses(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_akses}</span>
<span id="btstatus" class="#(#{status}==1)?'mini_ok':'mini_dis'#" style="display:none;" onclick="moduleakses.setstatus(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btlevelstatus" style="display:none;" class="#(#{status}==1)?'mini_ok':'mini_dis'#" onclick="moduleakses.setakses(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btaksessub" class="bthijau medium" style="display:none;cursor:pointer;" onclick="moduleakses.loadaksessub(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_akses_sub}</span>
<span id="btlevelsubstatus" style="display:none;" class="#(#{status}>0)?'mini_ok':'mini_dis'#" onclick="moduleakses.setaksessub(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btupload" class="bthijau medium" style="display:none;cursor:pointer;" onclick="moduleakses.loadupload(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_upload}</span>
<span id="btuploadstatus" style="display:none;" class="#(#{status}==1)?'mini_ok':'mini_dis'#" onclick="moduleakses.setaksesupload(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btlampiran" class="bthijau medium" style="display:none;cursor:pointer;" onclick="moduleakses.bukalampiran(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_lampiran}</span>
<span id="bthapusform" class="icon_del" style="display:none;" onclick="moduleakses.hapuslampiran(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btjenisfile" style="display:none;">#{jenis} (#{tipefile})</span>
<span id="btjumlahcetak" class="bthijau medium" style="display:none;cursor:pointer;" onclick="moduleakses.bukacetak(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_cetak}</span>
<span id="bthapuscetak" class="icon_del" style="display:none;" onclick="moduleakses.hapuscetak(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<div id="box_cari_plugin" style="display:none;">
	<div style="padding: 10px;">
		<div class="box_button_atas">
			Baris: <select id="jumlah_hal_plugin" class="slkecil" onchange="moduleakses.loadeplugin()">
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select> &nbsp;
			Hal: <select id="hal_ke_plugin" class="slkecil" onchange="moduleakses.loadplugin()"><option value="1">1</option></select>
			&nbsp;<input placeholder="Default: Nama Plugin" onkeypress="moduleakses.enterplugin(event)" id="cari_plugin" class="in_cari" />
			&nbsp;&nbsp;<span id="btcari_plugin" class="btnone btncari" onclick="moduleakses.loadeplugin()">Cari</span>
		</div>
		<div id="grid_data_plugin"></div>
		<div class="box_button_bawah">
			<div class="error" id="box_loader_plugin" align="center"></div>
			<span class="btmerah medium" onclick="moduleakses.batalpilihplugin()">BATAL</span>&nbsp;&nbsp;
			<span class="bthijau medium" onclick="moduleakses.prosespilihplugin()">PROSES</span>
		</div>
	</div>
</div>
<span id="btpilihplugin" stpilih="0" style="display:none;" class="bt_tidak" onclick="moduleakses.pilihdataplugin(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
