<?php include "header.php";?>

<section>

<div class="content-border">
<?php if ($errors) { ?>
<div class="status-failure"><?php echo $errors["e"].$errors["e1"].$errors["e2"].$errors["e3"].$errors["e4"];?></div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<table class="table">
<tr>
<td class="content-title" colspan="2"><?php echo $tl["general"]["g46"];?></td>
</tr>
<tr>
	<td class="go"><?php echo $tl["general"]["g41"];?></td>
	<td><input type="text" name="jak_name" id="jak_name" class="inputbig<?php if ($errors["e1"]) { ?> error<?php } ?>" value="<?php echo $_REQUEST["jak_name"]; ?>" /></td>
</tr>
<tr>
	<td valign="top" class="go"><?php echo $tl["general"]["g42"];?></td>
	<td><input type="text" name="jak_img" id="jak_img" class="inputbig" value="<?php echo $_REQUEST["jak_img"];?>" />
	<a href="js/editor/plugins/filemanager/dialog.php?type=1&subfolder=&editor=mce_0&lang=eng&fldr=&field_id=jak_img" class="ifManager"><?php echo $tl["general"]["g69"];?></a>
	</td>
</tr>
</table>
<table class="table">
<tr>
<td class="content-title" colspan="2"><?php echo $tl["general"]["g45"];?></td>
</tr>
<tr>
	<td class="go"><?php echo $tl["general"]["g43"];?></td>
	<td><select name="jak_catparent" size="1">
	<option value="0"<?php if ($_REQUEST["jak_catparent"] == '0') { ?> selected="selected"<?php } ?>><?php echo $tl["general"]["g44"];?></option>
	<?php if (isset($JAK_CAT) && is_array($JAK_CAT)) foreach($JAK_CAT as $v) { if ($v["catparent"] == '0') { ?><option value="<?php echo $v["id"];?>"<?php if ($v["id"] == $_REQUEST["jak_catparent"]) { ?> selected="selected"<?php } ?>><?php echo $v["name"];?></option><?php } } ?></select></td>
</tr>
</table>
<div class="ustatus">
<a href="index.php?p=categories" class="button"><?php echo $tl["general"]["g103"];?></a>
<button type="submit" name="save" class="button"><?php echo $tl["general"]["g38"];?></button>
</div>
</form>
</div>		
</section>
		
<div class="clear"></div>

<script type="text/javascript" src="js/editor/jakimage/jakimage.js"></script>

<script type="text/javascript">
	jakCMS.main_url = "<?php echo BASE_URL;?>";
	jakCMS.main_lang = "<?php echo JAK_LANG;?>";
	jakCMS.jakrequest_uri = "<?php echo JAK_PARSE_REQUEST;?>";
	jakCMS.jakcms_url_orig = "<?php echo BASE_URL;?>";
	
	$(".ifManager").colorbox({
		iframe: true,
		width: 800,
		height: 630
	});
</script>
		
<?php include_once APP_PATH.'admin/template/footer.php';?>