<?php
if(count(get_included_files()) ==1) exit("Direct access not permitted.");
$plg = basename(__FILE__, '.php');
$page->tbJs($plg);
?>
<div id="box_imagemanager" style="display: none">
	<div style="padding: 10px;">
		<div class="box_button_atas">
			Jumlah baris: <select id="im_jumlah_hal" class="slkecil" onchange="imagemanager.loade()">
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="0">ALL</option>
			</select> &nbsp;
			Hal: <select id="im_hal_ke" class="slkecil" onchange="imagemanager.loaddaftar()"><option value="1">1</option></select>&nbsp;&nbsp;
			
			&nbsp;<input placeholder="Nama Gambar" onkeypress="imagemanager.enter(event)" id="im_cari" class="in_cari" /> <span id="im_btcari" class="btnone btncari" onclick="imagemanager.loade()">Cari</span>
		</div>
		<div id="box_imdaftarimage">
			<div id="grid_imagemanager"></div>
		</div>
		<div id="boxuploadimage" style="margin-top: 10px;"></div>
		<div class="box_button_bawah">
			<div id="box_loader_im" style="margin-bottom: 10px;"></div>
			<span class="btmerah btncancel" onclick="imagemanager.kembali()">Tutup</span>&nbsp;&nbsp;
			<span onclick="imagemanager.uploadimage()" class="btbiru btnsave">Upload Image</span>
		</div>
	</div>
</div>
<span id="btlihat_imagemanager" style="display: none;">
	<img style="width: 100%" src="#imagemanager.getgambar('#{nama_baru}')#" />
</span>
<div id="btedit_imagemanager" style="display: none">
	<span class="icon_del" onclick="imagemanager.hapusgambar(#{id})"></span>
</div>
<div id="btproses_imagemanager" style="display: none" class="bt_next" onclick="imagemanager.pilihfile(#{id},##{jumlah_tabel},##{baris_tabel})"></div>