<?php

/* extension/advanced_faq/advanced_faq_list.twig */
class __TwigTemplate_150904478cb37bf43090fd6a71a6479700e31e7339ab123789524b3caed7907f extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo (isset($context["header"]) ? $context["header"] : null);
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo "
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\">
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo (isset($context["button_filter"]) ? $context["button_filter"] : null);
        echo "\" onclick=\"\$('#filter-review').toggleClass('hidden-sm hidden-xs');\" class=\"btn btn-default hidden-md hidden-lg\"><i class=\"fa fa-filter\"></i></button>
        <a href=\"";
        // line 7
        echo (isset($context["add"]) ? $context["add"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_add"]) ? $context["button_add"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 8
        echo (isset($context["button_delete"]) ? $context["button_delete"] : null);
        echo "\" class=\"btn btn-danger\" onclick=\"deleteFunction()\"><i class=\"fa fa-trash-o\"></i></button>
      </div>
      <h1>";
        // line 10
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 13
            echo "        <li><a href=\"";
            echo $this->getAttribute($context["breadcrumb"], "href", array());
            echo "\">";
            echo $this->getAttribute($context["breadcrumb"], "text", array());
            echo "</a></li>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 15
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">";
        // line 18
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 19
            echo "    <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 23
        echo "    ";
        if ((isset($context["success"]) ? $context["success"] : null)) {
            // line 24
            echo "    <div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
            echo (isset($context["success"]) ? $context["success"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 28
        echo "    <div class=\"row\">
      <div id=\"filter-review\" class=\"col-md-3 col-md-push-9 col-sm-12 hidden-sm hidden-xs\">
        <div class=\"panel panel-default\">
          <div class=\"panel-heading\">
            <h3 class=\"panel-title\"><i class=\"fa fa-filter\"></i> ";
        // line 32
        echo (isset($context["text_filter"]) ? $context["text_filter"] : null);
        echo "</h3>
          </div>
          <div  class=\"panel-body\">
            <div class=\"form-group\">
              <label class=\"control-label\" for=\"input-product\">";
        // line 36
        echo (isset($context["entry_category"]) ? $context["entry_category"] : null);
        echo "</label>
              <select name=\"filter_category\" class=\"form-control\">
                <option value=\"\">Select Category</option>
                ";
        // line 39
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["category"]) ? $context["category"] : null));
        foreach ($context['_seq'] as $context["key"] => $context["faq"]) {
            // line 40
            echo "                <option ";
            if (($this->getAttribute($context["faq"], "faq_category_id", array()) == (isset($context["filter_category"]) ? $context["filter_category"] : null))) {
                echo "selected";
            }
            echo " value=\"";
            echo $this->getAttribute($context["faq"], "faq_category_id", array());
            echo "\">";
            echo $this->getAttribute($context["faq"], "name", array());
            echo "</option> 
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['key'], $context['faq'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 42
        echo "              </select>
            </div>
            <div class=\"form-group\">
              <label class=\"control-label\" for=\"input-question\">";
        // line 45
        echo (isset($context["entry_questions"]) ? $context["entry_questions"] : null);
        echo "</label>
              <input type=\"text\" name=\"filter_question\" value=\"";
        // line 46
        echo (isset($context["filter_question"]) ? $context["filter_question"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_questions"]) ? $context["entry_questions"] : null);
        echo "\" id=\"input-question\" class=\"form-control\" />
            </div>
            <div class=\"form-group\">
              <label class=\"control-label\" for=\"input-answer\">";
        // line 49
        echo (isset($context["entry_answers"]) ? $context["entry_answers"] : null);
        echo "</label>
              <input type=\"text\" name=\"filter_answer\" value=\"";
        // line 50
        echo (isset($context["filter_answer"]) ? $context["filter_answer"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_answers"]) ? $context["entry_answers"] : null);
        echo "\" id=\"input-answer\" class=\"form-control\" />
            </div>
            <div class=\"form-group\">
              <label class=\"control-label\" for=\"input-status\">";
        // line 53
        echo (isset($context["entry_status"]) ? $context["entry_status"] : null);
        echo "</label>
              <select name=\"filter_status\" id=\"input-status\" class=\"form-control\">
                <option value=\"\"></option>
                  ";
        // line 56
        if (((isset($context["filter_status"]) ? $context["filter_status"] : null) == "1")) {
            // line 57
            echo "                <option value=\"1\" selected=\"selected\">";
            echo (isset($context["text_enabled"]) ? $context["text_enabled"] : null);
            echo "</option>
                  ";
        } else {
            // line 59
            echo "                <option value=\"1\">";
            echo (isset($context["text_enabled"]) ? $context["text_enabled"] : null);
            echo "</option>
                  ";
        }
        // line 61
        echo "                  ";
        if (((isset($context["filter_status"]) ? $context["filter_status"] : null) == "0")) {
            // line 62
            echo "                <option value=\"0\" selected=\"selected\">";
            echo (isset($context["text_disabled"]) ? $context["text_disabled"] : null);
            echo "</option>
                  ";
        } else {
            // line 63
            echo " 
                <option value=\"0\">";
            // line 64
            echo (isset($context["text_disabled"]) ? $context["text_disabled"] : null);
            echo "</option>
                  ";
        }
        // line 65
        echo "  
              </select>
            </div>
            <div class=\"form-group text-right\">
              <button type=\"button\" id=\"button-filter\" class=\"btn btn-default\"><i class=\"fa fa-filter\"></i> ";
        // line 69
        echo (isset($context["button_filter"]) ? $context["button_filter"] : null);
        echo "</button>
            </div>
          </div>
        </div>
      </div>
      <div class=\"col-md-9 col-md-pull-3 col-sm-12\">
        <div class=\"panel panel-default\">
          <div class=\"panel-heading\">
            <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 77
        echo (isset($context["text_list"]) ? $context["text_list"] : null);
        echo "</h3>
          </div>
          <div class=\"panel-body\">
            <form action=\"";
        // line 80
        echo (isset($context["delete"]) ? $context["delete"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-review\">           
                <div class=\"table-responsive\">
                <table class=\"table table-bordered table-hover\">
                  <thead>
                     <tr>
                      <td class=\"text-center\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
                      <td style=\"width: 132px;\" class=\"text-center\">";
        // line 86
        if (((isset($context["sort"]) ? $context["sort"] : null) == "nd.name")) {
            echo " <a href=\"";
            echo (isset($context["sort_category"]) ? $context["sort_category"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["entry_category_name"]) ? $context["entry_category_name"] : null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo (isset($context["sort_category"]) ? $context["sort_category"] : null);
            echo "\">";
            echo (isset($context["entry_category_name"]) ? $context["entry_category_name"] : null);
            echo "</a> ";
        }
        echo "</td>
                      <td style=\"width: 100px;\" class=\"text-center\">";
        // line 87
        if (((isset($context["sort"]) ? $context["sort"] : null) == "nd.question")) {
            echo " <a href=\"";
            echo (isset($context["sort_question"]) ? $context["sort_question"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["entry_questions"]) ? $context["entry_questions"] : null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo (isset($context["sort_question"]) ? $context["sort_question"] : null);
            echo "\">";
            echo (isset($context["entry_questions"]) ? $context["entry_questions"] : null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-center\">";
        // line 88
        if (((isset($context["sort"]) ? $context["sort"] : null) == "nd.answer")) {
            echo " <a href=\"";
            echo (isset($context["sort_answer"]) ? $context["sort_answer"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["entry_answers"]) ? $context["entry_answers"] : null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo (isset($context["sort_answer"]) ? $context["sort_answer"] : null);
            echo "\">";
            echo (isset($context["entry_answers"]) ? $context["entry_answers"] : null);
            echo "</a> ";
        }
        echo "</td>
                       <td style=\"width: 98px;\" class=\"text-center\">";
        // line 89
        if (((isset($context["sort"]) ? $context["sort"] : null) == "n.sort_order")) {
            echo " <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\">";
            echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-center\">";
        // line 90
        if (((isset($context["sort"]) ? $context["sort"] : null) == "n.status")) {
            echo " <a href=\"";
            echo (isset($context["sort_status"]) ? $context["sort_status"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["entry_status"]) ? $context["entry_status"] : null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo (isset($context["sort_status"]) ? $context["sort_status"] : null);
            echo "\">";
            echo (isset($context["entry_status"]) ? $context["entry_status"] : null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-center\">";
        // line 91
        echo (isset($context["column_action"]) ? $context["column_action"] : null);
        echo "</td>
                    </tr>
                  </thead>
                  <tbody>
                   ";
        // line 95
        if ((isset($context["faqs"]) ? $context["faqs"] : null)) {
            // line 96
            echo "                  ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["faqs"]) ? $context["faqs"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
                // line 97
                echo "                  <tr>
                  <td class=\"text-center\">";
                // line 98
                if (twig_in_filter($this->getAttribute($context["faq"], "faq_id", array()), (isset($context["selected"]) ? $context["selected"] : null))) {
                    // line 99
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["faq"], "faq_id", array());
                    echo "\" checked=\"checked\" />
                      ";
                } else {
                    // line 101
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["faq"], "faq_id", array());
                    echo "\" />
                      ";
                }
                // line 102
                echo "</td>
                    <td>";
                // line 103
                echo $this->getAttribute($context["faq"], "name", array());
                echo "</td>
                    <td>";
                // line 104
                echo $this->getAttribute($context["faq"], "question", array());
                echo "</td>
                    <td>";
                // line 105
                echo $this->getAttribute($context["faq"], "answer", array());
                echo "</td>
                    <td>";
                // line 106
                echo $this->getAttribute($context["faq"], "sort_order", array());
                echo "</td>
                    <td>";
                // line 107
                echo $this->getAttribute($context["faq"], "status", array());
                echo "</td>
                    <td><a href=\"";
                // line 108
                echo $this->getAttribute($context["faq"], "edit", array());
                echo "\" title=\"";
                echo (isset($context["button_edit"]) ? $context["button_edit"] : null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a></td>
                  </tr>
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 111
            echo "                  ";
        } else {
            // line 112
            echo "                  <tr>
                    <td class=\"text-center\" colspan=\"7\">";
            // line 113
            echo (isset($context["text_no_results"]) ? $context["text_no_results"] : null);
            echo "</td>
                  </tr>
                  ";
        }
        // line 116
        echo "                    </tbody>
                </table>
              </div>
            </form>
            <div class=\"row\">
              <div class=\"col-sm-6 text-left\">";
        // line 121
        echo (isset($context["pagination"]) ? $context["pagination"] : null);
        echo "</div>
              <div class=\"col-sm-6 text-right\">";
        // line 122
        echo (isset($context["results"]) ? $context["results"] : null);
        echo "</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script type=\"text/javascript\">

function deleteFunction() {

  var atLeastOneIsChecked = \$('input[name=\"selected[]\"]:checked').length > 0;
  
  if(atLeastOneIsChecked){
     confirm('";
        // line 137
        echo (isset($context["text_confirm"]) ? $context["text_confirm"] : null);
        echo "') ? \$('#form-review').submit() : false;
  }else{
     alert('";
        // line 139
        echo (isset($context["text_faq_empty"]) ? $context["text_faq_empty"] : null);
        echo "');
  }
  
}

\$('#button-filter').on('click', function() {
  url = 'index.php?route=extension/advanced_faq/advanced_faq&user_token=";
        // line 145
        echo (isset($context["user_token"]) ? $context["user_token"] : null);
        echo "';
  
  var filter_category = \$('select[name=\\'filter_category\\']').val();
  if (filter_category) {
    url += '&filter_category=' + encodeURIComponent(filter_category);
  }
  
  var filter_question = \$('input[name=\\'filter_question\\']').val();
  
  if (filter_question) {
    url += '&filter_question=' + encodeURIComponent(filter_question);
  }

   var filter_answer = \$('input[name=\\'filter_answer\\']').val();
  
  if (filter_answer) {
    url += '&filter_answer=' + encodeURIComponent(filter_answer);
  }
  
  var filter_status = \$('select[name=\\'filter_status\\']').val();
  
  if (filter_status !== '') {
    url += '&filter_status=' + encodeURIComponent(filter_status); 
  }   

  location = url;
});
//--></script> 
  <link href=\"view/javascript/codemirror/lib/codemirror.css\" rel=\"stylesheet\" />
  <link href=\"view/javascript/codemirror/theme/monokai.css\" rel=\"stylesheet\" />
  <script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/codemirror.js\"></script> 
  <script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/xml.js\"></script> 
  <script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/formatting.js\"></script> 
    
  <script type=\"text/javascript\" src=\"view/javascript/summernote/summernote.js\"></script>
  <link href=\"view/javascript/summernote/summernote.css\" rel=\"stylesheet\" />
  <script type=\"text/javascript\" src=\"view/javascript/summernote/summernote-image-attributes.js\"></script>
  <script type=\"text/javascript\" src=\"view/javascript/summernote/opencart.js\"></script>
  <script type=\"text/javascript\"><!--
\$('#language a:first').tab('show');
//--></script>
";
        // line 186
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo "</div>

";
    }

    public function getTemplateName()
    {
        return "extension/advanced_faq/advanced_faq_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  479 => 186,  435 => 145,  426 => 139,  421 => 137,  403 => 122,  399 => 121,  392 => 116,  386 => 113,  383 => 112,  380 => 111,  369 => 108,  365 => 107,  361 => 106,  357 => 105,  353 => 104,  349 => 103,  346 => 102,  340 => 101,  334 => 99,  332 => 98,  329 => 97,  324 => 96,  322 => 95,  315 => 91,  297 => 90,  279 => 89,  261 => 88,  243 => 87,  225 => 86,  216 => 80,  210 => 77,  199 => 69,  193 => 65,  188 => 64,  185 => 63,  179 => 62,  176 => 61,  170 => 59,  164 => 57,  162 => 56,  156 => 53,  148 => 50,  144 => 49,  136 => 46,  132 => 45,  127 => 42,  112 => 40,  108 => 39,  102 => 36,  95 => 32,  89 => 28,  81 => 24,  78 => 23,  70 => 19,  68 => 18,  63 => 15,  52 => 13,  48 => 12,  43 => 10,  38 => 8,  32 => 7,  28 => 6,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }}*/
/* <div id="content">*/
/*   <div class="page-header">*/
/*     <div class="container-fluid">*/
/*       <div class="pull-right">*/
/*         <button type="button" data-toggle="tooltip" title="{{ button_filter }}" onclick="$('#filter-review').toggleClass('hidden-sm hidden-xs');" class="btn btn-default hidden-md hidden-lg"><i class="fa fa-filter"></i></button>*/
/*         <a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>*/
/*         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="deleteFunction()"><i class="fa fa-trash-o"></i></button>*/
/*       </div>*/
/*       <h1>{{ heading_title }}</h1>*/
/*       <ul class="breadcrumb">*/
/*         {% for breadcrumb in breadcrumbs %}*/
/*         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*         {% endfor %}*/
/*       </ul>*/
/*     </div>*/
/*   </div>*/
/*   <div class="container-fluid">{% if error_warning %}*/
/*     <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}*/
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %}*/
/*     {% if success %}*/
/*     <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}*/
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %}*/
/*     <div class="row">*/
/*       <div id="filter-review" class="col-md-3 col-md-push-9 col-sm-12 hidden-sm hidden-xs">*/
/*         <div class="panel panel-default">*/
/*           <div class="panel-heading">*/
/*             <h3 class="panel-title"><i class="fa fa-filter"></i> {{ text_filter }}</h3>*/
/*           </div>*/
/*           <div  class="panel-body">*/
/*             <div class="form-group">*/
/*               <label class="control-label" for="input-product">{{ entry_category }}</label>*/
/*               <select name="filter_category" class="form-control">*/
/*                 <option value="">Select Category</option>*/
/*                 {% for key,faq in category %}*/
/*                 <option {% if(faq.faq_category_id == filter_category ) %}selected{% endif %} value="{{ faq.faq_category_id }}">{{ faq.name }}</option> */
/*                 {% endfor %}*/
/*               </select>*/
/*             </div>*/
/*             <div class="form-group">*/
/*               <label class="control-label" for="input-question">{{ entry_questions }}</label>*/
/*               <input type="text" name="filter_question" value="{{ filter_question }}" placeholder="{{ entry_questions }}" id="input-question" class="form-control" />*/
/*             </div>*/
/*             <div class="form-group">*/
/*               <label class="control-label" for="input-answer">{{ entry_answers }}</label>*/
/*               <input type="text" name="filter_answer" value="{{ filter_answer }}" placeholder="{{ entry_answers }}" id="input-answer" class="form-control" />*/
/*             </div>*/
/*             <div class="form-group">*/
/*               <label class="control-label" for="input-status">{{ entry_status }}</label>*/
/*               <select name="filter_status" id="input-status" class="form-control">*/
/*                 <option value=""></option>*/
/*                   {% if filter_status == '1' %}*/
/*                 <option value="1" selected="selected">{{ text_enabled }}</option>*/
/*                   {% else %}*/
/*                 <option value="1">{{ text_enabled }}</option>*/
/*                   {% endif %}*/
/*                   {% if filter_status == '0' %}*/
/*                 <option value="0" selected="selected">{{ text_disabled }}</option>*/
/*                   {% else %} */
/*                 <option value="0">{{ text_disabled }}</option>*/
/*                   {% endif %}  */
/*               </select>*/
/*             </div>*/
/*             <div class="form-group text-right">*/
/*               <button type="button" id="button-filter" class="btn btn-default"><i class="fa fa-filter"></i> {{ button_filter }}</button>*/
/*             </div>*/
/*           </div>*/
/*         </div>*/
/*       </div>*/
/*       <div class="col-md-9 col-md-pull-3 col-sm-12">*/
/*         <div class="panel panel-default">*/
/*           <div class="panel-heading">*/
/*             <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>*/
/*           </div>*/
/*           <div class="panel-body">*/
/*             <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-review">           */
/*                 <div class="table-responsive">*/
/*                 <table class="table table-bordered table-hover">*/
/*                   <thead>*/
/*                      <tr>*/
/*                       <td class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>*/
/*                       <td style="width: 132px;" class="text-center">{% if sort == 'nd.name' %} <a href="{{ sort_category }}" class="{{ order|lower }}">{{ entry_category_name }}</a> {% else %} <a href="{{ sort_category }}">{{ entry_category_name }}</a> {% endif %}</td>*/
/*                       <td style="width: 100px;" class="text-center">{% if sort == 'nd.question' %} <a href="{{ sort_question }}" class="{{ order|lower }}">{{ entry_questions }}</a> {% else %} <a href="{{ sort_question }}">{{ entry_questions }}</a> {% endif %}</td>*/
/*                       <td class="text-center">{% if sort == 'nd.answer' %} <a href="{{ sort_answer }}" class="{{ order|lower }}">{{ entry_answers }}</a> {% else %} <a href="{{ sort_answer }}">{{ entry_answers }}</a> {% endif %}</td>*/
/*                        <td style="width: 98px;" class="text-center">{% if sort == 'n.sort_order' %} <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ entry_sort_order }}</a> {% else %} <a href="{{ sort_sort_order }}">{{ entry_sort_order }}</a> {% endif %}</td>*/
/*                       <td class="text-center">{% if sort == 'n.status' %} <a href="{{ sort_status }}" class="{{ order|lower }}">{{ entry_status }}</a> {% else %} <a href="{{ sort_status }}">{{ entry_status }}</a> {% endif %}</td>*/
/*                       <td class="text-center">{{ column_action }}</td>*/
/*                     </tr>*/
/*                   </thead>*/
/*                   <tbody>*/
/*                    {% if faqs %}*/
/*                   {% for faq in faqs %}*/
/*                   <tr>*/
/*                   <td class="text-center">{% if faq.faq_id in selected %}*/
/*                       <input type="checkbox" name="selected[]" value="{{ faq.faq_id }}" checked="checked" />*/
/*                       {% else %}*/
/*                       <input type="checkbox" name="selected[]" value="{{ faq.faq_id }}" />*/
/*                       {% endif %}</td>*/
/*                     <td>{{ faq.name }}</td>*/
/*                     <td>{{ faq.question }}</td>*/
/*                     <td>{{ faq.answer }}</td>*/
/*                     <td>{{ faq.sort_order }}</td>*/
/*                     <td>{{ faq.status }}</td>*/
/*                     <td><a href="{{ faq.edit }}" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>*/
/*                   </tr>*/
/*                   {% endfor %}*/
/*                   {% else %}*/
/*                   <tr>*/
/*                     <td class="text-center" colspan="7">{{ text_no_results }}</td>*/
/*                   </tr>*/
/*                   {% endif %}*/
/*                     </tbody>*/
/*                 </table>*/
/*               </div>*/
/*             </form>*/
/*             <div class="row">*/
/*               <div class="col-sm-6 text-left">{{ pagination }}</div>*/
/*               <div class="col-sm-6 text-right">{{ results }}</div>*/
/*             </div>*/
/*           </div>*/
/*         </div>*/
/*       </div>*/
/*     </div>*/
/*   </div>*/
/* </div>*/
/* <script type="text/javascript">*/
/* */
/* function deleteFunction() {*/
/* */
/*   var atLeastOneIsChecked = $('input[name="selected[]"]:checked').length > 0;*/
/*   */
/*   if(atLeastOneIsChecked){*/
/*      confirm('{{ text_confirm }}') ? $('#form-review').submit() : false;*/
/*   }else{*/
/*      alert('{{ text_faq_empty }}');*/
/*   }*/
/*   */
/* }*/
/* */
/* $('#button-filter').on('click', function() {*/
/*   url = 'index.php?route=extension/advanced_faq/advanced_faq&user_token={{ user_token }}';*/
/*   */
/*   var filter_category = $('select[name=\'filter_category\']').val();*/
/*   if (filter_category) {*/
/*     url += '&filter_category=' + encodeURIComponent(filter_category);*/
/*   }*/
/*   */
/*   var filter_question = $('input[name=\'filter_question\']').val();*/
/*   */
/*   if (filter_question) {*/
/*     url += '&filter_question=' + encodeURIComponent(filter_question);*/
/*   }*/
/* */
/*    var filter_answer = $('input[name=\'filter_answer\']').val();*/
/*   */
/*   if (filter_answer) {*/
/*     url += '&filter_answer=' + encodeURIComponent(filter_answer);*/
/*   }*/
/*   */
/*   var filter_status = $('select[name=\'filter_status\']').val();*/
/*   */
/*   if (filter_status !== '') {*/
/*     url += '&filter_status=' + encodeURIComponent(filter_status); */
/*   }   */
/* */
/*   location = url;*/
/* });*/
/* //--></script> */
/*   <link href="view/javascript/codemirror/lib/codemirror.css" rel="stylesheet" />*/
/*   <link href="view/javascript/codemirror/theme/monokai.css" rel="stylesheet" />*/
/*   <script type="text/javascript" src="view/javascript/codemirror/lib/codemirror.js"></script> */
/*   <script type="text/javascript" src="view/javascript/codemirror/lib/xml.js"></script> */
/*   <script type="text/javascript" src="view/javascript/codemirror/lib/formatting.js"></script> */
/*     */
/*   <script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>*/
/*   <link href="view/javascript/summernote/summernote.css" rel="stylesheet" />*/
/*   <script type="text/javascript" src="view/javascript/summernote/summernote-image-attributes.js"></script>*/
/*   <script type="text/javascript" src="view/javascript/summernote/opencart.js"></script>*/
/*   <script type="text/javascript"><!--*/
/* $('#language a:first').tab('show');*/
/* //--></script>*/
/* {{ footer }}</div>*/
/* */
/* */
