0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
giga
/
cache
/
b4
/
[
Home
]
File: b45ac5a03a20f5c2c33070ab17086058af0a66ae60f47f3250900ba4ac0b1290.php
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\SandboxExtension; 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; /* display-page-manage.twig */ class __TwigTemplate_21bd7cdefc3015f55d2956620678b8fee7608373910b91118378dfec0e9a1cff extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'title' => [$this, 'block_title'], 'pageContent' => [$this, 'block_pageContent'], 'javaScript' => [$this, 'block_javaScript'], ]; } protected function doGetParent(array $context) { // line 23 return "authed.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 24 $macros["inline"] = $this->macros["inline"] = $this->loadTemplate("inline.twig", "display-page-manage.twig", 24)->unwrap(); // line 25 $context["displayName"] = twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "display", [], "any", false, false, false, 25); // line 23 $this->parent = $this->loadTemplate("authed.twig", "display-page-manage.twig", 23); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 27 public function block_title($context, array $blocks = []) { $macros = $this->macros; /* xgettext:no-php-format */ echo strtr(__("Manage %displayName%"), array("%displayName%" => ($context["displayName"] ?? null), )); echo " | "; } // line 29 public function block_pageContent($context, array $blocks = []) { $macros = $this->macros; // line 30 echo " "; $context["displayLastAccessed"] = twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "lastAccessed", [], "any", false, false, false, 30); // line 31 echo " "; if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "loggedIn", [], "any", false, false, false, 31), 1))) { // line 32 echo " "; ob_start(function () { return ''; }); /* xgettext:no-php-format */ echo strtr(__("Display %displayName% is currently logged-in, seen %timeAgo%."), array("%displayName%" => ($context["displayName"] ?? null), "%timeAgo%" => ($context["timeAgo"] ?? null), )); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 33 echo " "; } else { // line 34 echo " "; ob_start(function () { return ''; }); /* xgettext:no-php-format */ echo strtr(__("Display %displayName% is not logged in at the moment and last accessed at <span class=\"unixDate\">%displayLastAccessed%</span>"), array("%displayName%" => ($context["displayName"] ?? null), "%displayLastAccessed%" => ($context["displayLastAccessed"] ?? null), )); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 35 echo " "; } // line 36 echo " <h1 class=\"text-center\">"; echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true); echo "</h1> "; // line 37 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "mediaInventoryStatus", [], "any", false, false, false, 37), 3))) { // line 38 echo " <p class=\"text-center\">"; echo __("This Display hasn't connected since updates have been made in the CMS. The below information will be updated when it has."); echo "</p> "; } // line 40 echo " <div class=\"row\"> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\">"; // line 43 echo __("File Status - Count of Files"); echo "</div> <div class=\"widget-body\"> <canvas id=\"downloadedCountPie\" style=\"clear:both; margin-top:25px;\" width=\"230\"></canvas> </div> </div> </div> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\">"; // line 51 echo __("File Status - Size of Files"); echo "</div> <div class=\"widget-body\"> <canvas id=\"downloadedSizePie\" style=\"clear:both; margin-top:25px;\" width=\"230\"></canvas> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\"> <button id=\"refreshLog\" class=\"btn btn-sm pull-right\"><span class=\"fa fa-refresh\"></span></button> "; // line 63 echo __("Reported Player Faults"); // line 64 echo " </div> <div class=\"widget-body medium no-padding\"> <table id=\"playerFaults\" class=\"table table-striped\" data-url=\""; // line 66 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("display.faults.search", ["displayId" => twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "displayId", [], "any", false, false, false, 66)]), "html", null, true); echo "\"> <thead> <tr> <th>"; // line 69 echo __("Code"); echo "</th> <th>"; // line 70 echo __("Reason"); echo "</th> <th>"; // line 71 echo __("Date"); echo "</th> <th>"; // line 72 echo __("Expires"); echo "</th> <th>"; // line 73 echo __("Schedule ID"); echo "</th> <th>"; // line 74 echo __("Layout ID"); echo "</th> <th>"; // line 75 echo __("Region ID"); echo "</th> <th>"; // line 76 echo __("Widget ID"); echo "</th> <th>"; // line 77 echo __("Media ID"); echo "</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\">"; // line 89 echo __("Layouts"); echo "</div> <div class=\"widget-body medium no-padding\"> <table class=\"table table-striped\"> <thead> <tr> <th>"; // line 94 echo __("ID"); echo "</th> <th>"; // line 95 echo __("Name"); echo "</th> <th>"; // line 96 echo __("Size"); echo "</th> <th>"; // line 97 echo __("Complete"); echo "</th> <th>"; // line 98 echo __("Downloaded"); echo "</th> </tr> </thead> <tbody> "; // line 102 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["inventory"] ?? null), "layouts", [], "any", false, false, false, 102)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 103 echo " <tr> <td>"; // line 104 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "itemId", [], "any", false, false, false, 104), "html", null, true); echo "</td> <td>"; // line 105 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "layout", [], "any", false, false, false, 105), "html", null, true); echo "</td> <td>"; // line 106 echo twig_escape_filter($this->env, $this->extensions['Xibo\Twig\ByteFormatterTwigExtension']->byteFormat(twig_get_attribute($this->env, $this->source, $context["item"], "size", [], "any", false, false, false, 106)), "html", null, true); echo "</td> <td> <span class=\"fa "; // line 108 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "complete", [], "any", false, false, false, 108), 1))) { echo "fa-check"; } else { echo "fa-download"; } echo "\"></span> </td> <td>"; // line 110 echo twig_escape_filter($this->env, $this->extensions['Xibo\Twig\ByteFormatterTwigExtension']->byteFormat(twig_get_attribute($this->env, $this->source, $context["item"], "bytesRequested", [], "any", false, false, false, 110)), "html", null, true); echo "</td> </tr> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 113 echo " </tbody> </table> </div> </div> </div> </div> <div class=\"row\"> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\"> "; // line 123 echo __("Media"); // line 124 echo " </div> <div class=\"widget-body medium no-padding\"> <table class=\"table table-striped\"> <thead> <tr> <th>"; // line 129 echo __("ID"); echo "</th> <th>"; // line 130 echo __("Name"); echo "</th> <th>"; // line 131 echo __("Type"); echo "</th> <th>"; // line 132 echo __("File Name"); echo "</th> <th>"; // line 133 echo __("Size"); echo "</th> <th>"; // line 134 echo __("Complete"); echo "</th> <th>"; // line 135 echo __("Downloaded"); echo "</th> <th>"; // line 136 echo __("Released"); echo "</th> </tr> </thead> <tbody> "; // line 140 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["inventory"] ?? null), "media", [], "any", false, false, false, 140)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 141 echo " <tr> <td>"; // line 142 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "itemId", [], "any", false, false, false, 142), "html", null, true); echo "</td> <td>"; // line 143 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 143), "html", null, true); echo "</td> <td>"; // line 144 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 144), "html", null, true); echo "</td> <td>"; // line 145 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "storedAs", [], "any", false, false, false, 145), "html", null, true); echo "</td> <td>"; // line 146 echo twig_escape_filter($this->env, $this->extensions['Xibo\Twig\ByteFormatterTwigExtension']->byteFormat(twig_get_attribute($this->env, $this->source, $context["item"], "size", [], "any", false, false, false, 146)), "html", null, true); echo "</td> <td title=\""; // line 147 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "lastUsed", [], "any", false, false, false, 147), 0))) { echo twig_escape_filter($this->env, ($context["nonceNotUsed"] ?? null), "html", null, true); } else { echo twig_escape_filter($this->env, ($context["nonceUsed"] ?? null), "html", null, true); } echo "\"> <span class=\"fa "; // line 148 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "complete", [], "any", false, false, false, 148), 1))) { echo "fa-check"; } else { echo "fa-download"; } echo "\"></span> </td> <td>"; // line 150 echo twig_escape_filter($this->env, $this->extensions['Xibo\Twig\ByteFormatterTwigExtension']->byteFormat(twig_get_attribute($this->env, $this->source, $context["item"], "bytesRequested", [], "any", false, false, false, 150)), "html", null, true); echo "</td> <td> <span class=\"fa "; // line 152 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "released", [], "any", false, false, false, 152), 1))) { echo "fa-check"; } elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "released", [], "any", false, false, false, 152), 0))) { echo "fa-cogs"; } elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "released", [], "any", false, false, false, 152), 2))) { echo "fa-times"; } echo "\"></span> </td> </tr> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 156 echo " </tbody> </table> </div> </div> </div> <div class=\"col-lg-6\"> <div class=\"widget\"> <div class=\"widget-title\">"; // line 163 echo __("Widgets"); echo "</div> <div class=\"widget-body medium no-padding\"> <table class=\"table table-striped\"> <thead> <tr> <th>"; // line 168 echo __("ID"); echo "</th> <th>"; // line 169 echo __("Name"); echo "</th> <th>"; // line 170 echo __("Type"); echo "</th> <th>"; // line 171 echo __("Complete"); echo "</th> <th>"; // line 172 echo __("Downloaded"); echo "</th> </tr> </thead> <tbody> "; // line 176 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["inventory"] ?? null), "widgets", [], "any", false, false, false, 176)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 177 echo " <tr> <td>"; // line 178 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "itemId", [], "any", false, false, false, 178), "html", null, true); echo "</td> <td>"; // line 179 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "widgetName", [], "any", false, false, false, 179), "html", null, true); echo "</td> <td>"; // line 180 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 180), "html", null, true); echo "</td> <td title=\""; // line 181 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "lastUsed", [], "any", false, false, false, 181), 0))) { echo twig_escape_filter($this->env, ($context["nonceNotUsed"] ?? null), "html", null, true); } else { echo twig_escape_filter($this->env, ($context["nonceUsed"] ?? null), "html", null, true); } echo "\"> <span class=\"fa "; // line 182 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "complete", [], "any", false, false, false, 182), 1))) { echo "fa-check"; } else { echo "fa-download"; } echo "\"></span> </td> <td>"; // line 184 echo twig_escape_filter($this->env, $this->extensions['Xibo\Twig\ByteFormatterTwigExtension']->byteFormat(twig_get_attribute($this->env, $this->source, $context["item"], "bytesRequested", [], "any", false, false, false, 184)), "html", null, true); echo "</td> </tr> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 187 echo " </tbody> </table> </div> </div> </div> </div> "; // line 193 if (twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "featureEnabled", [0 => "displays.reporting"], "method", false, false, false, 193)) { // line 194 echo " <div class=\"row\"> <div class=\"col-lg-12\"> <div class=\"widget\"> <div class=\"widget-title\">"; // line 197 echo __("Bandwidth"); echo "</div> <div class=\"widget-body\"> <div class=\"XiboGrid\" id=\""; // line 199 echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\"> <div class=\"XiboFilter\"> <div class=\"FilterDiv card-body\" id=\"bandwidthFilter\"> <form class=\"form-inline\"> "; // line 203 echo twig_call_macro($macros["inline"], "macro_dateMonth", ["fromDt", "From Date", twig_get_attribute($this->env, $this->source, ($context["defaults"] ?? null), "fromDate", [], "any", false, false, false, 203), "", "", "", ""], 203, $context, $this->getSourceContext()); echo " "; // line 204 echo twig_call_macro($macros["inline"], "macro_dateMonth", ["toDt", "To Date", twig_get_attribute($this->env, $this->source, ($context["defaults"] ?? null), "toDate", [], "any", false, false, false, 204), "", "", "", ""], 204, $context, $this->getSourceContext()); echo " "; // line 205 echo twig_call_macro($macros["inline"], "macro_hidden", ["displayId", twig_get_attribute($this->env, $this->source, ($context["display"] ?? null), "displayId", [], "any", false, false, false, 205)], 205, $context, $this->getSourceContext()); echo " </form> </div> </div> <div class=\"XiboData\"> <canvas id=\"bandwidthChart\" style=\"clear:both; margin-top:25px;\" height=\"330\"></canvas> </div> </div> </div> </div> </div> </div> "; } } // line 220 public function block_javaScript($context, array $blocks = []) { $macros = $this->macros; // line 221 echo " <script type=\"text/javascript\"> \$(document).ready(function() { const \$playerFaults = \$('#playerFaults'); var table = \$playerFaults.DataTable({ \"language\": dataTablesLanguage, dom: dataTablesTemplate, serverSide: true, stateSave: true, stateDuration: 0, stateLoadCallback: dataTableStateLoadCallback, stateSaveCallback: dataTableStateSaveCallback, filter: false, responsive: true, searchDelay: 3000, order: [[2, \"desc\"]], ajax: { url: \$playerFaults.data().url, }, \"columns\": [ {\"data\": \"code\", responsivePriority: 1, className: 'all'}, {\"data\": \"reason\", responsivePriority: 1, className: 'all'}, {\"data\": \"incidentDt\", responsivePriority: 1, className: 'all'}, {\"data\": \"expires\", responsivePriority: 1, className: 'all'}, {\"data\": \"scheduleId\", responsivePriority: 99, className: 'none'}, {\"data\": \"layoutId\", responsivePriority: 99, className: 'none'}, {\"data\": \"regionId\", responsivePriority: 99, className: 'none'}, {\"data\": \"widgetId\", responsivePriority: 99, className: 'none'}, {\"data\": \"mediaId\", responsivePriority: 99, className: 'none'} ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); \$(\"#refreshLog\").click(function () { table.ajax.reload(); }); }); var bandwidthChart = null; function setBandwidthChart() { \$.ajax({ type: \"get\", url: \""; // line 264 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("stats.bandwidth.data"), "html", null, true); echo "\", cache: false, dataType: \"json\", data: \$(\"#bandwidthFilter\").find(\"form\").serialize(), success: function(response) { if (bandwidthChart !== undefined && bandwidthChart !== null) { bandwidthChart.destroy(); } if (response.extra.data.length <= 0) { return; } // Create our chart bandwidthChart = new Chart(\$(\"#bandwidthChart\"), { type: \"bar\", data: { labels: response.extra.labels, datasets: [{ label: \""; // line 283 echo __("Bandwidth"); echo "\", backgroundColor: \"rgb(11, 98, 164)\", data: response.extra.data }] }, options: { scales: { yAxes: [{ scaleLabel: { display: true, labelString: response.extra.postUnits, } }] }, legend: { display: false }, maintainAspectRatio: false, } }); } }); } \$(document).ready(function() { "; // line 309 if (twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "featureEnabled", [0 => "displays.reporting"], "method", false, false, false, 309)) { // line 310 echo " setBandwidthChart(); // Bind to form change \$(\"#bandwidthFilter input, #bandwidthFilter select\").change(function() { setBandwidthChart(); }); "; } // line 317 echo " // Find all Unix Dates and sort them out \$(\"span.unixDate\").each(function() { \$(this).html(moment(\$(this).html(), \"X\").format(jsDateFormat)); }); // Find all ISO Dates and sort them out \$(\"span.isoDate\").each(function() { \$(this).html(moment(\$(this).html()).format(jsDateFormat)); }); // Handle the Pie chart for download status var downloadedCountPie = new Chart(\$(\"#downloadedCountPie\"), { type: 'pie', data: { datasets: [{ data: ["; // line 333 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "countComplete", [], "any", false, false, false, 333), "html", null, true); echo ", "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "countRemaining", [], "any", false, false, false, 333), "html", null, true); echo "], backgroundColor: [\"#00CC00\", \"#FF0000\"] }], labels: [ \""; // line 337 echo __("Downloaded"); echo "\", \""; echo __("Pending"); echo "\" ] } }); var downloadedSizePie = new Chart(\$(\"#downloadedSizePie\"), { type: 'pie', data: { datasets: [{ data: ["; // line 346 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "sizeComplete", [], "any", false, false, false, 346), "html", null, true); echo ", "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "sizeRemaining", [], "any", false, false, false, 346), "html", null, true); echo "], backgroundColor: [\"#00CC00\", \"#FF0000\"] }], labels: [ \""; // line 350 echo __("Downloaded"); echo "\" + \" "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "units", [], "any", false, false, false, 350), "html", null, true); echo "\", \""; echo __("Pending"); echo "\" + \" "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["status"] ?? null), "units", [], "any", false, false, false, 350), "html", null, true); echo "\" ] }, }); }); </script> "; } public function getTemplateName() { return "display-page-manage.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 679 => 350, 670 => 346, 656 => 337, 647 => 333, 629 => 317, 620 => 310, 618 => 309, 589 => 283, 567 => 264, 522 => 221, 518 => 220, 500 => 205, 496 => 204, 492 => 203, 485 => 199, 480 => 197, 475 => 194, 473 => 193, 465 => 187, 456 => 184, 447 => 182, 439 => 181, 435 => 180, 431 => 179, 427 => 178, 424 => 177, 420 => 176, 413 => 172, 409 => 171, 405 => 170, 401 => 169, 397 => 168, 389 => 163, 380 => 156, 364 => 152, 359 => 150, 350 => 148, 342 => 147, 338 => 146, 334 => 145, 330 => 144, 326 => 143, 322 => 142, 319 => 141, 315 => 140, 308 => 136, 304 => 135, 300 => 134, 296 => 133, 292 => 132, 288 => 131, 284 => 130, 280 => 129, 273 => 124, 271 => 123, 259 => 113, 250 => 110, 241 => 108, 236 => 106, 232 => 105, 228 => 104, 225 => 103, 221 => 102, 214 => 98, 210 => 97, 206 => 96, 202 => 95, 198 => 94, 190 => 89, 175 => 77, 171 => 76, 167 => 75, 163 => 74, 159 => 73, 155 => 72, 151 => 71, 147 => 70, 143 => 69, 137 => 66, 133 => 64, 131 => 63, 116 => 51, 105 => 43, 100 => 40, 94 => 38, 92 => 37, 87 => 36, 84 => 35, 79 => 34, 76 => 33, 71 => 32, 68 => 31, 65 => 30, 61 => 29, 53 => 27, 48 => 23, 46 => 25, 44 => 24, 37 => 23,); } public function getSourceContext() { return new Source("", "display-page-manage.twig", "/home/mgatv524/public_html/giga/views/display-page-manage.twig"); } }