<?php defined('_JEXEC') or die('Direct Access to this location is not allowed.'); ?>
<div class="alert alert-info">
    <h4><?php echo JText::_('COM_JOOMGALLERY_COMMON_IMPORTANT_NOTICE'); ?></h4>
    <?php echo JText::_('COM_JOOMGALLERY_UPLOAD_BATCH_UPLOAD_NOTE'); ?>
</div>
<form action="<?php echo JRoute::_('index.php?type=batch'); ?>" method="post" name="BatchUploadForm" id="BatchUploadForm" enctype="multipart/form-data" class="form-validate form-horizontal" onsubmit="if(this.task.value == 'upload.upload' && !document.formvalidator.isValid(document.id('BatchUploadForm'))){alert('<?php echo JText::_('JGLOBAL_VALIDATION_FORM_FAILED', true); ?>');return false;}">
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('catid'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('catid'); ?>
    </div>
  </div>
      <?php if(!$this->_config->get('jg_useruseorigfilename')): ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('imgtitle'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('imgtitle'); ?>
    </div>
  </div>
      <?php endif;
            if(!$this->_config->get('jg_useruseorigfilename') && $this->_config->get('jg_useruploadnumber')): ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('filecounter'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('filecounter'); ?>
    </div>
  </div>
      <?php endif; ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('imgtext'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('imgtext'); ?>
    </div>
  </div>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('imgauthor'); ?>
    </div>
    <div class="controls">
      <div class="jg-uploader"><?php echo JHtml::_('joomgallery.displayname', $this->_user->get('id'), 'upload'); ?></div>
    </div>
  </div>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('published'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('published'); ?>
    </div>
  </div>
    <?php /*
      <?php echo $this->batch_form->getLabel('access'); ?>
      <?php echo $this->batch_form->getInput('access'); ?>
        */ ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('zippack'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('zippack'); ?>
    </div>
  </div>
      <?php if($this->_config->get('jg_delete_original_user') == 2): ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('original_delete'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('original_delete'); ?>
    </div>
  </div>
      <?php endif;
            if($this->_config->get('jg_special_gif_upload') == 1): ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('create_special_gif'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('create_special_gif'); ?>
    </div>
  </div>
      <?php endif;
            if($this->_config->get('jg_redirect_after_upload')): ?>
  <div class="control-group">
    <div class="control-label">
      <?php echo $this->batch_form->getLabel('debug'); ?>
    </div>
    <div class="controls">
      <?php echo $this->batch_form->getInput('debug'); ?>
    </div>
  </div>
      <?php endif; ?>
  <div class="control-group">
    <div class="control-label">
      <label for="button"></label>
    </div>
    <div class="controls">
      <button type="submit" class="btn btn-primary"><i class="icon-upload"></i> <?php echo JText::_('COM_JOOMGALLERY_UPLOAD_UPLOAD'); ?></button>
      <button type="button" class="btn" onclick="javascript:location.href='<?php echo JRoute::_('index.php?view=userpanel', false); ?>';return false;"><i class="icon-cancel"></i> <?php echo JText::_('COM_JOOMGALLERY_COMMON_CANCEL'); ?></button>
    </div>
    <input type="hidden" name="task" value="upload.upload" />
  </div>
</form>