<?php include_once APP_PATH.'admin/template/header.php';?>

<section>

<div class="content-border">
<?php if ($errors) { ?>
<div class="status-failure"><?php echo $errors["e"].$errors["e1"].$errors["e2"].$errors["e3"];?></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["shop"]["m2"];?></td>
</tr>
<tr>
	<td class="go"><?php echo $tl["general"]["g41"];?></td>
	<td><input<?php if ($errors["e1"]) { ?> class="error"<?php } ?> type="text" name="jak_field" value="<?php echo $JAK_FORM_DATA["field"];?>" /></td>
</tr>
<?php if ($page3 == 1 || $page3 == 2 || $page3 == 6 || $page3 == 7|| $page3 == 10) { ?> 
<tr>
	<td class="go"><?php if ($page3 == 1) { ?><?php echo $tl["shop"]["m24"];?><?php } else if ($page3 == 2) { ?><?php echo $tl["shop"]["m25"];?><?php } else { ?><?php echo $tl["shop"]["m26"];?><?php } ?></td>
	<td><textarea class="input_field jakeditor<?php if ($errors["e2"]) { ?> error<?php } ?>" cols="60" rows="5" name="jak_field1"><?php echo base64_decode($JAK_FORM_DATA["field1"]);?></textarea></td>
</tr>
<?php } else if ($page3 == 3 || $page3 == 4 || $page3 == 5 || $page3 == 8 || $page3 == 9) { ?>
<tr>
	<td class="go"><?php if ($page3 == 3 || $page3 == 8 || $page3 == 9) { ?><?php echo $tl["login"]["l5"];?><?php } else { ?><?php echo $tl["login"]["l3"];?><?php } ?></td>
	<td><input<?php if ($errors["e2"]) { ?> class="error"<?php } ?> type="text" name="jak_field1" value="<?php echo base64_decode($JAK_FORM_DATA["field1"]);?>" /></td>
</tr>
<?php } ?>
<?php if ($page3 == 4 || $page3 == 5 || $page3 == 9 || $page3 == 10) { ?>
<tr>
	<td class="go"><?php if ($page3 == 9) { echo $tl["user"]["u4"]; } elseif ($page3 == 10) { echo $tl["shop"]["m96"]; } else { echo $tl["shop"]["m28"]; }?></td>
	<td><input<?php if ($errors["e3"]) { ?> class="error"<?php } ?> type="text" name="jak_field2" value="<?php echo base64_decode($JAK_FORM_DATA["field2"]);?>" /></td>
</tr>
<?php } ?>
<tr>
	<td class="go"><?php echo $tl["shop"]["m29"];?></td>
	<td><input type="text" name="jak_fees" value="<?php echo $JAK_FORM_DATA["fees"];?>" /> &#37;</td>
</tr>
</table>

<div class="ustatus">
<a href="index.php?p=shop&amp;sp=payment" class="button"><?php echo $tl["general"]["g103"];?></a>
<button type="submit" name="save" class="button"><?php echo $tl["general"]["g38"];?></button>
</div>

<div class="clear"></div>
</form>
</div>		

</section>

<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;?>";
</script>

<script type="text/javascript" src="js/editor/tinymce.min.js"></script>
<script type="text/javascript" src="js/editor.js"></script>
		
<?php include_once APP_PATH.'admin/template/footer.php';?>