/home/csiway/tmp/pma_template_compiles_csiway/twig/3a/3a3403102c36b2cc129411e2dcfe8867d03c083817e7f815b4a1f9a26113e2dd.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?php

use Twig\Environment;
use 
Twig\Error\LoaderError;
use 
Twig\Error\RuntimeError;
use 
Twig\Markup;
use 
Twig\Sandbox\SecurityError;
use 
Twig\Sandbox\SecurityNotAllowedTagError;
use 
Twig\Sandbox\SecurityNotAllowedFilterError;
use 
Twig\Sandbox\SecurityNotAllowedFunctionError;
use 
Twig\Source;
use 
Twig\Template;

/* console/display.twig */
class __TwigTemplate_2c0a392ada15e5e5040b51b3f7215fba555e0ac5c7b1724f92f8c16aeea55398 extends \Twig\Template
{
    public function 
__construct(Environment $env)
    {
        
parent::__construct($env);

        
$this->parent false;

        
$this->blocks = [
        ];
    }

    protected function 
doDisplay(array $context, array $blocks = [])
    {
        
// line 1
        
echo "<div id=\"pma_console_container\">
    <div id=\"pma_console\">
        "
;
        
// line 4
        
echo "        ";
        
$this->loadTemplate("console/toolbar.twig""console/display.twig"4)->display(twig_to_array(["parent_div_classes" => "collapsed""content_array" => [=> [=> "switch_button console_switch"=> _gettext("Console"), "image" =>         // line 7
($context["image"] ?? null)], => [=> "button clear"=> _gettext("Clear")], => [=> "button history"=> _gettext("History")], => [=> "button options"=> _gettext("Options")], => ((        // line 11
(isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark"$context))) ? ([=> "button bookmarks"=> _gettext("Bookmarks")]) : (null)), => [=> "button debug hide"=> _gettext("Debug SQL")]]]));
        
// line 15
        
echo "        ";
        
// line 16
        
echo "        <div class=\"content\">
            <div class=\"console_message_container\">
                <div class=\"message welcome\">
                    <span id=\"instructions-0\">
                        "
;
        
// line 20
        
echo _gettext("Press Ctrl+Enter to execute query");
        
// line 21
        
echo "                    </span>
                    <span class=\"hide\" id=\"instructions-1\">
                        "
;
        
// line 23
        
echo _gettext("Press Enter to execute query");
        
// line 24
        
echo "                    </span>
                </div>
                "
;
        
// line 26
        
if ( !twig_test_empty(($context["sql_history"] ?? null))) {
            
// line 27
            
echo "                    ";
            
$context['_parent'] = $context;
            
$context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, ($context["sql_history"] ?? null)));
            foreach (
$context['_seq'] as $context["_key"] => $context["record"]) {
                
// line 28
                
echo "                        <div class=\"message history collapsed hide";
                
// line 29
                
echo ((preg_match("@^SELECT[[:space:]]+@i"$this->getAttribute($context["record"], "sqlquery", [], "array"))) ? (" select") : (""));
                echo 
"\"
                            targetdb=\""
;
                
// line 30
                
echo twig_escape_filter($this->env$this->getAttribute($context["record"], "db", [], "array"), "html"nulltrue);
                echo 
"\" targettable=\"";
                echo 
twig_escape_filter($this->env$this->getAttribute($context["record"], "table", [], "array"), "html"nulltrue);
                echo 
"\">
                            "
;
                
// line 31
                
$this->loadTemplate("console/query_action.twig""console/display.twig"31)->display(twig_to_array(["parent_div_classes" => "action_content""content_array" => [=> [=> "action collapse"=> _gettext("Collapse")], => [=> "action expand"=> _gettext("Expand")], => [=> "action requery"=> _gettext("Requery")], => [=> "action edit"=> _gettext("Edit")], => [=> "action explain"=> _gettext("Explain")], => [=> "action profiling"=> _gettext("Profiling")], => ((                // line 40
(isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark"$context))) ? ([=> "action bookmark"=> _gettext("Bookmark")]) : (null)), => [=> "text failed"=> _gettext("Query failed")], => [=> "text targetdb"=> _gettext("Database"), "extraSpan" => $this->getAttribute(                // line 42
$context["record"], "db", [], "array")], => [=> "text query_time"=> _gettext("Queried time"), "extraSpan" => (($this->getAttribute(                // line 46
$context["record"], "timevalue", [], "array"truetrue)) ? ($this->getAttribute(                // line 47
$context["record"], "timevalue", [], "array")) : (_gettext("During current session")))]]]));
                
// line 51
                
echo "                            <span class=\"query\">";
                echo 
twig_escape_filter($this->env$this->getAttribute($context["record"], "sqlquery", [], "array"), "html"nulltrue);
                echo 
"</span>
                        </div>
                    "
;
            }
            
$_parent $context['_parent'];
            unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']);
            
$context array_intersect_key($context$_parent) + $_parent;
            
// line 54
            
echo "                ";
        }
        
// line 55
        
echo "            </div><!-- console_message_container -->
            <div class=\"query_input\">
                <span class=\"console_query_input\"></span>
            </div>
        </div><!-- message end -->
        "
;
        
// line 61
        
echo "        <div class=\"mid_layer\"></div>
        "
;
        
// line 63
        
echo "        <div class=\"card\" id=\"debug_console\">
            "
;
        
// line 64
        
$this->loadTemplate("console/toolbar.twig""console/display.twig"64)->display(twig_to_array(["parent_div_classes" => """content_array" => [=> [=> "button order order_asc"=> _gettext("ascending")], => [=> "button order order_desc"=> _gettext("descending")], => [=> "text"=> _gettext("Order:")], => [=> "switch_button"=> _gettext("Debug SQL")], => [=> "button order_by sort_count"=> _gettext("Count")], => [=> "button order_by sort_exec"=> _gettext("Execution order")], => [=> "button order_by sort_time"=> _gettext("Time taken")], => [=> "text"=> _gettext("Order by:")], => [=> "button group_queries"=> _gettext("Group queries")], => [=> "button ungroup_queries"=> _gettext("Ungroup queries")]]]));
        
// line 79
        
echo "            <div class=\"content debug\">
                <div class=\"message welcome\"></div>
                <div class=\"debugLog\"></div>
            </div> <!-- Content -->
            <div class=\"templates\">
                "
;
        
// line 84
        
$this->loadTemplate("console/query_action.twig""console/display.twig"84)->display(twig_to_array(["parent_div_classes" => "debug_query action_content""content_array" => [=> [=> "action collapse"=> _gettext("Collapse")], => [=> "action expand"=> _gettext("Expand")], => [=> "action dbg_show_trace"=> _gettext("Show trace")], => [=> "action dbg_hide_trace"=> _gettext("Hide trace")], => [=> "text count hide"=> _gettext("Count")], => [=> "text time"=> _gettext("Time taken")]]]));
        
// line 95
        
echo "            </div> <!-- Template -->
        </div> <!-- Debug SQL card -->
        "
;
        
// line 97
        
if (($context["cfg_bookmark"] ?? null)) {
            
// line 98
            
echo "            <div class=\"card\" id=\"pma_bookmarks\">
                "
;
            
// line 99
            
$this->loadTemplate("console/toolbar.twig""console/display.twig"99)->display(twig_to_array(["parent_div_classes" => """content_array" => [=> [=> "switch_button"=> _gettext("Bookmarks")], => [=> "button refresh"=> _gettext("Refresh")], => [=> "button add"=> _gettext("Add")]]]));
            
// line 107
            
echo "                <div class=\"content bookmark\">
                    "
;
            
// line 108
            
echo ($context["bookmark_content"] ?? null);
            echo 
"
                </div>
                <div class=\"mid_layer\"></div>
                <div class=\"card add\">
                    "
;
            
// line 112
            
$this->loadTemplate("console/toolbar.twig""console/display.twig"112)->display(twig_to_array(["parent_div_classes" => """content_array" => [=> [=> "switch_button"=> _gettext("Add bookmark")]]]));
            
// line 118
            
echo "                    <div class=\"content add_bookmark\">
                        <div class=\"options\">
                            <label>
                                "
;
            
// line 121
            
echo _gettext("Label");
            echo 
": <input type=\"text\" name=\"label\">
                            </label>
                            <label>
                                "
;
            
// line 124
            
echo _gettext("Target database");
            echo 
": <input type=\"text\" name=\"targetdb\">
                            </label>
                            <label>
                                <input type=\"checkbox\" name=\"shared\">"
;
            
// line 127
            
echo _gettext("Share this bookmark");
            
// line 128
            
echo "                            </label>
                            <button type=\"submit\" name=\"submit\">"
;
            
// line 129
            
echo _gettext("OK");
            echo 
"</button>
                        </div> <!-- options -->
                        <div class=\"query_input\">
                            <span class=\"bookmark_add_input\"></span>
                        </div>
                    </div>
                </div> <!-- Add bookmark card -->
            </div> <!-- Bookmarks card -->
        "
;
        }
        
// line 138
        
echo "        ";
        
// line 139
        
echo "        <div class=\"card\" id=\"pma_console_options\">
            "
;
        
// line 140
        
$this->loadTemplate("console/toolbar.twig""console/display.twig"140)->display(twig_to_array(["parent_div_classes" => """content_array" => [=> [=> "switch_button"=> _gettext("Options")], => [=> "button default"=> _gettext("Set default")]]]));
        
// line 147
        
echo "            <div class=\"content\">
                <label>
                    <input type=\"checkbox\" name=\"always_expand\">"
;
        
// line 149
        
echo _gettext("Always expand query messages");
        
// line 150
        
echo "                </label>
                <br>
                <label>
                    <input type=\"checkbox\" name=\"start_history\">"
;
        
// line 153
        
echo _gettext("Show query history at start");
        
// line 154
        
echo "                </label>
                <br>
                <label>
                    <input type=\"checkbox\" name=\"current_query\">"
;
        
// line 157
        
echo _gettext("Show current browsing query");
        
// line 158
        
echo "                </label>
                <br>
                <label>
                    <input type=\"checkbox\" name=\"enter_executes\">
                        "
;
        
// line 162
        
echo _gettext("Execute queries on Enter and insert new line with Shift + Enter. To make this permanent, view settings.");
        
// line 165
        
echo "                </label>
                <br>
                <label>
                    <input type=\"checkbox\" name=\"dark_theme\">"
;
        
// line 168
        
echo _gettext("Switch to dark theme");
        
// line 169
        
echo "                </label>
                <br>
            </div>
        </div> <!-- Options card -->
        <div class=\"templates\">
            "
;
        
// line 175
        
echo "            ";
        
$this->loadTemplate("console/query_action.twig""console/display.twig"175)->display(twig_to_array(["parent_div_classes" => "query_actions""content_array" => [=> [=> "action collapse"=> _gettext("Collapse")], => [=> "action expand"=> _gettext("Expand")], => [=> "action requery"=> _gettext("Requery")], => [=> "action edit"=> _gettext("Edit")], => [=> "action explain"=> _gettext("Explain")], => [=> "action profiling"=> _gettext("Profiling")], => ((        // line 184
(isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark"$context))) ? ([=> "action bookmark"=> _gettext("Bookmark")]) : (null)), => [=> "text failed"=> _gettext("Query failed")], => [=> "text targetdb"=> _gettext("Database"), "extraSpan" => ""], => [=> "text query_time"=> _gettext("Queried time"), "extraSpan" => ""]]]));
        
// line 190
        
echo "        </div>
    </div> <!-- #console end -->
</div> <!-- #console_container end -->
"
;
    }

    public function 
getTemplateName()
    {
        return 
"console/display.twig";
    }

    public function 
isTraitable()
    {
        return 
false;
    }

    public function 
getDebugInfo()
    {
        return array (  
231 => 190,  229 => 184,  227 => 175,  220 => 169,  218 => 168,  213 => 165,  211 => 162,  205 => 158,  203 => 157,  198 => 154,  196 => 153,  191 => 150,  189 => 149,  185 => 147,  183 => 140,  180 => 139,  178 => 138,  166 => 129,  163 => 128,  161 => 127,  155 => 124,  149 => 121,  144 => 118,  142 => 112,  135 => 108,  132 => 107,  130 => 99,  127 => 98,  125 => 97,  121 => 95,  119 => 84,  112 => 79,  110 => 64,  107 => 63,  104 => 61,  97 => 55,  94 => 54,  84 => 51,  82 => 47,  81 => 46,  80 => 42,  79 => 40,  78 => 31,  72 => 30,  68 => 29,  66 => 28,  61 => 27,  59 => 26,  55 => 24,  53 => 23,  49 => 21,  47 => 20,  41 => 16,  39 => 15,  37 => 11,  36 => 7,  34 => 4,  30 => 1,);
    }

    
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    
public function getSource()
    {
        @
trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.'E_USER_DEPRECATED);

        return 
$this->getSourceContext()->getCode();
    }

    public function 
getSourceContext()
    {
        return new 
Source("""console/display.twig""/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/console/display.twig");
    }
}