<?php
if(count(get_included_files()) ==1) exit("Direct access not permitted.");
if(!$statuslogin) exit;
$mod = basename(__FILE__, '.php');
$page->tbJs($mod);
$page->addLoad("masterplugincetak.load()");
$page->setJudul("Master dan Pengaturan Plugin Cetak");
?>
<div class="box_button_atas">
	Jumlah baris: <select id="jumlah_hal" class="slkecil" onchange="masterplugincetak.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="masterplugincetak.load()"><option value="1">1</option></select>
	&nbsp;<input placeholder="Default: Nama Plugin" onkeypress="masterplugincetak.enter(event)" id="cari" class="in_cari" />
	&nbsp;&nbsp;<span id="btcari" class="btnone btncari" onclick="masterplugincetak.loade()">Cari</span>
	&nbsp;&nbsp;<span class="btnone btncanggih" onclick="masterplugincetak.caricanggih()">Cari Detail</span>
</div>
<div id="grid_masterplugincetak"></div>

<span id="btstatus" class="#(#{status}==1)?'mini_ok':'mini_dis'#" style="display:none;" onclick="masterplugincetak.setstatus(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<span id="btjumlahtpl" style="display: none;" class="bthijau medium" onclick="masterplugincetak.bukatpl(#{id},##{jumlah_tabel},##{baris_tabel},this)">#{jumlah_template}</span>
<span id="bthapustpl" style="display: none" class="icon_del" onclick="masterplugincetak.hapustpl(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
<div id="box_cari_template" class="boxwin boxwinhd">
	<div style="padding: 10px;">
		<div class="box_button_atas">
			Baris: <select id="jumlah_hal_template" class="slkecil" onchange="masterplugincetak.loadetemplate()">
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select> &nbsp;
			Hal: <select id="hal_ke_template" class="slkecil" onchange="masterplugincetak.loadtemplate()"><option value="1">1</option></select>
			&nbsp;<input placeholder="Default: Nama Template" onkeypress="masterplugincetak.entertemplate(event)" id="cari_template" class="in_cari" />
			&nbsp;&nbsp;<span id="btcari_template" class="btnone btncari" onclick="masterplugincetak.loadetemplate()">Cari</span>
		</div>
		<div id="grid_data_template"></div>
		<div class="box_button_bawah">
			<div class="err" id="loader_template"></div>
			<span class="btmerah" onclick="masterplugincetak.batalpilihtemplate()">BATAL</span>&nbsp;&nbsp;
			<span class="bthijau medium" onclick="masterplugincetak.prosespilihtemplate()">PROSES</span>
		</div>
	</div>
</div>
<span id="btpilihtemplate" stpilih="0" style="display:none;" class="bt_tidak" onclick="masterplugincetak.pilihdatatemplate(#{id},##{jumlah_tabel},##{baris_tabel},this)"></span>
		
