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

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

<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">

  <div class="card">
    <div class="card-header card-header-icon card-header-success">
      <div class="card-icon">
        <i class="material-icons">add</i>
      </div>
      <h4 class="card-title "><?php echo $jkl["g164"];?></h4>
    </div>
    <div class="card-body">

      <a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h15"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>

      <div class="row">
        <div class="col-md-3">

          <div class="fileinput fileinput-new text-center" data-provides="fileinput">
            <div class="fileinput-new thumbnail">
              <img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
            </div>
            <div class="fileinput-preview fileinput-exists thumbnail"></div>
            <div>
              <span class="btn btn-rose btn-round btn-file">
                <span class="fileinput-new"><?php echo $jkl["g165"];?></span>
                <span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
                <input type="file" name="uploadpp" accept="image/*" />
              </span>
              <a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
            </div>
          </div>

        </div>
        <div class="col-md-3">

          <div class="fileinput fileinput-new text-center" data-provides="fileinput">
            <div class="fileinput-new thumbnail">
              <img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
            </div>
            <div class="fileinput-preview fileinput-exists thumbnail"></div>
            <div>
              <span class="btn btn-rose btn-round btn-file">
                <span class="fileinput-new"><?php echo $jkl["g166"];?></span>
                <span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
                <input type="file" name="uploadpp1" accept="image/*" />
              </span>
              <a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
            </div>
          </div>

        </div>
      </div>

    </div>
    <div class="card-footer">
     <button type="submit" name="upload" class="btn btn-primary pull-right"><?php echo $jkl["g127"];?></button>
   </div>
 </div>

 <div class="box">
  <div class="box-header with-border">
    <h3 class="box-title"><?php echo $jkl["g71"];?></h3>
  </div><!-- /.box-header -->
  <div class="box-body">

    <div class="card-columns">
      <?php if (isset($BUTTONS_ALL) && !empty($BUTTONS_ALL)) foreach($BUTTONS_ALL as $k) { if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/buttons/'.$usrfolder.$k) && strpos($k,"_on")) { ?>
        <div class="card card-body text-center">
         <img src="../<?php echo JAK_FILES_DIRECTORY;?>/buttons/<?php echo $usrfolder.$k;?>" alt="<?php echo $k;?>" class="img-fluid center hover-button">
         <div class="card-body">
          <h4 class="card-title"><?php echo $k;?></h4>
          <a href="<?php echo JAK_rewrite::jakParseurl('buttons', 'delete', $k, JAK_USERID);?>" class="btn btn-danger btn-sm btn-confirm" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e43"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a>
        </div>
      </div>
    <?php } } ?>
  </div>

</div>
</div>

<div class="card">
  <div class="card-header card-header-icon card-header-success">
    <div class="card-icon">
      <i class="material-icons">add</i>
    </div>
    <h4 class="card-title "><?php echo $jkl["g298"];?></h4>
  </div>
  <div class="card-body">

    <a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h15"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>

    <div class="row">
      <div class="col-md-3">

        <div class="fileinput fileinput-new text-center" data-provides="fileinput">
          <div class="fileinput-new thumbnail">
            <img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
          </div>
          <div class="fileinput-preview fileinput-exists thumbnail"></div>
          <div>
            <span class="btn btn-rose btn-round btn-file">
              <span class="fileinput-new"><?php echo $jkl["g165"];?></span>
              <span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
              <input type="file" name="uploadppsi" accept="image/*" />
            </span>
            <a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
          </div>
        </div>

      </div>
      <div class="col-md-3">

        <div class="fileinput fileinput-new text-center" data-provides="fileinput">
          <div class="fileinput-new thumbnail">
            <img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
          </div>
          <div class="fileinput-preview fileinput-exists thumbnail"></div>
          <div>
            <span class="btn btn-rose btn-round btn-file">
              <span class="fileinput-new"><?php echo $jkl["g166"];?></span>
              <span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
              <input type="file" name="uploadppsi1" accept="image/*" />
            </span>
            <a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
          </div>
        </div>

      </div>
    </div>

  </div>
  <div class="card-footer">
   <button type="submit" name="upload" class="btn btn-primary pull-right"><?php echo $jkl["g127"];?></button>
 </div>
</div>

<div class="box">
  <div class="box-header with-border">
    <h3 class="box-title"><?php echo $jkl["g292"];?></h3>
  </div><!-- /.box-header -->
  <div class="box-body">

    <div class="card-columns">
      <?php if (isset($SLIDEIMG_ALL) && !empty($SLIDEIMG_ALL)) foreach($SLIDEIMG_ALL as $k) { if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/slideimg/'.$usrfolder.$k) && strpos($k,"_on")) { ?>
        <div class="card card-body text-center">
         <img src="../<?php echo JAK_FILES_DIRECTORY;?>/slideimg/<?php echo $usrfolder.$k;?>" alt="<?php echo $k;?>" class="img-fluid center hover-button">
         <div class="card-body">
          <h4 class="card-title"><?php echo $k;?></h4>
          <a href="<?php echo JAK_rewrite::jakParseurl('buttons', 'deletef', $k, JAK_USERID);?>" class="btn btn-danger btn-sm btn-confirm" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e43"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a>
        </div>
      </div>
    <?php } } ?>
  </div>

</div>
</div>

</form>

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