0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
somares
/
cache
/
2a
/
[
Home
]
File: 2aeea537618ea861a8125c99d85b921002eb15e0686ee3dda592ae7e603461ff.php
<?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; /* stats-proofofplay-page.twig */ class __TwigTemplate_9c9fbb3c47bb794b9049193ec44503a6a009b94c8c85a83bafc5afd366fe246b extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'pageContent' => [$this, 'block_pageContent'], 'javaScript' => [$this, 'block_javaScript'], ]; } protected function doGetParent(array $context) { // line 24 return "authed.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 25 $context["inline"] = $this->loadTemplate("inline.twig", "stats-proofofplay-page.twig", 25)->unwrap(); // line 24 $this->parent = $this->loadTemplate("authed.twig", "stats-proofofplay-page.twig", 24); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 29 public function block_pageContent($context, array $blocks = []) { // line 30 echo " <div class=\"row row-flex\"> <div class=\"col-lg-3 col-md-6 col-xs-12\"> <div class=\"widget content\"> <div class=\"widget-body\"> <div class=\"widget-icon green\"> <a class=\"XiboFormButton btns\" href=\""; // line 36 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("stats.export.form"), "html", null, true); echo "\"> <i class=\"fa fa-external-link\"></i></a> </div> <div class=\"widget-content\"> <div class=\"report-title\">"; // line 39 echo __("Proof of play"); echo "</div> <div class=\"comment\"><a class=\"XiboFormButton btns\" href=\""; // line 40 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("stats.export.form"), "html", null, true); echo "\">"; echo __("Export"); echo "</a></div> </div> <div class=\"clearfix\"></div> </div> </div> </div> "; // line 47 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["defaults"] ?? null), "availableReports", [])); foreach ($context['_seq'] as $context["_key"] => $context["report"]) { // line 48 echo " "; if (($this->getAttribute($context["report"], "hidden", []) == 0)) { // line 49 echo " <div class=\"report-box col-lg-3 col-md-6 col-xs-12\"> <div class=\"widget content\"> <div class=\"widget-body\"> <div class=\"widget-icon "; // line 52 echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "color", []), "html", null, true); echo " \"> <i class=\"fa "; // line 53 echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "fa_icon", []), "html", null, true); echo "\"></i> </div> <div class=\"widget-content\"> <div class=\"report-title\"> "; // line 56 echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "description", []), "html", null, true); echo " </div> <div class=\"comment\"><a href=\""; // line 57 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("report.form", ["name" => $this->getAttribute($context["report"], "name", [])]), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["report"], "type", []), "html", null, true); echo "</a></div> </div> <div class=\"clearfix\"></div> </div> </div> </div> "; } // line 64 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['report'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 65 echo " </div> "; } // line 70 public function block_javaScript($context, array $blocks = []) { // line 71 echo " <script type=\"text/javascript\"> function statsExportFormSelect(dialog) { var fromDtLink; var toDtLink; var displayId; \$(dialog).find(\"input, select\").on(\"change\", function() { fromDtLink = \$(dialog).find(\"#fromDt\").val(); toDtLink = \$(dialog).find(\"#toDt\").val(); displayId = \$(dialog).find(\"#displayId\").val(); if (!( fromDtLink === null || toDtLink === null || fromDtLink === '' || toDtLink === '' || fromDtLink === undefined || toDtLink === undefined )) { \$(dialog).find(\".total-stat\").remove(); \$(dialog).find('.save-button').prop('disabled', true); \$(dialog).find(\".loading-overlay\").show(); \$.ajax({ type: \"get\", url: \""; // line 97 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("stats.getExportStatsCount"), "html", null, true); echo "\", cache: false, dataType: \"json\", data: { fromDt: fromDtLink, toDt: toDtLink, displayId: displayId }, success: function(response) { \$(dialog).find(\".loading-overlay\").hide(); if (response.success === false) { \$(dialog).find(\"#totalStat\").append('<div class=\"total-stat alert alert-danger\">' + response.message + '</strong></div>'); return; } else { var total = response.data.total; \$(dialog).find(\"#totalStat\").append('<div class=\"total-stat alert alert-success\">"; // line 115 echo __("Total number of records to be exported: <strong> "); echo "' + total + '</strong></div>'); } \$(dialog).find('.save-button').prop('disabled', false); } }); } }); } function statsExportFormSubmit() { let form = \$(\"#statisticsExportForm\"); let valid = true; const validateForm = function(element) { if (element.val() == null || element.val() == '') { valid = false; element.closest('.form-group').removeClass('has-success').addClass('has-error'); } else { element.closest('.form-group').addClass('has-success').removeClass('has-error'); } }; validateForm(form.find(\"#fromDt\")); validateForm(form.find(\"#toDt\")); if (valid) { form.submit(); form.find(\".form-error\").remove(); XiboDialogClose(); } else { // Remove the spinner form.closest(\".modal-dialog\").find(\".saving\").remove(); // https://github.com/xibosignage/xibo/issues/1589 form.closest(\".modal-dialog\").find(\".save-button\").removeClass(\"disabled\"); if (!form.find(\".form-error\").length) { form.append('<div class=\"alert alert-danger form-error\">"; // line 156 echo __("Form field is required."); echo "</div>'); } } } // Or use this to Open link in same window (similar to target=_blank) \$(\".report-box\").click(function(){ window.location = \$(this).find(\"a:first\").attr(\"href\"); return false; }); </script> <style> .row-flex { display: flex; flex-wrap: wrap; } .content { height: 100%; padding: 20px 20px 10px; } div.report-box { position: relative; } div.report-box:hover { cursor: pointer; opacity: .9; } .widget .widget-content .report-title { font-size: 16px; padding: 10px 0 0; display: block; } .widget .widget-content .comment { font-size: 14px; } </style> "; } public function getTemplateName() { return "stats-proofofplay-page.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 222 => 156, 178 => 115, 157 => 97, 129 => 71, 126 => 70, 120 => 65, 114 => 64, 102 => 57, 98 => 56, 92 => 53, 88 => 52, 83 => 49, 80 => 48, 76 => 47, 64 => 40, 60 => 39, 54 => 36, 46 => 30, 43 => 29, 38 => 24, 36 => 25, 30 => 24,); } /** @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("", "stats-proofofplay-page.twig", "/home/mgatv524/public_html/somares/views/stats-proofofplay-page.twig"); } }