<?php include_once 'header.php';?>

<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
    if (isset($errors["e1"])) echo $errors["e1"];?>
</div>
<?php } ?>

<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card">
<div class="card-header">
  <h3 class="card-title"><i class="fa fa-edit"></i> <?php echo $jkl["hd302"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">

  <div class="form-group">
    <label for="envato_item_id"><?php echo $jkl["hd298"];?></label>
    <input type="text" name="envato_item_id" id="envato_item_id" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["envato_item_id"];?>" />
  </div>

  <div class="form-group">
    <label for="product_name"><?php echo $jkl["hd299"];?></label>
    <input type="text" name="product_name" id="product_name" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["product_name"];?>" />
  </div>

  <div class="form-group">
      <label for="description"><?php echo $jkl["hd300"];?></label>
      <textarea name="description" class="form-control" rows="3"><?php echo $JAK_FORM_DATA["description"];?></textarea>
    </div>

</div>
<div class="card-footer">
  <a href="<?php echo JAK_rewrite::jakParseurl('billing', 'products');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
  <button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
    
<?php include_once 'footer.php';?>
