public function display(array $context)
 {
     // line 1
     echo "<html>\n\t<head>\n\t\t<link href=\"css/main.css\" rel=\"stylesheet\" type=\"text/css\"></link>\n\t\t<!-- jQuery leetness -->\n\t\t<script src=\"lib/jquery/js/jquery-1.4.2.min.js\" language=\"javascript\" type=\"text/javascript\">\n\t\t</script>\n\t\t<script src=\"js/main_onLoad.js\" language=\"javascript\" type=\"text/javascript\">\n\t\t</script>\n\t\t<title>wall of lol - where the lulz begin</title>\n\t</head>\n\t<body>\n\t\t<div class=\"center_column\" id=\"header\">\n\t\t\t<img src=\"img/wol-logo\" alt=\"Wall of LoL\" id=\"logo\" />\n\t\t\t<span id=\"author\">written by phishpants && mad_gouki</span>\n\t\t</div>\n\t\t<div class=\"center_column\" id=\"content\">\n\t\t\t<ul id=\"feed\" class=\"feed\">\n";
     // line 18
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_iterator_to_array(isset($context['tweets']) ? $context['tweets'] : null);
     $length = count($context['_seq']);
     $context['loop'] = array('parent' => $context['_parent'], 'length' => $length, 'index0' => 0, 'index' => 1, 'revindex0' => $length - 1, 'revindex' => $length, 'first' => true, 'last' => 1 === $length);
     foreach ($context['_seq'] as $context["_key"] => $context["tweet"]) {
         echo "\t\t\t\t<li class=\"tweet\" id=\"";
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "created_at", array());
         echo "\">\n\t\t\t\t\t<p class=\"tweet_avatar\">\n\t\t\t\t\t\t<a href=\"http://www.twitter.com/";
         // line 20
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "from_user", array());
         echo "\">\n\t\t\t\t\t\t\t<span style=\"display: block; background-image: url('";
         // line 21
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "profile_image_url", array());
         echo "'); height: 48px; width: 48px;\"></span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"tweet_text\">\t\t\t\t\t\t\n";
         // line 25
         if ($this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "to_user", array())) {
             echo "\n\t\t\t\t\t\t\t<a class=\"at_link\" href=\"http://www.twitter.com/";
             // line 26
             echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "to_user", array());
             echo "\">@";
             echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "to_user", array());
             echo "</a> \n";
         }
         // line 27
         echo "\n\t\t\t\t\t\t";
         // line 28
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "tweet_txt", array());
         echo "\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"tweet_info\">\n\t\t\t\t\t\t&mdash; <a class=\"from_user\" href=\"http://www.twitter.com/";
         // line 31
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "from_user", array());
         echo "\">";
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "from_user", array());
         echo "</a> \n\t\t\t\t\t\t<a class=\"tweet_id\" href=\"/status/13691957569\">#";
         // line 32
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "tweetID", array());
         echo "</a> \n\t\t\t\t\t\t<span class=\"created_at\">";
         // line 33
         echo $this->getAttribute(isset($context['tweet']) ? $context['tweet'] : null, "fuzzy_timestamp", array());
         echo "</span>\n\t\t\t\t\t</p>\n\t\t\t\t</li>";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         --$context['loop']['revindex0'];
         --$context['loop']['revindex'];
         $context['loop']['first'] = false;
         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
     }
     $context = $context['_parent'];
     // line 35
     echo "\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class=\"center_column\" id=\"footer\">\n\t\t\t<div class=\"copyright\">(c) 2010 yo' mama</div>\n\t\t</div>\n\t</body>\n</html>";
 }
    public function getpaymentModuleForm($module = null)
    {
        $context = array(
            "module" => $module,
        );

        echo "\t";
        // line 162
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
\t<div id=\"paymentMethodForm_";
        // line 164
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
        echo "\" class=\"paymentMethodForm\">
\t\t";
        // line 165
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['module']) ? $context['module'] : null), "formFields", array(), "any"));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['fieldName'] => $context['fieldData']) {
            echo "\t\t\t";
            // line 166
            $context['inputName'] = (((("paymentField[") . ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"))) . ("][")) . ((isset($context['fieldName']) ? $context['fieldName'] : null))) . ("]");
            echo "\t\t\t";
            // line 167
            if ($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "class", array(), "any")) {
                echo "\t\t\t\t";
                // line 168
                $context['fieldClass'] = $this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "class", array(), "any");
                echo "\t\t\t";
            } else {
                // line 169
                echo "\t\t\t\t";
                // line 170
                $context['fieldClass'] = "Field200";
                echo "\t\t\t";
            }
            // line 171
            echo "
\t\t\t";
            // line 173
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "title", array(), "any")) . (":"), "required" => $this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "required", array(), "any"), "class" => ("Field_") . ((isset($context['fieldName']) ? $context['fieldName'] : null))), ), "method"), "1");
            echo "
\t\t\t\t";
            // line 174
            if ($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "type", array(), "any") == "text") {
                echo "\t\t\t\t\t";
                // line 175
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", (isset($context['inputName']) ? $context['inputName'] : null), $this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "value", array(), "any"), array("class" => (isset($context['fieldClass']) ? $context['fieldClass'] : null)), ), "method"), "1");
                echo "
\t\t\t\t";
            } elseif ($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "type", array(), "any") == "select") {
                // line 176
                echo "\t\t\t\t\t<select name=\"";
                // line 177
                echo twig_escape_filter($this->env, (isset($context['inputName']) ? $context['inputName'] : null), "1");
                echo "\" onchange=\"";
                echo twig_safe_filter($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "onchange", array(), "any"));
                echo ";\" class=\"";
                echo twig_escape_filter($this->env, (isset($context['fieldClass']) ? $context['fieldClass'] : null), "1");
                echo "\">
\t\t\t\t\t\t";
                // line 178
                echo twig_safe_filter($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "options", array(), "any"));
                echo "
\t\t\t\t\t</select>
\t\t\t\t";
            } elseif ($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "type", array(), "any") == "html") {
                // line 180
                echo "\t\t\t\t\t";
                // line 181
                echo twig_safe_filter($this->getAttribute((isset($context['fieldData']) ? $context['fieldData'] : null), "html", array(), "any"));
                echo "
\t\t\t\t";
            }
            // line 182
            echo "\t\t\t";
            // line 183
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "
\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['fieldName'], $context['fieldData'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 184
        echo "\t</div>
";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "<link rel=\"stylesheet\" href=\"Styles/order.form.css\" type=\"text/css\" charset=\"utf-8\">
<div id=\"content\">
\t<form action=\"#\" method=\"post\" accept-charset=\"utf-8\" id=\"orderForm\">
\t\t<input type=\"hidden\" name=\"quoteSession\" value=\"";
        // line 6
        echo twig_escape_filter($this->env, (isset($context['quoteSession']) ? $context['quoteSession'] : null), "1");
        echo "\" id=\"quoteSession\">
\t\t<h1>
\t\t\t";
        // line 8
        if ((isset($context['addingOrder']) ? $context['addingOrder'] : null)) {
            echo "\t\t\t\t";
            // line 9
            echo getLang("AddAnOrder");
            echo "\t\t\t";
        } else {
            // line 10
            echo "\t\t\t\t";
            // line 11
            echo getLang("EditAnOrder");
            echo "\t\t\t";
        }
        // line 12
        echo "\t\t\t<span class=\"orderMachineStateCustomerDetails\" style=\"display: none;\">
\t\t\t\t(";
        // line 14
        echo getLang("StepXofY", array("x" => 1, "y" => 4));
        // line 17
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateItems\" style=\"display: none;\">
\t\t\t\t(";
        // line 20
        echo getLang("StepXofY", array("x" => 2, "y" => 4));
        // line 23
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateShipping\" style=\"display: none;\">
\t\t\t\t(";
        // line 26
        echo getLang("StepXofY", array("x" => 3, "y" => 4));
        // line 29
        echo ")
\t\t\t</span>
\t\t\t<span class=\"orderMachineStateSummary\" style=\"display: none;\">
\t\t\t\t(";
        // line 32
        echo getLang("StepXofY", array("x" => 4, "y" => 4));
        // line 35
        echo ")
\t\t\t</span>
\t\t</h1>
\t\t<p class=\"intro\">
\t\t\t";
        // line 39
        echo getLang("AddOrderIntro");
        echo "\t\t</p>
\t\t";
        // line 41
        echo getFlashMessageBoxes();        echo "
\t\t";
        // line 43
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t<button class=\"orderMachineBackButton\" disabled=\"disabled\" accesskey=\"b\">&lt; ";
        // line 44
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Back", array(), "any"), "b"));
        echo "</button>
\t\t\t<button class=\"orderMachineNextButton\" accesskey=\"n\">";
        // line 45
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Next", array(), "any"), "n"));
        echo " &gt;</button>
\t\t\t";
        // line 46
        echo getLang("Or");
        echo "\t\t\t<a href=\"#\" class=\"orderMachineCancelButton\">";
        // line 47
        echo getLang("Cancel");
        echo "</a>
\t\t";
        // line 48
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "

\t\t<div class=\"orderMachineStateCustomerDetails\">
\t\t\t<input type=\"hidden\" name=\"customerId\" value=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any"), "1");
        echo "\" id=\"customerId\" />
\t\t\t";
        // line 52
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 53
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CustomerDetails", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 55
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderFor", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 58
        echo "
\t\t\t\t\t";
        // line 59
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")) {
            echo "\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"dontchange\" checked=\"checked\" /> ";
            // line 61
            echo getLang("KeepExistingCustomerDetails");
            echo "\t\t\t\t\t\t\t<input type=\"hidden\" id=\"existingCustomerId\" value=\"";
            // line 62
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t</label>
\t\t\t\t\t";
        }
        // line 64
        echo "\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"customer\" ";
        // line 66
        if (((isset($context['addingOrder']) ? $context['addingOrder'] : null)) || ((!$this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")))) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("SearchMyExistingCustomerList");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<div class=\"orderForToggle orderForToggleCustomer\">
\t\t\t\t\t\t<input type=\"text\" name=\"orderForSearch\" id=\"orderForSearch\" class=\"Field300\" />
\t\t\t\t\t</div>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"orderFor\" value=\"new\" ";
        // line 72
        if (((!(isset($context['addingOrder']) ? $context['addingOrder'] : null))) && ((!$this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerId", array(), "any")))) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ANewCustomerOrInStorePurchase");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 77
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("class" => "orderForToggle orderForToggleNew"), ), "method"), "1");
        // line 79
        echo "
\t\t\t\t";
        // line 80
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array(((($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "AccountDetails", array(), "any")) . (" (")) . ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Optional", array(), "any"))) . (")"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 82
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t<p class=\"MessageBox MessageBoxInfo\">
\t\t\t\t\t\t";
        // line 84
        echo getLang("IfDetailsAreNotSpecified");
        echo "\t\t\t\t\t</p>
\t\t\t\t";
        // line 86
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 88
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['accountFormFields']) ? $context['accountFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t";
            // line 89
            if ($this->getAttribute($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "record", array(), "any"), "formfieldprivateid", array(), "any") != "EmailAddress") {
                echo "\t\t\t\t\t\t";
                // line 90
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRowGroup", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            }
            // line 91
            echo "
\t\t\t\t\t";
            // line 93
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "

\t\t\t\t\t";
            // line 95
            if ($this->getAttribute($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "record", array(), "any"), "formfieldprivateid", array(), "any") != "EmailAddress") {
                echo "\t\t\t\t\t\t";
                // line 96
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRowGroup", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            }
            // line 97
            echo "\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 98
        echo "
\t\t\t\t";
        // line 100
        if ((isset($context['accountCustomerGroups']) ? $context['accountCustomerGroups'] : null)) {
            echo "\t\t\t\t\t";
            // line 101
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CustomerGroup", array(), "any")) . (":")), ), "method"), "1");
            // line 103
            echo "
\t\t\t\t\t\t";
            // line 104
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("accountCustomerGroup", (isset($context['accountCustomerGroups']) ? $context['accountCustomerGroups'] : null), (isset($context['null']) ? $context['null'] : null), array("class" => "Field200"), ), "method"), "1");
            // line 106
            echo "
\t\t\t\t\t";
            // line 107
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "
\t\t\t\t";
        }
        // line 108
        echo "\t\t\t";
        // line 109
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 111
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 112
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "BillingAddress", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t<fieldset class=\"existingAddressList\">
\t\t\t\t\t<legend>";
        // line 115
        echo getLang("UseExistingAddress");
        echo "</legend>
\t\t\t\t\t<ul>
\t\t\t\t\t</ul>
\t\t\t\t</fieldset>
\t\t\t\t";
        // line 119
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['billingFormFields']) ? $context['billingFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t";
            // line 120
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "
\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 121
        echo "
\t\t\t\t";
        // line 123
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => " "), ), "method"), "1");
        // line 125
        echo "
\t\t\t\t\t<label>
\t\t\t\t\t\t<input type=\"checkbox\" name=\"saveBillingAddress\" value=\"1\" checked=\"checked\" />
\t\t\t\t\t\t";
        // line 128
        echo getLang("SaveToCustomersAddressBook");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 130
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 131
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t</div>

\t\t<div class=\"orderMachineStateItems\">
\t\t\t";
        // line 135
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t";
        // line 136
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array("Search Items", ), "method"), "1");
        echo "

\t\t\t\t";
        // line 138
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        // line 140
        echo "
\t\t\t\t\t<div>
\t\t\t\t\t\t<a href=\"#\" class=\"quoteItemSearchIcon\" />&nbsp;</a>
\t\t\t\t\t\t<div class=\"quoteItemSearch\">
\t\t\t\t\t\t\t<input type=\"text\" />
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div>
\t\t\t\t\t\t<a class=\"addVirtualItemLink\" href=\"#\">";
        // line 148
        echo getLang("AddVirtualItemLink");
        echo "</a>
\t\t\t\t\t\t<div class=\"addVirtualItemLinkAfter\"></div>
\t\t\t\t\t</div>
\t\t\t\t";
        // line 151
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 152
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t";
        // line 154
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t";
        // line 155
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ItemsInOrder", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 157
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t<div ";
        // line 158
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any")) {
            echo "style=\"display: none\"";
        }
        echo " class=\"orderNoItemsMessage\">
\t\t\t\t\t\t<p class=\"MessageBox MessageBoxInfo\">
\t\t\t\t\t\t\t";
        // line 160
        echo getLang("ThisOrderIsCurrentlyEmpty");
        echo "\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div ";
        // line 163
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any") == false) {
            echo "style=\"display: none\"";
        }
        echo " class=\"orderItemsGrid\">
\t\t\t\t\t\t";
        // line 164
        echo twig_safe_filter((isset($context['itemsTable']) ? $context['itemsTable'] : null));
        echo "
\t\t\t\t\t</div>
\t\t\t\t\t<div ";
        // line 166
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "items", array(), "any") == false) {
            echo "style=\"display: none\"";
        }
        echo " id=\"itemSubtotal\">
\t\t\t\t\t\t";
        // line 167
        echo getLang("SubTotal");
        echo ": <span>";
        echo twig_escape_filter($this->env, (isset($context['subtotal']) ? $context['subtotal'] : null), "1");
        echo "</span>
\t\t\t\t\t</div>
\t\t\t\t";
        // line 169
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 170
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t</div>

\t\t<div class=\"orderMachineStateShipping\">
\t\t\t";
        // line 174
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 175
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingDestination", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t";
        // line 177
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShipItemsTo", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 180
        echo "
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital orderFormCheckIfDigital\" value=\"billing\" ";
        // line 182
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "billing") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("TheBillingAddressAlreadySpecified");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_billing nodeJoin\" id=\"shipItemsToBillingAddress\">
\t\t\t\t\t</div>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital\" value=\"single\" ";
        // line 187
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "single") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ASingleAddress");
        echo "\t\t\t\t\t</label>
\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t<input type=\"radio\" name=\"shipItemsTo\" class=\"showByValue orderFormDisableIfDigital\" value=\"multiple\" ";
        // line 190
        if ((isset($context['shipItemsTo']) ? $context['shipItemsTo'] : null) == "multiple") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("MultipleAddressesSpecifyBelow");
        echo "\t\t\t\t\t</label>
\t\t\t\t";
        // line 192
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 193
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t<div class=\"orderFormShowIfDigital\" style=\"display:none;\">
\t\t\t\t<div class=\"MessageBox  MessageBoxInfo\">
\t\t\t\t\t";
        // line 197
        echo getLang("DigitalOrderNotice");
        echo "\t\t\t\t</div>
\t\t\t</div>

\t\t\t<div class=\"orderFormHideIfDigital\" style=\"display:none;\">
\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_single\">
\t\t\t\t\t";
        // line 203
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 204
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingAddress", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t<fieldset class=\"existingAddressList\">
\t\t\t\t\t\t\t<legend>";
        // line 207
        echo getLang("UseExistingAddress");
        echo "</legend>
\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t</fieldset>

\t\t\t\t\t\t";
        // line 212
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['shippingFormFields']) ? $context['shippingFormFields'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['formField']) {
            echo "\t\t\t\t\t\t\t";
            // line 213
            echo twig_safe_filter($this->getAttribute((isset($context['formField']) ? $context['formField'] : null), "loadForFrontend", array(), "any"));
            echo "
\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['formField'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 214
        echo "
\t\t\t\t\t\t";
        // line 216
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => " "), ), "method"), "1");
        // line 218
        echo "
\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"saveShippingAddress\" value=\"1\" checked=\"checked\" />
\t\t\t\t\t\t\t\t";
        // line 221
        echo getLang("SaveToCustomersAddressBook");
        echo "\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t";
        // line 223
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 225
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>

\t\t\t\t";
        // line 228
        $context['address'] = $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "getShippingAddress", array(), "any");
        echo "
\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_billing showByValue_shipItemsTo_single\">
\t\t\t\t\t";
        // line 231
        $context['shippingMethod'] = $this->getAttribute((isset($context['address']) ? $context['address'] : null), "shippingMethod", array(), "any");
        echo "\t\t\t\t\t";
        // line 232
        if ((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) {
            echo "\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[isCustom]\" value=\"";
            // line 233
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "isCustom", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[module]\" value=\"";
            // line 234
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[description]\" value=\"";
            // line 235
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), "1");
            echo "\" />
\t\t\t\t\t\t<input type=\"hidden\" name=\"currentShipping[price]\" value=\"";
            // line 236
            echo formatPrice(twig_escape_filter($this->env, $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"), "1"), false, false);
            echo "\" />
\t\t\t\t\t";
        }
        // line 237
        echo "
\t\t\t\t\t";
        // line 239
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 240
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingMethod", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t";
        // line 242
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ChooseAProvider", array(), "any")) . (":")), ), "method"), "1");
        // line 244
        echo "
\t\t\t\t\t\t\t<select name=\"shippingQuoteList\" ";
        // line 245
        if ((!(isset($context['shippingMethod']) ? $context['shippingMethod'] : null))) {
            echo "style=\"display: none\"";
        }
        echo " class=\"Field300 showByValue shippingQuoteList\" size=\"5\">
\t\t\t\t\t\t\t\t";
        // line 246
        if (((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) && ($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any") != "custom")) {
            echo "\t\t\t\t\t\t\t\t\t<option value=\"builtin:current\" selected=\"selected\">";
            // line 247
            echo getLang("UseCurrentShippingMethod", array("method" => $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), "price" => formatPrice($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"))));
            // line 250
            echo "</option>
\t\t\t\t\t\t\t\t";
        }
        // line 251
        echo "\t\t\t\t\t\t\t\t<option value=\"builtin:none\">";
        // line 252
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "xNone", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"builtin:custom\" ";
        // line 253
        if (((isset($context['shippingMethod']) ? $context['shippingMethod'] : null)) && ($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "module", array(), "any") == "custom")) {
            echo "selected=\"selected\"";
        }
        echo ">";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Custom", array(), "any"), "1");
        echo "</option>
\t\t\t\t\t\t\t</select> <a href=\"#\" class=\"fetchShippingQuotesLink\">";
        // line 254
        echo getLang("FetchShippingQuotes");
        echo "</a>
\t\t\t\t\t\t\t<div class=\"nodeJoin customShippingContainer showByValue_shippingQuoteList showByValue_shippingQuoteList_builtincustom\" style=\"display:none;\">
\t\t\t\t\t\t\t\t";
        // line 256
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 257
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingMethod", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 260
        echo "
\t\t\t\t\t\t\t\t\t\t";
        // line 261
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "customShippingDescription", $this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "description", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 263
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 264
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t\t\t\t\t";
        // line 266
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingCost", array(), "any")) . (":"), "last" => true), ), "method"), "1");
        // line 269
        echo "
\t\t\t\t\t\t\t\t\t\t";
        // line 270
        echo twig_escape_filter($this->env, (isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null), "1");
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "customShippingPrice", formatPrice($this->getAttribute((isset($context['shippingMethod']) ? $context['shippingMethod'] : null), "price", array(), "any"), false, false), array("class" => "Field70"), ), "method"), "1");
        // line 272
        echo " ";
        echo twig_escape_filter($this->env, (isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null), "1");
        echo "
\t\t\t\t\t\t\t\t\t";
        // line 273
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t\t";
        // line 274
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
        // line 276
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 277
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>

\t\t\t\t<div class=\"showByValue_shipItemsTo showByValue_shipItemsTo_multiple\" id=\"multiShippingTable\">
\t\t\t\t\t<!-- Placeholder for content loaded in via ajax -->
\t\t\t\t\t";
        // line 282
        if ((isset($context['multiShippingTable']) ? $context['multiShippingTable'] : null)) {
            echo "\t\t\t\t\t\t";
            // line 283
            echo twig_safe_filter((isset($context['multiShippingTable']) ? $context['multiShippingTable'] : null));
            echo "
\t\t\t\t\t";
        }
        // line 284
        echo "\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t<div class=\"orderMachineStateSummary orderMachineStateSummaryLoadingIndicator\" style=\"display:none;\">
\t\t\t<div class=\"orderFormColumns\">
\t\t\t\t<div class=\"orderFormRightColumn\">
\t\t\t\t\t";
        // line 292
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "greenFormContainer"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 293
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "FinalizeOrder", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 294
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t<label class=\"row\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"emailInvoiceToCustomer\" value=\"1\" ";
        // line 296
        if ((isset($context['addingOrder']) ? $context['addingOrder'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("EmailCustomerInvoice");
        echo "?
\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t<div class=\"billingEmailAddressContainer\">(<span class=\"billingEmailAddress\"></span>)</div>
\t\t\t\t\t\t\t<button class=\"orderMachineSaveButton\" disabled=\"disabled\" accesskey=\"s\">";
        // line 299
        if ((isset($context['payment']) ? $context['payment'] : null)) {
            echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "SaveOnly", array(), "any"), "s"));
        } else {
            echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "SaveAndProcessPayment", array(), "any"), "s"));
        }
        echo "</button>
\t\t\t\t\t\t";
        // line 300
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 301
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 303
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "orderSummaryContainer"), ), "method"), "1");
        // line 306
        echo "
\t\t\t\t\t\t";
        // line 307
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderSummary", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 308
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t<div class=\"orderFormSummaryOrderSummaryContainer\"><!-- placeholder --></div>
\t\t\t\t\t\t";
        // line 310
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 311
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 313
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical", "class" => "couponGiftCertificateContainer"), ), "method"), "1");
        // line 316
        echo "

\t\t\t\t\t\t";
        // line 318
        if ((isset($context['allowGiftCertificates']) ? $context['allowGiftCertificates'] : null)) {
            echo "\t\t\t\t\t\t\t";
            // line 319
            $context['couponPanelHeading'] = $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CouponOrGiftCertificateQ", array(), "any");
            echo "\t\t\t\t\t\t";
        } else {
            // line 320
            echo "\t\t\t\t\t\t\t";
            // line 321
            $context['couponPanelHeading'] = $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ApplyCouponOnly", array(), "any");
            echo "\t\t\t\t\t\t";
        }
        // line 322
        echo "
\t\t\t\t\t\t";
        // line 324
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array((isset($context['couponPanelHeading']) ? $context['couponPanelHeading'] : null), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 325
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 326
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "couponGiftCertificate", "", array("class" => "Field120"), ), "method"), "1");
        // line 328
        echo "<input type=\"button\" class=\"orderMachineCouponButton\" value=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Apply", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 329
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 330
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 332
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 333
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PaymentDetails", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t\t";
        // line 335
        echo twig_safe_filter((isset($context['paymentForm']) ? $context['paymentForm'] : null));
        echo "
\t\t\t\t\t";
        // line 336
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"orderFormLeftColumn\">
\t\t\t\t\t<div class=\"orderFormSummaryBillingDetailsContainer\"><!-- placeholder --></div>

\t\t\t\t\t<div class=\"orderFormSummaryShippingDetailsContainer\"><!-- placeholder --></div>

\t\t\t\t\t";
        // line 343
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 344
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "OrderCommentsVisible", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 345
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 346
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "textarea", array("customerMessage", $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "customerMessage", array(), "any"), array("class" => "Field100pct", "rows" => 6), ), "method"), "1");
        // line 349
        echo "
\t\t\t\t\t\t";
        // line 350
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 351
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 353
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 354
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StaffNotesNotVisible", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t\t";
        // line 355
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("last" => true), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t";
        // line 356
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "textarea", array("staffNotes", $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "staffNotes", array(), "any"), array("class" => "Field100pct", "rows" => 6), ), "method"), "1");
        // line 359
        echo "
\t\t\t\t\t\t";
        // line 360
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 361
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"orderFormColumnsEnd\"></div>
\t\t\t</div>
\t\t</div>

\t\t";
        // line 367
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t<button class=\"orderMachineBackButton\" disabled=\"disabled\" accesskey=\"b\">&lt; ";
        // line 368
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Back", array(), "any"), "b"));
        echo "</button>
\t\t\t<button class=\"orderMachineNextButton\" accesskey=\"n\">";
        // line 369
        echo twig_safe_filter($this->getEnvironment()->getExtension('interspire')->accessKeyFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Next", array(), "any"), "n"));
        echo " &gt;</button>
\t\t\t";
        // line 370
        echo getLang("Or");
        echo "\t\t\t<a href=\"#\" class=\"orderMachineCancelButton\">";
        // line 371
        echo getLang("Cancel");
        echo "</a>
\t\t";
        // line 372
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t</form>
</div>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.form.js?";
        // line 375
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/product.functions.js?";
        // line 376
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/autocomplete/jquery.autocomplete.js?";
        // line 377
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/disabled/jquery.disabled.js?";
        // line 378
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/formfield.js?";
        // line 379
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"../javascript/fsm.js?";
        // line 380
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\" charset=\"utf-8\"></script>
<script src=\"script/order.form.fsm.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script src=\"script/order.form.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" charset=\"utf-8\">//<![CDATA[
\t";
        // line 384
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "jslang", array(array(0 => "ChooseVariationBeforeAdding", 1 => "EnterProductRequiredFields", 2 => "ChooseValidProductFieldFile", 3 => "AddingProductToOrder", 4 => "UpdatingProductInOrder", 5 => "OrderCustomerSearchNone", 6 => "CustomerPasswordConfirmError", 7 => "CustomerEmailInvalid", 8 => "ConfirmRemoveProductFromOrder", 9 => "InvalidPaymentModule", 10 => "NoShippingMethodsAreAvailable_1", 11 => "NoShippingMethodsAreAvailable_2", 12 => "PleaseAddOneOrMoreItems", 13 => "ConfirmCancelMessage", 14 => "AddEditOrderConfirmPageNavigation", 15 => "ViewOrderHistory", 16 => "TypeACustomerNameEmailEtc", 17 => "PleaseSearchForACustomer", 18 => "UseThisAddress", 19 => "TypeAProductNameSkuEtc", 20 => "ChooseOneItemForShippingDestination", 21 => "AllocateProducts", 22 => "Cancel", 23 => "SaveChanges", 24 => "ConfirmDeleteShippingDestination", 25 => "QuoteItemSearchNone", 26 => "EditDeletedOrderSaveNotice"), ), "method"), "1");
        // line 412
        echo "

\t";
        // line 414
        if ((isset($context['allowGiftCertificates']) ? $context['allowGiftCertificates'] : null)) {
            echo "\t\tlang[\"EnterACoupon\"] = \"";
            // line 415
            echo Interspire_Template_Extension::jsFilter(getLang("PleaseEnterACouponOrGiftCert"), "'");
            echo "\";
\t";
        } else {
            // line 416
            echo "\t\tlang[\"EnterACoupon\"] = \"";
            // line 417
            echo Interspire_Template_Extension::jsFilter(getLang("PleaseEnterACoupon"), "'");
            echo "\";
\t";
        }
        // line 418
        echo "
\t";
        // line 420
        echo twig_safe_filter((isset($context['formFieldJavascript']) ? $context['formFieldJavascript'] : null));
        echo "

\torderCustomFormFieldsAccountFormId = ";
        // line 422
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "accountFormFields", array(), "any"), "1");
        echo "
\torderCustomFormFieldsBillingFormId = ";
        // line 423
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "billingFormFields", array(), "any"), "1");
        echo ";
\torderCustomFormFieldsShippingFormId = ";
        // line 424
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formFieldTypes']) ? $context['formFieldTypes'] : null), "shippingFormFields", array(), "any"), "1");
        echo ";

\t";
        // line 426
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "orderId", array(), "any")) {
            echo "\t\tOrder_Form.orderId = ";
            // line 427
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "orderId", array(), "any"), "1");
            echo ";
\t";
        }
        // line 428
        echo "
\t\$(function(){
\t\t";
        // line 431
        if ($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "isDigital", array(), "any")) {
            echo "\t\t\tOrder_Form.setIsDigital(true);
\t\t";
        } else {
            // line 433
            echo "\t\t\tOrder_Form.setIsDigital(false);
\t\t";
        }
        // line 435
        echo "
\t\t";
        // line 437
        if ($this->getAttribute((isset($context['order']) ? $context['order'] : null), "deleted", array(), "any")) {
            echo "\t\t\tOrder_Form.setIsDeleted(true);
\t\t";
        }
        // line 439
        echo "
\t\tOrder_Form.updateBillingEmailAddress(\"";
        // line 441
        echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute($this->getAttribute((isset($context['quote']) ? $context['quote'] : null), "getBillingAddress", array(), "any"), "getEmail", array(), "any"));
        echo "\");
\t});
//]]></script>
";
    }
    public function display(array $context)
    {
        // line 1
        echo "\t\t";
        echo twig_safe_filter((isset($context['GettingStartedStep']) ? $context['GettingStartedStep'] : null));
        echo "
\t</div>
\t<div class=\"PageFooter\" style=\"text-align: right;\">
\t\t";
        // line 4
        echo twig_safe_filter((isset($context['DebugDetails']) ? $context['DebugDetails'] : null));
        echo "
\t\t";
        // line 5
        echo twig_safe_filter((isset($context['AdminCopyright']) ? $context['AdminCopyright'] : null));
        echo "
\t</div>
</div>

";
        // line 9
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['bodyScripts']) ? $context['bodyScripts'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['script']) {
            echo "\t<script type=\"text/javascript\" src=\"";
            // line 10
            echo twig_escape_filter($this->env, (isset($context['script']) ? $context['script'] : null), "1");
            echo "?";
            echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
            echo "\"></script>
";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['script'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 11
        echo "
";
        // line 13
        echo twig_safe_filter((isset($context['taskManagerScript']) ? $context['taskManagerScript'] : null));
        echo "

";
        // line 15
        if ((isset($context['idletime']) ? $context['idletime'] : null)) {
            echo "<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/idletimer/cookie.js?";
            // line 16
            echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
            echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/idletimer/idletimer.js?";
            // line 17
            echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
            echo "\"></script>
<script type=\"text/javascript\">
(function(\$){
\t\$.idleTimer(";
            // line 20
            echo twig_escape_filter($this->env, (isset($context['idletime']) ? $context['idletime'] : null), "1");
            echo ", {});
})(jQuery);
</script>
";
        }
        // line 23
        echo "
</body>
</html>
";
    }
    public function display(array $context)
    {
        // line 1
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numTaxZones']) ? $context['numTaxZones'] : null), (isset($context['taxZonesPerPage']) ? $context['taxZonesPerPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), "index.php?ToDo=manageTaxSettings&page={page}#taxZonesTab", ), "method"), "1");
        echo "
<table class=\"taxZonesGrid gridTable SortableGrid\" cellspacing=\"0\" cellpadding=\"0\">
\t<thead>
\t\t<tr>
\t\t\t<th class=\"check checkAll\"><input type=\"checkbox\" /></th>
\t\t\t<th class=\"icon\">&nbsp;</th>
\t\t\t<th>";
        // line 7
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ZoneName", array(), "any"), "1");
        echo "</th>
\t\t\t<th>";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ZoneType", array(), "any"), "1");
        echo "</th>
\t\t\t<th>";
        // line 9
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CustomerGroupOrGroups", array(), "any"), "1");
        echo "</th>
\t\t\t<th style=\"width: 100px\">";
        // line 10
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Status", array(), "any"), "1");
        echo "</th>
\t\t\t<th style=\"width: 180px\">";
        // line 11
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Action", array(), "any"), "1");
        echo "</th>
\t\t</tr>
\t</thead>
\t<tbody>
\t\t";
        // line 15
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['taxZones']) ? $context['taxZones'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['taxZone']) {
            echo "\t\t\t<tr class=\"";
            // line 16
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any")) {
                echo "highlight";
            }
            echo "\">
\t\t\t\t<td class=\"check\">
\t\t\t\t\t<input type=\"checkbox\" name=\"taxZone[]\" value=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "id", array(), "any"), "1");
            echo "\" ";
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any")) {
                echo "disabled=\"disabled\"";
            }
            echo " />
\t\t\t\t</td>
\t\t\t\t<td><img src=\"images/zone.gif\" alt=\"\" /></td>
\t\t\t\t<td>
\t\t\t\t\t";
            // line 22
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "name", array(), "any"), "1");
            echo "
\t\t\t\t\t";
            // line 23
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any")) {
                echo "\t\t\t\t\t\t <strong>(";
                // line 24
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EverywhereElse", array(), "any"), "1");
                echo " - <a href=\"#\" class=\"defaultZoneDefinition\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "WhatDoesThisMean", array(), "any"), "1");
                echo "</a>)</strong>
\t\t\t\t\t";
            }
            // line 25
            echo "\t\t\t\t</td>
\t\t\t\t<td>
\t\t\t\t\t";
            // line 28
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any")) {
                echo "\t\t\t\t\t\t";
                // line 29
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxZoneTypeShortGlobal", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            } else {
                // line 30
                echo "\t\t\t\t\t\t";
                // line 31
                echo getLang(("TaxZoneTypeShort") . (twig_capitalize_string_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "type", array(), "any"))));
                echo "\t\t\t\t\t";
            }
            // line 32
            echo "\t\t\t\t</td>
\t\t\t\t<td>
\t\t\t\t\t";
            // line 35
            $context['_parent'] = (array) $context;
            $context['_iterated'] = false;
            $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "customerGroups", array(), "any"));
            $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
            $length = $countable ? count($context['_seq']) : null;
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if ($countable) {
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context['_key'] => $context['groupName']) {
                $context['_iterated'] = true;
                echo "\t\t\t\t\t\t";
                // line 36
                echo twig_escape_filter($this->env, (isset($context['groupName']) ? $context['groupName'] : null), "1");
                echo "
\t\t\t\t\t";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if ($countable) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            if (!$context['_iterated']) {
                // line 37
                echo "\t\t\t\t\t\t";
                // line 38
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "NA", array(), "any"), "1");
                echo "
\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['groupName'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 39
            echo "\t\t\t\t</td>
\t\t\t\t<td>
\t\t\t\t\t";
            // line 42
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any") == false) {
                echo "\t\t\t\t\t\t<a href=\"#toggle";
                // line 43
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "id", array(), "any"), "1");
                echo "\" class=\"toggleTaxZoneStatusLink statusToggle";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "enabled", array(), "any"), "1");
                echo "\">
\t\t\t\t\t\t\tToggle
\t\t\t\t\t\t</a>
\t\t\t\t\t";
            } else {
                // line 46
                echo "\t\t\t\t\t\t&nbsp;
\t\t\t\t\t";
            }
            // line 48
            echo "\t\t\t\t</td>
\t\t\t\t<td>
\t\t\t\t\t<a href=\"index.php?ToDo=editTaxZone&amp;id=";
            // line 51
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "id", array(), "any"), "1");
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EditSettings", array(), "any"), "1");
            echo "</a>
\t\t\t\t\t<a href=\"index.php?ToDo=editTaxZone&amp;id=";
            // line 52
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "id", array(), "any"), "1");
            echo "#taxRatesTab\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "EditRates", array(), "any"), "1");
            echo "</a>
\t\t\t\t\t<a href=\"#copy";
            // line 53
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "id", array(), "any"), "1");
            echo "\" class=\"copyTaxZoneLink\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Copy", array(), "any"), "1");
            echo "</a>
\t\t\t\t\t";
            // line 54
            if ($this->getAttribute((isset($context['taxZone']) ? $context['taxZone'] : null), "default", array(), "any") == false) {
                echo "\t\t\t\t\t\t<a href=\"#\" class=\"deleteTaxZoneLink\">";
                // line 55
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Delete", array(), "any"), "1");
                echo "</a>
\t\t\t\t\t";
            }
            // line 56
            echo "\t\t\t\t</td>
\t\t\t</tr>
\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxZone'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 59
        echo "\t</tbody>
</table>
";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numTaxZones']) ? $context['numTaxZones'] : null), (isset($context['taxZonesPerPage']) ? $context['taxZonesPerPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), "index.php?ToDo=manageTaxSettings&page={page}#taxZonesTab", ), "method"), "1");
    }
    public function display(array $context)
    {
        // line 1
        echo "<link rel=\"stylesheet\" href=\"Styles/tax.settings.css\" type=\"text/css\" charset=\"utf-8\" />
";
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 3
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
<div id=\"content\">
\t<h1>";
        // line 6
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxSettings", array(), "any"), "1");
        echo "</h1>
\t<p class=\"intro\">
\t\t";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxSettingsIntro", array(), "any"), "1");
        echo "
\t</p>

\t";
        // line 11
        echo twig_safe_filter((isset($context['flashMessages']) ? $context['flashMessages'] : null));
        echo "

\t";
        // line 13
        if ((isset($context['pendingChangesToApply']) ? $context['pendingChangesToApply'] : null)) {
            echo "\t\t<p class=\"MessageBox MessageBoxInfo\">";
            // line 14
            echo getLang("ApplyPendingTaxChanges");
            echo "</p>
\t";
        }
        // line 15
        echo "
\t<div id=\"taxSettings\">
\t\t";
        // line 18
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tabs", array(array("generalTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "General", array(), "any"), "taxClassesTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxClasses", array(), "any"), "taxZonesTab" => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxRatesAndZones", array(), "any")), ), "method"), "1");
        // line 22
        echo "

\t\t<div id=\"generalTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\" id=\"taxSettingsForm\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"saveTaxSettings\" />
\t\t\t\t";
        // line 27
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 28
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureTaxOptions", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 30
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TaxLabel", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 33
        echo "
\t\t\t\t\t\t";
        // line 34
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "taxLabel", $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxLabel", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 36
        echo "
\t\t\t\t\t\t";
        // line 37
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("TaxLabel", "TaxLabelHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 38
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 40
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTax", array(), "any")) . ("?"), "required" => true), ), "method"), "1");
        // line 43
        echo "
\t\t\t\t\t\t";
        // line 44
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "radioList", array("taxEnteredWithPrices", array(1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTaxYes", array(), "any"), 0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesEnteredWithTaxNo", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxEnteredWithPrices", array(), "any"), ), "method"), "1");
        // line 47
        echo "
\t\t\t\t\t\t";
        // line 48
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("PricesEnteredWithTax", "PricesEnteredWithTaxHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 49
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 51
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CalculateTaxBasedOn", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 54
        echo "
\t\t\t\t\t\t";
        // line 55
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxCalculationBasedOn", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "BillingAddress", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingAddress", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "StoreAddress", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxCalculationBasedOn", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 61
        echo "
\t\t\t\t\t\t";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("CalculateTaxBasedOn", "CalculateTaxBasedOnHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 63
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 65
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShippingTaxClass", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 68
        echo "
\t\t\t\t\t\t";
        // line 69
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxShippingTaxClass", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxShippingTaxClass", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 71
        echo "
\t\t\t\t\t\t";
        // line 72
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShippingTaxClass", "ShippingTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 73
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "GiftWrappingTaxClass", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 78
        echo "
\t\t\t\t\t\t";
        // line 79
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxGiftWrappingTaxClass", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxGiftWrappingTaxClass", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 81
        echo "
\t\t\t\t\t\t";
        // line 82
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("GiftWrappingTaxClass", "GiftWrappingTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 83
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 84
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 86
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 87
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureTaxDisplaySettings", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 89
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnProductListings", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 92
        echo "
\t\t\t\t\t\t";
        // line 93
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayCatalog", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeBoth", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayCatalog", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 99
        echo "
\t\t\t\t\t\t";
        // line 100
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnProductListings", "ShowPricesOnProductListingsHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 101
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 103
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnProductDetailPages", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 106
        echo "
\t\t\t\t\t\t";
        // line 107
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayProducts", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any"), 2 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeBoth", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayProducts", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 113
        echo "
\t\t\t\t\t\t";
        // line 114
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnProductDetailPages", "ShowPricesOnProductDetailPagesHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 115
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 117
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesInCart", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 120
        echo "
\t\t\t\t\t\t";
        // line 121
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayCart", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayCart", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 126
        echo "
\t\t\t\t\t\t";
        // line 127
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesInCart", "ShowPricesInCartHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 128
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 130
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesInCart", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 133
        echo "
\t\t\t\t\t\t";
        // line 134
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxChargesInCartBreakdown", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesSummarized", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesBrokenDown", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxChargesInCartBreakdown", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 139
        echo "
\t\t\t\t\t\t";
        // line 140
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowTaxChargesInCart", "ShowTaxChargesInCartHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 141
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 143
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowPricesOnOrdersInvoices", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 146
        echo "
\t\t\t\t\t\t";
        // line 147
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultTaxDisplayOrders", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeInclusive", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PricesShouldBeExclusive", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultTaxDisplayOrders", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 152
        echo "
\t\t\t\t\t\t";
        // line 153
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowPricesOnOrdersInvoices", "ShowPricesOnOrdersInvoicesHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 154
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 156
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesOnOrders", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 159
        echo "
\t\t\t\t\t\t";
        // line 160
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxChargesOnOrdersBreakdown", array(0 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesSummarized", array(), "any"), 1 => $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ShowTaxChargesBrokenDown", array(), "any")), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxChargesOnOrdersBreakdown", array(), "any"), array("class" => "Field300"), ), "method"), "1");
        // line 165
        echo "
\t\t\t\t\t\t";
        // line 166
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ShowTaxChargesOnOrders", "ShowTaxChargesOnOrdersHelp", ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 167
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 168
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "

\t\t\t\t";
        // line 170
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(), "any"), "1");
        echo "
\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t";
        // line 172
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfigureDefaultTaxAddress", array(), "any"), "1");
        echo "
\t\t\t\t\t\t";
        // line 173
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ConfigureDefaultTaxAddress", "ConfigureDefaultTaxAddressHelp", ), "method"), "1");
        echo "
\t\t\t\t\t</div>

\t\t\t\t\t";
        // line 176
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Country", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 179
        echo "
\t\t\t\t\t\t";
        // line 180
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultCountry", (isset($context['countryList']) ? $context['countryList'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultCountry", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 182
        echo "
\t\t\t\t\t";
        // line 183
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 185
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRowGroup", array(array("class" => "defaultStateRow", "hidden" => twig_length_filter($this->env, (isset($context['stateList']) ? $context['stateList'] : null)) <= 1), ), "method"), "1");
        // line 188
        echo "
\t\t\t\t\t\t";
        // line 189
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "State", array(), "any")) . (":"), "required" => true), ), "method"), "1");
        // line 192
        echo "
\t\t\t\t\t\t\t";
        // line 193
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("taxDefaultState", (isset($context['stateList']) ? $context['stateList'] : null), $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultState", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 195
        echo "
\t\t\t\t\t\t";
        // line 196
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "
\t\t\t\t\t";
        // line 197
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRowGroup", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 199
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(array("label" => ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ZipCode", array(), "any")) . (":")), ), "method"), "1");
        // line 201
        echo "
\t\t\t\t\t\t";
        // line 202
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "input", array("text", "taxDefaultZipCode", $this->getAttribute((isset($context['settings']) ? $context['settings'] : null), "taxDefaultZipCode", array(), "any"), array("class" => "Field50"), ), "method"), "1");
        // line 204
        echo "
\t\t\t\t\t";
        // line 205
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
        echo "

\t\t\t\t\t";
        // line 207
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<input type=\"submit\" class=\"saveButton\" value=\"";
        // line 208
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Save", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 209
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Or", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<a href=\"#\" class=\"cancelLink\">";
        // line 210
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Cancel", array(), "any"), "1");
        echo "</a>
\t\t\t\t\t";
        // line 211
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t";
        // line 212
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endForm", array(), "any"), "1");
        echo "
\t\t\t</form>
\t\t</div>

\t\t<div id=\"taxClassesTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"saveTaxClasses\" />
\t\t\t\t";
        // line 219
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startForm", array(array("type" => "vertical"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 221
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "heading", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CreateOrModifyTaxClasses", array(), "any"), ), "method"), "1");
        echo "
\t\t\t\t\t";
        // line 222
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "intro", array($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "CreateOrModifyTaxClassesIntro", array(), "any"), ), "method"), "1");
        echo "

\t\t\t\t\t";
        // line 224
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['taxClasses']) ? $context['taxClasses'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['id'] => $context['name']) {
            echo "\t\t\t\t\t\t";
            // line 225
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t<input type=\"text\" name=\"taxClass[existing][";
            // line 226
            echo twig_escape_filter($this->env, (isset($context['id']) ? $context['id'] : null), "1");
            echo "]\" value=\"";
            echo twig_escape_filter($this->env, (isset($context['name']) ? $context['name'] : null), "1");
            echo "\" class=\"Field400 taxClassLabel\"
\t\t\t\t\t\t\t\t";
            // line 227
            if ($this->getAttribute((isset($context['loop']) ? $context['loop'] : null), "first", array(), "any")) {
                echo "readonly=\"readonly\"";
            }
            echo " />
\t\t\t\t\t\t\t<a class=\"addButton\">+</a>
\t\t\t\t\t\t\t<a class=\"removeButton\" ";
            // line 229
            if ($this->getAttribute((isset($context['loop']) ? $context['loop'] : null), "first", array(), "any")) {
                echo "style=\"display: none\"";
            }
            echo ">-</a>
\t\t\t\t\t\t";
            // line 230
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "
\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['id'], $context['name'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 231
        echo "
\t\t\t\t\t";
        // line 233
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<input type=\"submit\" class=\"saveButton\" value=\"";
        // line 234
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Save", array(), "any"), "1");
        echo "\" />
\t\t\t\t\t\t";
        // line 235
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Or", array(), "any"), "1");
        echo "
\t\t\t\t\t\t<a href=\"#\" class=\"cancelLink\">";
        // line 236
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Cancel", array(), "any"), "1");
        echo "</a>
\t\t\t\t\t";
        // line 237
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>

\t\t<div id=\"taxZonesTab\">
\t\t\t<form action=\"index.php\" method=\"post\" accept-charset=\"utf-8\">
\t\t\t\t<input type=\"hidden\" name=\"ToDo\" value=\"deleteTaxZones\" />
\t\t\t\t<p class=\"intro\">
\t\t\t\t\t<input type=\"button\" value=\"";
        // line 246
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "AddATaxZoneButton", array(), "any"), "1");
        echo "\" class=\"addTaxZoneButton\" />
\t\t\t\t\t<input type=\"submit\" value=\"";
        // line 247
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DeleteSelected", array(), "any"), "1");
        echo "\" class=\"deleteTaxZonesButton\" />
\t\t\t\t</p>

\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 251
        echo twig_safe_filter((isset($context['taxZoneGrid']) ? $context['taxZoneGrid'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</div>
\t</div>
</div>
<script src=\"script/tax.settings.js\" type=\"text/javascript\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" charset=\"utf-8\">
\t";
        // line 259
        if ((isset($context['activeTab']) ? $context['activeTab'] : null)) {
            echo "\t\tTax_Settings.activeTab = '";
            // line 260
            echo twig_escape_filter($this->env, (isset($context['activeTab']) ? $context['activeTab'] : null), "1");
            echo "';
\t";
        }
        // line 261
        echo "
\tlang.ConfirmDeleteTaxClass = \"";
        // line 263
        echo getLang("ConfirmDeleteTaxClass");
        echo "\";
\tlang.ConfirmCancel = \"";
        // line 264
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ConfirmCancel", array(), "any"), "1");
        echo "\";
\tlang.TaxClassMissingName = \"";
        // line 265
        echo Interspire_Template_Extension::jsFilter(getLang("TaxClassMissingName"), "'");
        echo "\";
\tlang.ConfirmDeleteTaxZones = \"";
        // line 266
        echo getLang("ConfirmDeleteTaxZones");
        echo "\";
\tlang.SelectTaxZonesToDelete = \"";
        // line 267
        echo Interspire_Template_Extension::jsFilter(getLang("SelectTaxZonesToDelete"), "'");
        echo "\";
\tlang.DefaultZoneWhatDoesThisMean = \"";
        // line 268
        echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DefaultZoneWhatDoesThisMean", array(), "any"));
        echo "\";
\tlang.InvalidTaxSettingTaxLabel = \"";
        // line 269
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxLabel"), "'");
        echo "\";
\tlang.InvalidTaxSettingTaxDefaultCountry = \"";
        // line 270
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxDefaultCountry"), "'");
        echo "\";
\tlang.InvalidTaxSettingTaxDefaultState = \"";
        // line 271
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidTaxSettingTaxDefaultState"), "'");
        echo "\";
</script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
if (typeof lang == 'undefined') {
\tlang = {};
}
lang.EmailIntegrationGetListsFailed = \"";
        // line 8
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListsFailed"), "'");
        echo "\";
lang.EmailIntegrationGetListFieldsFailed = \"";
        // line 9
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationGetListFieldsFailed"), "'");
        echo "\";
lang.NoneString = \"";
        // line 10
        echo Interspire_Template_Extension::jsFilter(getLang("NoneString"), "'");
        echo "\";
lang.EmailIntegrationIncompleteRuleError = \"";
        // line 11
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationIncompleteRuleError"), "'");
        echo "\";
lang.EmailIntegrationChooseAListToSync = \"";
        // line 12
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationChooseAListToSync"), "'");
        echo "\";
lang.EmailIntegrationFieldSyncNotRequired = \"";
        // line 13
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegrationFieldSyncNotRequired"), "'");
        echo "\";
lang.EmailIntegration_ConfirmRefreshLists = \"";
        // line 14
        echo Interspire_Template_Extension::jsFilter(getLang("EmailIntegration_ConfirmRefreshLists"), "'");
        echo "\";
//]]></script>

";
        // line 17
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t";
            // line 18
            if ((($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any")) && ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsJavaScript", array(), "any"))) && (twig_length_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any")))) {
                echo "\t\t<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
\t\t\t\$(function(){
\t\t\t\tif (Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 21
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"]) {
\t\t\t\t\t// load some commong language for each module
\t\t\t\t\tlang.";
                // line 23
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "_name = \"";
                echo Interspire_Template_Extension::jsFilter(getLang(($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) . ("_name")), "'");
                echo "\";

\t\t\t\t\t// preload this module's list information
\t\t\t\t\tvar provider = Interspire_EmailIntegration_ProviderModel.modules[\"";
                // line 26
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"));
                echo "\"];
\t\t\t\t\tprovider.lists.result = [];
\t\t\t\t\t";
                // line 28
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getLists", array(), "any"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['list']) {
                    echo "\t\t\t\t\t\tprovider.lists.result.push(new Interspire_EmailIntegration_ListModel(provider, \"";
                    // line 29
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "provider_list_id", array(), "any"));
                    echo "\", \"";
                    echo $this->getEnvironment()->getExtension('interspire')->jsFilter($this->getAttribute((isset($context['list']) ? $context['list'] : null), "name", array(), "any"));
                    echo "\"));
\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['list'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 30
                echo "\t\t\t\t}
\t\t\t});
\t\t//]]></script>
\t";
            }
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 35
        echo "
<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){
\t\$(function(){
\t\t\$('#emailIntegrationSettingsForm').submit(function(event){
\t\t\t\$.each(Interspire_EmailIntegration_ProviderModel.modules, function(moduleId, module){
\t\t\t\tif (!module.isSelected()) {
\t\t\t\t\treturn;
\t\t\t\t}

\t\t\t\tif (!module.validateSettingsForm()) {
\t\t\t\t\tevent.preventDefault();
\t\t\t\t\t\$('#tabs').tabs('select', module.id);
\t\t\t\t\treturn false;
\t\t\t\t}
\t\t\t});
\t\t});
\t});
})(jQuery);
//]]></script>

<form action=\"index.php?ToDo=saveUpdatedEmailIntegrationSettings\" id=\"emailIntegrationSettingsForm\" method=\"post\">
\t<input id=\"currentTab\" name=\"currentTab\" value=\"";
        // line 58
        echo twig_escape_filter($this->env, (isset($context['tab']) ? $context['tab'] : null), "1");
        echo "\" type=\"hidden\" />
\t<div id=\"content\">
\t\t<h1>";
        // line 60
        echo getLang("EmailMarketing");
        echo "</h1>

\t\t<p class=\"intro\">";
        // line 62
        echo getLang("EmailIntegrationSettingsIntro");
        echo "</p>

\t\t<div id=\"Status\">";
        // line 64
        echo twig_safe_filter((isset($context['message']) ? $context['message'] : null));
        echo "</div>

\t\t";
        // line 66
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startButtonRow", array(), "any"), "1");
        echo "
\t\t\t";
        // line 67
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "saveButton", array(), "any"), "1");
        echo "
\t\t\t";
        // line 68
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "cancelButton", array(), "any"), "1");
        echo "
\t\t";
        // line 69
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endButtonRow", array(), "any"), "1");
        echo "

\t\t";
        // line 71
        echo "

\t\t<div id=\"tabs\" class=\"tabs\">
\t\t\t";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tabs", array((isset($context['tabs']) ? $context['tabs'] : null), ), "method"), "1");
        echo "

\t\t\t<div id=\"modules\" class=\"";
        // line 76
        if (((isset($context['tab']) ? $context['tab'] : null)) && ((isset($context['tab']) ? $context['tab'] : null) != "modules")) {
            echo "ui-tabs-hide";
        }
        echo "\">
\t\t\t\t";
        // line 77
        $this->env->loadTemplate("settings.emailintegration.general.tpl")->display($context);
        echo "\t\t\t</div>

\t\t\t";
        // line 80
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t";
            // line 81
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "enabled", array(), "any")) {
                echo "\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 82
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[isconfigured]\" value=\"";
                echo twig_default_filter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "isConfigured", array(), "any"), "1"), 0);
                echo "\" />
\t\t\t\t\t<input type=\"hidden\" name=\"";
                // line 83
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "[rules]\" value=\"\" />
\t\t\t\t\t<div id=\"";
                // line 84
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "\" class=\"";
                if ((isset($context['tab']) ? $context['tab'] : null) != $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any")) {
                    echo "ui-tabs-hide";
                }
                echo "\">
\t\t\t\t\t\t";
                // line 85
                if ($this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any")) {
                    echo "\t\t\t\t\t\t\t";
                    // line 86
                    $template = $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "object", array(), "any"), "getSettingsTemplate", array(), "any");
                    if (!$template instanceof Twig_Template) {
                        $template = $this->env->loadTemplate($template);
                    }
                    $template->display($context);
                    echo "\t\t\t\t\t\t";
                } else {
                    // line 87
                    echo "\t\t\t\t\t\t\t";
                    // line 88
                    $this->env->loadTemplate("settings.emailintegration.common.tpl")->display($context);
                    echo "\t\t\t\t\t\t";
                }
                // line 89
                echo "\t\t\t\t\t</div>
\t\t\t\t";
            }
            // line 91
            echo "\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 92
        echo "\t\t</div>
\t</div>
</form>

<script language=\"javascript\" type=\"text/javascript\">//<![CDATA[
(function(\$){

\t\$(function(){
\t\t\$('#tabs').tabs({
\t\t\tselect: function(event, ui){
\t\t\t\t\$('#currentTab').val(ui.panel.id);
\t\t\t}
\t\t});

\t\t";
        // line 107
        if ((isset($context['tab']) ? $context['tab'] : null)) {
            echo "\$('#tabs').tabs('select', '";
            echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['tab']) ? $context['tab'] : null));
            echo "');";
        }
        echo "
\t\t\$('.cancelButton').click(function(event){
\t\t\tevent.preventDefault();

\t\t\tif (confirm(\"";
        // line 112
        echo getLang("ConfirmCancel");
        echo "\")) { ";
        echo "
\t\t\t\tdocument.location.href = \"index.php?ToDo=viewEmailIntegrationSettings\";
\t\t\t}
\t\t});
\t});

})(jQuery);
//]]></script>
";
    }
    public function gethiddenInputs($pairs = null, $exclude = null)
    {
        $context = array(
            "pairs" => $pairs,
            "exclude" => $exclude,
        );

        echo "\t";
        // line 110
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['pairs']) ? $context['pairs'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['key'] => $context['value']) {
            echo "\t\t";
            // line 111
            if ((!twig_in_filter((isset($context['key']) ? $context['key'] : null), (isset($context['exclude']) ? $context['exclude'] : null)))) {
                echo "\t\t\t<input type=\"hidden\" name=\"";
                // line 112
                echo twig_escape_filter($this->env, (isset($context['key']) ? $context['key'] : null), "1");
                echo "\" value=\"";
                echo twig_escape_filter($this->env, (isset($context['value']) ? $context['value'] : null), "1");
                echo "\" />
\t\t";
            }
            // line 113
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
    }
    public function display(array $context)
    {
        // line 1
        echo "
";
        // line 2
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        echo "<p class=\"intro\">
\t";
        // line 4
        echo getLang("GiftCertificatesIntro");
        echo "</p>
<table class=\"GridPanel SortableGrid AutoExpand\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"GiftCertificates\" style=\"width:100%;\">
\t";
        // line 7
        echo "
\t<tr class=\"Heading3\">
\t\t<td>Template</td>
\t\t<td>File Size</td>
\t\t<td>Last Updated</td>
\t\t<td>Enabled</td>
\t\t<td>Action</td>
\t</tr>
\t
\t";
        // line 16
        echo "
\t";
        // line 17
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['GiftCertificateThemes']) ? $context['GiftCertificateThemes'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['theme']) {
            echo "\t<tr class=\"GridRow GiftCertificate\" giftcertificate:id=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "id", array(), "any"), "1");
            echo "\">
\t\t<td width=\"60%\">";
            // line 19
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "name", array(), "any"), "1");
            echo "</td>
\t\t<td>";
            // line 20
            echo Store_Number::niceSize(twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "fileSize", array(), "any"), "1"));
            echo "</td>
\t\t<td>";
            // line 21
            echo $this->getEnvironment()->getExtension('interspire')->dateFormat(twig_escape_filter($this->env, $this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "lastModified", array(), "any"), "1"), "ExtendedDisplayDateFormat");
            echo "</td>
\t\t<td>
\t\t\t<a class=\"toggleEnabledLink\" href=\"#\">
\t\t\t";
            // line 24
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "enabledSwitch", array($this->getAttribute((isset($context['theme']) ? $context['theme'] : null), "isEnabled", array(), "any"), ), "method"), "1");
            echo "
\t\t\t</a>
\t\t</td>
\t\t<td style='white-space:nowrap;'>
\t\t\t<a class=\"previewLink\" href='#'>Preview</a>
\t\t\t<a class=\"editLink\" href='#'>Edit</a>
\t\t\t<a class=\"restoreLink\" href='#'>Restore</a>
\t\t</td>
\t</tr>
\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 33
        echo "\t
\t";
        // line 35
        echo "
\t<tr class=\"giftCertificateEditForm\" style=\"display:none\">
\t\t<td colspan=\"4\">
\t\t\t<div class=\"editBox\" style=\"margin:10px\"></div>
\t\t\t<div style=\"padding-bottom:10px; padding-left: 10px;\">
\t\t\t\t<input class=\"FormButton saveButton\" type=\"button\" value=\"";
        // line 40
        echo getLang("Save");
        echo "\"/>
\t\t\t\t<input class=\"FormButton previewButton\" type=\"button\" value=\"";
        // line 41
        echo getLang("Preview");
        echo "\"/>
\t\t\t\tor
\t\t\t\t<a class=\"cancelLink\" href=\"#\">";
        // line 43
        echo getLang("Cancel");
        echo "</a>
\t\t\t</div>
\t\t</td>
\t\t<td>&nbsp;</td>
\t</tr>
</table>

";
        // line 50
        echo "
<div id=\"giftCertificatePreviewModal\" style=\"display: none;\">
\t<div class=\"ModalTitle\">";
        // line 52
        echo getLang("GiftCertificatePreview");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><span id=\"giftCertificatePreviewFrame\"></span></td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<input type=\"button\" class=\"closeGiftCertificatePreviewButton FormButton\" value=\"";
        // line 61
        echo getLang("Close");
        echo "\"/>
\t</div>
</div>

<script type=\"text/javascript\" src=\"script/layout.giftcertificates.js?";
        // line 65
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type='text/javascript'>
\$('document').ready(function(){
\tlang.GiftCertificateRestoreConfirmation = '";
        // line 68
        echo Interspire_Template_Extension::jsFilter(getLang("GiftCertificateRestoreConfirmation"), "'");
        echo "';
\t
\tLayout.GiftCertificates.Urls = {
\t\tedit : 'index.php?ToDo=editGiftCertificateTheme',
\t\tsave : 'index.php?ToDo=saveGiftCertificate',
\t\trestore : 'index.php?ToDo=restoreGiftCertificate',
\t\tpreview : 'index.php?ToDo=exampleGiftCertificate',
\t\ttoggleEnabled : 'index.php?ToDo=toggleGiftCertificateEnabled',
\t};
\t
\tLayout.GiftCertificates.init();
});
</script>";
    }
    public function display(array $context)
    {
        // line 1
        $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
        // line 2
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../javascript/jquery/themes/cupertino/ui.all.css\" />
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.htmlEncode.js?";
        // line 4
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>

<input type=\"hidden\" name=\"youTubeVideos\" id=\"youTubeVideos\" value=\"";
        // line 6
        echo twig_safe_filter((isset($context['YouTubeVideos']) ? $context['YouTubeVideos'] : null));
        echo "\">

<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=";
        // line 8
        echo twig_safe_filter((isset($context['FormAction']) ? $context['FormAction'] : null));
        echo "\" id=\"frmProduct\" method=\"post\">
<input type=\"hidden\" name=\"productId\" id=\"productId\" value=\"";
        // line 9
        echo twig_safe_filter((isset($context['ProductId']) ? $context['ProductId'] : null));
        echo "\">
<input type=\"hidden\" name=\"productHash\" id=\"productHash\" value=\"";
        // line 10
        echo twig_safe_filter((isset($context['ProductHash']) ? $context['ProductHash'] : null));
        echo "\">
<input type=\"hidden\" name=\"originalProductId\" id=\"originalProductId\" value=\"";
        // line 11
        echo twig_safe_filter((isset($context['OriginalProductId']) ? $context['OriginalProductId'] : null));
        echo "\">
<input id=\"currentTab\" name=\"currentTab\" value=\"0\" type=\"hidden\">
<input id=\"productVariationExisting\" name=\"productVariationExisting\" value=\"";
        // line 13
        echo twig_safe_filter((isset($context['ProductVariationExisting']) ? $context['ProductVariationExisting'] : null));
        echo "\" type=\"hidden\">
<div id=\"youTubeData\" style=\"display: none;\"></div>
<div class=\"BodyContainer\">
\t<table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" style=\"margin-left: 4px; margin-top: 8px;\">
\t<tr>
\t\t<td class=\"Heading1\">";
        // line 18
        echo twig_safe_filter((isset($context['Title']) ? $context['Title'] : null));
        echo "</td>
\t</tr>
\t<tr>
\t\t<td class=\"Intro\">
\t\t\t<p>";
        // line 22
        echo twig_safe_filter((isset($context['Intro']) ? $context['Intro'] : null));
        echo "</p>
\t\t\t<div id=\"MainMessage\">
\t\t\t\t";
        // line 24
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t\t</div>
\t\t\t<p>
\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 27
        echo getLang("SaveAndExit");
        echo "\" class=\"FormButton\" />
\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 28
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" onclick=\"SaveAndAddAnother()\" class=\"FormButton\" style=\"width:130px\" />
\t\t\t\t<input type=\"reset\" value=\"";
        // line 29
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t</p>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<ul id=\"tabnav\">
\t\t\t\t<li><a href=\"#\" class=\"active\" id=\"tab0\" onclick=\"ShowTab(0)\">";
        // line 36
        echo getLang("Details");
        echo "</a></li>
\t\t\t\t<li style=\"display: ";
        // line 37
        echo twig_safe_filter((isset($context['HideDigitalOptions']) ? $context['HideDigitalOptions'] : null));
        echo "\"><a href=\"#\" id=\"tab2\" class=\"ShowOnDigitalProduct\" onclick=\"ShowTab(2)\" style=\"display: none;\">";
        echo getLang("DigitalDownloads");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab8\" onclick=\"ShowTab(8)\">";
        // line 38
        echo getLang("ImagesVideos");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab1\" onclick=\"ShowTab(1)\">";
        // line 39
        echo getLang("EventDate");
        echo "</a></li>
\t\t\t\t<li style=\"display: ";
        // line 40
        echo twig_safe_filter((isset($context['HideInventoryOptions']) ? $context['HideInventoryOptions'] : null));
        echo "\"><a href=\"#\" id=\"tab3\" class=\"HideOnDigitalProduct\" onclick=\"ShowTab(3)\">";
        echo getLang("Inventory");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab4\" onclick=\"ShowTab(4)\" class=\"HideOnDigitalProduct\">";
        // line 41
        echo getLang("Variations");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab5\" onclick=\"ShowTab(5)\">";
        // line 42
        echo getLang("ConfigurableCustomFields");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab6\" onclick=\"ShowTab(6)\">";
        // line 43
        echo getLang("OtherDetails");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab7\" onclick=\"ShowTab(7)\">";
        // line 44
        echo getLang("DiscountRules");
        echo "</a></li>
\t\t\t\t<li><a href=\"#\" id=\"tab9\" onclick=\"ShowTab(9)\">";
        // line 45
        echo getLang("GoogleWebsiteOptimizer");
        echo "</a></li>
\t\t\t</ul>
\t\t</td>
\t</tr>
\t<tr>
\t\t<td>
\t\t\t<!-- Start product details -->
\t\t\t<div id=\"div0\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 53
        echo getLang("CatalogInformationIntro");
        echo "</div>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 56
        echo getLang("CatalogInformation");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 60
        echo getLang("ProductType");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div id=\"ProductType\" class=\"Field\" style=\"float:left\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<input ";
        // line 65
        echo twig_safe_filter((isset($context['ProdType_1']) ? $context['ProdType_1'] : null));
        echo " id=\"ProductType_0\" type=\"radio\" name=\"prodtype\" value=\"1\" onclick=\"ToggleType(0)\"/><label for=\"ProductType_0\">";
        echo getLang("PhysicalProduct");
        echo "</label>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<input ";
        // line 68
        echo twig_safe_filter((isset($context['ProdType_2']) ? $context['ProdType_2'] : null));
        echo " id=\"ProductType_1\" type=\"radio\" name=\"prodtype\" value=\"2\" onclick=\"ToggleType(1)\" /><label for=\"ProductType_1\">";
        echo getLang("DownloadableProduct");
        echo "</label>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d1');\" onmouseover=\"ShowHelp('d1', '";
        // line 71
        echo getLang("ProductType");
        echo "', '";
        echo getLang("ProductTypeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 77
        echo getLang("ProductName");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodName\" name=\"prodName\" class=\"Field400\" value=\"";
        // line 80
        echo twig_safe_filter((isset($context['ProdName']) ? $context['ProdName'] : null));
        echo "\">
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 85
        echo getLang("ProductCodeSKU");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodCode\" name=\"prodCode\" class=\"Field400\" value=\"";
        // line 88
        echo twig_safe_filter((isset($context['ProdCode']) ? $context['ProdCode'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d2');\" onmouseover=\"ShowHelp('d2', '";
        // line 89
        echo getLang("ProductCodeSKU");
        echo "', '";
        echo getLang("ProductCodeSKUHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 95
        echo getLang("Categories");
        echo ":<br />
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;<span style=\"";
        // line 96
        echo twig_safe_filter((isset($context['HideCategoryCreation']) ? $context['HideCategoryCreation'] : null));
        echo "\">(<a href=\"#\" onclick=\"CreateNewCategory(); return false;\">";
        echo getLang("CreateNew");
        echo "</a>)</span>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select size=\"5\" id=\"category\" name=\"category[]\" class=\"Field400 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 140px;\">
\t\t\t\t\t\t\t";
        // line 100
        echo twig_safe_filter((isset($context['CategoryOptions']) ? $context['CategoryOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d3');\" onmouseover=\"ShowHelp('d3', '";
        // line 102
        echo getLang("Categories");
        echo "', '";
        echo getLang("ProductCategoriesHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d3\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"";
        // line 106
        echo twig_safe_filter((isset($context['HideVendorOption']) ? $context['HideVendorOption'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 108
        echo getLang("Vendor");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<span style=\"";
        // line 111
        echo twig_safe_filter((isset($context['HideVendorLabel']) ? $context['HideVendorLabel'] : null));
        echo "\">";
        echo twig_safe_filter((isset($context['CurrentVendor']) ? $context['CurrentVendor'] : null));
        echo "</span>
\t\t\t\t\t\t\t<select name=\"vendor\" id=\"vendor\" class=\"Field400\" style=\"";
        // line 112
        echo twig_safe_filter((isset($context['HideVendorSelect']) ? $context['HideVendorSelect'] : null));
        echo "\" onchange=\"toggleVendorSettings(\$(this).val());\">
\t\t\t\t\t\t\t\t";
        // line 113
        echo twig_safe_filter((isset($context['VendorList']) ? $context['VendorList'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img style=\"";
        // line 115
        echo twig_safe_filter((isset($context['HideVendorSelect']) ? $context['HideVendorSelect'] : null));
        echo "\" onmouseout=\"HideHelp('vendorhelp');\" onmouseover=\"ShowHelp('vendorhelp', '";
        echo getLang("Vendor");
        echo "', '";
        echo getLang("ProductVendorHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"vendorhelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 122
        echo getLang("ProductDescription");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan=\"2\">
\t\t\t\t\t\t\t";
        // line 126
        echo twig_safe_filter((isset($context['WYSIWYG']) ? $context['WYSIWYG'] : null));
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 132
        echo getLang("ProductPriceOptions");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 136
        echo getLang("PreorderAvailability");
        echo "</td>
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_yes\" value=\"yes\" ";
        // line 139
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "yes") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductCanBePurchasedInMyOnlineStore");
        echo "</label></div>

\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_pre\" value=\"pre\" ";
        // line 141
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "pre") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductIsComingSoonButIWantToTakePreOrders");
        echo "</label></div>
\t\t\t\t\t\t\t<div class=\"_prodorderable_detail\" id=\"_prodorderable_pre_detail\" style=\"display:none;\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> ";
        // line 144
        echo getLang("Message");
        echo ": <input type=\"text\" name=\"prodpreordermessage\" id=\"prodpreordermessage\" class=\"Field300\" value=\"";
        echo twig_escape_filter($this->env, (isset($context['prodpreordermessage']) ? $context['prodpreordermessage'] : null), "1");
        echo "\" maxlength=\"250\" />
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('PreorderMessageHelp');\" onmouseover=\"ShowHelp('PreorderMessageHelp', '";
        // line 145
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderMessage"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderMessageHelp"), "'");
        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=\"PreorderMessageHelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> ";
        // line 149
        echo getLang("ReleaseDate");
        echo ": <input type=\"text\" name=\"prodreleasedate\" id=\"prodreleasedate\" class=\"Field80\" value=\"";
        echo twig_escape_filter($this->env, (isset($context['prodreleasedate']) ? $context['prodreleasedate'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodreleasedateremove\" id=\"prodreleasedateremove\" ";
        // line 150
        if ((isset($context['prodreleasedateremove']) ? $context['prodreleasedateremove'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " /> <label for=\"prodreleasedateremove\" />";
        echo getLang("RemovePreOrderStatusOnThisDate");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('PreorderRemoveDateHelp');\" onmouseover=\"ShowHelp('PreorderRemoveDateHelp', '";
        // line 151
        echo Interspire_Template_Extension::jsFilter(getLang("RemovePreOrderStatusOnThisDate"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("PreorderRemoveDateHelp"), "'");
        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=\"PreorderRemoveDateHelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t<div><label><input type=\"radio\" name=\"_prodorderable\" id=\"_prodorderable_no\" value=\"no\" ";
        // line 156
        if ((isset($context['_prodorderable']) ? $context['_prodorderable'] : null) == "no") {
            echo "checked=\"checked\"";
        }
        echo " /> ";
        echo getLang("ThisProductCannotBePurchasedInMyOnlineStore");
        echo "</label></div>
\t\t\t\t\t\t\t<div class=\"_prodorderable_detail\" id=\"_prodorderable_no_detail\" style=\"display:none;\">
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" />
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodHidePrices\" id=\"prodHidePrices\" value=\"1\" ";
        // line 160
        echo twig_safe_filter((isset($context['ProdHidePrice']) ? $context['ProdHidePrice'] : null));
        echo " onclick=\"ToggleCallForPricing()\" />
\t\t\t\t\t\t\t\t\t<label for=\"prodHidePrices\">";
        // line 161
        echo getLang("ProductCallForPricing");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodhidepriceshelp');\" onmouseover=\"ShowHelp('prodhidepriceshelp', '";
        // line 162
        echo Interspire_Template_Extension::jsFilter(getLang("ProductCallForPricing"), "'");
        echo "?', '";
        echo Interspire_Template_Extension::jsFilter(getLang("ProductCallForPricingHelp"), "'");
        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=\"prodhidepriceshelp\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"prodCallForPricingLabelContainer\" style=\"margin-left: 18px; display:none;\">
\t\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"vertical-align: middle;\" /> <label for=\"prodCallForPricingLabel\">";
        // line 166
        echo getLang("ProductCallForPricingLabel");
        echo ":</label> <input type=\"text\" name=\"prodCallForPricingLabel\" id=\"prodCallForPricingLabel\" class=\"Field250\" value=\"";
        echo twig_safe_filter((isset($context['ProdCallForPricingLabel']) ? $context['ProdCallForPricingLabel'] : null));
        echo "\" />
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 173
        echo getLang("Price");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 176
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodPrice\" name=\"prodPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdPrice']) ? $context['ProdPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t";
        // line 177
        if ((isset($context['enterPricesWithTax']) ? $context['enterPricesWithTax'] : null)) {
            echo "\t\t\t\t\t\t\t\t";
            // line 178
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "IncTax", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t";
        } else {
            // line 179
            echo "\t\t\t\t\t\t\t\t";
            // line 180
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ExTax", array(), "any"), "1");
            echo "
\t\t\t\t\t\t\t";
        }
        // line 181
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d6');\" onmouseover=\"ShowHelp('d6', '";
        // line 182
        echo getLang("Price");
        echo "', '";
        echo getLang("PriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d6\"></div>
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"ExpandLink\" onclick=\"toggle_price_options()\"><span id=\"more_price_options\">";
        // line 184
        echo getLang("MorePricingOptions");
        echo " &raquo;</span></a>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_costprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 189
        echo getLang("CostPrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 192
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodCostPrice\" name=\"prodCostPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdCostPrice']) ? $context['ProdCostPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d7');\" onmouseover=\"ShowHelp('d7', '";
        // line 193
        echo getLang("CostPrice");
        echo "', '";
        echo getLang("CostPriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d7\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_retailprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 199
        echo getLang("RetailPrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 202
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodRetailPrice\" name=\"prodRetailPrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdRetailPrice']) ? $context['ProdRetailPrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d8');\" onmouseover=\"ShowHelp('d8', '";
        // line 203
        echo getLang("RetailPrice");
        echo "', '";
        echo getLang("RetailPriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d8\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"tr_saleprice\" style=\"display:none\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 209
        echo getLang("SalePrice");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 212
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodSalePrice\" name=\"prodSalePrice\" class=\"Field80\" value=\"";
        echo twig_safe_filter((isset($context['ProdSalePrice']) ? $context['ProdSalePrice'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d9');\" onmouseover=\"ShowHelp('d9', '";
        // line 213
        echo getLang("SalePrice");
        echo "', '";
        echo getLang("SalePriceHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d9\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 219
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ProductTaxClass", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 222
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("tax_class_id", (isset($context['taxClasses']) ? $context['taxClasses'] : null), $this->getAttribute((isset($context['product']) ? $context['product'] : null), "tax_class_id", array(), "any"), array("class" => "Field250"), ), "method"), "1");
        // line 224
        echo "
\t\t\t\t\t\t\t";
        // line 225
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "tooltip", array("ProductTaxClass", "ProductTaxClassHelp", ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table width=\"100%\" class=\"Panel HideOnDigitalProduct\" id=\"shipping_table\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 231
        echo getLang("ShippingDetails");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 235
        echo getLang("ProductWeight");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodWeight\" name=\"prodWeight\" class=\"Field80\" value=\"";
        // line 238
        echo twig_safe_filter((isset($context['ProdWeight']) ? $context['ProdWeight'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['WeightMeasurement']) ? $context['WeightMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d14');\" onmouseover=\"ShowHelp('d14', '";
        // line 239
        echo getLang("ProductWeight");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductWeightHelp']) ? $context['ProductWeightHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d14\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 245
        echo getLang("ProductWidth");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodWidth\" name=\"prodWidth\" class=\"Field80\" value=\"";
        // line 248
        echo twig_safe_filter((isset($context['ProdWidth']) ? $context['ProdWidth'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d15');\" onmouseover=\"ShowHelp('d15', '";
        // line 249
        echo getLang("ProductWidth");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductWidthHelp']) ? $context['ProductWidthHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d15\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 255
        echo getLang("ProductHeight");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodHeight\" name=\"prodHeight\" class=\"Field80\" value=\"";
        // line 258
        echo twig_safe_filter((isset($context['ProdHeight']) ? $context['ProdHeight'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d16');\" onmouseover=\"ShowHelp('d16', '";
        // line 259
        echo getLang("ProductHeight");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductHeightHelp']) ? $context['ProductHeightHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d16\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 265
        echo getLang("ProductDepth");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodDepth\" name=\"prodDepth\" class=\"Field80\" value=\"";
        // line 268
        echo twig_safe_filter((isset($context['ProdDepth']) ? $context['ProdDepth'] : null));
        echo "\" style=\"text-align: right;\" /> ";
        echo twig_safe_filter((isset($context['LengthMeasurement']) ? $context['LengthMeasurement'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d17');\" onmouseover=\"ShowHelp('d17', '";
        // line 269
        echo getLang("ProductDepth");
        echo "', '";
        echo twig_safe_filter((isset($context['ProductDepthHelp']) ? $context['ProductDepthHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d17\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 275
        echo getLang("FixedShippingCost");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 278
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo " <input type=\"text\" id=\"prodFixedCost\" name=\"prodFixedCost\" class=\"Field80\" style=\"width:70px; text-align: right;\" value=\"";
        echo twig_safe_filter((isset($context['ProdFixedShippingCost']) ? $context['ProdFixedShippingCost'] : null));
        echo "\" onkeyup=\"document.getElementById('prodFreeShipping').checked=false\"> ";
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d21');\" onmouseover=\"ShowHelp('d21', '";
        // line 279
        echo getLang("FixedShippingCost");
        echo "', '";
        echo getLang("FixedShippingCostHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d21\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 285
        echo getLang("FreeShipping");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodFreeShipping\" name=\"prodFreeShipping\" value=\"1\" ";
        // line 288
        echo twig_safe_filter((isset($context['FreeShipping']) ? $context['FreeShipping'] : null));
        echo " onclick=\"if(this.checked) { document.getElementById('prodFixedCost').value='0'; }\"> <label for=\"prodFreeShipping\">";
        echo getLang("YesFreeShipping");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d30');\" onmouseover=\"ShowHelp('d30', '";
        // line 289
        echo getLang("FreeShipping");
        echo "', '";
        echo getLang("FreeShippingProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d30\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div> <!-- End product details -->

\t\t\t<!-- Start event/delivery date -->
\t\t\t<div id=\"div1\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 298
        echo getLang("EventDateIntro");
        echo "</div>
\t\t\t\t  <table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 301
        echo getLang("EventDate");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">&nbsp;&nbsp;&nbsp;";
        // line 304
        echo getLang("EventDateRequired");
        echo "</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input id=\"EventDateRequired\" name=\"EventDateRequired\" type=\"checkbox\" ";
        // line 306
        echo twig_safe_filter((isset($context['EventDateRequired']) ? $context['EventDateRequired'] : null));
        echo " /> ";
        echo getLang("EventDateRequiredInfo");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed1');\" onmouseover=\"ShowHelp('ed1', '";
        // line 307
        echo getLang("EventDateRequiredHelpHeader");
        echo "', '";
        echo getLang("EventDateRequiredHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed1\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DateFieldNameTR\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>
\t\t\t\t\t\t\t";
        // line 314
        echo getLang("EventDateFieldName");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input id=\"EventDateFieldName\" name=\"EventDateFieldName\" value=\"";
        // line 317
        echo twig_safe_filter((isset($context['EventDateFieldName']) ? $context['EventDateFieldName'] : null));
        echo "\" type=\"text\" class=\"Field300\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed2');\" onmouseover=\"ShowHelp('ed2', '";
        // line 318
        echo getLang("EventDateFieldNameHelpHeader");
        echo "', '";
        echo getLang("EventDateFieldNameHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed2\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DateLimitTR\">
\t\t\t\t\t\t<td class=\"FieldLabel\">&nbsp;&nbsp;&nbsp;";
        // line 323
        echo getLang("EventDateLimit");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-bottom: 10px;\">
\t\t\t\t\t\t\t<label><input id=\"LimitDates\" name=\"LimitDates\" type=\"checkbox\" ";
        // line 326
        echo twig_safe_filter((isset($context['LimitDates']) ? $context['LimitDates'] : null));
        echo " /> ";
        echo getLang("EventDateLimitInfo");
        echo "</label>
\t\t\t\t\t\t\t<select id=\"LimitDatesSelect\" name=\"LimitDatesSelect\">
\t\t\t\t\t\t\t\t<option value=\"1\" ";
        // line 328
        echo twig_safe_filter((isset($context['LimitDateOption1']) ? $context['LimitDateOption1'] : null));
        echo ">";
        echo getLang("EventDateLimitOption1");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"2\" ";
        // line 329
        echo twig_safe_filter((isset($context['LimitDateOption2']) ? $context['LimitDateOption2'] : null));
        echo ">";
        echo getLang("EventDateLimitOption2");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"3\" ";
        // line 330
        echo twig_safe_filter((isset($context['LimitDateOption3']) ? $context['LimitDateOption3'] : null));
        echo ">";
        echo getLang("EventDateLimitOption3");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
        // line 332
        echo getLang("EventDateLimitInfo2");
        echo "\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ed3');\" onmouseover=\"ShowHelp('ed3', '";
        // line 333
        echo getLang("EventDateLimitHelpHeader");
        echo "', '";
        echo getLang("EventDateLimitHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" style=\"margin-top: 5px;\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ed3\"></div>
\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t<div id=\"LimitDates1\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 339
        echo getLang("EventDateLimitOption1Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 341
        echo twig_safe_filter((isset($context['OverviewFromDays']) ? $context['OverviewFromDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 344
        echo twig_safe_filter((isset($context['OverviewFromMonths']) ? $context['OverviewFromMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[From][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 347
        echo twig_safe_filter((isset($context['OverviewFromYears']) ? $context['OverviewFromYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<span class=body>";
        // line 349
        echo getLang("EventDateLimitOption1Info2");
        echo "</span>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 351
        echo twig_safe_filter((isset($context['OverviewToDays']) ? $context['OverviewToDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 354
        echo twig_safe_filter((isset($context['OverviewToMonths']) ? $context['OverviewToMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar1[To][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 357
        echo twig_safe_filter((isset($context['OverviewToYears']) ? $context['OverviewToYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"LimitDates2\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 364
        echo getLang("EventDateLimitOption2Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 366
        echo twig_safe_filter((isset($context['OverviewFromDays']) ? $context['OverviewFromDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 369
        echo twig_safe_filter((isset($context['OverviewFromMonths']) ? $context['OverviewFromMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar2[From][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 372
        echo twig_safe_filter((isset($context['OverviewFromYears']) ? $context['OverviewFromYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"LimitDates3\">
\t\t\t\t\t\t\t\t<img style=\"float: left;\" src=\"images/nodejoin.gif\"/>
\t\t\t\t\t\t\t\t<span id=customDate7 style=\"float : left; display:block; margin-top:2px;\">&nbsp;
\t\t\t\t\t\t\t\t";
        // line 379
        echo getLang("EventDateLimitOption3Info");
        echo "\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Day]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 381
        echo twig_safe_filter((isset($context['OverviewToDays']) ? $context['OverviewToDays'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Mth]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 384
        echo twig_safe_filter((isset($context['OverviewToMonths']) ? $context['OverviewToMonths'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<select name=\"Calendar3[To][Yr]\" class=\"\" style=\"margin-bottom:3px\">
\t\t\t\t\t\t\t\t\t";
        // line 387
        echo twig_safe_filter((isset($context['OverviewToYears']) ? $context['OverviewToYears'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</span>&nbsp;
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t</div> <!-- End event/delivery date -->

\t\t\t<!-- Start download file -->
\t\t\t<div id=\"div2\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 398
        echo getLang("ProductDownloadIntro");
        echo "</div>
\t\t\t\t<div id=\"DownloadStatus\"></div>
\t\t\t\t  <table class=\"Panel\">
\t\t\t\t\t<tr id=\"ExistingDownloads\" style=\"display: ";
        // line 401
        echo twig_safe_filter((isset($context['DisplayDownloaadGrid']) ? $context['DisplayDownloaadGrid'] : null));
        echo ";\">
\t\t\t\t\t\t<td style=\"padding-top: 5px;\" colspan=\"2\" >
\t\t\t\t\t\t\t<table class=\"GridPanel\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"ExistingDownloadsGrid\" style=\"width:100%;\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr class=\"Heading3\">
\t\t\t\t\t\t\t\t\t\t<td align=\"center\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t\t<td>";
        // line 407
        echo getLang("FileName");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td align=\"right\" nowrap=\"nowrap\">";
        // line 408
        echo getLang("FileSize");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td align=\"right\"><span onmouseover=\"ShowQuickHelp(this, '";
        // line 409
        echo getLang("Downloads");
        echo "', '";
        echo getLang("DownloadsHelp");
        echo "');\" onmouseout=\"HideQuickHelp(this);\" class=\"HelpText\">";
        echo getLang("Downloads");
        echo "</span></td>
\t\t\t\t\t\t\t\t\t\t<td nowrap=\"nowrap\">";
        // line 410
        echo getLang("MaximumDownloads");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td nowrap=\"nowrap\">";
        // line 411
        echo getLang("ExpiresAfterHeader");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t<td>";
        // line 412
        echo getLang("Action");
        echo "</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t";
        // line 416
        echo twig_safe_filter((isset($context['DownloadsGrid']) ? $context['DownloadsGrid'] : null));
        echo "
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr id=\"DownloadUploadGap\" style=\"display: ";
        // line 421
        echo twig_safe_filter((isset($context['DisplayDownloadUploadGap']) ? $context['DisplayDownloadUploadGap'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"Sep\" colspan=\"2\">&nbsp;</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr style=\"display: ";
        // line 424
        echo twig_safe_filter((isset($context['DisplayDownloadUploadHeading']) ? $context['DisplayDownloadUploadHeading'] : null));
        echo "\">
\t\t\t\t\t\t<td class=\"Heading2\" id=\"DownloadUploadHeading\" colspan=\"2\">";
        // line 425
        echo getLang("DigitalDownloadUploadHeading");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tbody id=\"NewDownload\" style=\"display: ";
        // line 427
        echo twig_safe_filter((isset($context['DisplayNewDownload']) ? $context['DisplayNewDownload'] : null));
        echo "\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 430
        echo getLang("DownloadDescription");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downdescription\" id=\"DownloadDescription\" class=\"Field200\" />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr id=\"EditDownload\" style=\"display: none;\">
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 438
        echo getLang("EditExistingDownload");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td id=\"EditDownloadFile\">
\t\t\t\t\t\t\t&nbsp;
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr id=\"NewDownloadUpload\">
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 446
        echo getLang("UploadNewDownload");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"downloadid\" id=\"CurrentDownloadId\" value=\"\" />
\t\t\t\t\t\t\t\t<div id=\"StatusUploading\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t<input type=\"button\" class=\"SmallButton\" disabled=\"disabled\" value=\"";
        // line 451
        echo getLang("SavingDownload");
        echo "\" />
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<label><input id=\"ProductImportUseUpload\" type=\"radio\" name=\"useserver\" value=\"0\" checked=\"checked\" onclick=\"ToggleSource();\" /> ";
        // line 453
        echo getLang("ImportFileUpload");
        echo " ";
        echo getLang("MaxUploadSize");
        echo "</label>
\t\t\t\t\t\t\t\t<div id=\"StatusNormal\">
\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"Field\" name=\"newdownload\" id=\"NewDownloadFile\" />
\t\t\t\t\t\t\t\t\t<span id=\"EditDownloadButtons\" style=\"display: none;\">
\t\t\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 457
        echo getLang("SaveDownload");
        echo "\" onclick=\"saveDownload();\" class=\"SmallButton\" style=\"width: 90px;\" />
\t\t\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 458
        echo getLang("CancelEdit");
        echo "\" onclick=\"cancelDownloadEdit();\" class=\"SmallButton\" style=\"width: 60px\" />
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<span style=\"font-size: 11px; font-style: italic;\">";
        // line 461
        echo getLang("MaxUploadSize");
        echo "</span>
\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t<label><input id=\"ProductImportUseServer\" type=\"radio\" name=\"useserver\" value=\"1\" onclick=\"ToggleSource();\" /> ";
        // line 463
        echo getLang("ImportProductFileServer");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('i1');\" onmouseover=\"ShowHelp('i1', '";
        // line 464
        echo getLang("ImportProductFileServer");
        echo "', '";
        echo getLang("ImportProductFileServerDesc");
        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=\"i1\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"ProductImportServerField\" style=\"margin-left: 25px; display: none;\">
\t\t\t\t\t\t\t\t\t<select name=\"serverfile\" id=\"ServerFile\" class=\"Field250\">
\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 469
        echo getLang("ImportChooseFile");
        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
        // line 470
        echo twig_safe_filter((isset($context['ServerFiles']) ? $context['ServerFiles'] : null));
        echo "
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"ProductImportServerNoList\" style=\"margin: 5px 0 0 25px; display: none; font-style: italic;\" class=\"Field500\">
\t\t\t\t\t\t\t\t\t";
        // line 474
        echo getLang("FieldNoServerFilesProductDownloads");
        echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<br/>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 481
        echo getLang("ExpiresAfter");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downexpiresafter\" id=\"DownloadExpiresAfter\" class=\"Field40\" />
\t\t\t\t\t\t\t\t<select name=\"downloadexpiresrange\" id=\"DownloadExpiresRange\">
\t\t\t\t\t\t\t\t\t<option value=\"days\">";
        // line 486
        echo getLang("RangeDays");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"weeks\">";
        // line 487
        echo getLang("RangeWeeks");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"months\">";
        // line 488
        echo getLang("RangeMonths");
        echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"years\">";
        // line 489
        echo getLang("RangeYears");
        echo "</option>
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dlexpires');\" onmouseover=\"ShowHelp('dlexpires', '";
        // line 491
        echo getLang("ExpiresAfter");
        echo "', '";
        echo getLang("ExpiresAfterHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dlexpires\"></div>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 497
        echo getLang("MaximumDownloads");
        echo ":
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"downmaxdownloads\" id=\"DownloadMaxDownloads\" class=\"Field40\" />
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dldownloads');\" onmouseover=\"ShowHelp('dldownloads', '";
        // line 501
        echo getLang("MaximumDownloads");
        echo "', '";
        echo getLang("MaximumDownloadsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dldownloads\"></div>
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td clas=\"FieldLabel\">&nbsp;</td>
\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"";
        // line 508
        echo getLang("AttachFile");
        echo "\" onclick=\"attachFile();\" class=\"FormButton Field120\" />
\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td>&nbsp;</td>
\t\t\t\t\t\t\t<td>

\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</tbody>
\t\t\t\t  </table>
\t\t\t</div> <!-- End download file -->

\t\t\t<!-- Start inventory tracking -->
\t\t\t<div id=\"div3\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 523
        echo getLang("InventoryTrackingIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\" id=\"tabInventory\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 526
        echo getLang("InventoryTracking");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 530
        echo getLang("TrackingMethod");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_0\" name=\"prodInvTrack\" value=\"0\" onclick=\"ToggleProductInventoryOptions(false); toggleVariationInventoryColumns();\" ";
        // line 533
        echo twig_safe_filter((isset($context['InvTrack_0']) ? $context['InvTrack_0'] : null));
        echo "> <label for=\"prodInvTrack_0\">";
        echo getLang("DoNotTrackInventory");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d23');\" onmouseover=\"ShowHelp('d23', '";
        // line 534
        echo getLang("TrackingMethod");
        echo "', '";
        echo getLang("TrackingMethodHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d23\"></div><br />
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_1\" name=\"prodInvTrack\" value=\"1\" onclick=\"ToggleProductInventoryOptions(true); toggleVariationInventoryColumns();\" ";
        // line 536
        echo twig_safe_filter((isset($context['InvTrack_1']) ? $context['InvTrack_1'] : null));
        echo "> <label for=\"prodInvTrack_1\">";
        echo getLang("TrackInvForProduct");
        echo "</label><br />
\t\t\t\t\t\t\t<div id=\"divTrackProd\" style=\"display: ";
        // line 537
        echo twig_safe_filter((isset($context['HideProductInventoryOptions']) ? $context['HideProductInventoryOptions'] : null));
        echo "; padding-left:30pt; padding-top:3pt; padding-bottom:3pt\">
\t\t\t\t\t\t\t\t<table border=\"0\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
        // line 541
        echo getLang("CurrentStockLevel");
        echo ":
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"prodCurrentInv\" name=\"prodCurrentInv\" class=\"Field50\" value=\"";
        // line 544
        echo twig_safe_filter((isset($context['CurrentStockLevel']) ? $context['CurrentStockLevel'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d24');\" onmouseover=\"ShowHelp('d24', '";
        // line 545
        echo getLang("CurrentStockLevel");
        echo "', '";
        echo getLang("CurrentStockLevelHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d24\"></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
        // line 551
        echo getLang("LowStockLevel1");
        echo ":
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"prodLowInv\" name=\"prodLowInv\" class=\"Field50\" value=\"";
        // line 554
        echo twig_safe_filter((isset($context['LowStockLevel']) ? $context['LowStockLevel'] : null));
        echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d25');\" onmouseover=\"ShowHelp('d25', '";
        // line 555
        echo getLang("LowStockLevel");
        echo "', '";
        echo getLang("LowStockLevelHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d25\"></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<input type=\"radio\" id=\"prodInvTrack_2\" name=\"prodInvTrack\" value=\"2\" onclick=\"ToggleProductInventoryOptions(false); toggleVariationInventoryColumns();\" ";
        // line 562
        echo twig_safe_filter((isset($context['InvTrack_2']) ? $context['InvTrack_2'] : null));
        echo "> <label for=\"prodInvTrack_2\">";
        echo getLang("TrackInvForProductOpt");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t</div><!-- End inventory tracking -->

\t\t\t<!-- Start product variations -->
\t\t\t<div id=\"div4\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 570
        echo getLang("ProductVariationsIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\" id=\"tabInventory\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 573
        echo getLang("ProductVariationOptions");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 577
        echo getLang("ThisProduct");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td style=\"padding-bottom:10px\">
\t\t\t\t\t\t\t<input type=\"radio\" name=\"useProdVariation\" id=\"useProdVariationNo\" value=\"0\" ";
        // line 580
        echo twig_safe_filter((isset($context['IsNoVariation']) ? $context['IsNoVariation'] : null));
        echo " /> <label for=\"useProdVariationNo\">";
        echo getLang("ProductWillNotUseVariation");
        echo "</label><br />
\t\t\t\t\t\t\t<input type=\"radio\" name=\"useProdVariation\" id=\"useProdVariationYes\" value=\"1\" ";
        // line 581
        echo twig_safe_filter((isset($context['IsYesVariation']) ? $context['IsYesVariation'] : null));
        echo " ";
        echo twig_safe_filter((isset($context['VariationDisabled']) ? $context['VariationDisabled'] : null));
        echo " /> <label for=\"useProdVariationYes\" id=\"variationLabel\" style=\"color:";
        echo twig_safe_filter((isset($context['VariationColor']) ? $context['VariationColor'] : null));
        echo "\">";
        echo getLang("ProductWillUseVariation");
        echo "</label>
\t\t\t\t\t\t\t<span style=\"display:";
        // line 582
        echo twig_safe_filter((isset($context['HideVariationList']) ? $context['HideVariationList'] : null));
        echo ";\" id=\"variationList\">
\t\t\t\t\t\t\t\t<select class=\"Field200\" name=\"variationId\" id=\"variationId\">
\t\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 584
        echo getLang("ChooseAVariation");
        echo "</option>
\t\t\t\t\t\t\t\t\t";
        // line 585
        echo twig_safe_filter((isset($context['VariationOptions']) ? $context['VariationOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<div style=\"padding-left:20px\">
\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodOptionsRequired\" id=\"prodOptionsRequired\" ";
        // line 588
        echo twig_safe_filter((isset($context['OptionsRequired']) ? $context['OptionsRequired'] : null));
        echo " value=\"ON\" /> <label for=\"prodOptionsRequired\">";
        echo getLang("ProductOptionRequired");
        echo "</label>
\t\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dforceopt');\" onmouseover=\"ShowHelp('dforceopt', '";
        // line 589
        echo getLang("ProductOptionRequiredTitle");
        echo "', '";
        echo getLang("ProductOptionRequiredHelp");
        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=\"dforceopt\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<div style=\"display:";
        // line 596
        echo twig_safe_filter((isset($context['HideVariationCombinationList']) ? $context['HideVariationCombinationList'] : null));
        echo "; margin-bottom:5px\" class=\"GridContainer\" id=\"variationCombinationsList\">
\t\t\t\t\t";
        // line 597
        echo twig_safe_filter((isset($context['VariationCombinationList']) ? $context['VariationCombinationList'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</div><!-- End product variations -->

\t\t\t<!-- Start custom fields -->
\t\t\t<div id=\"div5\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 603
        echo getLang("CustomFieldsIntro");
        echo "</div>
\t\t\t\t  <table class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 606
        echo getLang("CustomFields");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t  </table>
\t\t\t\t  <table class=\"Panel\" id=\"CustomFieldsContainer\">
\t\t\t\t  <tbody>
\t\t\t\t\t";
        // line 611
        echo twig_safe_filter((isset($context['CustomFields']) ? $context['CustomFields'] : null));
        echo "
\t\t\t\t  </tbody>
\t\t\t\t  </table>
\t\t\t\t  <div style=\"padding:10px 0px 10px 5px\">";
        // line 614
        echo getLang("ConfigurableFieldsIntro");
        echo "</div>
\t\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"4\">";
        // line 617
        echo getLang("ConfigurableFields");
        echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<input type=\"hidden\" id=\"FieldLastKey\" value=\"";
        // line 620
        echo twig_safe_filter((isset($context['FieldLastKey']) ? $context['FieldLastKey'] : null));
        echo "\" />
\t\t\t\t\t<table width=\"100%\" class=\"Panel\" id=\"ProductFieldsContainer\">
\t\t\t\t\t\t";
        // line 622
        echo twig_safe_filter((isset($context['ProductFields']) ? $context['ProductFields'] : null));
        echo "
\t\t\t\t\t</table>
\t\t\t</div><!-- End custom fields -->

\t\t\t<!-- Start related products -->
\t\t\t<div id=\"div6\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 628
        echo getLang("RelatedProductsIntro");
        echo "</div>
\t\t\t\t  <table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 631
        echo getLang("RelatedProducts");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 635
        echo getLang("RelatedProducts");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodRelatedAuto\" name=\"prodRelatedAuto\" value=\"1\" onclick=\"toggle_related_auto(this.checked)\" ";
        // line 638
        echo twig_safe_filter((isset($context['IsProdRelatedAuto']) ? $context['IsProdRelatedAuto'] : null));
        echo "> <label for=\"prodRelatedAuto\">";
        echo getLang("ProductRelatedOptionsAutomatically");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d34');\" onmouseover=\"ShowHelp('d34', '";
        // line 639
        echo getLang("RelatedProducts");
        echo "', '";
        echo getLang("RelatedProductsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d34\"></div>
\t\t\t\t\t\t\t<blockquote id=\"relatedProductsBoxes\">
\t\t\t\t\t\t\t\t<select id=\"relCategory\" size=\"10\" name=\"relCategory\" class=\"Field400\" onchange=\"GetProducts(this)\">
\t\t\t\t\t\t\t\t\t";
        // line 643
        echo twig_safe_filter((isset($context['RelatedCategoryOptions']) ? $context['RelatedCategoryOptions'] : null));
        echo "
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t<select size=\"10\" id=\"relProducts\" name=\"relProducts\" onDblClick=\"AddRelatedProduct(this)\" class=\"Field400\">
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t* <em>";
        // line 649
        echo getLang("DoubleClickToAdd");
        echo "</em><br />
\t\t\t\t\t\t\t\t<select multiple size=\"5\" id=\"related\" name=\"prodRelatedProducts[]\" onDblClick=\"RemoveRelatedProduct(this)\" class=\"Field400\">";
        // line 650
        echo twig_safe_filter((isset($context['RelatedProductOptions']) ? $context['RelatedProductOptions'] : null));
        echo "</select><br />
\t\t\t\t\t\t\t\t* <em>";
        // line 651
        echo getLang("DoubleClickToRemove");
        echo "</em><br />
\t\t\t\t\t\t\t</blockquote>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t </table>
\t\t\t\t <br />
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 657
        echo getLang("OtherDetailsIntro");
        echo "</div>
\t\t\t\t<table width=\"100%\" class=\"Panel\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 660
        echo getLang("OtherDetails");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 664
        echo getLang("ProductWarranty");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<textarea id=\"prodWarranty\" name=\"prodWarranty\" class=\"Field400\" rows=\"5\">";
        // line 667
        echo twig_safe_filter((isset($context['ProdWarranty']) ? $context['ProdWarranty'] : null));
        echo "</textarea>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d18');\" onmouseover=\"ShowHelp('d18', '";
        // line 668
        echo getLang("ProductWarranty");
        echo "', '";
        echo getLang("ProductWarrantyHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d18\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 674
        echo getLang("TemplateLayoutFile");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"prodlayoutfile\" id=\"prodlayoutfile\" class=\"Field400\">
\t\t\t\t\t\t\t\t";
        // line 678
        echo twig_safe_filter((isset($context['LayoutFiles']) ? $context['LayoutFiles'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('templatelayout');\" onmouseover=\"ShowHelp('templatelayout', '";
        // line 680
        echo getLang("TemplateLayoutFile");
        echo "', '";
        echo getLang("ProductTemplateLayoutFileHelp1");
        echo twig_safe_filter((isset($context['template']) ? $context['template'] : null));
        echo getLang("ProductTemplateLayoutFileHelp2");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"templatelayout\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 686
        echo getLang("BrandName");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"brandbox\" id=\"brandbox\" class=\"Field200\">
\t\t\t\t\t\t\t\t<option value=\"\">";
        // line 690
        echo getLang("ChooseAnExistingBrand");
        echo "</option>
\t\t\t\t\t\t\t\t";
        // line 691
        echo twig_safe_filter((isset($context['BrandNameOptions']) ? $context['BrandNameOptions'] : null));
        echo "
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<span style=\"";
        // line 693
        echo twig_safe_filter((isset($context['HideAddBrandBox']) ? $context['HideAddBrandBox'] : null));
        echo "\">
\t\t\t\t\t\t\t\t";
        // line 694
        echo getLang("OrCreateANewBrand");
        echo ":
\t\t\t\t\t\t\t\t<input type=\"text\" id=\"brandname\" name=\"brandname\" class=\"Field100\" style=\"width:120px\" value=\"";
        // line 695
        echo twig_safe_filter((isset($context['BrandName']) ? $context['BrandName'] : null));
        echo "\">
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d33');\" onmouseover=\"ShowHelp('d33', '";
        // line 697
        echo getLang("BrandName");
        echo "', '";
        echo twig_safe_filter((isset($context['BrandNameProdHelp']) ? $context['BrandNameProdHelp'] : null));
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d33\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 703
        echo getLang("ProductUPC");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodUPC\" name=\"prodUPC\" class=\"Field400\" value=\"";
        // line 706
        echo twig_safe_filter((isset($context['ProdUPC']) ? $context['ProdUPC'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d28');\" onmouseover=\"ShowHelp('d28', '";
        // line 707
        echo getLang("ProductUPC");
        echo "', '";
        echo getLang("ProductUPCHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d28\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 713
        echo getLang("SearchKeywords");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodSearchKeywords\" name=\"prodSearchKeywords\" class=\"Field400\" value=\"";
        // line 716
        echo twig_safe_filter((isset($context['ProdSearchKeywords']) ? $context['ProdSearchKeywords'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d19');\" onmouseover=\"ShowHelp('d19', '";
        // line 717
        echo getLang("SearchKeywords");
        echo "', '";
        echo getLang("SearchKeywordsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d19\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 723
        echo getLang("ProductTags");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodTags\" name=\"prodTags\" class=\"Field400\" value=\"";
        // line 726
        echo twig_safe_filter((isset($context['ProdTags']) ? $context['ProdTags'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d19');\" onmouseover=\"ShowHelp('d19', '";
        // line 727
        echo getLang("ProductTags");
        echo "', '";
        echo getLang("ProductTagsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d19\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 733
        echo getLang("Availability");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodAvailability\" name=\"prodAvailability\" class=\"Field400\" value=\"";
        // line 736
        echo twig_safe_filter((isset($context['ProdAvailability']) ? $context['ProdAvailability'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d27');\" onmouseover=\"ShowHelp('d27', '";
        // line 737
        echo getLang("Availability");
        echo "', '";
        echo getLang("AvailabilityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d27\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 743
        echo getLang("Visible");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodVisible\" name=\"prodVisible\" value=\"1\" ";
        // line 746
        echo twig_safe_filter((isset($context['ProdVisible']) ? $context['ProdVisible'] : null));
        echo "> <label for=\"prodVisible\">";
        echo getLang("YesProductVisible");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 751
        echo getLang("FeaturedProduct");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<div style=\"";
        // line 754
        echo twig_safe_filter((isset($context['HideStoreFeatured']) ? $context['HideStoreFeatured'] : null));
        echo "\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodFeatured\" name=\"prodFeatured\" value=\"1\" ";
        // line 755
        echo twig_safe_filter((isset($context['ProdFeatured']) ? $context['ProdFeatured'] : null));
        echo "> <label for=\"prodFeatured\">";
        echo getLang("YesProductFeatured");
        echo "</label>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d11');\" onmouseover=\"ShowHelp('d11', '";
        // line 756
        echo getLang("FeaturedProduct");
        echo "', '";
        echo getLang("FeaturedProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d11\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div style=\"";
        // line 759
        echo twig_safe_filter((isset($context['HideVendorFeatured']) ? $context['HideVendorFeatured'] : null));
        echo "\" id=\"vendorFeaturedToggle\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"prodvendorfeatured\" name=\"prodvendorfeatured\" value=\"1\" ";
        // line 760
        echo twig_safe_filter((isset($context['ProdVendorFeatured']) ? $context['ProdVendorFeatured'] : null));
        echo "> <label for=\"prodvendorfeatured\">";
        echo getLang("YesProductVendorFeatured");
        echo "</label>
\t\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodvendorfeaturedhelp');\" onmouseover=\"ShowHelp('prodvendorfeaturedhelp', '";
        // line 761
        echo getLang("VendorFeaturedProduct");
        echo "', '";
        echo getLang("VendorFeaturedProductHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodvendorfeaturedhelp\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr class=\"HideOnDigitalProduct\">
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 769
        echo getLang("GiftWrapping");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" value=\"default\" ";
        // line 772
        echo twig_safe_filter((isset($context['WrappingOptionsDefaultChecked']) ? $context['WrappingOptionsDefaultChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingDefault");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodwrappinghelp');\" onmouseover=\"ShowHelp('prodwrappinghelp', '";
        // line 773
        echo getLang("GiftWrapping");
        echo "', '";
        echo getLang("GiftWrappingHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodwrappinghelp\"></div><br />
\t\t\t\t\t\t\t<label style=\"display: black;\"><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" value=\"none\" ";
        // line 775
        echo twig_safe_filter((isset($context['WrappingOptionsNoneChecked']) ? $context['WrappingOptionsNoneChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingNone");
        echo "</label>
\t\t\t\t\t\t\t<label style=\"display: block;\"><input type=\"radio\" onclick=\"ToggleGiftWrapping(this.value)\" name=\"prodwraptype\" id=\"prodwraptype_custom\" value=\"custom\" ";
        // line 776
        echo twig_safe_filter((isset($context['WrappingOptionsCustomChecked']) ? $context['WrappingOptionsCustomChecked'] : null));
        echo " /> ";
        echo getLang("ProductGiftWrappingCustom");
        echo "</label>
\t\t\t\t\t\t\t<div style=\"";
        // line 777
        echo twig_safe_filter((isset($context['HideGiftWrappingOptions']) ? $context['HideGiftWrappingOptions'] : null));
        echo "\" id=\"GiftWrapOptions\">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" alt=\"\" style=\"float: left; margin-right: 10px;\" />
\t\t\t\t\t\t\t\t<select name=\"prodwrapoptions[]\" id=\"prodwrapoptions\" multiple=\"multiple\" size=\"10\" class=\"Field300 ISSelectReplacement\">
\t\t\t\t\t\t\t\t\t";
        // line 780
        echo twig_safe_filter((isset($context['WrappingOptions']) ? $context['WrappingOptions'] : 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</td>
\t\t\t\t\t</tr>

\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 788
        echo getLang("SortOrder");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodSortOrder\" name=\"prodSortOrder\" class=\"Field80\" style=\"width:30px\" value=\"";
        // line 791
        echo twig_safe_filter((isset($context['ProdSortOrder']) ? $context['ProdSortOrder'] : null));
        echo "\">
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('d20');\" onmouseover=\"ShowHelp('d20', '";
        // line 792
        echo getLang("SortOrder");
        echo "', '";
        echo getLang("SortOrderHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"d20\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t<span class=\"Required\">*</span>&nbsp;";
        // line 798
        echo getLang("ProductCondition");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"prodCondition\" id=\"prodCondition\">
\t\t\t\t\t\t\t\t<option value=\"New\" ";
        // line 802
        echo twig_safe_filter((isset($context['ProdConditionNewSelected']) ? $context['ProdConditionNewSelected'] : null));
        echo ">";
        echo getLang("ConditionNew");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"Used\" ";
        // line 803
        echo twig_safe_filter((isset($context['ProdConditionUsedSelected']) ? $context['ProdConditionUsedSelected'] : null));
        echo ">";
        echo getLang("ConditionUsed");
        echo "</option>
\t\t\t\t\t\t\t\t<option value=\"Refurbished\" ";
        // line 804
        echo twig_safe_filter((isset($context['ProdConditionRefurbishedSelected']) ? $context['ProdConditionRefurbishedSelected'] : null));
        echo ">";
        echo getLang("ConditionRefurbished");
        echo "</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('dcond');\" onmouseover=\"ShowHelp('dcond', '";
        // line 806
        echo getLang("ProductCondition");
        echo "', '";
        echo getLang("ProductConditionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"dcond\"></div>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"prodShowCondition\" id=\"prodShowCondition\" value=\"1\" ";
        // line 808
        echo twig_safe_filter((isset($context['ProdShowCondition']) ? $context['ProdShowCondition'] : null));
        echo " />";
        echo getLang("ShowConditionOnProduct");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 813
        echo getLang("ProductMinimumQuantity");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodminqty\" name=\"prodminqty\" class=\"Field50\" value=\"";
        // line 816
        echo twig_escape_filter($this->env, (isset($context['prodminqty']) ? $context['prodminqty'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ProductMinimumQuantityHelp');\" onmouseover=\"ShowHelp('ProductMinimumQuantityHelp', '";
        // line 817
        echo getLang("ProductMinimumQuantity");
        echo "', '";
        echo getLang("ProductMinimumQuantityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ProductMinimumQuantityHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 823
        echo getLang("ProductMaximumQuantity");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodmaxqty\" name=\"prodmaxqty\" class=\"Field50\" value=\"";
        // line 826
        echo twig_escape_filter($this->env, (isset($context['prodmaxqty']) ? $context['prodmaxqty'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('ProductMaximumQuantityHelp');\" onmouseover=\"ShowHelp('ProductMaximumQuantityHelp', '";
        // line 827
        echo getLang("ProductMaximumQuantity");
        echo "', '";
        echo getLang("ProductMaximumQuantityHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\" />
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"ProductMaximumQuantityHelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 832
        echo getLang("SearchEngineOptimization");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 836
        echo getLang("PageTitle");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodPageTitle\" name=\"prodPageTitle\" class=\"Field400\" value=\"";
        // line 839
        echo twig_safe_filter((isset($context['ProdPageTitle']) ? $context['ProdPageTitle'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('pagetitlehelp');\" onmouseover=\"ShowHelp('pagetitlehelp', '";
        // line 840
        echo getLang("PageTitle");
        echo "', '";
        echo getLang("ProdPageTitleHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"pagetitlehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 846
        echo getLang("MetaKeywords");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodMetaKeywords\" name=\"prodMetaKeywords\" class=\"Field400\" value=\"";
        // line 849
        echo twig_safe_filter((isset($context['ProdMetaKeywords']) ? $context['ProdMetaKeywords'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('metataghelp');\" onmouseover=\"ShowHelp('metataghelp', '";
        // line 850
        echo getLang("MetaKeywords");
        echo "', '";
        echo getLang("MetaKeywordsHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"metataghelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 856
        echo getLang("MetaDescription");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" id=\"prodMetaDesc\" name=\"prodMetaDesc\" class=\"Field400\" value=\"";
        // line 859
        echo twig_safe_filter((isset($context['ProdMetaDesc']) ? $context['ProdMetaDesc'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('metadeschelp');\" onmouseover=\"ShowHelp('metadeschelp', '";
        // line 860
        echo getLang("MetaDescription");
        echo "', '";
        echo getLang("MetaDescriptionHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"metadeschelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t<td></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 868
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "FacebookOpenGraphSettings", array(), "any"), "1");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 872
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "ObjectType", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t";
        // line 875
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "select", array("OpenGraphObjectType", (isset($context['openGraphTypes']) ? $context['openGraphTypes'] : null), (isset($context['openGraphSelectedType']) ? $context['openGraphSelectedType'] : null), array("class" => "Field100"), ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 880
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Title", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"OpenGraphUseProductName\" id=\"OpenGraphUseProductName\" value=\"1\" ";
        // line 883
        if ((isset($context['openGraphUseProductName']) ? $context['openGraphUseProductName'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseProductName", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<div class=\"NodeJoin\" ";
        // line 884
        if ((isset($context['openGraphUseProductName']) ? $context['openGraphUseProductName'] : null)) {
            echo "style=\"display: none;\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t<input type=\"text\" class=\"Field350\" name=\"OpenGraphTitle\" id=\"OpenGraphTitle\" value=\"";
        // line 886
        echo twig_escape_filter($this->env, (isset($context['openGraphTitle']) ? $context['openGraphTitle'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 892
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Description", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"OpenGraphUseMetaDescription\" id=\"OpenGraphUseMetaDescription\" value=\"1\" ";
        // line 895
        if ((isset($context['openGraphUseMetaDescription']) ? $context['openGraphUseMetaDescription'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseMetaDescription", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<div class=\"NodeJoin\" ";
        // line 896
        if ((isset($context['openGraphUseMetaDescription']) ? $context['openGraphUseMetaDescription'] : null)) {
            echo "style=\"display: none;\"";
        }
        echo ">
\t\t\t\t\t\t\t\t<img src=\"images/nodejoin.gif\" style=\"vertical-align: middle;\" alt=\"\" />
\t\t\t\t\t\t\t\t<input type=\"text\" class=\"Field350\" name=\"OpenGraphDescription\" id=\"OpenGraphDescription\" value=\"";
        // line 898
        echo twig_escape_filter($this->env, (isset($context['openGraphDescription']) ? $context['openGraphDescription'] : null), "1");
        echo "\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 904
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "Image", array(), "any"), "1");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"OpenGraphUseImage\" value=\"1\" ";
        // line 907
        if ((isset($context['openGraphUseImage']) ? $context['openGraphUseImage'] : null)) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "UseThumbnailImage", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t<label><input type=\"radio\" name=\"OpenGraphUseImage\" value=\"0\" ";
        // line 909
        if ((isset($context['openGraphUseImage']) ? $context['openGraphUseImage'] : null) == false) {
            echo "checked=\"checked\"";
        }
        echo " />";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "DontUseImage", array(), "any"), "1");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 916
        echo getLang("MYOBSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 920
        echo getLang("MYOBAsset");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBAsset\" name=\"prodMYOBAsset\" maxlength=\"6\" size=\"6\" value=\"";
        // line 923
        echo twig_safe_filter((isset($context['ProdMYOBAsset']) ? $context['ProdMYOBAsset'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobassethelp');\" onmouseover=\"ShowHelp('myobassethelp', '";
        // line 924
        echo getLang("MYOBAsset");
        echo "', '";
        echo getLang("MYOBAssetHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobassethelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 930
        echo getLang("MYOBIncome");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBIncome\" name=\"prodMYOBIncome\" maxlength=\"6\" size=\"6\" value=\"";
        // line 933
        echo twig_safe_filter((isset($context['ProdMYOBIncome']) ? $context['ProdMYOBIncome'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobincomehelp');\" onmouseover=\"ShowHelp('myobincomehelp', '";
        // line 934
        echo getLang("MYOBIncome");
        echo "', '";
        echo getLang("MYOBIncomeHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobincomehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 940
        echo getLang("MYOBExpense");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodMYOBExpense\" name=\"prodMYOBExpense\" maxlength=\"6\" size=\"6\" value=\"";
        // line 943
        echo twig_safe_filter((isset($context['ProdMYOBExpense']) ? $context['ProdMYOBExpense'] : null));
        echo "\" />
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('myobexpensehelp');\" onmouseover=\"ShowHelp('myobexpensehelp', '";
        // line 944
        echo getLang("MYOBExpense");
        echo "', '";
        echo getLang("MYOBExpenseHelp");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"myobexpensehelp\"></div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 949
        echo getLang("PeachtreeSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 953
        echo getLang("PeachtreeGL");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"text\" class=\"Field\" id=\"prodPeachtreeGL\" name=\"prodPeachtreeGL\" maxlength=\"20\" size=\"6\" value=\"";
        // line 956
        echo twig_safe_filter((isset($context['ProdPeachtreeGL']) ? $context['ProdPeachtreeGL'] : null));
        echo "\" />
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 960
        echo getLang("ShoppingComparison");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td colspan=\"2\"><p class=\"Intro\">";
        // line 963
        echo getLang("ShoppingComparisonInstructions");
        echo "</p></td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 967
        echo getLang("ShoppingComparisonIncludeProductIn");
        echo "\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<select name=\"comparisons[]\" class=\"Field250 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 108px;\">
\t\t\t\t\t\t\t\t";
        // line 971
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['shoppingComparisonModules']) ? $context['shoppingComparisonModules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t<option value=\"";
            // line 972
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
            echo "\"";
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "selected", array(), "any")) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
            echo "</option>
\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 973
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
        // line 975
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['tooltip']) ? $context['tooltip'] : null), "tooltip", array("shoppingComparisonToolTip", "ShoppingComparisonProductToolTipTitle", "ShoppingComparisonProductToolTipContent", ), "method"), "1");
        echo "
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 979
        echo getLang("GoogleCheckoutSettings");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;";
        // line 983
        echo getLang("DisableGoogleCheckout");
        echo ":
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input type=\"hidden\" name=\"prodDisableGoogleCheckout\" value=\"0\"/>
\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"prodDisableGoogleCheckout\" id=\"prodDisableGoogleCheckout\" value=\"1\" ";
        // line 987
        if ((isset($context['ProdDisableGoogleCheckout']) ? $context['ProdDisableGoogleCheckout'] : null) == 1) {
            echo "checked=\"checked\"";
        }
        echo " />
\t\t\t\t\t\t\t<label for=\"prodDisableGoogleCheckout\">";
        // line 988
        echo getLang("YesDisableGoogleCheckout");
        echo "</label>
\t\t\t\t\t\t\t<img onmouseout=\"HideHelp('prodDisableGoogleCheckoutHelp');\" onmouseover=\"ShowHelp('prodDisableGoogleCheckoutHelp', '";
        // line 989
        echo Interspire_Template_Extension::jsFilter(getLang("DisableGoogleCheckout"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("DisableGoogleCheckoutHelp"), "'");
        echo "')\" src=\"images/help.gif\" width=\"24\" height=\"16\" border=\"0\">
\t\t\t\t\t\t\t<div style=\"display:none\" id=\"prodDisableGoogleCheckoutHelp\"></div>

\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div><!-- End related products -->

\t\t\t<!-- Start discount rules -->
\t\t\t<div id=\"div7\" style=\"padding-top: 10px;\">
\t\t\t\t<div style=\"padding-bottom:5px\">";
        // line 999
        echo getLang("DiscountRulesIntro");
        echo "</div>
\t\t\t\t<div id=\"DiscountRulesWarning\" class=\"MessageBox MessageBoxInfo\" style=\"display: ";
        // line 1000
        echo twig_safe_filter((isset($context['HideDiscountRulesWarningBox']) ? $context['HideDiscountRulesWarningBox'] : null));
        echo ";\">";
        echo twig_safe_filter((isset($context['DiscountRulesWarningText']) ? $context['DiscountRulesWarningText'] : null));
        echo "</div>
\t\t\t\t<div id=\"DiscountRulesDisplay\" style=\"display: ";
        // line 1001
        echo twig_safe_filter((isset($context['DiscountRulesWithWarning']) ? $context['DiscountRulesWithWarning'] : null));
        echo ";\">
\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t  <td class=\"Heading2\" colspan=2>";
        // line 1004
        echo getLang("DiscountRules");
        echo "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t\t<table class=\"Panel\" id=\"DiscountRulesContainer\">
\t\t\t\t\t<tbody>
\t\t\t\t\t\t";
        // line 1009
        echo twig_safe_filter((isset($context['DiscountRules']) ? $context['DiscountRules'] : null));
        echo "
\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div><!-- End discount rules -->
\t\t\t<!-- Start images & videos -->
\t\t\t<div id=\"div8\" style=\"padding-top: 10px;\">
\t\t\t\t<table class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1018
        echo getLang("ProductImages");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td colspan=\"2\">
\t\t\t\t\t\t<div style=\"margin:10px 0 6px 10px;\">";
        // line 1022
        echo getLang("ProductImagesIntroduction");
        echo "</div>

\t\t\t\t\t\t<div style=\"margin:11px 0 6px 6px;\">
\t\t\t\t\t\t\t<button class=\"Button\" id=\"productImagesDeleteSelected\" disabled=\"disabled\">";
        // line 1025
        echo getLang("DeleteSelected");
        echo "</button>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<table class=\"GridPanel productImagesTable\" cellspacing=\"0\">
\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t<tr class=\"Heading3\">
\t\t\t\t\t\t\t\t\t<td class=\"productImageCheck\" style=\"padding-left:5px;\"><input type=\"checkbox\" /></td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageThumbDisplay\" style=\"width:";
        // line 1032
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px;\">";
        echo getLang("Image");
        echo "</td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageDescription\">";
        // line 1033
        echo getLang("Description");
        echo "</td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageBaseThumb\"><span class=\"HelpText\" onmouseout=\"HideQuickHelp(this)\" onmouseover=\"ShowQuickHelp(this, '";
        // line 1034
        echo Interspire_Template_Extension::jsFilter(getLang("UseAsBaseThumbnail"), "'");
        echo "', '";
        echo Interspire_Template_Extension::jsFilter(getLang("UseAsBaseThumbnailHelpText"), "'");
        echo "')\">";
        echo getLang("UseAsBaseThumbnail");
        echo "</span></td>
\t\t\t\t\t\t\t\t\t<td class=\"productImageAction\">";
        // line 1035
        echo getLang("Action");
        echo "</td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t</table>

\t\t\t\t\t\t<div class=\"productImagesListItem\" id=\"productImagesListItemNew\">
\t\t\t\t\t\t\t<table cellspacing=\"0\">
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t<tr class=\"GridRowNoOver\">
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageCheck\"><input type=\"checkbox\" /></td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageThumbDisplay\" style=\"width:";
        // line 1045
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px;\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"productImageNewPlaceholder\" style=\"width:";
        // line 1046
        echo twig_safe_filter((isset($context['productImage_thumbnailWidth']) ? $context['productImage_thumbnailWidth'] : null));
        echo "px; height:";
        echo twig_safe_filter((isset($context['productImage_thumbnailHeight']) ? $context['productImage_thumbnailHeight'] : null));
        echo "px;\"><div style=\"line-height:";
        echo twig_safe_filter((isset($context['productImage_thumbnailHeight']) ? $context['productImage_thumbnailHeight'] : null));
        echo "px;\"><span>";
        echo getLang("NewImage");
        echo "</span></div></div>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageDescription\">
\t\t\t\t\t\t\t\t\t\t\t<p>";
        // line 1049
        echo getLang("ProductImagesSelectUploadMethod");
        echo "</p>
\t\t\t\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t\t\t\t<li><span id=\"productImageNewUploadPlaceholder\"></span><a id=\"productImageNewUpload\" class=\"ProductImageNewUpload\" href=\"#\">";
        // line 1051
        echo getLang("UploadAnImage");
        echo "</a> <span class=\"SwfUploadAlternativeNotice\" style=\"display:none;\">";
        echo getLang("ProductImagesBasicUploader");
        echo "</span></li>
\t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"productImageNewWeb\" href=\"#\">";
        // line 1052
        echo getLang("UseImageFromWeb");
        echo "</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"productImageNewGallery\" href=\"#\">";
        // line 1053
        echo getLang("ChooseFromGallery");
        echo "</a></li>
\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageBaseThumb\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t\t<td class=\"productImageAction\">&nbsp;</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t";
        // line 1063
        echo twig_safe_filter((isset($context['productImagesList']) ? $context['productImagesList'] : null));
        echo "

\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t<table class=\"Panel\">
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1070
        echo getLang("YouTubeVideos");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoIntroRow\" colspan=\"2\">
\t\t\t\t\t\t";
        // line 1074
        echo getLang("YouTubeVideosIntro");
        echo "\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoControlRow\" colspan=\"2\">
\t\t\t\t\t\t<input type=\"text\" class=\"Field250 exampleSearchText SetOriginalValue\" id=\"searchYouTube\" name=\"searchYouTube\" value=\"";
        // line 1080
        echo getLang("VideoTypeToSearch");
        echo "\" /> <input type=\"button\" class=\"Button\" value=\"";
        echo getLang("VideoFindVideos");
        echo "\" id=\"findVideosButton\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>

\t\t\t\t<tr>
\t\t\t\t\t<td class=\"videoControlRow\" colspan=\"2\">
\t\t\t\t\t\t<div id=\"youtubeContainer\">
\t\t\t\t\t\t\t<div id=\"youtubeLeftBox\" class=\"youtubeVideoListBox\">
\t\t\t\t\t\t\t\t<ul id=\"youTubeSearchVideos\" style=\"display: none;\"></ul>
\t\t\t\t\t\t\t\t<div id=\"useSearchVideos\">";
        // line 1089
        echo getLang("VideoUseSearchField");
        echo "</div>
\t\t\t\t\t\t\t\t<div id=\"noSearchVideos\" style=\"display: none;\">";
        // line 1090
        echo getLang("VideoNoResults");
        echo "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"youtubeJoinBox\">
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"&raquo;\" style=\"width: 40px;\" id=\"addYouTubeVideos\" /><br /><br />
\t\t\t\t\t\t\t\t<input type=\"button\" value=\"&laquo;\" style=\"width: 40px;\" id=\"removeYouTubeVideos\" />
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div id=\"youtubeRightBox\" class=\"youtubeVideoListBox\">
\t\t\t\t\t\t\t\t<ul id=\"youTubeCurrentVideos\" style=\"display: none;\"></ul>
\t\t\t\t\t\t\t\t<div id=\"noCurrentVideos\">";
        // line 1098
        echo getLang("VideoClickToAdd");
        echo "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div><!-- End images & videos -->

\t\t\t<!-- Start Google website optimizer -->
\t\t\t<div id=\"div9\">
\t\t\t\t<p class=\"InfoTip\" style=\"margin-bottom: 15px; margin-top: 15px;\">";
        // line 1108
        echo twig_safe_filter((isset($context['GoogleWebsiteOptimizerIntro']) ? $context['GoogleWebsiteOptimizerIntro'] : null));
        echo "</p>

\t\t\t\t<table width=\"100%\" class=\"Panel\" style=\"margin-top: 0; padding-top: 0;  ";
        // line 1110
        echo twig_safe_filter((isset($context['ShowEnableGoogleWebsiteOptimzer']) ? $context['ShowEnableGoogleWebsiteOptimzer'] : null));
        echo "\">
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"Heading2\" colspan=\"2\">";
        // line 1112
        echo getLang("GoogleWebsiteOptimizer");
        echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<td class=\"FieldLabel\">
\t\t\t\t\t\t\t";
        // line 1116
        echo getLang("EnableGoogleWebsiteOptimizer");
        echo "?
\t\t\t\t\t\t</td>
\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t<input ";
        // line 1119
        echo twig_safe_filter((isset($context['DisableOptimizerCheckbox']) ? $context['DisableOptimizerCheckbox'] : null));
        echo " type=\"checkbox\" name=\"prodEnableOptimizer\" id=\"prodEnableOptimizer\" ";
        echo twig_safe_filter((isset($context['CheckEnableOptimizer']) ? $context['CheckEnableOptimizer'] : null));
        echo " onclick = \"ToggleOptimizerConfigForm(";
        echo twig_safe_filter((isset($context['SkipOptimizerConfirmMsg']) ? $context['SkipOptimizerConfirmMsg'] : null));
        echo ");\" />
\t\t\t\t\t\t\t<label for=\"prodEnableOptimizer\">";
        // line 1120
        echo getLang("YesEnableGoogleWebsiteOptimizer");
        echo "</label>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t\t";
        // line 1124
        echo twig_safe_filter((isset($context['OptimizerConfigForm']) ? $context['OptimizerConfigForm'] : null));
        echo "
\t\t\t</div>
\t\t\t<!-- End Google website optimizer -->

\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\" class=\"PanelPlain\" id=\"SaveButtons\">
\t\t\t\t<tr>
\t\t\t\t\t<td>
\t\t\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 1131
        echo getLang("SaveAndExit");
        echo "\" class=\"FormButton\" />
\t\t\t\t\t\t<input type=\"submit\" disabled=\"disabled\" value=\"";
        // line 1132
        echo twig_safe_filter((isset($context['SaveAndAddAnother']) ? $context['SaveAndAddAnother'] : null));
        echo "\" onclick=\"SaveAndAddAnother();\" class=\"FormButton\" style=\"width:130px\" />
\t\t\t\t\t\t<input type=\"reset\" value=\"";
        // line 1133
        echo getLang("Cancel");
        echo "\" class=\"FormButton\" onclick=\"ConfirmCancel()\" />
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</td>
\t</tr>
\t</table>
</div>
</form>

<script type=\"text/javascript\" src=\"../javascript/jquery.growinguploader.js?";
        // line 1143
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/ajax.file.upload.js?";
        // line 1144
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/multiuploaddialog.js?";
        // line 1145
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">//<![CDATA[
var shop = { config: { } };

shop.config.DiscountRulesEnabled = '";
        // line 1149
        echo twig_safe_filter((isset($context['DiscountRulesEnabled']) ? $context['DiscountRulesEnabled'] : null));
        echo "';
shop.config.NoCategoriesJS = '";
        // line 1150
        echo twig_safe_filter((isset($context['NoCategoriesJS']) ? $context['NoCategoriesJS'] : null));
        echo "';
shop.config.IsProdRelatedAuto = '";
        // line 1151
        echo twig_safe_filter((isset($context['IsProdRelatedAuto']) ? $context['IsProdRelatedAuto'] : null));
        echo "';
shop.config.CurrencyTokenLeft = '";
        // line 1152
        echo twig_safe_filter((isset($context['CurrencyTokenLeft']) ? $context['CurrencyTokenLeft'] : null));
        echo "';
shop.config.CurrencyTokenRight = '";
        // line 1153
        echo twig_safe_filter((isset($context['CurrencyTokenRight']) ? $context['CurrencyTokenRight'] : null));
        echo "';
shop.config.AppPath = '";
        // line 1154
        echo twig_safe_filter((isset($context['AppPath']) ? $context['AppPath'] : null));
        echo "';
shop.config.sessionid = '";
        // line 1155
        echo twig_safe_filter((isset($context['sessionid']) ? $context['sessionid'] : null));
        echo "';
shop.config.maxUploadSize = '";
        // line 1156
        echo twig_safe_filter((isset($context['maxUploadSize']) ? $context['maxUploadSize'] : null));
        echo "';

lang.DiscountRulesNotEnabledWarning = '";
        // line 1158
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesNotEnabledWarning"), "'");
        echo "';
lang.DiscountRulesVariationWarning = '";
        // line 1159
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesVariationWarning"), "'");
        echo "';
lang.PleaseWaitRelated = '";
        // line 1160
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseWaitRelated"), "'");
        echo "';
lang.NoProdsInCat = '";
        // line 1161
        echo Interspire_Template_Extension::jsFilter(getLang("NoProdsInCat"), "'");
        echo "';
lang.PleaseChooseAProduct = '";
        // line 1162
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAProduct"), "'");
        echo "';
lang.ProdAlreadyInRelatedList = '";
        // line 1163
        echo Interspire_Template_Extension::jsFilter(getLang("ProdAlreadyInRelatedList"), "'");
        echo "';
lang.MoreImages = '";
        // line 1164
        echo Interspire_Template_Extension::jsFilter(getLang("MoreImages"), "'");
        echo "';
lang.LessImages = '";
        // line 1165
        echo Interspire_Template_Extension::jsFilter(getLang("LessImages"), "'");
        echo "';
lang.EnterProductFieldName = '";
        // line 1166
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldName"), "'");
        echo "';
lang.EnterProductFieldFileType = '";
        // line 1167
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldFileType"), "'");
        echo "';
lang.EnterProductFieldFileSize = '";
        // line 1168
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProductFieldFileSize"), "'");
        echo "';
lang.EnterValidProductFieldFileSize = '";
        // line 1169
        echo Interspire_Template_Extension::jsFilter(getLang("EnterValidProductFieldFileSize"), "'");
        echo "';
lang.DiscountRulesQuantityMinRequired = '";
        // line 1170
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinRequired"), "'");
        echo "';
lang.DiscountRulesQuantityMinInvalid = '";
        // line 1171
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinInvalid"), "'");
        echo "';
lang.DiscountRulesQuantityMaxRequired = '";
        // line 1172
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxRequired"), "'");
        echo "';
lang.DiscountRulesQuantityMaxInvalid = '";
        // line 1173
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxInvalid"), "'");
        echo "';
lang.DiscountRulesTypeRequired = '";
        // line 1174
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesTypeRequired"), "'");
        echo "';
lang.DiscountRulesTypeInvalid = '";
        // line 1175
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesTypeInvalid"), "'");
        echo "';
lang.DiscountRulesAmountRequired = '";
        // line 1176
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountRequired"), "'");
        echo "';
lang.DiscountRulesAmountInvalid = '";
        // line 1177
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPriceInvalid = '";
        // line 1178
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPriceInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPercentInvalid = '";
        // line 1179
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPercentInvalid"), "'");
        echo "';
lang.DiscountRulesAmountPercentIsFloat = '";
        // line 1180
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountPercentIsFloat"), "'");
        echo "';
lang.DiscountRulesAmountFixedInvalid = '";
        // line 1181
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesAmountFixedInvalid"), "'");
        echo "';
lang.DiscountRulesQuantityMinHigher = '";
        // line 1182
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinHigher"), "'");
        echo "';
lang.DiscountRulesQuantityBothAstrix = '";
        // line 1183
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityBothAstrix"), "'");
        echo "';
lang.DiscountRulesQuantityMinPrevMaxAstrix = '";
        // line 1184
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinPrevMaxAstrix"), "'");
        echo "';
lang.DiscountRulesQuantityMinOverlap = '";
        // line 1185
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMinOverlap"), "'");
        echo "';
lang.DiscountRulesQuantityMaxOverlap = '";
        // line 1186
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesQuantityMaxOverlap"), "'");
        echo "';
lang.EnterProdName = '";
        // line 1187
        echo Interspire_Template_Extension::jsFilter(getLang("EnterProdName"), "'");
        echo "';
lang.MustCreateCategoryFirst = '";
        // line 1188
        echo Interspire_Template_Extension::jsFilter(getLang("MustCreateCategoryFirst"), "'");
        echo "';
lang.ChooseCategory = '";
        // line 1189
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseCategory"), "'");
        echo "';
lang.EnterPrice = '";
        // line 1190
        echo Interspire_Template_Extension::jsFilter(getLang("EnterPrice"), "'");
        echo "';
lang.EnterCostPrice = '";
        // line 1191
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCostPrice"), "'");
        echo "';
lang.EnterRetailPrice = '";
        // line 1192
        echo Interspire_Template_Extension::jsFilter(getLang("EnterRetailPrice"), "'");
        echo "';
lang.EnterSalePrice = '";
        // line 1193
        echo Interspire_Template_Extension::jsFilter(getLang("EnterSalePrice"), "'");
        echo "';
lang.ChooseValidImage = '";
        // line 1194
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseValidImage"), "'");
        echo "';
lang.EnterWeight = '";
        // line 1195
        echo Interspire_Template_Extension::jsFilter(getLang("EnterWeight"), "'");
        echo "';
lang.EnterWidth = '";
        // line 1196
        echo Interspire_Template_Extension::jsFilter(getLang("EnterWidth"), "'");
        echo "';
lang.EnterHeight = '";
        // line 1197
        echo Interspire_Template_Extension::jsFilter(getLang("EnterHeight"), "'");
        echo "';
lang.EnterDepth = '";
        // line 1198
        echo Interspire_Template_Extension::jsFilter(getLang("EnterDepth"), "'");
        echo "';
lang.EnterFixedShipping = '";
        // line 1199
        echo Interspire_Template_Extension::jsFilter(getLang("EnterFixedShipping"), "'");
        echo "';
lang.ProductHasNoDownloads = '";
        // line 1200
        echo Interspire_Template_Extension::jsFilter(getLang("ProductHasNoDownloads"), "'");
        echo "';
lang.EnterCurrentInventory = '";
        // line 1201
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCurrentInventory"), "'");
        echo "';
lang.EnterLowInventory = '";
        // line 1202
        echo Interspire_Template_Extension::jsFilter(getLang("EnterLowInventory"), "'");
        echo "';
lang.ChooseProductVariation = '";
        // line 1203
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseProductVariation"), "'");
        echo "';
lang.VariationChooseVariation = '";
        // line 1204
        echo Interspire_Template_Extension::jsFilter(getLang("VariationChooseVariation"), "'");
        echo "';
lang.VariationEnterValidPrice = '";
        // line 1205
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidPrice"), "'");
        echo "';
lang.VariationEnterValidWeight = '";
        // line 1206
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidWeight"), "'");
        echo "';
lang.VariationEnterValidImage = '";
        // line 1207
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidImage"), "'");
        echo "';
lang.VariationEnterValidStockLevel = '";
        // line 1208
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidStockLevel"), "'");
        echo "';
lang.VariationEnterValidLowStockLevel = '";
        // line 1209
        echo Interspire_Template_Extension::jsFilter(getLang("VariationEnterValidLowStockLevel"), "'");
        echo "';
lang.EnterCustomFieldName = '";
        // line 1210
        echo Interspire_Template_Extension::jsFilter(getLang("EnterCustomFieldName"), "'");
        echo "';
lang.SelectOneMoreWrapOptions = '";
        // line 1211
        echo Interspire_Template_Extension::jsFilter(getLang("SelectOneMoreWrapOptions"), "'");
        echo "';
lang.EnterSortOrder = '";
        // line 1212
        echo Interspire_Template_Extension::jsFilter(getLang("EnterSortOrder"), "'");
        echo "';
lang.EnterEventDateName = '";
        // line 1213
        echo Interspire_Template_Extension::jsFilter(getLang("EnterEventDateName"), "'");
        echo "';
lang.EnterEventDateRange = '";
        // line 1214
        echo Interspire_Template_Extension::jsFilter(getLang("EnterEventDateRange"), "'");
        echo "';
lang.AddProductWithEmptyDimensions = '";
        // line 1215
        echo Interspire_Template_Extension::jsFilter(getLang("AddProductWithEmptyDimensions"), "'");
        echo "';
lang.ConfirmCancelProduct = '";
        // line 1216
        echo getLang("ConfirmCancelProduct");
        echo "';
lang.ChooseOptionValue = '";
        // line 1217
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseOptionValue"), "'");
        echo "';
lang.MorePricingOptions = '";
        // line 1218
        echo Interspire_Template_Extension::jsFilter(getLang("MorePricingOptions"), "'");
        echo "';
lang.LessPricingOptions = '";
        // line 1219
        echo Interspire_Template_Extension::jsFilter(getLang("LessPricingOptions"), "'");
        echo "';
lang.ConfirmChangeDownloadEdit = '";
        // line 1220
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmChangeDownloadEdit"), "'");
        echo "';
lang.InvalidExpiresAfter = '";
        // line 1221
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidExpiresAfter"), "'");
        echo "';
lang.InvalidMaxDownloads = '";
        // line 1222
        echo Interspire_Template_Extension::jsFilter(getLang("InvalidMaxDownloads"), "'");
        echo "';
lang.SavingDownload = '";
        // line 1223
        echo Interspire_Template_Extension::jsFilter(getLang("SavingDownload"), "'");
        echo "';
lang.UploadFailed2 = '";
        // line 1224
        echo Interspire_Template_Extension::jsFilter(getLang("UploadFailed2"), "'");
        echo "';
lang.SelectDownloadFile = '";
        // line 1225
        echo Interspire_Template_Extension::jsFilter(getLang("SelectDownloadFile"), "'");
        echo "';
lang.UploadingDownload = '";
        // line 1226
        echo Interspire_Template_Extension::jsFilter(getLang("UploadingDownload"), "'");
        echo "';
lang.ConfirmDeleteDownload = '";
        // line 1227
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteDownload"), "'");
        echo "';
lang.DigitalDownloadDeleted = '";
        // line 1228
        echo Interspire_Template_Extension::jsFilter(getLang("DigitalDownloadDeleted"), "'");
        echo "';
lang.NoParent = '";
        // line 1229
        echo Interspire_Template_Extension::jsFilter(getLang("NoParent"), "'");
        echo "';
lang.NoCategoryName = '";
        // line 1230
        echo Interspire_Template_Extension::jsFilter(getLang("NoCategoryName"), "'");
        echo "';
lang.ProductWillUseVariation = '";
        // line 1231
        echo Interspire_Template_Extension::jsFilter(getLang("ProductWillUseVariation"), "'");
        echo "';
lang.ProductWillUseVariationSemi = '";
        // line 1232
        echo Interspire_Template_Extension::jsFilter(getLang("ProductWillUseVariationSemi"), "'");
        echo "';
lang.ConfirmRemoveProdField = '";
        // line 1233
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmRemoveProdField"), "'");
        echo "';
lang.DiscountRulesForEachItem = '";
        // line 1234
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesForEachItem"), "'");
        echo "';
lang.DiscountRulesOffEachItem = '";
        // line 1235
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesOffEachItem"), "'");
        echo "';
lang.DiscountRulesField = '";
        // line 1236
        echo Interspire_Template_Extension::jsFilter(getLang("DiscountRulesField"), "'");
        echo "';
lang.Number0 = '";
        // line 1237
        echo Interspire_Template_Extension::jsFilter(getLang("Number0"), "'");
        echo "';
lang.Number1 = '";
        // line 1238
        echo Interspire_Template_Extension::jsFilter(getLang("Number1"), "'");
        echo "';
lang.Number2 = '";
        // line 1239
        echo Interspire_Template_Extension::jsFilter(getLang("Number2"), "'");
        echo "';
lang.Number3 = '";
        // line 1240
        echo Interspire_Template_Extension::jsFilter(getLang("Number3"), "'");
        echo "';
lang.Number4 = '";
        // line 1241
        echo Interspire_Template_Extension::jsFilter(getLang("Number4"), "'");
        echo "';
lang.Number5 = '";
        // line 1242
        echo Interspire_Template_Extension::jsFilter(getLang("Number5"), "'");
        echo "';
lang.Number6 = '";
        // line 1243
        echo Interspire_Template_Extension::jsFilter(getLang("Number6"), "'");
        echo "';
lang.Number7 = '";
        // line 1244
        echo Interspire_Template_Extension::jsFilter(getLang("Number7"), "'");
        echo "';
lang.Number8 = '";
        // line 1245
        echo Interspire_Template_Extension::jsFilter(getLang("Number8"), "'");
        echo "';
lang.Number9 = '";
        // line 1246
        echo Interspire_Template_Extension::jsFilter(getLang("Number9"), "'");
        echo "';
lang.VideoLoading = '";
        // line 1247
        echo Interspire_Template_Extension::jsFilter(getLang("VideoLoading"), "'");
        echo "';
lang.VideoPleaseEnterSearchTerm = '";
        // line 1248
        echo Interspire_Template_Extension::jsFilter(getLang("VideoPleaseEnterSearchTerm"), "'");
        echo "';
lang.ClickHereToAddADescription = '";
        // line 1249
        echo Interspire_Template_Extension::jsFilter(getLang("ClickHereToAddADescription"), "'");
        echo "';
lang.ConfirmDeleteProductImage = '";
        // line 1250
        echo Interspire_Template_Extension::jsFilter(getLang("ConfirmDeleteProductImage"), "'");
        echo "';
lang.ChooseProductImage = '";
        // line 1251
        echo Interspire_Template_Extension::jsFilter(getLang("ChooseProductImage"), "'");
        echo "';
lang.ProductImagesDeleted = '";
        // line 1252
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeleted"), "'");
        echo "';
lang.ProductImagesDeletedErrors = '";
        // line 1253
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeletedErrors"), "'");
        echo "';
lang.ProductImagesDeletedWarnings = '";
        // line 1254
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesDeletedWarnings"), "'");
        echo "';
lang.ProductImage = '";
        // line 1255
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImage"), "'");
        echo "';
lang.ProductImageAddedSuccessfully = '";
        // line 1256
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageAddedSuccessfully"), "'");
        echo "';
lang.ProductImagesAddedSuccessfully = '";
        // line 1257
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesAddedSuccessfully"), "'");
        echo "';
lang.ProductImageUrlsFailed = '";
        // line 1258
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageUrlsFailed"), "'");
        echo "';
lang.Images = '";
        // line 1259
        echo Interspire_Template_Extension::jsFilter(getLang("Images"), "'");
        echo "';
lang.ProductImagesProcessing = '";
        // line 1260
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesProcessing"), "'");
        echo "';
lang.ProductImagesUploadError = '";
        // line 1261
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadError"), "'");
        echo "';
lang.ProductImagesTransportError = '";
        // line 1262
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesTransportError"), "'");
        echo "';
lang.ProductImagesUploadProgressStatus = '";
        // line 1263
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadProgressStatus"), "'");
        echo "';
lang.ProductImagesUploadProgressFile = '";
        // line 1264
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadProgressFile"), "'");
        echo "';
lang.ProductImagesSortOrderChanged = '";
        // line 1265
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesSortOrderChanged"), "'");
        echo "';
lang.ImageFromGalleryViewLarger = '";
        // line 1266
        echo Interspire_Template_Extension::jsFilter(getLang("ImageFromGalleryViewLarger"), "'");
        echo "';
lang.ProductImagesNoSourceImageNoThumbnail = '";
        // line 1267
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNoSourceImageNoThumbnail"), "'");
        echo "';
lang.ProductImagesNotUploadedDueToErrors = '";
        // line 1268
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNotUploadedDueToErrors"), "'");
        echo "';
lang.ProductImagesAnyImageNotListedHere = '";
        // line 1269
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesAnyImageNotListedHere"), "'");
        echo "';
lang.UploadAnImage = '";
        // line 1270
        echo Interspire_Template_Extension::jsFilter(getLang("UploadAnImage"), "'");
        echo "';
lang.ProductImagesNonFlashIntro = '";
        // line 1271
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNonFlashIntro"), "'");
        echo "';
lang.ProductImagesUploadImagesElipsis = '";
        // line 1272
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesUploadImagesElipsis"), "'");
        echo "';
lang.CancelEdit = '";
        // line 1273
        echo Interspire_Template_Extension::jsFilter(getLang("CancelEdit"), "'");
        echo "';
lang.ProductImagesNonFlashRemove = '";
        // line 1274
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesNonFlashRemove"), "'");
        echo "';
lang.ShowErrorMessage = '";
        // line 1275
        echo Interspire_Template_Extension::jsFilter(getLang("ShowErrorMessage"), "'");
        echo "';
lang.ProductImagesChooseAnImage = '";
        // line 1276
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImagesChooseAnImage"), "'");
        echo "';
lang.PleaseChooseAReleaseDate = '";
        // line 1277
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAReleaseDate"), "'");
        echo "';
lang.PleaseChooseAReleaseDateInTheFuture = '";
        // line 1278
        echo Interspire_Template_Extension::jsFilter(getLang("PleaseChooseAReleaseDateInTheFuture"), "'");
        echo "';
lang.ProductImageEdited = '";
        // line 1279
        echo Interspire_Template_Extension::jsFilter(getLang("ProductImageEdited"), "'");
        echo "';
lang.ProductMinimumError = '";
        // line 1280
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMinimumError"), "'");
        echo "';
lang.ProductMaximumError = '";
        // line 1281
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMaximumError"), "'");
        echo "';
lang.ProductMinimumMaximumError = '";
        // line 1282
        echo Interspire_Template_Extension::jsFilter(getLang("ProductMinimumMaximumError"), "'");
        echo "';
//]]></script>
<script type=\"text/javascript\" src=\"script/product.js?";
        // line 1284
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/product.youtube.js?";
        // line 1285
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\">//<![CDATA[
\$(document).ready(function() {

\t\$('#frmProduct').bind('submit', function () {
\t\treturn ValidateForm(CheckAddProductForm);
\t});

\t";
        // line 1293
        echo twig_safe_filter((isset($context['OptionButtons']) ? $context['OptionButtons'] : null));
        echo "

\t// Toggle the product type
\tvar f = g('ProductType_0');
\tif(f.checked)
\t{
\t\tToggleType(0);
\t}
\telse
\t{
\t\tToggleType(1);
\t}

\tToggleAllowPurchasing();
\tToggleCallForPricing();

\tif(g('prodInvTrack_2').checked) {
\t\t\$('#prodOptionsRequired').attr('checked', true);
\t\t\$('#prodOptionsRequired').attr('disabled', true);
\t}

\t\$('#prodInvTrack_2').click(function() {
\t\tif(this.checked) {
\t\t\t\$('#prodOptionsRequired').attr('checked', true);
\t\t\t\$('#prodOptionsRequired').attr('disabled', true);
\t\t}
\t});

\t\$('#prodInvTrack_1').click(function() {
\t\t\$('#prodOptionsRequired').attr('checked', false);
\t\t\$('#prodOptionsRequired').attr('disabled', false);
\t});

\t\$('#prodInvTrack_0').click(function() {
\t\t\$('#prodOptionsRequired').attr('checked', false);
\t\t\$('#prodOptionsRequired').attr('disabled', false);
\t});

\t";
        // line 1331
        echo twig_safe_filter((isset($context['MoreImages']) ? $context['MoreImages'] : null));
        echo "

\tShowTab(";
        // line 1333
        echo twig_safe_filter((isset($context['CurrentTab']) ? $context['CurrentTab'] : null));
        echo ");

\t// Are related products set to auto?
\tif(shop.config.IsProdRelatedAuto == 'checked=\"checked\"') {
\t\ttoggle_related_auto(true);
\t}

\tyoutube.videos = '";
        // line 1340
        echo twig_safe_filter((isset($context['YouTubeVideos']) ? $context['YouTubeVideos'] : null));
        echo "';
\tyoutube.init();

\t\$('input[type=submit]').attr('disabled', '');

\t\$('input[name=_prodorderable]').bind('click', function(){
\t\t\$('._prodorderable_detail').hide();
\t\tif (this.checked) {
\t\t\t\$('#_prodorderable_' + \$(this).val() + '_detail').show();
\t\t}
\t});

\t\$('input[name=_prodorderable]:checked').trigger('click');

\t\$('#prodreleasedate').datepicker({
\t\tshowOn: 'both',
\t\tbuttonImage: 'images/calendar.gif',
\t\tbuttonImageOnly: true,
\t\tminDate: new Date(),
\t\tfirstDay: 1,
\t\tduration: '',
\t\tdateFormat: 'mm/dd/yy'
\t});

\t\$('#prodreleasedate').bind('keydown keyup keypress', function(event){
\t\tswitch (event.keyCode) {
\t\t\tcase 8: // backspace
\t\t\tcase 16: // shift
\t\t\tcase 17: // control
\t\t\tcase 18: // alt
\t\t\tcase 35: // end
\t\t\tcase 36: // home
\t\t\tcase 37: // left
\t\t\tcase 38: // up
\t\t\tcase 39: // right
\t\t\tcase 40: // down
\t\t\tcase 46: // delete
\t\t\t\treturn;
\t\t\t\tbreak;
\t\t}

\t\tif ((event.shiftKey || event.metaKey) && event.keyCode == 88) {
\t\t\t// cut
\t\t\treturn;
\t\t}

\t\tevent.preventDefault();
\t});

\t\$(\"#OpenGraphUseProductName\").change(function() {
\t\tif(\$(this).is(':checked')) {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t}
\t\telse {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t}
\t});

\t\$(\"#OpenGraphUseMetaDescription\").change(function() {
\t\tif(\$(this).is(':checked')) {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').hide();
\t\t}
\t\telse {
\t\t\t\$(this).parent('label').nextAll('.NodeJoin:first').show();
\t\t}
\t});
});
//]]></script>

<div style=\"display:none;\" id=\"UseImageFromWebDialog\">
\t<div class=\"ModalTitle\">";
        // line 1410
        echo getLang("UseImageFromWebDialogTitle");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t\t<input type=\"text\" class=\"Field100pct UseImageFromWebDialogImageUrl\" name=\"imageurl[]\" value=\"http://\" /><br />
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<img src=\"images/loading.gif\" alt=\"\" style=\"vertical-align: middle; display: none;\" class=\"LoadingIndicator\" />
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1421
        echo getLang("Close");
        echo "\" onclick=\"\$.modal.close();return false;\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1423
        echo getLang("UseImages");
        echo "\" onclick=\"ProductImages.useImageFromWebDialogSubmit();return false;\" />
\t</div>
</div><!-- end #UseImageFromWebDialog --><!-- located here to be outside of posted product info -->

<div id=\"QuickCategoryCreation\" style=\"display: none;\">
\t<div class=\"ModalTitle\">";
        // line 1428
        echo getLang("CreateACategory");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><strong>";
        // line 1432
        echo getLang("CatName");
        echo ":</strong></td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td><input id=\"QuickCatName\" type=\"text\" name=\"catname\" value=\"\"  class=\"Field250\" style=\"width: 100%;\" /></td>
\t\t\t</tr>
\t\t</table>
\t\t<div style=\"height: 4px; font-size: 1px;\"></div>
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><strong>";
        // line 1441
        echo getLang("CatParentCategory");
        echo ":</strong></td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td>
\t\t\t\t\t<select name=\"catparentid\" size=\"8\" id=\"QuickCatParent\" style=\"width: 100%\">
\t\t\t\t\t</select>
\t\t\t\t</td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<img src=\"images/loading.gif\" alt=\"\" style=\"vertical-align: middle; display: none;\" class=\"LoadingIndicator\" />
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1454
        echo getLang("Cancel");
        echo "\" onclick=\"\$.modal.close();\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1456
        echo getLang("Save");
        echo "\" onclick=\"SaveQuickCategory()\" />
\t</div>
</div>

<div id=\"AddProductWithEmptyDimensions\" style=\"display: none;\">
<div class=\"ModalTitle\">";
        // line 1461
        echo getLang("ConfirmProductDimension");
        echo "</div>
\t<div class=\"ModalContent\">
\t\t";
        // line 1463
        echo getLang("AddProductWithEmptyDimensions");
        echo "<br /><br />
\t\t<input type=\"checkbox\" value=\"";
        // line 1464
        echo getLang("DontShowDimensionsCheck");
        echo "\" id=\"DontShowDimensionsCheck\" name=\"DontShowDimensionsCheck\" /> <label for=\"DontShowDimensionsCheck\">";
        echo getLang("DontShowDimensionsAgain");
        echo "</label>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<div class=\"FloatLeft\">
\t\t\t<input type=\"button\" class=\"CloseButton FormButton\" value=\"";
        // line 1468
        echo getLang("Cancel");
        echo "\" onclick=\"\$.modal.close();\" />
\t\t</div>
\t\t<input type=\"button\" class=\"Submit\" value=\"";
        // line 1470
        echo getLang("Continue");
        echo "\" onclick=\"CheckedDimensionsContinue()\" />
\t</div>
</div>
";
    }
    public function display(array $context)
    {
        // line 1
        $context['tooltip'] = $this->env->loadTemplate("tooltip.tpl", true);
        echo "
<link rel=\"stylesheet\" type=\"text/css\" href=\"Styles/shoppingcomparison.css\"/>
<form action=\"index.php?ToDo=saveShoppingComparison\" method=\"post\">
\t<div class=\"BodyContainer\">
\t\t<table class=\"Table13\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t<tbody>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Heading1\">";
        // line 9
        echo getLang("ShoppingComparisonManagePageTitle");
        echo "</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td class=\"Intro\">
\t\t\t\t\t\t<div>";
        // line 13
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "</div>
\t\t\t\t\t\t<p>";
        // line 14
        echo getLang("ShoppingComparisonManagePageDescription");
        echo "</p>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td>

\t\t\t\t\t\t<div id=\"tabs\">
\t\t\t\t\t\t\t<ul id=\"tabnav\">
\t\t\t\t\t\t\t\t<li><a href=\"#sites\">";
        // line 22
        echo getLang("ShoppingComparisonChooseSites");
        echo "</a></li>
\t\t\t\t\t\t\t\t";
        // line 23
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t";
            // line 24
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\t\t\t\t\t\t<li><a href=\"#";
                // line 25
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "id", array(), "any"), "1");
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
                echo "</a></li>
\t\t\t\t\t\t\t\t";
            }
            // line 26
            echo "\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 27
        echo "\t\t\t\t\t\t\t</ul>

\t\t\t\t\t\t\t";
        // line 30
        echo "
\t\t\t\t\t\t\t<div id=\"sites\">
\t\t\t\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"FieldLabel\">";
        // line 35
        echo getLang("ShoppingComparisonSites");
        echo "</td>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"modules[]\" class=\"Field250 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 108px;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
        // line 38
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
            // line 39
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
            echo "\"";
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
            echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 40
        echo "\t\t\t\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t\t\t\t";
        // line 42
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['tooltip']) ? $context['tooltip'] : null), "tooltip", array("shoppingComparisonToolTip", "ShoppingComparisonToolTipTitle", "ShoppingComparisonToolTipContent", ), "method"), "1");
        echo "
\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"Gap\" colspan=\"2\"></td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t</table>

\t\t\t\t\t\t\t\t<table>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td style=\"width: 183px;\"></td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<button class=\"FormButton\" type=\"submit\">";
        // line 55
        echo getLang("Save");
        echo "</button>
\t\t\t\t\t\t\t\t\t\t\t<button class=\"FormButton cancel\" type=\"button\">";
        // line 56
        echo getLang("Cancel");
        echo "</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t\t";
        // line 62
        echo "
\t\t\t\t\t\t\t";
        // line 63
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t\t\t\t";
            // line 64
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\t\t\t\t\t<div class=\"module\" id=\"";
                // line 65
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "\">
\t\t\t\t\t\t\t\t<table class=\"Panel\">
\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t";
                // line 70
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getLogos", array(), "method"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['logo']) {
                    echo "\t\t\t\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"";
                    // line 71
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['logo']) ? $context['logo'] : null), "url", array(), "any"), "1");
                    echo "\">
\t\t\t\t\t\t\t\t\t\t\t<img class=\"ShoppingComparisonLogo\" src=\"";
                    // line 72
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['logo']) ? $context['logo'] : null), "image", array(), "any"), "1");
                    echo "\"/>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['logo'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 74
                echo "
\t\t\t\t\t\t\t\t\t\t\t</td>

\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t<p>";
                // line 81
                echo twig_safe_filter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getHelpText", array(), "method"));
                echo "</p>

\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t\t\t\t\t";
                // line 84
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_iterator_to_array($this->getAttribute((isset($context['module']) ? $context['module'] : null), "getMessages", array(), "method"));
                $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
                $length = $countable ? count($context['_seq']) : null;
                $context['loop'] = array(
                  'parent' => $context['_parent'],
                  'index0' => 0,
                  'index'  => 1,
                  'first'  => true,
                );
                if ($countable) {
                    $context['loop']['revindex0'] = $length - 1;
                    $context['loop']['revindex'] = $length;
                    $context['loop']['length'] = $length;
                    $context['loop']['last'] = 1 === $length;
                }
                foreach ($context['_seq'] as $context['_key'] => $context['message']) {
                    echo "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"MessageBox MessageBox";
                    // line 85
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['message']) ? $context['message'] : null), "type", array(), "any"), "1");
                    echo "\">";
                    echo twig_safe_filter($this->getAttribute((isset($context['message']) ? $context['message'] : null), "content", array(), "any"));
                    echo "</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
                    ++$context['loop']['index0'];
                    ++$context['loop']['index'];
                    $context['loop']['first'] = false;
                    if ($countable) {
                        --$context['loop']['revindex0'];
                        --$context['loop']['revindex'];
                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 86
                echo "\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<button class='generateFeed smallbutton' value=\"Generate New Export\">Regenerate Feed...</button>
\t\t\t\t\t\t\t\t\t\t\t\t<button class='downloadFeed smallbutton' href=\"index.php?ToDo=downloadShoppingComparisonFeed&mid=";
                // line 89
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "\">Download Feed File</button>
\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
            }
            // line 95
            echo "\t\t\t\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 96
        echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</tbody>
\t\t</table>
\t</div>
</form>

<div id=\"unmappedCategoriesModal\" style=\"display: none;\">
\t<div class=\"ModalTitle\">Wait! 48 Categories Aren't Mapped Correctly</div>
\t<div class=\"ModalContent\">
\t\t<table class=\"Panel\" width=\"100%\">
\t\t\t<tr>
\t\t\t\t<td><span class=\"content\">
\t\t\t\t\t</span>
\t\t\t\t\t<span class=\"contentTemplate\" style=\"display:none\">

\t\t\t\t\t</span>
\t\t\t\t</td>
\t\t\t</tr>
\t\t</table>
\t</div>
\t<div class=\"ModalButtonRow\">
\t\t<input type=\"button\" class=\"generateFeed\" value=\"Generate Feed File Anyway\"/>
\t\t<input type=\"button\" class=\"close FormButton\" value=\"";
        // line 121
        echo getLang("Close");
        echo "\"/>
\t</div>
</div>

<script type=\"text/javascript\" src=\"script/jobtracker.js?";
        // line 125
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type=\"text/javascript\" src=\"script/shoppingcomparison.js?";
        // line 126
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\"></script>
<script type='text/javascript'>

(function(\$){
\$('document').ready(function(){
\t\$.extend(lang, {
\t\tShoppingComparisonUnmappedCategoriesModalTitle : \"";
        // line 132
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonUnmappedCategoriesModalTitle"), "'");
        echo "\",
\t\tShoppingComparisonUnmappedCategoriesModalHelp : \"";
        // line 133
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonUnmappedCategoriesModalHelp"), "'");
        echo "\",
\t\tShoppingComparisonFeedBeingGenerated : \"";
        // line 134
        echo Interspire_Template_Extension::jsFilter(getLang("ShoppingComparisonFeedBeingGenerated"), "'");
        echo "\",
\t\tConfirmCancel : \"";
        // line 135
        echo getLang("ConfirmCancel");
        echo "\"
\t});

\t\$.extend(ShoppingComparison, {
\t\tstartJobUrl : 'index.php?ToDo=generateShoppingComparisonFeed&mid=:moduleid',
\t\tstopJobUrl : 'index.php?ToDo=stopShoppingComparisonFeed&mid=:moduleid',
\t\tcategoriesUrl : 'index.php?ToDo=viewCategories'
\t});

\t";
        // line 144
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t";
            // line 145
            if ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "checkEnabled", array(), "method")) {
                echo "\t\t\tShoppingComparison.modules['";
                // line 146
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
                echo "'] = {
\t\t\t\tname : '";
                // line 147
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
                echo "',
\t\t\t\tjobid : '";
                // line 148
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context['module']) ? $context['module'] : null), "exportTask", array(), "method"), "getId", array(), "method"), "1");
                echo "',
\t\t\t\tunmappedCategories : ";
                // line 149
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "numUnmappedCategories", array(), "method"), "1");
                echo "
\t\t\t};
\t\t";
            }
            // line 151
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 152
        echo "
\tShoppingComparison.init();
});
})(jQuery);
</script>";
    }
    public function getjslang($list = null)
    {
        $context = array(
            "list" => $list,
        );

        echo "\t";
        // line 173
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['list']) ? $context['list'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['index'] => $context['lang']) {
            echo "\t\t";
            // line 174
            if (twig_length_filter($this->env, twig_get_array_keys_filter((isset($context['lang']) ? $context['lang'] : null)))) {
                echo "\t\t\tlang[\"";
                // line 175
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['index']) ? $context['index'] : null));
                echo "\"] = \"";
                echo Interspire_Template_Extension::jsFilter(getLang((isset($context['index']) ? $context['index'] : null), (isset($context['lang']) ? $context['lang'] : null)), "'");
                echo "\";
\t\t";
            } else {
                // line 176
                echo "\t\t\tlang[\"";
                // line 177
                echo $this->getEnvironment()->getExtension('interspire')->jsFilter((isset($context['lang']) ? $context['lang'] : null));
                echo "\"] = \"";
                echo Interspire_Template_Extension::jsFilter(getLang((isset($context['lang']) ? $context['lang'] : null)), "'");
                echo "\";
\t\t";
            }
            // line 178
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['index'], $context['lang'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
    }
    public function display(array $context)
    {
        // line 1
        $context['formBuilder'] = $this->env->loadTemplate("macros/forms.tpl", true);
        // line 2
        $context['orderForm'] = $this->env->loadTemplate("macros/orderform.tpl", true);
        echo "
";
        // line 4
        if ((isset($context['payment']) ? $context['payment'] : null)) {
            echo "\t";
            // line 5
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
            echo "
\t\t";
            // line 6
            echo getLang("PaymentDetailInfo", array("provider" => $this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "provider", array(), "any")));
            echo "\t";
            // line 7
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "

\t";
            // line 9
            if (($this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "transactionId", array(), "any")) || ($this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "status", array(), "any"))) {
                echo "\t\t";
                // line 10
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
                echo "
\t\t\t<table cellspacing=\"0\" class=\"orderFormPaymentDetailsTable\">
\t\t\t\t";
                // line 12
                if ($this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "transactionId", array(), "any")) {
                    echo "\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>";
                    // line 14
                    echo ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "TransactionId", array(), "any")) . (":");
                    echo "</th>
\t\t\t\t\t\t<td>";
                    // line 15
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "transactionId", array(), "any"), "1");
                    echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t";
                }
                // line 17
                echo "
\t\t\t\t";
                // line 19
                if ($this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "status", array(), "any")) {
                    echo "\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>";
                    // line 21
                    echo ($this->getAttribute((isset($context['lang']) ? $context['lang'] : null), "PaymentStatus", array(), "any")) . (":");
                    echo "</th>
\t\t\t\t\t\t<td>";
                    // line 22
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['payment']) ? $context['payment'] : null), "status", array(), "any"), "1");
                    echo "</td>
\t\t\t\t\t</tr>
\t\t\t\t";
                }
                // line 24
                echo "\t\t\t</table>
\t\t";
                // line 26
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
                echo "
\t";
            }
        } else {
            // line 28
            echo "\t";
            // line 29
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "startRow", array(), "any"), "1");
            echo "
\t\t<select name=\"paymentMethod\" id=\"paymentMethod\" class=\"Field200\">
\t\t\t<option value=\"\">-- Select a Payment Method --</option>
\t\t\t";
            // line 32
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
            $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
            $length = $countable ? count($context['_seq']) : null;
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if ($countable) {
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context['moduleId'] => $context['module']) {
                echo "\t\t\t\t";
                // line 33
                if (((!(isset($context['controlPanelSecure']) ? $context['controlPanelSecure'] : null))) && ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "requiresSSL", array(), "any"))) {
                    echo "\t\t\t\t\t<option value=\"\" disabled=\"disabled\">";
                    // line 34
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "name", array(), "any"), "1");
                    echo " (requires secure control panel)</option>
\t\t\t\t";
                } else {
                    // line 35
                    echo "\t\t\t\t\t<option value=\"";
                    // line 36
                    echo twig_escape_filter($this->env, (isset($context['moduleId']) ? $context['moduleId'] : null), "1");
                    echo "\">";
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "name", array(), "any"), "1");
                    echo "</option>
\t\t\t\t";
                }
                // line 37
                echo "\t\t\t";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if ($countable) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['moduleId'], $context['module'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 38
            echo "\t\t</select>
\t";
            // line 40
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['formBuilder']) ? $context['formBuilder'] : null), "endRow", array(), "any"), "1");
            echo "

\t";
            // line 42
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_iterator_to_array((isset($context['modules']) ? $context['modules'] : null));
            $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
            $length = $countable ? count($context['_seq']) : null;
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if ($countable) {
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context['moduleId'] => $context['module']) {
                echo "\t\t";
                // line 43
                if ((((isset($context['controlPanelSecure']) ? $context['controlPanelSecure'] : null)) && ($this->getAttribute((isset($context['module']) ? $context['module'] : null), "requiresSSL", array(), "any"))) || ((!$this->getAttribute((isset($context['module']) ? $context['module'] : null), "requiresSSL", array(), "any")))) {
                    echo "\t\t\t";
                    // line 44
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context['orderForm']) ? $context['orderForm'] : null), "paymentModuleForm", array((isset($context['module']) ? $context['module'] : null), ), "method"), "1");
                    echo "

\t\t\t";
                    // line 46
                    echo twig_safe_filter($this->getAttribute((isset($context['module']) ? $context['module'] : null), "javascript", array(), "any"));
                    echo "
\t\t";
                }
                // line 47
                echo "\t";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if ($countable) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['moduleId'], $context['module'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
        }
    }
    public function display(array $context)
    {
        // line 1
        echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html ";
        // line 2
        if ((isset($context['rtl']) ? $context['rtl'] : null)) {
            echo "dir=\"rtl\"";
        }
        echo " xml:lang=\"";
        echo twig_escape_filter($this->env, (isset($context['language']) ? $context['language'] : null), "1");
        echo "\" lang=\"";
        echo twig_escape_filter($this->env, (isset($context['language']) ? $context['language'] : null), "1");
        echo "\">
<head>
\t<title>";
        // line 4
        echo twig_safe_filter((isset($context['ControlPanelTitle']) ? $context['ControlPanelTitle'] : null));
        echo "</title>
\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
        // line 5
        echo twig_escape_filter($this->env, (isset($context['CharacterSet']) ? $context['CharacterSet'] : null), "1");
        echo "\" />
\t<meta name=\"robots\" content=\"noindex, nofollow\" />
\t<style type=\"text/css\">
\t\t@import url(\"Styles/styles.css?";
        // line 8
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\");
\t\t@import url('Styles/new.css?";
        // line 9
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "');
\t\t@import url('Styles/tabmenu.css?";
        // line 10
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "');
\t\t@import url(\"Styles/iselector.css?";
        // line 11
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\");
\t\t@import url('../javascript/jquery/plugins/imodal/imodal.css?";
        // line 12
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "');
\t\t@import url('Styles/iconsearchbox.css?";
        // line 13
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "');
\t\t@import url('Styles/thickbox.css?";
        // line 14
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "');
\t\t";
        // line 15
        echo twig_safe_filter((isset($context['AdditionalStylesheets']) ? $context['AdditionalStylesheets'] : null));
        echo "
\t</style>
\t<link rel=\"SHORTCUT ICON\" href=\"";
        // line 17
        echo twig_escape_filter($this->env, (isset($context['FaviconPath']) ? $context['FaviconPath'] : null), "1");
        echo "\" />
\t<!--[if IE]>
\t<style type=\"text/css\">
\t\t@import url(\"Styles/ie.css?";
        // line 20
        echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
        echo "\");
\t</style>
\t<![endif]-->

\t";
        // line 24
        echo twig_safe_filter((isset($context['RTLStyles']) ? $context['RTLStyles'] : null));
        echo "

\t";
        // line 26
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['headScripts']) ? $context['headScripts'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['script']) {
            echo "\t\t<script type=\"text/javascript\" src=\"";
            // line 27
            echo twig_escape_filter($this->env, (isset($context['script']) ? $context['script'] : null), "1");
            echo "?";
            echo twig_escape_filter($this->env, (isset($context['JSCacheToken']) ? $context['JSCacheToken'] : null), "1");
            echo "\"></script>
\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['script'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 28
        echo "
\t<script type=\"text/javascript\">
\t\t\$(document).ready(function() {
\t\t\t\$('.GridPanel input:checkbox').shiftcheckbox();
\t\t});
\t\tconfig.ProductName = '";
        // line 34
        echo twig_safe_filter((isset($context['ProductName']) ? $context['ProductName'] : null));
        echo "';
\t\tconfig.ShopPath = '";
        // line 35
        echo twig_safe_filter((isset($context['ShopPath']) ? $context['ShopPath'] : null));
        echo "';
\t\tvar ThousandsToken = '";
        // line 36
        echo twig_escape_filter($this->env, (isset($context['ThousandsToken']) ? $context['ThousandsToken'] : null), "1");
        echo "';
\t\tvar DecimalToken = '";
        // line 37
        echo twig_escape_filter($this->env, (isset($context['DecimalToken']) ? $context['DecimalToken'] : null), "1");
        echo "';
\t\tvar DimensionsThousandsToken = '";
        // line 38
        echo twig_escape_filter($this->env, (isset($context['DimensionsThousandsToken']) ? $context['DimensionsThousandsToken'] : null), "1");
        echo "';
\t\tvar DimensionsDecimalToken = '";
        // line 39
        echo twig_escape_filter($this->env, (isset($context['DimensionsDecimalToken']) ? $context['DimensionsDecimalToken'] : null), "1");
        echo "';
\t\t";
        // line 40
        echo twig_safe_filter((isset($context['DefineLanguageVars']) ? $context['DefineLanguageVars'] : null));
        echo "
\t\tvar url = 'remote.php';
\t</script>
</head>
<body>
\t<div id=\"AjaxLoading\"><img src=\"images/ajax-loader.gif\" />&nbsp; ";
        // line 45
        echo getLang("LoadingPleaseWait");
        echo "</div>
";
        // line 46
        echo twig_safe_filter((isset($context['WarningNotices']) ? $context['WarningNotices'] : null));
        echo "
<div class=\"OuterContainer\">
\t<div class=\"Header\">
\t\t<div class=\"logo\">
\t\t\t<a href=\"index.php\">";
        // line 50
        echo twig_safe_filter((isset($context['AdminLogo']) ? $context['AdminLogo'] : null));
        echo "</a>
\t\t</div>

\t\t<div class=\"textlinks\">
\t\t\t";
        // line 54
        echo twig_safe_filter((isset($context['textLinks']) ? $context['textLinks'] : null));
        echo "
\t\t</div>

\t\t<div class=\"LoggedInAs\">
\t\t\t";
        // line 58
        echo twig_safe_filter((isset($context['CurrentlyLoggedInAs']) ? $context['CurrentlyLoggedInAs'] : null));
        echo ",
\t\t\t<a href=\"index.php?ToDo=logOut\" class=\"Logout\">";
        // line 59
        echo getLang("Logout");
        echo "?</a>
\t\t</div>
\t</div>

\t<div class=\"menuBar\">


\t\t<div class=\"ControlPanelSearchBar\">
\t\t\t<form method=\"post\" action=\"index.php?ToDo=quickSearch\">
\t\t\t\t<input id=\"quicksearch\" onfocus=\"\$(this).addClass('QuickSearchFocused'); if(!\$(this).data('custom')) { \$(this).val(''); }\" onblur=\"if(\$(this).val()) { \$(this).data('custom', 1); return; } \$(this).removeClass('QuickSearchFocused'); if(!\$(this).val()) { \$(this).val('";
        // line 68
        echo getLang("QuickSearchValue");
        echo "'); \$(this).data('custom', 0); }\" name=\"query\" type=\"text\" value=\"";
        echo getLang("QuickSearchValue");
        echo "\" />
\t\t\t</form>
\t\t</div>
\t\t";
        // line 71
        echo twig_safe_filter((isset($context['menuRow']) ? $context['menuRow'] : null));
        echo "
\t</div>

\t<div class=\"ContentContainer\">

\t\t<div id=\"PageBreadcrumb\" class=\"Breadcrumb\"  style=\"";
        // line 76
        echo twig_safe_filter((isset($context['HideBreadcrumb']) ? $context['HideBreadcrumb'] : null));
        echo "\">
\t\t\t<ul>
\t\t\t\t";
        // line 78
        echo twig_safe_filter((isset($context['BreadcrumbTrail']) ? $context['BreadcrumbTrail'] : null));
        echo "
\t\t\t</ul>
\t\t</div>

\t<script type=\"text/javascript\">//<!--
\t\t// not in DOM ready, we want this to happen ASAP so the user doesn't see a colour flicker
\t\t\$('#PageBreadcrumb ul li:last').addClass('Last').prev('li').addClass('SecondLast');
\t//--></script>

\t\t";
        // line 87
        echo twig_safe_filter((isset($context['InfoTip']) ? $context['InfoTip'] : null));
        echo "
";
    }
 public function display(array $context)
 {
     // line 1
     $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
     echo "\t\t<table class=\"GridPanel SortableGrid AutoExpand\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"IndexGrid\" style=\"width:100%;\">
t\t<tr>
t\t\t<td colspan=\"12\">
t\t\t\t<table class=\"LetterSort\" cellspacing=\"2\" cellpadding=\"0\" border=\"0\">
t\t\t\t\t<tr>
t\t\t\t\t\t";
     // line 7
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_iterator_to_array((isset($context['letters']) ? $context['letters'] : null));
     $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
     $length = $countable ? count($context['_seq']) : null;
     $context['loop'] = array(
       'parent' => $context['_parent'],
       'index0' => 0,
       'index'  => 1,
       'first'  => true,
     );
     if ($countable) {
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context['displayLetter'] => $context['letter']) {
         echo "\t\t\t\t\t\t\t\t<td width=\"3%\"><a class=\"SortLink ";
         // line 8
         if ((isset($context['letter']) ? $context['letter'] : null) == (isset($context['activeLetter']) ? $context['activeLetter'] : null)) {
             echo "ActiveLetter";
         }
         echo "\" href=\"index.php?ToDo=viewProducts&amp;";
         echo http_build_query(twig_escape_filter($this->env, (isset($context['letterURL']) ? $context['letterURL'] : null), "1"));
         echo "&amp;letter=";
         echo twig_escape_filter($this->env, (isset($context['letter']) ? $context['letter'] : null), "1");
         echo "\">";
         echo twig_escape_filter($this->env, (isset($context['displayLetter']) ? $context['displayLetter'] : null), "1");
         echo "</a></td>
t\t\t\t\t\t";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if ($countable) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['displayLetter'], $context['letter'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 9
     echo "\t\t\t\t\t\t\t<td width=\"3%\"><a class=\"SortLink\" href=\"index.php?ToDo=viewProducts&amp;";
     // line 10
     echo http_build_query(twig_escape_filter($this->env, (isset($context['letterURL']) ? $context['letterURL'] : null), "1"));
     echo "\">";
     echo getLang("Clear");
     echo "</a></td>
t\t\t\t\t</tr>
t\t\t\t</table>
t\t\t</td>
t\t</tr>
t\t<tr align=\"right\">
t\t\t<td colspan=\"12\" style=\"padding:6px 0px 6px 0px\" class=\"PagingNav\">
t\t\t\t";
     // line 17
     echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numProducts']) ? $context['numProducts'] : null), (isset($context['perPage']) ? $context['perPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), (isset($context['pageURL']) ? $context['pageURL'] : null), true, ), "method"), "1");
     echo "
t\t\t</td>
t\t</tr>
t\t<tr class=\"Heading3\">
t\t\t<td align=\"center\"><input type=\"checkbox\" onclick=\"ToggleDeleteBoxes(this.checked)\"></td>
t\t\t<td>&nbsp;</td>
t\t\t<td style=\"display: ";
     // line 23
     echo twig_safe_filter((isset($context['HideInventoryOptions']) ? $context['HideInventoryOptions'] : null));
     echo "\">
t\t\t\t&nbsp;
t\t\t</td>
t\t\t<td class=\"ImageField\">";
     // line 26
     echo getLang("Image");
     echo "</td>
t\t\t<td>
t\t\t\t";
     // line 28
     echo getLang("ProductSKU");
     echo " &nbsp;
t\t\t\t";
     // line 29
     echo twig_safe_filter((isset($context['SortLinksCode']) ? $context['SortLinksCode'] : null));
     echo "
t\t\t</td>
t\t\t<td style=\"width: 95px; display: ";
     // line 31
     echo twig_safe_filter((isset($context['HideInventoryOptions']) ? $context['HideInventoryOptions'] : null));
     echo "\">
t\t\t\t<span class=\"HelpText\" onmouseout=\"HideQuickHelp(this);\" onmouseover=\"ShowQuickHelp(this, '";
     // line 32
     echo getLang("StockLevel");
     echo "', '";
     echo getLang("StockLevelHelp");
     echo "');\">";
     echo getLang("StockLevel");
     echo "</span> &nbsp;
t\t\t\t";
     // line 33
     echo twig_safe_filter((isset($context['SortLinksStock']) ? $context['SortLinksStock'] : null));
     echo "
t\t\t</td>
t\t\t<td colspan=\"";
     // line 35
     echo twig_safe_filter((isset($context['ProductNameSpan']) ? $context['ProductNameSpan'] : null));
     echo "\">
t\t\t\t";
     // line 36
     echo getLang("ProductName");
     echo " &nbsp;
t\t\t\t";
     // line 37
     echo twig_safe_filter((isset($context['SortLinksName']) ? $context['SortLinksName'] : null));
     echo "
t\t\t</td>
t\t\t<td width=\"70\" style=\"text-align: right;\">
t\t\t\t";
     // line 40
     echo getLang("ProductPrice");
     echo " &nbsp;
t\t\t\t";
     // line 41
     echo twig_safe_filter((isset($context['SortLinksPrice']) ? $context['SortLinksPrice'] : null));
     echo "
t\t\t</td>
t\t\t<td width=\"85\" style=\"text-align: right;\">
t\t\t\t";
     // line 44
     echo getLang("Status");
     echo " &nbsp;
t\t\t\t";
     // line 45
     echo twig_safe_filter((isset($context['SortLinksStatus']) ? $context['SortLinksStatus'] : null));
     echo "
t\t\t</td>
t\t\t<td width=\"70\" nowrap=\"nowrap\">
t\t\t\t";
     // line 48
     echo getLang("ProductVisible");
     echo " &nbsp;
t\t\t\t";
     // line 49
     echo twig_safe_filter((isset($context['SortLinksVisible']) ? $context['SortLinksVisible'] : null));
     echo "
t\t\t</td>
t\t\t<td width=\"80\" nowrap=\"nowrap\">
t\t\t\t";
     // line 52
     echo getLang("ProductFeatured");
     echo " &nbsp;
t\t\t\t";
     // line 53
     echo twig_safe_filter((isset($context['SortLinksFeatured']) ? $context['SortLinksFeatured'] : null));
     echo "
t\t\t</td>
t\t\t<td style=\"width:70px;\">
t\t\t\t";
     // line 56
     echo getLang("Action");
     echo "\t\t\t\t</td>
t\t</tr>
t\t";
     // line 59
     echo twig_safe_filter((isset($context['ProductGrid']) ? $context['ProductGrid'] : null));
     echo "
t\t<tr align=\"right\">
t\t\t<td colspan=\"12\" style=\"padding:6px 0px 6px 0px\" class=\"PagingNav\">
t\t\t\t";
     // line 62
     echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numProducts']) ? $context['numProducts'] : null), (isset($context['perPage']) ? $context['perPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), (isset($context['pageURL']) ? $context['pageURL'] : null), true, ), "method"), "1");
     echo "
t\t\t</td>
t\t</tr>
t</table>";
 }
 public function display(array $context)
 {
     // line 1
     $context['util'] = $this->env->loadTemplate("macros/util.tpl", true);
     echo "\t\t<table class=\"GridPanel SortableGrid AutoExpand\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"IndexGrid\" style=\"width:100%;\">
t\t\t<tr>
t\t\t\t<td colspan=\"11\">
t\t\t\t\t<table class=\"LetterSort\" cellspacing=\"2\" cellpadding=\"0\" border=\"0\">
t\t\t\t\t\t<tr>
t\t\t\t\t\t\t";
     // line 7
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_iterator_to_array((isset($context['letters']) ? $context['letters'] : null));
     $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
     $length = $countable ? count($context['_seq']) : null;
     $context['loop'] = array(
       'parent' => $context['_parent'],
       'index0' => 0,
       'index'  => 1,
       'first'  => true,
     );
     if ($countable) {
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context['_key'] => $context['letter']) {
         echo "\t\t\t\t\t\t\t\t\t<td width=\"3%\"><a class=\"SortLink ";
         // line 8
         if ((isset($context['letter']) ? $context['letter'] : null) == (isset($context['activeLetter']) ? $context['activeLetter'] : null)) {
             echo "ActiveLetter";
         }
         echo "\" href=\"index.php?ToDo=viewCustomers&amp;";
         echo http_build_query(twig_escape_filter($this->env, (isset($context['letterURL']) ? $context['letterURL'] : null), "1"));
         echo "&amp;letter=";
         echo twig_escape_filter($this->env, (isset($context['letter']) ? $context['letter'] : null), "1");
         echo "\">";
         echo twig_escape_filter($this->env, (isset($context['letter']) ? $context['letter'] : null), "1");
         echo "</a></td>
t\t\t\t\t\t\t";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if ($countable) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['letter'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 9
     echo "\t\t\t\t\t\t\t\t<td width=\"3%\"><a class=\"SortLink\" href=\"index.php?ToDo=viewCustomers&amp;";
     // line 10
     echo http_build_query(twig_escape_filter($this->env, (isset($context['letterURL']) ? $context['letterURL'] : null), "1"));
     echo "\">";
     echo getLang("Clear");
     echo "</a></td>
t\t\t\t\t\t</tr>
t\t\t\t\t</table>
t\t\t\t</td>
t\t\t</tr>
t\t\t<tr align=\"right\">
t\t\t\t<td colspan=\"11\" style=\"padding:6px 0px 6px 0px\" class=\"PagingNav\">
t\t\t\t\t";
     // line 17
     echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numCustomers']) ? $context['numCustomers'] : null), (isset($context['perPage']) ? $context['perPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), (isset($context['pageURL']) ? $context['pageURL'] : null), true, ), "method"), "1");
     echo "
t\t\t\t</td>
t\t\t</tr>
t\t<tr class=\"Heading3\">
t\t\t<td align=\"center\"><input type=\"checkbox\" onclick=\"ToggleDeleteBoxes(this.checked)\"></td>
t\t\t<td>&nbsp;</td>
t\t\t<td>&nbsp;</td>
t\t\t<td>
t\t\t\t";
     // line 25
     echo getLang("CustName");
     echo " &nbsp;
t\t\t\t";
     // line 26
     echo twig_safe_filter((isset($context['SortLinksName']) ? $context['SortLinksName'] : null));
     echo "
t\t\t</td>
t\t\t<td>
t\t\t\t";
     // line 29
     echo getLang("Email");
     echo " &nbsp;
t\t\t\t";
     // line 30
     echo twig_safe_filter((isset($context['SortLinksEmail']) ? $context['SortLinksEmail'] : null));
     echo "
t\t\t</td>
t\t\t<td>
t\t\t\t";
     // line 33
     echo getLang("Phone");
     echo " &nbsp;
t\t\t\t";
     // line 34
     echo twig_safe_filter((isset($context['SortLinksPhone']) ? $context['SortLinksPhone'] : null));
     echo "
t\t\t</td>
t\t\t<td style=\"display: ";
     // line 36
     echo twig_safe_filter((isset($context['HideGroup']) ? $context['HideGroup'] : null));
     echo "\">
t\t\t\t";
     // line 37
     echo getLang("CustomerGroup");
     echo " &nbsp;
t\t\t\t";
     // line 38
     echo twig_safe_filter((isset($context['SortLinksGroup']) ? $context['SortLinksGroup'] : null));
     echo "
t\t\t</td>
t\t\t<td style=\"display: ";
     // line 40
     echo twig_safe_filter((isset($context['HideStoreCredit']) ? $context['HideStoreCredit'] : null));
     echo "\">
t\t\t\t";
     // line 41
     echo getLang("StoreCredit");
     echo " &nbsp;
t\t\t\t";
     // line 42
     echo twig_safe_filter((isset($context['SortLinksStoreCredit']) ? $context['SortLinksStoreCredit'] : null));
     echo "
t\t\t</td>
t\t\t<td>
t\t\t\t";
     // line 45
     echo getLang("CustDateCreated");
     echo " &nbsp;
t\t\t\t";
     // line 46
     echo twig_safe_filter((isset($context['SortLinksDate']) ? $context['SortLinksDate'] : null));
     echo "
t\t\t</td>
t\t\t<td>
t\t\t\t";
     // line 49
     echo getLang("NumOrders");
     echo " &nbsp;
t\t\t\t";
     // line 50
     echo twig_safe_filter((isset($context['SortLinksNumOrders']) ? $context['SortLinksNumOrders'] : null));
     echo "
t\t\t</td>
t\t\t<td>
t\t\t\t";
     // line 53
     echo getLang("Action");
     echo "\t\t\t\t</td>
t\t</tr>
t\t";
     // line 56
     echo twig_safe_filter((isset($context['CustomerGrid']) ? $context['CustomerGrid'] : null));
     echo "
t\t<tr align=\"right\">
t\t\t<td colspan=\"11\" style=\"padding:6px 0px 6px 0px\" class=\"PagingNav\">
t\t\t\t";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute((isset($context['util']) ? $context['util'] : null), "paging", array((isset($context['numCustomers']) ? $context['numCustomers'] : null), (isset($context['perPage']) ? $context['perPage'] : null), (isset($context['currentPage']) ? $context['currentPage'] : null), (isset($context['pageURL']) ? $context['pageURL'] : null), true, ), "method"), "1");
     echo "
t\t\t</td>
t\t</tr>
t</table>";
 }
    public function display(array $context)
    {
        // line 1
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../javascript/jquery/themes/cupertino/ui.all.css\" />
";
        // line 2
        $context['forms'] = $this->env->loadTemplate("macros/forms.tpl", true);
        echo "
\t<div class=\"BodyContainer\">
\t<table id=\"Table13\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
\t\t<tr>
\t\t\t<td class=\"Heading1\">
\t\t\t\t";
        // line 8
        echo getLang("View");
        echo ": <a href=\"#\" style=\"color:#005FA3\" id=\"ViewsMenuButton\" class=\"PopDownMenu\">";
        echo twig_safe_filter((isset($context['ViewName']) ? $context['ViewName'] : null));
        echo " <img width=\"8\" height=\"5\" src=\"images/arrow_blue.gif\" border=\"0\" /></a>
\t\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t<td class=\"Intro\">
\t\t\t<p>";
        // line 13
        echo twig_safe_filter((isset($context['ProductIntro']) ? $context['ProductIntro'] : null));
        echo "</p>
\t\t\t<div id=\"ProductsStatus\">";
        // line 14
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "</div>
\t\t\t<table id=\"IntroTable\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
\t\t\t<tr>
\t\t\t<td class=\"Intro\" valign=\"top\" style=\"padding-top:10px\">
\t\t\t\t<input type=\"button\" name=\"IndexAddButton\" value=\"";
        // line 18
        echo getLang("AddProduct");
        echo "...\" id=\"IndexCreateButton\" class=\"SmallButton\" onclick=\"document.location.href='index.php?ToDo=addProduct'\" />
\t\t\t\t";
        // line 19
        echo getLang("Or");
        echo "\t\t\t\t<select name=\"bulk\">
\t\t\t\t\t<option value=\"\">";
        // line 21
        echo getLang("ChooseAnAction");
        echo "</option>
\t\t\t\t\t<option value=\"delete\" id=\"IndexDeleteButton\" ";
        // line 22
        echo twig_safe_filter((isset($context['DisableDelete']) ? $context['DisableDelete'] : null));
        echo ">";
        echo getLang("DeleteSelected");
        echo "</option>
\t\t\t\t\t<option value=\"edit\" id=\"IndexBulkButton\" style=\"display: ";
        // line 23
        echo twig_safe_filter((isset($context['HideBulkExportButton']) ? $context['HideBulkExportButton'] : null));
        echo "\" ";
        echo twig_safe_filter((isset($context['DisableBulkEdit']) ? $context['DisableBulkEdit'] : null));
        echo ">";
        echo getLang("BulkEditProducts");
        echo "</option>
\t\t\t\t\t<option value=\"export\" id=\"IndexExportButton\" style=\"display: ";
        // line 24
        echo twig_safe_filter((isset($context['HideExport']) ? $context['HideExport'] : null));
        echo "\" ";
        echo twig_safe_filter((isset($context['DisableExport']) ? $context['DisableExport'] : null));
        echo ">";
        echo getLang("ExportProducts");
        echo "</option>
\t\t\t\t\t";
        // line 25
        if ((isset($context['ShowListOnEbay']) ? $context['ShowListOnEbay'] : null)) {
            echo "\t\t\t\t\t\t<option value=\"ebay\" id=\"IndexEbayButton\">";
            // line 26
            echo getLang("ListOnEbay");
            echo "\t\t\t\t\t";
        }
        // line 27
        echo "\t\t\t\t\t";
        // line 28
        if (twig_length_filter($this->env, (isset($context['shoppingComparisonModules']) ? $context['shoppingComparisonModules'] : null))) {
            echo "\t\t\t\t\t<option value=\"shoppingComparison\" ";
            // line 29
            echo twig_safe_filter((isset($context['DisableExport']) ? $context['DisableExport'] : null));
            echo ">";
            echo getLang("ShoppingComparisonBulkSelectTitle");
            echo "</option>
\t\t\t\t\t";
        }
        // line 30
        echo "\t\t\t\t</select>
\t\t\t\t<button type=\"button\" id=\"optionGo\">";
        // line 32
        echo getLang("Go");
        echo "</button>
\t\t\t</td>

\t\t\t<td class=\"SmallSearch\" align=\"right\">
\t\t\t\t<table id=\"Table16\" style=\"display:";
        // line 36
        echo twig_safe_filter((isset($context['DisplaySearch']) ? $context['DisplaySearch'] : null));
        echo "\">
\t\t\t\t<tr>

\t\t\t\t\t<td nowrap>
\t\t\t\t\t\t<form action=\"index.php?ToDo=viewProducts";
        // line 40
        echo twig_safe_filter((isset($context['SortURL']) ? $context['SortURL'] : null));
        echo "\" method=\"get\" onsubmit=\"return ValidateForm(CheckSearchForm)\" style=\"margin: 0; padding: 0\">
\t\t\t\t\t\t\t";
        // line 41
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context['forms']) ? $context['forms'] : null), "hiddenInputs", array((array("ToDo" => "viewProducts")) + ((isset($context['queryParams']) ? $context['queryParams'] : null)), array(0 => "searchQuery"), ), "method"), "1");
        echo "
\t\t\t\t\t\t\t<input name=\"searchQuery\" id=\"searchQuery\" type=\"text\" value=\"";
        // line 42
        echo twig_safe_filter((isset($context['EscapedQuery']) ? $context['EscapedQuery'] : null));
        echo "\" class=\"Button\" size=\"20\" />&nbsp;
\t\t\t\t\t\t\t<input type=\"image\" name=\"SearchButton\" style=\"padding-left: 10px; vertical-align: top;\" id=\"SearchButton\" src=\"images/searchicon.gif\" border=\"0\" />
\t\t\t\t\t\t</form>
\t\t\t\t\t</td>

\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td nowrap=\"nowrap\">
\t\t\t\t\t\t<a href=\"index.php?ToDo=searchProducts\">";
        // line 50
        echo getLang("AdvancedSearch");
        echo "</a>
\t\t\t\t\t\t<span style=\"display:";
        // line 51
        echo twig_safe_filter((isset($context['HideClearResults']) ? $context['HideClearResults'] : null));
        echo "\">| <a id=\"SearchClearButton\" href=\"index.php?ToDo=viewProducts\">";
        echo getLang("ClearResults");
        echo "</a></span>
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t\t<tr>
\t\t\t\t\t<td></td>
\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</td>
\t\t\t</tr>
\t\t\t</table>
\t\t</td>
\t\t</tr>
\t\t<tr>
\t\t<td style=\"display: ";
        // line 64
        echo twig_safe_filter((isset($context['DisplayGrid']) ? $context['DisplayGrid'] : null));
        echo "\">
\t\t\t<form name=\"frmProducts\" id=\"frmProducts\" method=\"post\" action=\"index.php?ToDo=deleteProducts\">
\t\t\t\t<div class=\"GridContainer\">
\t\t\t\t\t";
        // line 67
        echo twig_safe_filter((isset($context['ProductDataGrid']) ? $context['ProductDataGrid'] : null));
        echo "
\t\t\t\t</div>
\t\t\t</form>
\t\t</td></tr>
\t</table>
</div>

<div id=\"ViewsMenu\" class=\"DropShadow DropDownMenu\" style=\"display: none; width:200px\">
\t<ul>
\t\t";
        // line 76
        echo twig_safe_filter((isset($context['CustomSearchOptions']) ? $context['CustomSearchOptions'] : null));
        echo "
\t</ul>
\t<hr />
\t<ul>
\t\t<li><a href=\"index.php?ToDo=createProductView\" style=\"background-image:url('images/view_add.gif'); background-repeat:no-repeat; background-position:5px 5px; padding-left:28px\">";
        // line 80
        echo getLang("CreateANewView");
        echo "</a></li>
\t\t<li style=\"display:";
        // line 81
        echo twig_safe_filter((isset($context['HideDeleteViewLink']) ? $context['HideDeleteViewLink'] : null));
        echo "\"><a onclick=\"\$('#ViewsMenu').hide(); confirm_delete_custom_search('";
        echo twig_safe_filter((isset($context['CustomSearchId']) ? $context['CustomSearchId'] : null));
        echo "')\" href=\"javascript:void(0)\" style=\"background-image:url('images/view_del.gif'); background-repeat:no-repeat; background-position:5px 5px; padding-left:28px\">";
        echo getLang("DeleteThisView");
        echo "</a></li>
\t</ul>
</div>

<div id=\"invDiv\" class=\"StockList\" style=\"display:none\"></div>

<div id=\"shoppingComparisonModal\" title=\"";
        // line 87
        echo getLang("ShoppingComparisonProductModalTitle");
        echo "\" style=\"display: none;\">
\t<form action=\"index.php?ToDo=bulkSaveProductShoppingComparisonFeeds\" method=\"post\">
\t\t<p class=\"description\"></p>

\t\t<div style=\" margin-bottom: 10px;\">
\t\t\t<select name=\"comparisons[]\" class=\"Field250 ISSelectReplacement\" multiple=\"multiple\" style=\"height: 108px;width:350px;\">
\t\t\t\t";
        // line 93
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_iterator_to_array((isset($context['shoppingComparisonModules']) ? $context['shoppingComparisonModules'] : null));
        $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
        $length = $countable ? count($context['_seq']) : null;
        $context['loop'] = array(
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        );
        if ($countable) {
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context['_key'] => $context['module']) {
            echo "\t\t\t\t<option value=\"";
            // line 94
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getId", array(), "method"), "1");
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context['module']) ? $context['module'] : null), "getName", array(), "method"), "1");
            echo "</option>
\t\t\t\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if ($countable) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
        $context = array_merge($_parent, array_intersect_key($context, $_parent));
        // line 95
        echo "\t\t\t</select>
\t\t\t<div style=\"clear: both;\"></div>
\t\t</div>
\t</form>
</div>

<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/jquery.form.js\"></script>
<script type=\"text/javascript\">

\tvar tok = \"";
        // line 105
        echo twig_safe_filter((isset($context['AuthToken']) ? $context['AuthToken'] : null));
        echo "\";
\tvar inventory_product_id = 0;
\tvar action = \"\";
\tvar total_stock_units = 0;
\t\tvar Interspire_Ebay_ListProductsMachine = null;
\tfunction ExportProducts()
\t{
\t\tdocument.getElementById(\"frmProducts\").action = \"";
        // line 112
        echo twig_safe_filter((isset($context['ExportAction']) ? $context['ExportAction'] : null));
        echo "\";
\t\tdocument.getElementById(\"frmProducts\").submit();
\t}
\t\tvar searchId = ";
        // line 115
        echo twig_escape_filter($this->env, (isset($context['CustomSearchId']) ? $context['CustomSearchId'] : null), "1");
        echo ";
\t\tvar searchQuery = \"";
        // line 116
        echo twig_safe_filter((isset($context['EscapedQuery']) ? $context['EscapedQuery'] : null));
        echo "\";

\tfunction CheckSearchForm()
\t{
\t\tvar query = document.getElementById('searchQuery');

\t\tif (query.value == '') {
\t\t\talert(\"";
        // line 123
        echo getLang("ChooseFilterOrEnterSearchTerm");
        echo "\");
\t\t\treturn false;
\t\t}

\t\treturn true;
\t}

\tfunction ListProductsOnEbay()
\t{
\t\tvar productOptions = {};
\t\tproductOptions.productIds = \$(\"#frmProducts\").serialize();
\t\tproductOptions.searchId = searchId;
\t\tproductOptions.searchQuery = searchQuery;

\t\tInterspire_Ebay_ListProductsMachine.start({productOptions: productOptions});
\t}

\tfunction ConfirmDeleteSelected()
\t{
\t\tvar fp = document.getElementById('frmProducts').elements;
\t\tvar c  = 0;

\t\tfor (i = 0; i < fp.length; i++) {
\t\t\tif(fp[i].type == 'checkbox' && fp[i].checked)
\t\t\t\tc++;
\t\t}

\t\tif (c > 0){
\t\t\tif (confirm(\"";
        // line 151
        echo getLang("ConfirmDeleteProducts");
        echo "\")) {
\t\t\t\tdocument.getElementById('frmProducts').submit();
\t\t\t}
\t\t}
\t\telse {
\t\t\talert(\"";
        // line 156
        echo getLang("ChooseProduct");
        echo "\");
\t\t}
\t}

\tfunction ToggleDeleteBoxes(Status)
\t{
\t\tvar fp = document.getElementById('frmProducts').elements;

\t\tfor (i = 0; i < fp.length; i++) {
\t\t\tfp[i].checked = Status;
\t\t}
\t}

\tfunction ShowStock(id, InventoryType, VariationId)
\t{
\t\tvar tr  = document.getElementById('tr' + id);
\t\tvar trQ = document.getElementById('trQ' + id);
\t\tvar tdQ = document.getElementById('tdQ' + id);
\t\tvar img = document.getElementById('expand' + id);

\t\tif (img.src.indexOf('plus.gif') > -1) {
\t\t\timg.src = 'images/minus.gif';

\t\t\tfor (i = 0; i < tr.childNodes.length; i++) {
\t\t\t\tif (tr.childNodes[i].style != null) {
\t\t\t\t\ttr.childNodes[i].style.backgroundColor = \"#dbf3d1\";
\t\t\t\t}
\t\t\t}

\t\t\t\$(trQ).find('.QuickView').load(
\t\t\t\t'remote.php?w=inventoryLevels&p='
\t\t\t\t+ id
\t\t\t\t+ '&i='
\t\t\t\t+ InventoryType
\t\t\t\t+ '&v='
\t\t\t\t+ VariationId
\t\t\t\t+ '&t='
\t\t\t\t+ tok
\t\t\t\t, {
\t\t\t\t\t'cache' : false
\t\t\t\t}
\t\t\t\t, function() {
\t\t\t\t\ttrQ.style.display = '';
\t\t\t\t}
\t\t\t);
\t\t}
\t\telse
\t\t{
\t\t\timg.src = \"images/plus.gif\";

\t\t\tfor (i = 0; i < tr.childNodes.length; i++) {
\t\t\t\tif (tr.childNodes[i].style != null) {
\t\t\t\t\ttr.childNodes[i].style.backgroundColor = '';
\t\t\t\t}
\t\t\t}

\t\t\ttrQ.style.display = 'none';
\t\t}
\t}

\tfunction UpdateStockLevel(ProductId, InventoryType)
\t{
\t\tvar loading = document.getElementById('loading' + ProductId);
\t\tinventory_product_id = ProductId;

\t\t// Update the stock levels via AJAX
\t\tif (InventoryType == 0) {
\t\t\t// Per-product stock levels
\t\t\tvar stock_level = document.getElementById('stock_level_' + ProductId);
\t\t\tvar stock_level_notify = document.getElementById('stock_level_notify_' + ProductId);

\t\t\tif (isNaN(stock_level.value) || stock_level.value == '') {
\t\t\t\talert(\"";
        // line 228
        echo getLang("EnterValidStockLevel");
        echo "\");
\t\t\t\tstock_level.focus();
\t\t\t\tstock_level.select();
\t\t\t}
\t\t\telse if(isNaN(stock_level_notify.value) || stock_level_notify.value == '') {
\t\t\t\talert(\"";
        // line 233
        echo getLang("EnterValidStockLevel");
        echo "\");
\t\t\t\tstock_level_notify.focus();
\t\t\t\tstock_level_notify.select();
\t\t\t}
\t\t\telse {
\t\t\t\t// Update the loading image
\t\t\t\tloading.src = 'images/ajax-loader.gif';

\t\t\t\t// Valid stock level numbers, save them using AJAX
\t\t\t\ttotal_stock_units = stock_level.value;
\t\t\t\taction = 'update_inventory_levels';

\t\t\t\tDoCallback('w=updatePerProductInventoryLevels&p=' + ProductId + '&c=' + stock_level.value + '&l=' + stock_level_notify.value + '&t=' + tok);
\t\t\t}
\t\t}
\t\telse if(InventoryType == 1) {
\t\t\t// Per option stock levels
\t\t\tvar fp = document.getElementById('frmProducts').elements;
\t\t\tvar c = 0;
\t\t\tvar is_error = false;
\t\t\tvar update_data = '';

\t\t\ttotal_stock_units = 0;

\t\t\tfor (i = 0; i < fp.length; i++) {
\t\t\t\tif (fp[i].id.indexOf('stock_level_' + ProductId) > -1 || fp[i].id.indexOf('stock_level_notify_' + ProductId) > -1) {
\t\t\t\t\tif (isNaN(fp[i].value) || fp[i].value == '') {
\t\t\t\t\t\talert(\"";
        // line 260
        echo getLang("EnterValidStockLevel");
        echo "\");
\t\t\t\t\t\tfp[i].focus();
\t\t\t\t\t\tfp[i].select();
\t\t\t\t\t\tis_error = true;

\t\t\t\t\t\tbreak;
\t\t\t\t\t}
\t\t\t\t\telse {
\t\t\t\t\t\t// It's a valid inventory related value
\t\t\t\t\t\tupdate_data = update_data + fp[i].id + '=' + fp[i].value + '&';

\t\t\t\t\t\t// Add the number of current units in stock so we can update the \"In Stock\" field
\t\t\t\t\t\tif (fp[i].id.indexOf('stock_level_notify') == -1) {
\t\t\t\t\t\t\ttotal_stock_units = total_stock_units + parseInt(fp[i].value);
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t}
\t\t\t}

\t\t\t// All inventory-related fields are valid, run the AJAX query
\t\t\tif (!is_error) {
\t\t\t\t// Update the loading image
\t\t\t\tloading.src = 'images/ajax-loader.gif';

\t\t\t\t// Valid stock level numbers, save them using AJAX
\t\t\t\taction = 'update_inventory_levels';

\t\t\t\tDoCallback('w=updatePerOptionInventoryLevels&i=' + escape(update_data) + '&t=' + tok);
\t\t\t}
\t\t}
\t}

\tfunction show_inventory_levels(result)
\t{
\t\tvar inventory_info = document.getElementById('StockLevelInfo' + inventory_product_id);
\t\tinventory_info.innerHTML = result;
\t}

\tfunction update_inventory_levels(result)
\t{
\t\t// Update the loading image
\t\tvar loading = document.getElementById('loading' + inventory_product_id);
\t\tvar instock_cell = document.getElementById('InStock' + inventory_product_id);
\t\tloading.src = 'images/ajax-blank.gif';

\t\tif (result == '1') {
\t\t\t//instock_cell.innerHTML = total_stock_units;
\t\t\tdisplay_success('ProductsStatus', \"";
        // line 307
        echo getLang("InventoryLevelsUpdated");
        echo "\".replace('%d', inventory_product_id));
\t\t}
\t\telse {
\t\t\tdisplay_error('ProductsStatus', \"";
        // line 310
        echo getLang("InventoryLevelsUpdateFailed");
        echo "\");
\t\t}
\t}

\tfunction ProcessData(html)
\t{
\t\tret = html;

\t\tif(action == 'get_inventory_levels') {
\t\t\tshow_inventory_levels(ret);
\t\t}
\t\telse if(action == 'update_inventory_levels') {
\t\t\tupdate_inventory_levels(ret);
\t\t}
\t}

\tfunction confirm_delete_custom_search(search_id)
\t{
\t\tif (confirm(\"";
        // line 328
        echo getLang("ConfirmDeleteCustomSearch");
        echo "\")) {
\t\t\tdocument.location.href = 'index.php?ToDo=deleteCustomProductSearch&searchId=' + search_id;
\t\t}
\t}

\tfunction quickToggle(element, what)
\t{
\t\t\$.ajax({
\t\t\turl: element.href + '&ajax=1',
\t\t\tsuccess: function(response) {
\t\t\t\tif(response) {
\t\t\t\t\tif(element.childNodes.length == 1 && element.childNodes[0].tagName == \"IMG\") {
\t\t\t\t\t\tvar image = element.childNodes[0];

\t\t\t\t\t\t// Element was ticked, now should not be
\t\t\t\t\t\tif(image.src.indexOf('tick') != -1) {
\t\t\t\t\t\t\telement.href = element.href.replace(what+'=0', what+'=1');
\t\t\t\t\t\t\timage.src = image.src.replace('tick', 'cross');
\t\t\t\t\t\t}
\t\t\t\t\t\telse {
\t\t\t\t\t\t\telement.href = element.href.replace(what+'=1', what+'=0');
\t\t\t\t\t\t\timage.src = image.src.replace('cross', 'tick');
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t}
\t\t\t}
\t\t});
\t}

\tfunction BulkEditSelected()
\t{
\t\tvar count = \$('#frmProducts input:checked').length;
\t\tif (count > 0) {
\t\t\tdocument.getElementById('frmProducts').action = 'index.php?ToDo=bulkEditProducts';
\t\t\tdocument.getElementById('frmProducts').submit();
\t\t} else {
\t\t\talert(\"";
        // line 364
        echo getLang("ChooseProductToBulkEdit");
        echo "\");
\t\t}
\t}

\t/**
\t * Returns the checkboxes that are selected for the given products on the page.
\t *
\t * @return jQuery
\t */
\tfunction getSelectedProducts()
\t{
\t\treturn getAllProducts().filter(':checked');
\t}

\t/**
\t * Returns all products checkboxes.
\t *
\t * @return jQuery
\t */
\tfunction getAllProducts()
\t{
\t\treturn \$('#frmProducts .GridRow > td:first-child > :checkbox');
\t}

\t/**
\t * Returns the selected products or all products if no products are selected.
\t *
\t * @return jQuery
\t */
\tfunction getSelectedOrAllProducts()
\t{
\t\tvar products = getSelectedProducts();

\t\tif (!products.length) {
\t\t\tproducts = getAllProducts();
\t\t}

\t\treturn products;
\t}

\t/**
\t * Shows the modal window for bulk editing shopping comparison feeds.
\t *
\t * @return void
\t */
\tfunction toggleShoppingComparisonFeeds()
\t{
\t\tvar comparison = \$('#shoppingComparisonModal');
\t\tvar buttons    = '<button class=\"FormButton\" type=\"button\" onclick=\"jQuery.iModal.close();\" style=\"float: left;\">";
        // line 412
        echo getLang("ShoppingComparisonProductModalCancel");
        echo "</button>';
\t\t\tbuttons   += '<button class=\"FormButton\" type=\"submit\" onclick=\"return toggleShoppingComparisonSubmit();\" style=\"font-weight:bold;\">";
        // line 413
        echo getLang("ShoppingComparisonProductModalSave");
        echo "</button>';

\t\tcomparison.find('.description').html(\"";
        // line 415
        echo getLang("ShoppingComparisonProductModalDescription");
        echo "\".replace(':numberOfProducts', getSelectedOrAllProducts().length));

\t\t\$.iModal({
\t\t\ttitle   : comparison.attr('title'),
\t\t\tdata    : comparison.html(),
\t\t\tbuttons : buttons,
\t\t\twidth\t: 385
\t\t});
\t}

\t/**
\t * Gets called when the modal form is submitted.
\t *
\t * @return false
\t */
\tfunction toggleShoppingComparisonSubmit()
\t{
\t\tvar products = getSelectedProducts();
\t\tvar uncheck  = false;

\t\t// if there are no products selected
\t\tif (!products.length) {
\t\t\tuncheck = true;

\t\t\t// get all checkboxes
\t\t\tproducts = getAllProducts();

\t\t\t// check all because jQuery only serializes checkboxes if they're checked
\t\t\tproducts.attr('checked', 'checked');
\t\t}

\t\t// add in regular fields
\t\tvar fields = \$('.ModalContent form select').add(products);
\t\tvar serial = fields.serialize();

\t\tif (uncheck) {
\t\t\tproducts.removeAttr('checked');
\t\t}

\t\t\$.post('index.php?ToDo=bulkSaveProductShoppingComparisonFeeds', serial, function(result) {
\t\t\tif (result == 1) {
\t\t\t\t\$.iModal.close();

\t\t\t\tdisplay_success('ProductsStatus', \"";
        // line 458
        echo getLang("ShoppingComparisonProductMessageSuccess");
        echo "\".replace(':numberOfProducts', products.length));
\t\t\t}
\t\t\telse {
\t\t\t\tdisplay_error('ProductsStatus', \"";
        // line 461
        echo getLang("ShoppingComparisonProductMessageError");
        echo "\".replace(':numberOfProducts', products.length));
\t\t\t}
\t\t});

\t\treturn false;
\t}

\t\$(document).ready(function() {
\t\t// Hide the product thumbnail row if required
\t\tif (\"";
        // line 470
        echo twig_safe_filter((isset($context['HideThumbnailField']) ? $context['HideThumbnailField'] : null));
        echo "\" == '1') {
\t\t\t\$('td.ImageField').css('display', 'none');
\t\t}

\t\t// when the bulk options are changed, perform an action
\t\t\$('#optionGo').click(function() {
\t\t\tvar sel = \$('select[name=\"bulk\"]');
\t\t\tvar raw = sel.get(0);
\t\t\tvar val = sel.val();

\t\t\tswitch (val) {
\t\t\t\tcase 'delete':
\t\t\t\t\tConfirmDeleteSelected.apply(raw);
\t\t\t\t\tbreak;
\t\t\t\tcase 'edit':
\t\t\t\t\tBulkEditSelected.apply(raw);
\t\t\t\t\tbreak;
\t\t\t\tcase 'export':
\t\t\t\t\tExportProducts.apply(raw);
\t\t\t\t\tbreak;
\t\t\t\tcase 'ebay':
\t\t\t\t\tListProductsOnEbay.apply(raw);
\t\t\t\t\tbreak;
\t\t\t\tcase 'shoppingComparison':
\t\t\t\t\ttoggleShoppingComparisonFeeds.apply(raw);
\t\t\t\t\tbreak;
\t\t\t}

\t\t\t// reset the select box back to default option
\t\t\tsel.val('');
\t\t});
\t});

</script>
<script type=\"text/javascript\" src=\"../javascript/jquery/plugins/disabled/jquery.disabled.js\"></script>
<script type=\"text/javascript\" src=\"../javascript/fsm.js\"></script>
<script type=\"text/javascript\" src=\"script/ebay.listproducts.js\"></script>
";
    }