  <?php include 'universal_export_functions.tpl'; ?>
  
  <fieldset class="filters"><legend><div class="pull-right" style="font-size:13px; color:#666"><?php echo $_language->get('total_export_items'); ?> <span class="export_number badge clearblue"></span></div><?php echo $_language->get('export_filters'); ?></legend>

  <div class="row">
    <div class="col-sm-6">
      <div class="form-group">
        <label class="control-label"><?php echo $_language->get('filter_store'); ?></label>
        <div class="input-group">
        <span class="input-group-addon"><i class="fa fa-home"></i></span>
        <select class="form-control" name="filter_store">
          <option value=""><?php echo $_language->get('export_all'); ?></option>
          <?php foreach ($stores as $store) { ?>
            <option value="<?php echo $store['store_id']; ?>" <?php if (isset($profile['filter_store']) && $profile['filter_store'] !== '' && $profile['filter_store'] == $store['store_id']) echo 'selected'; ?>><?php echo $store['name']; ?></option>
          <?php } ?>
        </select>
        </div>
      </div>
    </div>
    
    
    
    <div class="col-sm-6">
      <div class="form-group">
        <label class="control-label"><span data-toggle="tooltip" title="<?php echo $_language->get('filter_limit_i'); ?>"><?php echo $_language->get('filter_limit'); ?></span></label>
        <div class="input-group">
        <input type="text" class="form-control" name="filter-start" value="<?php echo isset($profile['filter-start']) ? $profile['filter-start'] : ''; ?>" placeholder="<?php echo $_language->get('filter_limit_start'); ?>" />
        <span class="input-group-addon">-</span>
        <input type="text" class="form-control" name="filter-limit" value="<?php echo isset($profile['filter-limit']) ? $profile['filter-limit'] : ''; ?>" placeholder="<?php echo $_language->get('filter_limit_limit'); ?>"/>
        </div>
      </div>
    </div>
  </div>

</fieldset>

<fieldset><legend><?php echo $_language->get('export_options'); ?></legend>
    <div class="row">
      <div class="col-sm-4">
        <div class="form-group">
          <?php fieldLabel('param_image_path', $_language); ?>
          <div class="input-group">
          <span class="input-group-addon"><i class="fa fa-fw fa-image"></i></span>
          <select class="form-control" name="param_image_path">
            <option value="" <?php if (empty($profile['param_image_path'])) echo 'selected'; ?>><?php echo $_language->get('image_path_absolute'); ?></option>
            <option value="1" <?php if (!empty($profile['param_image_path'])) echo 'selected'; ?>><?php echo $_language->get('image_path_relative'); ?></option>
          </select>
          </div>
        </div>
      </div>
    </div>
    
<div class="spacer"></div>

<?php include 'universal_export_common.tpl'; ?>

<script type="text/javascript">
getTotalExportCount();
</script>