<?php

/* import.products.step1.tpl */
class __TwigTemplate_8240ebf029b57fc979b82052ad048c92 extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=importProducts&Step=2\" onsubmit=\"return ValidateForm(CheckImportProductForm)\" id=\"frmImport\" method=\"post\">
<div class=\"BodyContainer\">
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h4 class=\"page-title\">";
        // line 5
        echo getLang("ImportProductsStep1");
        echo "</h4>
\t\t\t<p>";
        // line 6
        echo getLang("ImportProductsStep1Desc");
        echo "</p>
\t\t\t";
        // line 7
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"reset\" value=\"";
        // line 13
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\" />
\t\t\t<input type=\"submit\" value=\"";
        // line 14
        echo getLang("Next");
        echo "\" class=\"FormButton btn btn-success\" />
\t\t</div>
\t</div>
\t<br />
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"panel panel-default\">
\t\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t\t<h3 class=\"panel-title\">";
        // line 22
        echo getLang("ImportDetails");
        echo "</h3> 
\t\t\t\t</div> 

\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t<div class=\"form-group row\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 28
        echo getLang("ImportBulkEditCSV");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"BulkEditTemplate\" id=\"BulkEditTemplate\" value=\"1\" /> ";
        // line 31
        echo getLang("ImportBulkEditCSVYes");
        echo "</label>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 37
        echo getLang("ImportProductsCategory");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"AutoCategory\" value=\"1\" onclick=\"ToggleCategory();\" id=\"AutoCategoryCheck\" ";
        // line 40
        echo twig_safe_filter((isset($context['AutoCategoryChecked']) ? $context['AutoCategoryChecked'] : null));
        echo " /> ";
        echo getLang("AutoDetectCategories");
        echo "</label>

\t\t\t\t\t\t\t<div id=\"ManualCategory\" style=\"display:none; padding-top: 5px; padding-left: 25px;\">
\t\t\t\t\t\t\t\t<div style=\"display:";
        // line 43
        echo twig_safe_filter((isset($context['HideCategorySelect']) ? $context['HideCategorySelect'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t<select name=\"CategoryId\" id=\"CategoryId\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 45
        echo getLang("ChooseACategory");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
        // line 46
        echo twig_safe_filter((isset($context['CategoryOptions']) ? $context['CategoryOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('a1');\" onmouseover=\"ShowHelp('a1', '";
        // line 48
        echo getLang("ImportProductsCategory");
        echo "', '";
        echo getLang("ImportProductsCategoryDesc");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display: none;\" id=\"a1\"></div>
\t\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t\t<div style=\"display:";
        // line 52
        echo twig_safe_filter((isset($context['HideCategoryTextbox']) ? $context['HideCategoryTextbox'] : null));
        echo "\" id=\"HideCategoryBox\">
\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"CategoryName\" id=\"CategoryName\" class=\"Field250\" />
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('b1');\" onmouseover=\"ShowHelp('b1', '";
        // line 54
        echo getLang("ImportProductsCategory");
        echo "', '";
        echo getLang("ImportProductsCategoryCreateDesc");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t<div style=\"display: none;\" id=\"b1\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row BulkImportRowHide\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 63
        echo getLang("ImportOverride");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"OverrideDuplicates\" id=\"Override\" value=\"1\" /> ";
        // line 66
        echo getLang("YesImportOverride");
        echo "</label>

\t\t\t\t\t\t\t<div style=\"display: none\" id=\"HideOverrideOptions\">
\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"DeleteImages\" value=\"1\" /> ";
        // line 69
        echo getLang("DeleteExistingImages");
        echo "</label>
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"DeleteDownloads\" value=\"1\" /> ";
        // line 71
        echo getLang("DeleteExistingDownloads");
        echo "</label>
\t\t\t\t\t\t\t\t<div style=\"display: none;\" id=\"b1\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 79
        echo getLang("ImportIgnoreBlanks");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"IgnoreBlankFields\" value=\"1\" checked=\"checked\"/>&nbsp;";
        // line 82
        echo getLang("ImportIgnoreBlankFields");
        echo "<label>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>

\t\t\t<div class=\"panel panel-default\">
\t\t\t\t<div class=\"panel-heading\"> 
\t\t\t\t\t<h3 class=\"panel-title\">";
        // line 90
        echo getLang("ImportDetails");
        echo "</h3> 
\t\t\t\t</div> 

\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t<div class=\"form-group row\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 96
        echo getLang("ImportFile");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<input id=\"ProductImportUseUpload\" type=\"radio\" name=\"useserver\" value=\"0\" checked=\"checked\" onclick=\"ToggleSource();\" />
\t\t\t\t\t\t\t\t";
        // line 101
        echo getLang("ImportFileUpload");
        echo "\t\t\t\t\t\t\t\t";
        // line 102
        echo getLang("ImportMaxSize", array("maxSize" => (isset($context['ImportMaxSize']) ? $context['ImportMaxSize'] : null)));
        // line 104
        echo "\t\t\t\t\t\t\t</label>

\t\t\t\t\t\t\t<div id=\"ProductImportUploadField\" style=\"margin-left: 25px;\">
\t\t\t\t\t\t\t\t<input type=\"file\" name=\"importfile\" id=\"ImportFile\" class=\"Field250\" />
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t<label><input id=\"ProductImportUseServer\" type=\"radio\" name=\"useserver\" value=\"1\" onclick=\"ToggleSource();\" /> ";
        // line 112
        echo getLang("ImportFileServer");
        echo "</label>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d2');\" onmouseover=\"ShowHelp('d2', '";
        // line 113
        echo getLang("ImportFileServer");
        echo "', '";
        echo getLang("ImportFileServerDesc");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display: none;\" id=\"d2\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"ProductImportServerField\" style=\" display: none;\">
\t\t\t\t\t\t\t\t<select name=\"serverfile\" id=\"ServerFile\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 118
        echo getLang("ImportChooseFile");
        echo "</option>
\t\t\t\t\t\t\t\t\t";
        // line 119
        echo twig_safe_filter((isset($context['ServerFiles']) ? $context['ServerFiles'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"ProductImportServerNoList\" style=\"display: none; font-style: italic;\" class=\"Field250\">
\t\t\t\t\t\t\t\t";
        // line 123
        echo getLang("FieldNoServerFiles");
        echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row BulkImportRowHide\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 130
        echo getLang("ImportContainsHeaders");
        echo ": 
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"Headers\" id=\"Headers\" value=\"1\" /> ";
        // line 133
        echo getLang("YesImportContainsHeaders");
        echo "</label>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row BulkImportRowHide\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 139
        echo getLang("ImportFieldSeparator");
        echo ":
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"FieldSeparator\" id=\"FieldSeparator\" class=\"Field250\" value=\"";
        // line 142
        echo twig_safe_filter((isset($context['FieldSeparator']) ? $context['FieldSeparator'] : null));
        echo "\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group row BulkImportRowHide\">
\t\t\t\t\t\t<label class=\"col-md-2 control-label\">
\t\t\t\t\t\t\t";
        // line 148
        echo getLang("ImportFieldEnclosure");
        echo ":
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-md-10\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"FieldEnclosure\" id=\"FieldEnclosure\" class=\"Field250\" value='";
        // line 151
        echo twig_safe_filter((isset($context['FieldEnclosure']) ? $context['FieldEnclosure'] : null));
        echo "' />
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"reset\" value=\"";
        // line 160
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\" />
\t\t\t<input type=\"submit\" value=\"";
        // line 161
        echo getLang("Next");
        echo "\" class=\"FormButton btn btn-success\" />
\t\t</div>
\t</div>
</form>

<script type=\"text/javascript\">
\tfunction ConfirmCancel()
\t{
\t\tif(confirm('";
        // line 169
        echo getLang("ConfirmCancelImport");
        echo "'))
\t\t\twindow.location = 'index.php?ToDo=manageProducts';
\t}

\tfunction ToggleCategory()
\t{
\t\tvar e = document.getElementById('AutoCategoryCheck');
\t\tif(e.checked == true)
\t\t{
\t\t\tdocument.getElementById('ManualCategory').style.display = 'none';
\t\t}
\t\telse
\t\t{
\t\t\tdocument.getElementById('ManualCategory').style.display = '';
\t\t}
\t}
\tToggleCategory();

\tfunction CheckImportProductForm()
\t{

\t\tvar f= document.getElementById('AutoCategoryCheck');
\t\tif(f.checked != true)
\t\t{
\t\t\tif(document.getElementById('HideCategoryBox').style.display == \"none\")
\t\t\t{
\t\t\t\tvar f = document.getElementById('CategoryId');
\t\t\t\tif(f.selectedIndex < 1)
\t\t\t\t{
\t\t\t\t\talert('";
        // line 198
        echo getLang("NoSelectedCategoryName");
        echo "');
\t\t\t\t\tf.focus();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t\telse
\t\t\t{
\t\t\t\tvar f = document.getElementById('CategoryName');
\t\t\t\tif(f.value == '')
\t\t\t\t{
\t\t\t\t\talert('";
        // line 208
        echo getLang("NoCategoryName");
        echo "');
\t\t\t\t\tf.focus();
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t}
\t\t}
\t\tvar f = document.getElementById('ProductImportUseUpload');
\t\tif(f.checked == true)
\t\t{
\t\t\tvar f = document.getElementById('ImportFile');
\t\t\tif(f.value == '')
\t\t\t{
\t\t\t\talert('";
        // line 220
        echo getLang("NoImportFile");
        echo "');
\t\t\t\tf.focus();
\t\t\t\treturn false;
\t\t\t}
\t\t}
\t\telse
\t\t{
\t\t\tvar f = document.getElementById('ServerFile');
\t\t\tif(f.value < 1)
\t\t\t{
\t\t\t\talert('";
        // line 230
        echo getLang("NoImportFile");
        echo "');
\t\t\t\tf.focus();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\tvar f = document.getElementById('FieldSeparator');
\t\tif(f.value == '')
\t\t{
\t\t\talert('";
        // line 239
        echo getLang("NoImportFieldSeparator");
        echo "');
\t\t\tf.focus();
\t\t\treturn false;
\t\t}

\t\tvar f = document.getElementById('FieldEnclosure');
\t\tif(f.value == '')
\t\t{
\t\t\talert('";
        // line 247
        echo getLang("NoImportFieldEnclosure");
        echo "');
\t\t\tf.focus();
\t\t\treturn false;
\t\t}
\t\treturn true;
\t}

\tfunction ToggleSource()
\t{
\t\tvar file = document.getElementById('ProductImportUseUpload');
\t\tif(file.checked == true)
\t\t{
\t\t\tdocument.getElementById('ProductImportUploadField').style.display = '';
\t\t\tdocument.getElementById('ProductImportServerField').style.display = 'none';
\t\t\tdocument.getElementById('ProductImportServerNoList').style.display = 'none';
\t\t}
\t\telse
\t\t{
\t\t\tdocument.getElementById('ProductImportUploadField').style.display = 'none';
\t\t\tif(document.getElementById('ProductImportServerField').getElementsByTagName('SELECT')[0].options.length == 1)
\t\t\t{
\t\t\t\tdocument.getElementById('ProductImportServerNoList').style.display = '';
\t\t\t}
\t\t\telse
\t\t\t{
\t\t\t\tdocument.getElementById('ProductImportServerField').style.display = '';
\t\t\t}
\t\t}
\t}

\t\$(\"#BulkEditTemplate\").change(function() {
\t\tvar disabled = '';
\t\tif (\$(this).attr('checked')) {
\t\t\tdisabled = 'disabled';
\t\t\t\$(\"#AutoCategoryCheck\").attr('checked', true);
\t\t\tToggleCategory();
\t\t}

\t\t\$(\"#Headers\").attr({
\t\t\t'checked': \$(this).attr('checked'),
\t\t\t'disabled': disabled

\t\t});

\t\t\$(\"#Override\").attr({
\t\t\t'checked': \$(this).attr('checked'),
\t\t\t'disabled': disabled
\t\t});

\t\t\$(\"#Override\").change();

\t\t\$(\".BulkImportRowHide\").toggle();
\t});

\t\$(\"#Override\").change(function() {
\t\tif (\$(this).attr('checked')) {
\t\t\t\$(\"#HideOverrideOptions\").show();
\t\t}
\t\telse {
\t\t\t\$(\"#HideOverrideOptions\").hide();
\t\t}
\t});
</script>
";
    }

}
