コード例 #1
0
ファイル: Intl.php プロジェクト: kstefanini/ep-plugin
function twig_localized_date_filter(Twig_Environment $env, $date, $dateFormat = 'medium', $timeFormat = 'medium', $locale = null, $timezone = null, $format = null, $calendar = 'gregorian')
{
    $date = twig_date_converter($env, $date, $timezone);
    $formatValues = array('none' => IntlDateFormatter::NONE, 'short' => IntlDateFormatter::SHORT, 'medium' => IntlDateFormatter::MEDIUM, 'long' => IntlDateFormatter::LONG, 'full' => IntlDateFormatter::FULL);
    $formatter = IntlDateFormatter::create($locale, $formatValues[$dateFormat], $formatValues[$timeFormat], PHP_VERSION_ID >= 50500 ? $date->getTimezone() : $date->getTimezone()->getName(), 'gregorian' === $calendar ? IntlDateFormatter::GREGORIAN : IntlDateFormatter::TRADITIONAL, $format);
    return $formatter->format($date->getTimestamp());
}
コード例 #2
0
ファイル: AgeFilter.php プロジェクト: GeckoPackages/GeckoTwig
 public function __construct()
 {
     parent::__construct('age', function (Twig_Environment $env, $date, $acc = 'y', $timezoneDate = null, $timezoneNow = null) {
         $now = time();
         if (!is_string($acc)) {
             throw new \Twig_Error_Runtime(sprintf('Accuracy must be string, got %s.', is_object($acc) ? get_class($acc) : gettype($acc) . (is_resource($acc) ? '' : '#' . $acc)));
         }
         $date = twig_date_converter($env, $date, $timezoneDate);
         $now = twig_date_converter($env, $now, $timezoneNow);
         $diff = $now->diff($date, false);
         switch (strtolower($acc)) {
             case 'y':
                 $v = $diff->y + $diff->m / 12 + ($diff->d + ($diff->h + ($diff->i + $diff->s / 60) / 60) / 24) / 365;
                 break;
                 // case 'm' is not supported by design
             // case 'm' is not supported by design
             case 'd':
                 $v = (int) $diff->format('%a') + ($diff->h + ($diff->i + $diff->s / 60) / 60) / 24;
                 break;
             case 'h':
                 $v = 24 * (int) $diff->format('%a') + $diff->h + ($diff->i + $diff->s / 60) / 60;
                 break;
             case 'i':
                 $v = 60 * 24 * (int) $diff->format('%a') + 60 * $diff->h + $diff->i + $diff->s / 60;
                 break;
             case 's':
                 return (int) $now->format('U') - (int) $date->format('U');
             default:
                 throw new \Twig_Error_Runtime(sprintf('Accuracy must be any of "y, d, h, i, s", got "%s".', $acc));
         }
         // (int) cast for HHVM =< 3.9.10
         // https://github.com/facebook/hhvm/pull/6134 / https://github.com/facebook/hhvm/issues/5537
         return 1 === (int) $diff->invert ? $v : -1 * $v;
     }, ['needs_environment' => true]);
 }
コード例 #3
0
ファイル: Intl.php プロジェクト: TuxCoffeeCorner/tcc
function twig_localized_date_filter(Twig_Environment $env, $date, $dateFormat = 'medium', $timeFormat = 'medium', $locale = null, $timezone = null, $format = null)
{
    $date = twig_date_converter($env, $date, $timezone);
    $formatValues = array('none' => IntlDateFormatter::NONE, 'short' => IntlDateFormatter::SHORT, 'medium' => IntlDateFormatter::MEDIUM, 'long' => IntlDateFormatter::LONG, 'full' => IntlDateFormatter::FULL);
    $formatter = IntlDateFormatter::create($locale, $formatValues[$dateFormat], $formatValues[$timeFormat], $date->getTimezone()->getName(), IntlDateFormatter::GREGORIAN, $format);
    return $formatter->format($date->getTimestamp());
}
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<html>\n  <head>\n    <meta charset=\"UTF-8\">\n    <title>AGeCo | Calendrier des absences</title>\n    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n  </head>\n  <body class=\"skin-blue\">\n    <div class=\"wrapper\">\n      \n      ";
     // line 10
     echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("OCCalendrierBundle:Default:menu"));
     echo "\n      <!-- Right side column. Contains the navbar and content of the page -->\n      <div class=\"content-wrapper\">\n        <!-- Content Header (Page header) -->\n        <section class=\"content-header\">\n          <h1>\n            Calendrier des absences \n            <small>du service </small>\n          </h1>\n          <ol class=\"breadcrumb\">\n            <li><a href=\"#\"><i class=\"fa fa-dashboard\"></i> Home</a></li>\n            <li class=\"active\">Calendar</li>\n          </ol>\n        </section>\n\n        <!-- Main content -->\n        <section class=\"content\">\n          <div class=\"row\">\n            <div class=\"col-md-3\">\n              <div class=\"box box-solid\">\n                <div class=\"box-header with-border\">\n                  <h3 class=\"box-title\">Liste des agents du service ";
     // line 31
     echo twig_escape_filter($this->env, $this->getContext($context, "nomService"), "html", null, true);
     echo ": </h3>\n                    <div class=\"box-body\">\n                        ";
     // line 33
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "agentsService"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $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["agent"]) {
         // line 34
         echo "                            ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
         echo ". ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["agent"], "nomCanonique", array()), "html", null, true);
         echo "<br>\n                        ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['agent'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 36
     echo "                    </div>\n                </div>\n              </div>\n            </div><!-- /.col -->\n            <div class=\"col-md-9\">\n              <div class=\"box box-primary\">\n                <div class=\"box-body no-padding\">\n                    <!-- THE CALENDAR -->\n                    <div id=\"calendar\"></div>\n                    <!-- Modal onclick -->\n                    <div id=\"fullCalModal\" class=\"modal fade\">\n                        <div class=\"modal-dialog\">\n                            <div class=\"modal-content\">\n                                <div class=\"modal-header\">\n                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\"><span aria-hidden=\"true\">&times;</span> <span class=\"sr-only\">close</span></button>\n                                    <h4 id=\"modalTitle\" class=\"modal-title\"></h4>\n                                </div>\n                                <div id=\"modalBody\" class=\"modal-body\"></div>\n                                <div class=\"modal-footer\">\n                                    <button class=\"btn btn-default\" data-dismiss=\"modal\">Fermer</button>\n                                    <a id=\"eventUrl\" target=\"_blank\" class=\"btn btn-primary\">Plus d'information</a>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div><!-- /.box-body -->\n              </div><!-- /. box -->\n            </div><!-- /.col -->\n          </div><!-- /.row -->\n        </section><!-- /.content -->\n      </div><!-- /.content-wrapper -->\n         <footer class=\"main-footer\">\n        <div class=\"pull-right hidden-xs\">\n          <b>Version</b> 2.0\n        </div>\n             <strong>Copyright &copy; ";
     // line 71
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_date_converter($this->env, "now"), "Y"), "html", null, true);
     echo " Cédric GUICHERD</a>.</strong> All rights reserved.\n      </footer>\n    </div><!-- ./wrapper -->\n";
     // line 74
     $this->displayBlock('stylesheet', $context, $blocks);
     // line 79
     $this->displayBlock('javascript', $context, $blocks);
     // line 194
     echo "  </body>\n</html>\n      ";
 }
コード例 #5
0
ファイル: Date.php プロジェクト: kstefanini/ep-plugin
 /**
  * Filter for converting dates to a time ago string like Facebook and Twitter has.
  *
  * @param Twig_Environment $env  A Twig_Environment instance.
  * @param string|DateTime  $date A string or DateTime object to convert.
  * @param string|DateTime  $now  A string or DateTime object to compare with. If none given, the current time will be used.
  *
  * @return string The converted time.
  */
 public function diff(Twig_Environment $env, $date, $now = null)
 {
     // Convert both dates to DateTime instances.
     $date = twig_date_converter($env, $date);
     $now = twig_date_converter($env, $now);
     // Get the difference between the two DateTime objects.
     $diff = $date->diff($now);
     // Check for each interval if it appears in the $diff object.
     foreach (self::$units as $attribute => $unit) {
         $count = $diff->{$attribute};
         if (0 !== $count) {
             return $this->getPluralizedInterval($count, $diff->invert, $unit);
         }
     }
     return '';
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (!twig_test_empty(array_key_exists("nextRunTime", $context) ? _twig_default_filter(isset($context["nextRunTime"]) ? $context["nextRunTime"] : $this->getContext($context, "nextRunTime")) : "")) {
         // line 2
         echo "  ";
         if (twig_date_converter($this->env, $this->getAttribute(isset($context["nextRunTime"]) ? $context["nextRunTime"] : $this->getContext($context, "nextRunTime"), "getTimestamp", array(), "method")) <= twig_date_converter($this->env)) {
             // line 3
             echo "      ";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_UpdaterScheduledForNextRun")), "html", null, true);
             echo "\n  ";
         } else {
             // line 5
             echo "      ";
             echo call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_UpdaterWillRunNext", "<strong><em>" . $this->getAttribute(isset($context["nextRunTime"]) ? $context["nextRunTime"] : $this->getContext($context, "nextRunTime"), "toString", array(), "method") . "</em></strong>"));
             echo "\n  ";
         }
     } else {
         // line 8
         echo "  ";
         echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("UserCountry_UpdaterIsNotScheduledToRun")), "html", null, true);
         echo "\n";
     }
 }
コード例 #7
0
ファイル: Core.php プロジェクト: artz20/Tv-shows-zone
/**
 * Returns a new date object modified
 *
 * <pre>
 *   {{ post.published_at|modify("-1day")|date("m/d/Y") }}
 * </pre>
 *
 * @param Twig_Environment  $env      A Twig_Environment instance
 * @param DateTime|string   $date     A date
 * @param string            $modifier A modifier string
 *
 * @return DateTime A new date object
 */
function twig_date_modify_filter(Twig_Environment $env, $date, $modifier)
{
    if ($date instanceof DateTime) {
        $date = clone $date;
    } else {
        $date = twig_date_converter($env, $date);
    }
    $date->modify($modifier);
    return $date;
}
コード例 #8
0
ファイル: Core.php プロジェクト: SerdarSanri/twig-bundle
/**
 * Converts a date to the given format.
 *
 * <pre>
 *   {{ post.published_at|date("m/d/Y") }}
 * </pre>
 *
 * @param Twig_Environment             $env      A Twig_Environment instance
 * @param DateTime|DateInterval|string $date     A date
 * @param string                       $format   A format
 * @param DateTimeZone|string          $timezone A timezone
 *
 * @return string The formatter date
 */
function twig_date_format_filter(Twig_Environment $env, $date, $format = null, $timezone = null)
{
    if (null === $format) {
        $formats = $env->getExtension('core')->getDateFormat();
        $format = $date instanceof DateInterval ? $formats[1] : $formats[0];
    }
    if ($date instanceof DateInterval || $date instanceof DateTime) {
        return $date->format($format);
    }
    return twig_date_converter($date, $timezone)->format($format);
}
 public function block_content($context, array $blocks = array())
 {
     // line 38
     echo "\n<div class='data_container'>\n    <div class='list_view_buttons'>\n        ";
     // line 41
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(array(0 => 10, 1 => 20, 2 => 50, 3 => 100, 4 => 250));
     foreach ($context['_seq'] as $context["_key"] => $context["rows"]) {
         // line 42
         echo "            ";
         if ((isset($context["rows"]) ? $context["rows"] : null) == (isset($context["r"]) ? $context["r"] : null)) {
             // line 43
             echo "                <span>";
             echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true);
             echo "</span>\n            ";
         } else {
             // line 45
             echo "                <a href='/helpdesk?";
             echo twig_escape_filter($this->env, isset($context["get_for_list_view"]) ? $context["get_for_list_view"] : null, "html", null, true);
             echo "r=";
             echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true);
             echo "'>";
             echo twig_escape_filter($this->env, isset($context["rows"]) ? $context["rows"] : null, "html", null, true);
             echo "</a>\n            ";
         }
         // line 47
         echo "        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rows'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 48
     echo "        ";
     if ((isset($context["admin_id"]) ? $context["admin_id"] : null) == 164) {
         // line 49
         echo "            <span class=\"block_button_show_timeline\">\n                <a class=\"button_show_timeline\">+</a>\n            </span>\n        ";
     }
     // line 53
     echo "    </div>\n    <table class='tickets list'>\n        <col class='col-status'/>\n        <col class='col-weight'/>\n        <col class='col-title'/>\n        <col class='col-area'/>\n        <col class='col-creator'/>\n        <col class='col-performers'/>\n        <col class='col-created'/>\n        <col class='col-changed'/>\n        <col class='col-deadline'/>\n        <col class='col-rate'/>\n\n        <tr>\n            ";
     // line 67
     list($context["col"], $context["class"], $context["order_desc"]) = array("status", "", "");
     // line 68
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 69
         echo "                ";
         $context["class"] = "ordered";
         // line 70
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 71
         echo "            ";
     }
     // line 72
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 73
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "' title='Статус'>\n                    <img class='icon' src='/stat/img/helpdesk/status_";
     // line 74
     echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true);
     echo ".png'>\n                </a>\n            </th>\n\n            ";
     // line 78
     list($context["col"], $context["class"], $context["order_desc"]) = array("weight", "", "&od=1");
     // line 79
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 80
         echo "                ";
         $context["class"] = "ordered";
         // line 81
         echo "                ";
         if (!(isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "";
             echo "                 ";
         }
         // line 82
         echo "            ";
     }
     // line 83
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 84
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "' title='Вес'>\n                    <img class='icon' src='/stat/img/helpdesk/type_";
     // line 85
     echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true);
     echo ".png'>\n                </a>\n            </th>\n\n            ";
     // line 89
     list($context["col"], $context["class"], $context["order_desc"]) = array("title", "", "");
     // line 90
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 91
         echo "                ";
         $context["class"] = "ordered";
         // line 92
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 93
         echo "            ";
     }
     // line 94
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 95
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Тема</span></a>\n            </th>\n\n            ";
     // line 98
     list($context["col"], $context["class"], $context["order_desc"]) = array("area", "", "");
     // line 99
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 100
         echo "                ";
         $context["class"] = "ordered";
         // line 101
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             // line 102
             echo "                    ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             // line 103
             echo "                ";
         } else {
             // line 104
             echo "                    ";
             $context["order_desc"] = "&od=1";
             // line 105
             echo "                ";
         }
         // line 106
         echo "            ";
     }
     // line 107
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 108
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Территория</span></a>\n            </th>\n\n            ";
     // line 111
     list($context["col"], $context["class"], $context["order_desc"]) = array("creator", "", "");
     // line 112
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 113
         echo "                ";
         $context["class"] = "ordered";
         // line 114
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 115
         echo "            ";
     }
     // line 116
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 117
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Постановщик</span></a>\n            </th>\n\n            ";
     // line 120
     list($context["col"], $context["class"], $context["order_desc"]) = array("performers", "", "");
     // line 121
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 122
         echo "                ";
         $context["class"] = "ordered";
         // line 123
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 124
         echo "            ";
     }
     // line 125
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 126
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Исполнители</span></a>\n            </th>\n\n            ";
     // line 129
     list($context["col"], $context["class"], $context["order_desc"]) = array("created", "", "");
     // line 130
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 131
         echo "                ";
         $context["class"] = "ordered";
         // line 132
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 133
         echo "            ";
     }
     // line 134
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 135
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Создана</span></a>\n            </th>\n\n            ";
     // line 138
     list($context["col"], $context["class"], $context["order_desc"]) = array("changed", "", "");
     // line 139
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 140
         echo "                ";
         $context["class"] = "ordered";
         // line 141
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 142
         echo "            ";
     }
     // line 143
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 144
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "'><span>Изменена</span></a>\n            </th>\n\n            ";
     // line 147
     list($context["col"], $context["class"], $context["order_desc"]) = array("deadline", "", "");
     // line 148
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 149
         echo "                ";
         $context["class"] = "ordered";
         // line 150
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 151
         echo "            ";
     }
     // line 152
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 153
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "' title=\"Планируемая дата следующих действий по заявке\"><span>Срок</span></a>\n            </th>\n\n            ";
     // line 156
     list($context["col"], $context["class"], $context["order_desc"]) = array("rate", "", "");
     // line 157
     echo "            ";
     if ((isset($context["ob"]) ? $context["ob"] : null) == (isset($context["col"]) ? $context["col"] : null)) {
         // line 158
         echo "                ";
         $context["class"] = "ordered";
         // line 159
         echo "                ";
         if ((isset($context["od"]) ? $context["od"] : null) == 1) {
             echo "                     ";
             $context["class"] = (isset($context["class"]) ? $context["class"] : null) . " desc";
             echo "                 ";
         } else {
             echo "                     ";
             $context["order_desc"] = "&od=1";
             echo "                 ";
         }
         // line 160
         echo "            ";
     }
     // line 161
     echo "            <th class=\"";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : null, "html", null, true);
     echo " sort\">\n                <a href='/helpdesk/?";
     // line 162
     echo twig_escape_filter($this->env, isset($context["get_for_sorting_links"]) ? $context["get_for_sorting_links"] : null, "html", null, true);
     echo "ob=";
     echo twig_escape_filter($this->env, isset($context["col"]) ? $context["col"] : null, "html", null, true);
     echo twig_escape_filter($this->env, isset($context["order_desc"]) ? $context["order_desc"] : null, "html", null, true);
     echo "' title='Оценка'>\n                    <img src='/stat/img/helpdesk/rate_";
     // line 163
     echo twig_escape_filter($this->env, _twig_default_filter(strtr(isset($context["class"]) ? $context["class"] : null, array(" " => "_")), "0"), "html", null, true);
     echo "_min.png'>\n                </a>\n            </th>\n        </tr>\n    ";
     // line 167
     if (isset($context["tickets"]) ? $context["tickets"] : null) {
         // line 168
         echo "        ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["tickets"]) ? $context["tickets"] : null);
         foreach ($context['_seq'] as $context["id"] => $context["ticket"]) {
             // line 169
             echo "\n            ";
             // line 170
             list($context["unassigned"], $context["burning"]) = array("", "");
             // line 171
             echo "\n            ";
             // line 172
             if (!twig_join_filter($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers"), ", ")) {
                 // line 173
                 echo "                ";
                 $context["unassigned"] = "unassigned";
                 // line 174
                 echo "            ";
             }
             // line 175
             echo "            ";
             if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline") > 0 && twig_date_converter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline")) <= twig_date_converter($this->env, "now") && twig_in_filter($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), array(0 => 1, 1 => 2, 2 => 3, 3 => 5, 4 => 7))) {
                 // line 176
                 echo "                ";
                 $context["burning"] = "burning";
                 // line 177
                 echo "            ";
             }
             // line 178
             echo "\n            <tr class='status_";
             // line 179
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, isset($context["unassigned"]) ? $context["unassigned"] : null, "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, isset($context["burning"]) ? $context["burning"] : null, "html", null, true);
             echo "' data-id='";
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
             echo "'>\n                <td>\n                    <a id=\"ticket-status_";
             // line 181
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
             echo "\" class=\"popup_button noborder\">\n                        <img class='icon' src='/stat/img/helpdesk/status_";
             // line 182
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true);
             echo ".png' title='";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["statuses"]) ? $context["statuses"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), array(), "array"), "name"), "html", null, true);
             echo "'>\n                    </a>\n                    <div id=\"popup_ticket-status_";
             // line 184
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
             echo "\" class=\"popup_menu\">\n                        <ul>\n                            ";
             // line 186
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["statuses"]) ? $context["statuses"] : null);
             foreach ($context['_seq'] as $context["status_id"] => $context["status"]) {
                 // line 187
                 echo "                                ";
                 if ((isset($context["status_id"]) ? $context["status_id"] : null) == $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status")) {
                     // line 188
                     echo "                                    <li class=\"current\">\n                                        <img class=\"icon\" src='/stat/img/helpdesk/status_";
                     // line 189
                     echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true);
                     echo ".png'>&nbsp;";
                     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true);
                     echo "</li>\n                                ";
                 } else {
                     // line 191
                     echo "                                    <li>\n                                        <a href=\"javascript: changeTicketStatus('";
                     // line 192
                     echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                     echo "','";
                     echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true);
                     echo "')\">\n                                            <img class=\"icon\" src='/stat/img/helpdesk/status_";
                     // line 193
                     echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true);
                     echo ".png'>&nbsp;";
                     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true);
                     echo "</a>\n                                    </li>\n                                ";
                 }
                 // line 196
                 echo "                            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['status_id'], $context['status'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 197
             echo "                        </ul>\n                    </div>\n\n                </td>\n                <td class='weight'><img class='icon' src='/stat/img/helpdesk/weight_";
             // line 201
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "weight"), "html", null, true);
             echo ".png' title='Вес: ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "weight"), "html", null, true);
             echo "'></td>\n                <td class='title'>\n                    <a href='./?stage=edit&id=";
             // line 203
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true);
             echo "'><span class=\"ticket_id\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true);
             echo ".</span>";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "title"), "html", null, true);
             echo "</a>\n                </td>\n                <td>";
             // line 205
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["areas"]) ? $context["areas"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area"), array(), "array"), "html", null, true);
             echo "</td>\n                <td class='creator'>\n                    <a class=\"ticket_creator\" data-id=\"";
             // line 207
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), "html", null, true);
             echo "\">\n                        ";
             // line 208
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "lastname"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "firstname"), 0, 1), "html", null, true);
             echo ".";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "middlename"), 0, 1), "html", null, true);
             echo ".\n                    </a>\n                </td>\n                <td>\n                    ";
             // line 212
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers"));
             $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
             if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                 $length = count($context['_seq']);
                 $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["p"]) {
                 // line 213
                 echo "                        <span>";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "lastname"), "html", null, true);
                 echo " ";
                 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "firstname"), 0, 1), "html", null, true);
                 echo ".";
                 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "middlename"), 0, 1), "html", null, true);
                 echo ".";
                 echo $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index") != twig_length_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers")) ? ", " : "";
                 echo "</span>\n                    ";
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
                 if (isset($context['loop']['length'])) {
                     --$context['loop']['revindex0'];
                     --$context['loop']['revindex'];
                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 215
             echo "                </td>\n\n                ";
             // line 217
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(array(0 => "created", 1 => "changed", 2 => "deadline"));
             foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
                 // line 218
                 echo "                    ";
                 list($context["y"], $context["m"], $context["d"], $context["y0"], $context["m0"], $context["d0"]) = array(twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "Y"), twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "m"), twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "j"), twig_date_format_filter($this->env, "now", "Y"), twig_date_format_filter($this->env, "now", "m"), twig_date_format_filter($this->env, "now", "j"));
                 // line 219
                 echo "                        ";
                 if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array") > 0) {
                     // line 220
                     echo "                            ";
                     if ((isset($context["y"]) ? $context["y"] : null) == (isset($context["y0"]) ? $context["y0"] : null)) {
                         // line 221
                         echo "                                ";
                         if ((isset($context["m"]) ? $context["m"] : null) == (isset($context["m0"]) ? $context["m0"] : null)) {
                             // line 222
                             echo "                                    ";
                             if ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null)) {
                                 // line 223
                                 echo "                                        ";
                                 $context["td"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "сегодня";
                                 // line 224
                                 echo "                                        ";
                                 $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? "Сегодня в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "";
                                 // line 225
                                 echo "                                    ";
                             } elseif ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) - 1) {
                                 // line 226
                                 echo "                                        ";
                                 $context["td"] = "вчера";
                                 // line 227
                                 echo "                                        ";
                                 $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? "Вчера в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "";
                                 // line 228
                                 echo "                                    ";
                             } elseif ((isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) + 1) {
                                 // line 229
                                 echo "                                        ";
                                 $context["td"] = "завтра";
                                 // line 230
                                 echo "                                    ";
                             } else {
                                 // line 231
                                 echo "                                        ";
                                 $context["td"] = (isset($context["d"]) ? $context["d"] : null) . " " . twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array"), 0, 3);
                                 // line 232
                                 echo "                                        ";
                                 $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . " в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "";
                                 // line 233
                                 echo "                                    ";
                             }
                             // line 234
                             echo "                                ";
                         } else {
                             // line 235
                             echo "                                    ";
                             $context["td"] = (isset($context["d"]) ? $context["d"] : null) . " " . twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array"), 0, 3);
                             // line 236
                             echo "                                    ";
                             $context["title"] = (isset($context["column"]) ? $context["column"] : null) == "created" || (isset($context["column"]) ? $context["column"] : null) == "changed" ? (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . " в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i") : "";
                             // line 237
                             echo "                                ";
                         }
                         // line 238
                         echo "                            ";
                     } else {
                         // line 239
                         echo "                                ";
                         $context["td"] = (isset($context["d"]) ? $context["d"] : null) . "." . (isset($context["m"]) ? $context["m"] : null) . "." . (isset($context["y"]) ? $context["y"] : null);
                         // line 240
                         echo "                                ";
                         $context["title"] = (isset($context["d"]) ? $context["d"] : null) . " " . $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, (isset($context["m"]) ? $context["m"] : null) - 1, array(), "array") . (isset($context["y"]) ? $context["y"] : null) . "г. в " . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, isset($context["column"]) ? $context["column"] : null, array(), "array"), "G:i");
                         // line 241
                         echo "                            ";
                     }
                     // line 242
                     echo "                        ";
                 } else {
                     // line 243
                     echo "                            ";
                     $context["td"] = "—";
                     // line 244
                     echo "                        ";
                 }
                 // line 245
                 echo "                    <td class=\"c-align ";
                 echo twig_escape_filter($this->env, isset($context["column"]) ? $context["column"] : null, "html", null, true);
                 echo " ";
                 echo (isset($context["y"]) ? $context["y"] : null) == (isset($context["y0"]) ? $context["y0"] : null) && (isset($context["m"]) ? $context["m"] : null) == (isset($context["m0"]) ? $context["m0"] : null) && (isset($context["d"]) ? $context["d"] : null) == (isset($context["d0"]) ? $context["d0"] : null) ? "today" : "";
                 echo "\" title=\"";
                 echo twig_escape_filter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true);
                 echo "\" >\n                        ";
                 // line 246
                 echo twig_escape_filter($this->env, isset($context["td"]) ? $context["td"] : null, "html", null, true);
                 echo "\n                    </td>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 249
             echo "\n\n                ";
             // line 252
             echo "                ";
             // line 253
             echo "                    ";
             // line 254
             echo "                        ";
             // line 255
             echo "                            ";
             // line 256
             echo "                        ";
             // line 257
             echo "                            ";
             // line 258
             echo "                        ";
             // line 259
             echo "                    ";
             // line 260
             echo "                        ";
             // line 261
             echo "                    ";
             // line 262
             echo "                ";
             // line 263
             echo "\n                ";
             // line 265
             echo "                    ";
             // line 266
             echo "                        ";
             // line 267
             echo "                            ";
             // line 268
             echo "                        ";
             // line 269
             echo "                            ";
             // line 270
             echo "                        ";
             // line 271
             echo "                    ";
             // line 272
             echo "                        ";
             // line 273
             echo "                    ";
             // line 274
             echo "                ";
             // line 275
             echo "\n                <td class=\"c-align rate\">\n                    <img src=\"/stat/img/helpdesk/rate_";
             // line 277
             echo twig_escape_filter($this->env, twig_test_empty($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate")) ? "0" : $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate"), "html", null, true);
             echo "_min.png\" title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate"), "html", null, true);
             echo "\">\n                </td>\n            </tr>\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['id'], $context['ticket'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 281
         echo "    ";
     } else {
         // line 282
         echo "        <tr>\n            <td colspan='11' class='not_found'>Заявок не найдено.</td>\n        </tr>\n    ";
     }
     // line 286
     echo "\n    </table>\n    <div class='table-footer'>\n        <span class='statusbar'>Заявок: ";
     // line 289
     echo twig_escape_filter($this->env, isset($context["row_count"]) ? $context["row_count"] : null, "html", null, true);
     echo "</span>\n        ";
     // line 290
     if ((isset($context["pages"]) ? $context["pages"] : null) > 1) {
         // line 291
         echo "            <div class=\"pagenumbers\">\n                ";
         // line 292
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(0, (isset($context["pages"]) ? $context["pages"] : null) - 1));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 293
             echo "                    ";
             if ((isset($context["i"]) ? $context["i"] : null) == 1 && (isset($context["page"]) ? $context["page"] : null) > 3 || (isset($context["i"]) ? $context["i"] : null) == (isset($context["page"]) ? $context["page"] : null) + 3 && (isset($context["pages"]) ? $context["pages"] : null) - (isset($context["page"]) ? $context["page"] : null) > 4) {
                 // line 294
                 echo "                        <span class = 'pagespace'>…</span>\n                    ";
             } else {
                 // line 296
                 echo "                        ";
                 if ((isset($context["i"]) ? $context["i"] : null) == 0 || (isset($context["i"]) ? $context["i"] : null) > (isset($context["page"]) ? $context["page"] : null) - 3 && (isset($context["i"]) ? $context["i"] : null) < (isset($context["page"]) ? $context["page"] : null) + 4 || (isset($context["i"]) ? $context["i"] : null) == (isset($context["pages"]) ? $context["pages"] : null) - 1) {
                     // line 297
                     echo "                            ";
                     if ((isset($context["page"]) ? $context["page"] : null) == (isset($context["i"]) ? $context["i"] : null)) {
                         // line 298
                         echo "                                <span class=\"page current\">";
                         echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null) + 1, "html", null, true);
                         echo "</span>\n                            ";
                     } else {
                         // line 300
                         echo "                                <a class=\"page\" href='/helpdesk?";
                         echo twig_escape_filter($this->env, isset($context["get_for_pagenumbers"]) ? $context["get_for_pagenumbers"] : null, "html", null, true);
                         echo "page=";
                         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
                         echo "'>";
                         echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null) + 1, "html", null, true);
                         echo "</a>\n                            ";
                     }
                     // line 302
                     echo "                        ";
                 }
                 // line 303
                 echo "                    ";
             }
             // line 304
             echo "                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 305
         echo "            </div>\n        ";
     }
     // line 307
     echo "    </div>\n\n    <div class='buttons'>\n        <div class='right'>\n            <a class='button green' href='./?stage=new'>Новая заявка</a>\n        </div>\n    </div>\n\n</div>\n    <div class='float filter'>\n        <div class='header'>Фильтры\n            <a class=\"settings\">\n                <img id=\"button_filters_settings\" src=\"/stat/img/settings.png\">\n            </a>\n        </div>\n\n        <div class='filters_block'>\n\n            ";
     // line 325
     $this->env->loadTemplate("helpdesk/filters_block.twig")->display($context);
     // line 326
     echo "\n        </div>\n\n        <hr>\n\n        ";
     // line 332
     echo "        <div class='params_block contractor cut_block cutted'>\n            <span class=\"cutter pic\"></span>\n            <span class='category_name cutter'>Ответственный</span>\n            <span class=\"count\"></span>\n            <div class='cut'>\n                ";
     // line 337
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["contractor"]) {
         // line 338
         echo "\n                    ";
         // line 339
         $context["c_id"] = $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "uid");
         // line 340
         echo "                    ";
         $context["c_fio"] = $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "lastname") . " " . $this->getAttribute(isset($context["contractor"]) ? $context["contractor"] : null, "firstname");
         // line 341
         echo "                    ";
         if ((isset($context["c_id"]) ? $context["c_id"] : null) == (isset($context["admin_id"]) ? $context["admin_id"] : null)) {
             echo "   ";
             list($context["its_me"], $context["c_id"], $context["c_fio"]) = array("its_me", 0, "Я");
             // line 342
             echo "                    ";
         } else {
             echo "                ";
             $context["its_me"] = "";
             // line 343
             echo "                    ";
         }
         // line 344
         echo "\n                    <div class='param ";
         // line 345
         echo twig_escape_filter($this->env, isset($context["its_me"]) ? $context["its_me"] : null, "html", null, true);
         echo "'>\n                        <label><input class=\"filter_checkbox\" type='checkbox' data-contractor='";
         // line 346
         echo twig_escape_filter($this->env, isset($context["c_id"]) ? $context["c_id"] : null, "html", null, true);
         echo "'/>";
         echo twig_escape_filter($this->env, isset($context["c_fio"]) ? $context["c_fio"] : null, "html", null, true);
         echo "</label>\n                    </div>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contractor'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 349
     echo "            </div>\n        </div>\n\n        ";
     // line 353
     echo "        <div class='params_block performers cut_block cutted'>\n            <span class=\"cutter pic\"></span>\n            <span class='category_name cutter'>Исполнители</span>\n            <span class=\"count\"></span>\n            <div class='cut'>\n                ";
     // line 358
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["performer"]) {
         // line 359
         echo "\n                    ";
         // line 360
         $context["p_id"] = $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "uid");
         // line 361
         echo "                    ";
         $context["p_fio"] = $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "lastname") . " " . $this->getAttribute(isset($context["performer"]) ? $context["performer"] : null, "firstname");
         // line 362
         echo "                    ";
         if ((isset($context["p_id"]) ? $context["p_id"] : null) == (isset($context["admin_id"]) ? $context["admin_id"] : null)) {
             echo "   ";
             list($context["its_me"], $context["p_id"], $context["p_fio"]) = array("its_me", 0, "Я");
             // line 363
             echo "                    ";
         } else {
             echo "                ";
             $context["its_me"] = "";
             // line 364
             echo "                    ";
         }
         // line 365
         echo "\n                    <div class='param ";
         // line 366
         echo twig_escape_filter($this->env, isset($context["its_me"]) ? $context["its_me"] : null, "html", null, true);
         echo "'>\n                        <label><input class=\"filter_checkbox\" type='checkbox' data-performers=\"@";
         // line 367
         echo twig_escape_filter($this->env, isset($context["p_id"]) ? $context["p_id"] : null, "html", null, true);
         echo "@\"/>";
         echo twig_escape_filter($this->env, isset($context["p_fio"]) ? $context["p_fio"] : null, "html", null, true);
         echo "</label>\n                    </div>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['performer'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 370
     echo "            </div>\n        </div>\n\n        ";
     // line 374
     echo "        ";
     if (isset($context["statuses"]) ? $context["statuses"] : null) {
         // line 375
         echo "            <div class='params_block status cut_block cutted'>\n                <span class=\"cutter pic\"></span>\n                <span class='category_name cutter'>Статус</span>\n                <span class=\"count\"></span>\n                <div class='cut'>\n                    ";
         // line 380
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["statuses"]) ? $context["statuses"] : null);
         foreach ($context['_seq'] as $context["status_id"] => $context["status"]) {
             // line 381
             echo "                        <div class='param'>\n                            <label>\n                                <input class=\"filter_checkbox\" type='checkbox' data-status='";
             // line 383
             echo twig_escape_filter($this->env, isset($context["status_id"]) ? $context["status_id"] : null, "html", null, true);
             echo "'/>\n                                ";
             // line 385
             echo "                                ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["status"]) ? $context["status"] : null, "name"), "html", null, true);
             echo "</label>\n                        </div>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['status_id'], $context['status'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 388
         echo "                </div>\n            </div>\n        ";
     }
     // line 391
     echo "\n        ";
     // line 393
     echo "        ";
     if (isset($context["areas"]) ? $context["areas"] : null) {
         // line 394
         echo "            <div class='params_block area cut_block cutted'>\n                <span class=\"cutter pic\"></span>\n                <span class='category_name cutter'>Территория</span>\n                <span class=\"count\"></span>\n                <div class='cut'>\n                    ";
         // line 399
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["areas"]) ? $context["areas"] : null);
         foreach ($context['_seq'] as $context["area_id"] => $context["area"]) {
             // line 400
             echo "                        <div class='param'>\n                            <label><input class=\"filter_checkbox\" type='checkbox' data-area='";
             // line 401
             echo twig_escape_filter($this->env, isset($context["area_id"]) ? $context["area_id"] : null, "html", null, true);
             echo "'/>";
             echo twig_escape_filter($this->env, isset($context["area"]) ? $context["area"] : null, "html", null, true);
             echo "</label>\n                        </div>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['area_id'], $context['area'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 404
         echo "                </div>\n            </div>\n        ";
     }
     // line 407
     echo "\n        ";
     // line 409
     echo "        ";
     // line 410
     echo "            ";
     // line 411
     echo "            ";
     // line 412
     echo "            ";
     // line 413
     echo "            ";
     // line 414
     echo "                ";
     // line 415
     echo "                    ";
     // line 416
     echo "                        ";
     // line 417
     echo "                    ";
     // line 418
     echo "                ";
     // line 419
     echo "            ";
     // line 420
     echo "        ";
     // line 421
     echo "\n        ";
     // line 423
     echo "        <div class='params_block rate cut_block cutted'>\n            <span class=\"cutter pic\"></span>\n            <span class='category_name cutter'>Оценка</span>\n            <span class=\"count\"></span>\n            <div class='cut'>\n                ";
     // line 428
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(5, 1));
     foreach ($context['_seq'] as $context["_key"] => $context["rate"]) {
         // line 429
         echo "                    <div class='param'>\n                        <label><input class=\"filter_checkbox\" type='checkbox' data-rate='";
         // line 430
         echo twig_escape_filter($this->env, isset($context["rate"]) ? $context["rate"] : null, "html", null, true);
         echo "'/>";
         echo twig_escape_filter($this->env, isset($context["rate"]) ? $context["rate"] : null, "html", null, true);
         echo " балл";
         echo (isset($context["rate"]) ? $context["rate"] : null) == 5 ? "ов" : ((isset($context["rate"]) ? $context["rate"] : null) > 1 ? "a" : "");
         echo "</label>\n                    </div>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rate'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 433
     echo "\n                <div class='param'>\n                    <label><input class=\"filter_checkbox\" type='checkbox' data-rate='0'/>без оценки</label>\n                </div>\n            </div>\n        </div>\n\n\n        <div class='filter_buttons'>\n            <a class='apply_filter' onclick=\"applyFilter()\">Показать</a>\n            <a class='reset_filter' onclick=\"resetFilter()\">Очистить</a>\n            <a class='save_filter'  onclick=\"saveFilter()\" >Сохранить</a>\n        </div>\n    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\">\n    <title>AGeCo | Fiche ";
     // line 5
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "</title>\n    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n    <style>\n        span.badge {\n            font-size: 13px;\n        }\n        .table-header-rotated td{\n\n          border-top: 1px solid #dddddd;\n          border-left: 1px solid #dddddd;\n          border-right: 1px solid #dddddd;\n          vertical-align: middle;\n          text-align: center;\n        }\n\n        .table-header-rotated th.rotate-45{\n          height: 80px;\n          position: relative;\n          vertical-align: bottom;\n          padding: 0;\n          font-size: 12px;\n          line-height: 0.8;\n        }\n\n        .table-header-rotated th.rotate-45 > div{\n          position: relative;\n          top: 0px;\n          left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/\n          height: 100%;\n          -ms-transform:skew(-45deg,0deg);\n          -moz-transform:skew(-45deg,0deg);\n          -webkit-transform:skew(-45deg,0deg);\n          -o-transform:skew(-45deg,0deg);\n          transform:skew(-45deg,0deg);\n          overflow: hidden;\n          border-left: 1px solid #dddddd;\n        }\n\n        .table-header-rotated th.rotate-45 span {\n          -ms-transform:skew(45deg,0deg) rotate(315deg);\n          -moz-transform:skew(45deg,0deg) rotate(315deg);\n          -webkit-transform:skew(45deg,0deg) rotate(315deg);\n          -o-transform:skew(45deg,0deg) rotate(315deg);\n          transform:skew(45deg,0deg) rotate(315deg);\n          position: absolute;\n          bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/\n          left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/\n          // width: 100%;\n          width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/\n          text-align: left;\n          // white-space: nowrap; /*whether to display in one line or not*/\n        }\n        .tp{\n            width: 80px;\n        }\n    </style>\n  </head>\n  <body class=\"skin-blue\">\n    <div class=\"wrapper\">\n      \n      ";
     // line 65
     echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("OCAgentBundle:Default:menu"));
     echo "\n      <!-- Right side column. Contains the navbar and content of the page -->\n      <div class=\"content-wrapper\">\n        <!-- Content Header (Page header) -->\n        <section class=\"content-header \">\n          <h1>\n            Fiche Agent -  ";
     // line 71
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "\n            <small>\n                ";
     // line 73
     if (twig_date_format_filter($this->env, "now", "Ymd") < twig_date_format_filter($this->env, twig_date_converter($this->env, twig_date_format_filter($this->env, "now", "Y") . "0831"), "Ymd")) {
         // line 74
         echo "                   01/09/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") - 1, "html", null, true);
         echo " - 31/08/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo "\n                ";
     } else {
         // line 76
         echo "                    01/09/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo " - 31/08/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") + 1, "html", null, true);
         echo "\n                ";
     }
     // line 78
     echo "            </small>\n            <div class=\"badge hidden-print\" ><a href=\"javascript:window.print()\"><i style=\"color:white\"class=\"fa fa-print\"></i></a></div>\n          </h1>\n          <ol class=\"breadcrumb hidden-print\">\n            <li><a href=\"#\"><i class=\"fa fa-dashboard\"></i> Home</a></li>\n            <li class=\"active\">Fiche agent</li>\n            <li class=\"active\">";
     // line 84
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "</li>\n          </ol>\n        </section>\n        ";
     // line 87
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session", array()), "flashbag", array()), "get", array(0 => "notice"), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
         if ($this->getAttribute($context["flashMessage"], "alert", array(), "any", true, true)) {
             // line 88
             echo "                <br>\n                <div class=\"alert alert-";
             // line 89
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "alert", array()), "html", null, true);
             echo " alert-dismissible col-md-8\" role=\"alert\">\n                    <button type=\"button\" class=\"close\" data-dismiss=\"alert\">\n                        <span aria-hidden=\"true\">&times;</span><span class=\"sr-only\">Close</span>\n                    </button>\n                    <strong>";
             // line 93
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "title", array()), "html", null, true);
             echo "</strong> ";
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "message", array()), "html", null, true);
             echo "\n                </div>\n        ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 96
     echo "        <!-- Main content -->\n        <section class=\"content\">\n          <div class=\"row\">\n            <div class=\"col-md-8\" style=\"min-width: 850px\">\n               \n                <div class=\"row\">\n                 <div class=\"col-xs-6\">\n               <div class=\"box\">\n                <div class=\"box-body no-padding\">\n                  <table class=\"table table-condensed table-hover \" >\n                    <tr>\n                      <th style=\"width: 10px\">#</th>\n                      <th>D&eacute;signation</th>\n                      <th style=\"width: 35%\" class=\"text-right\">Quantit&eacute;</th>\n                    </tr>\n                    <tr>\n                      <td>1.</td>\n                      <td>Horaire Hebdomadaire</td>\n                      <td><span class=\"badge bg-red pull-right\">";
     // line 114
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "VolHoraireHebdo", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>2.</td>\n                      <td>Quotit&eacute; de travail</td>\n                      <td><span class=\"badge bg-yellow pull-right\">";
     // line 119
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "QuotiteTravail", array()), "html", null, true);
     echo " %</span></td>\n                    </tr>\n                    <tr>\n                      <td>3.</td>\n                      <td>Nombre de cong&eacute; annuel restant </td>\n                      <td><span class=\"badge bg-light-blue pull-right\">";
     // line 124
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "JoursRestant", array()), "html", null, true);
     echo " j</span></td>\n                    </tr>\n                    <tr>\n                      <td>4.</td>\n                      <td>Reliquat <small>(A prendre avant le 31 d&eacute;cembre \n                              ";
     // line 129
     if (twig_date_format_filter($this->env, "now", "d/m/Y") < twig_date_format_filter($this->env, "31-08-" . twig_date_format_filter($this->env, "now", "Y"), "d/m/Y")) {
         // line 130
         echo "                                    ";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo "\n                              ";
     } else {
         // line 132
         echo "                                    ";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") + 1, "html", null, true);
         echo "\n                              ";
     }
     // line 133
     echo ")</small></td>\n                      <td><span class=\"badge bg-green pull-right\">";
     // line 134
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "ReliquatRestant", array()), "html", null, true);
     echo " j</span></td>\n                    </tr>\n                    <tr>\n                      <td>5.</td>\n                      <td>Heures suppl&eacute;mentaires <small>(A r&eacute;cup&eacute;rer en &frac12 journ&eacute;es )</small></td>\n                      <td><span class=\"badge bg-orange pull-right\">";
     // line 139
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "heuresSup", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>6.</td>\n                      <td>Heures de fractionnement </td>\n                      ";
     // line 144
     $context["hfrac"] = twig_split_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "heureFractionnement", array()), ".");
     // line 145
     echo "                      <td><span class=\"badge bg-aqua-gradient pull-right\">";
     if ($this->getAttribute($this->getContext($context, "hfrac", true), 0, array(), "any", true, true)) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "hfrac"), 0, array()), "html", null, true);
         echo "h";
     }
     if ($this->getAttribute($this->getContext($context, "hfrac", true), 1, array(), "any", true, true)) {
         echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getContext($context, "hfrac"), 1, array()) * 0.6), "html", null, true);
         echo "0";
     }
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>7.</td>\n                      <td>Chef de service</td>\n                      <td><span class=\"pull-right\">";
     // line 150
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "agent"), "Service", array()), "ChefdeService", array()), "NomCanonique", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    \n                    ";
     // line 153
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 154
         echo "                        <tr class=\"hidden-print\">\n                            <td colspan=\"3\"><a href=\"";
         // line 155
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("oc_agent_update_fiche_agent", array("id" => $this->getAttribute($this->getContext($context, "agent"), "id", array()))), "html", null, true);
         echo "\">Mettre &agrave; jour la fiche agent</a></td>\n                        </tr>\n                    ";
     }
     // line 158
     echo "                  </table>\n                </div><!-- /.box-body -->\n              </div><!-- /.box -->\n               </div><!-- column 1 of the box -->\n              \n              <div class=\"col-xs-6\">\n               <div class=\"box\">\n                <div class=\"box-body\">\n                    <table class=\"table table-striped table-header-rotated TP\" style=\"max-width: 500px\">\n                        <thead>\n                          <tr>\n                            <!-- First column header is not rotated -->\n                            <th></th>\n                            <!-- Following headers are rotated -->\n                            <th class=\"rotate-45\"><div><span>Lundi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Mardi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Mercredi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Jeudi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Vendredi</span></div></th>\n                          </tr>\n                        </thead>\n                        <tbody>\n                          <tr>\n                            <th>AM</th>\n                            <td class=\"tp\" id=\"matin-Monday\"></td>\n                            <td class=\"tp\" id=\"matin-Tuesday\"></td>\n                            <td class=\"tp\" id=\"matin-Wednesday\"></td>\n                            <td class=\"tp\" id=\"matin-Thursday\"></td>\n                            <td class=\"tp\" id=\"matin-Friday\"></td>\n\n                          </tr> \n                          <tr> \n                            <th>PM</th> \n                            <td class=\"tp\" id=\"aprem-Monday\"></td>\n                            <td class=\"tp\" id=\"aprem-Tuesday\"></td>\n                            <td class=\"tp\" id=\"aprem-Wednesday\"></td>\n                            <td class=\"tp\" id=\"aprem-Thursday\"></td>\n                            <td class=\"tp\" id=\"aprem-Friday\"></td>\n                          </tr>\n                        </tbody>\n                      </table>\n                    ";
     // line 199
     if ($this->getAttribute($this->getContext($context, "agent"), "QuotiteTravail", array()) == 100) {
         // line 200
         echo "                        <br><small class=\"pull-right\"> T : travaill&eacute; &nbsp;&nbsp;&nbsp;&nbsp; ARTT :  Am&eacute;nagement R&eacute;duction du Temps de Travail</small><br>\n                    ";
     } else {
         // line 202
         echo "                        <br><small class=\"pull-right\"> T : travaill&eacute; &nbsp;&nbsp;&nbsp;&nbsp; TP : temps partiels</small><br>\n                    ";
     }
     // line 204
     echo "                    \n                    \n                </div><!-- /.box-body -->\n               </div><!-- /.box -->\n              </div>\n              </div>\n               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed  table-hover sortable\" id=\"data\">\n                            <thead>\n                            <tr>\n                                <td class=\"text-center text-bold\" colspan=\"9\">ABSENCES ANNUELLES</td>\n                            </tr>\n                            <tr>\n                              <th><span class=\"text-bold\">#</span></th>\n                              <th>Date de d&eacute;but</th>\n                              <th>Date de fin</th>\n                              <th data-tsorter=\"numeric\">Nombre de jours</th>\n                              <th>Type d'absence</th>\n                              <th>Demand&eacute;e le</th>\n                              <th>Accept&eacute;e le</th>\n                              <th>Solde <abbr class=\"hidden-print\" title=\"Solde des congés validés\">*</abbr></th>\n                              ";
     // line 226
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 227
         echo "                                <th class='hidden-print'>Action</th>\n                              ";
     }
     // line 229
     echo "                            </tr>\n                            </thead>\n                            <tr >\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td id=\"ABS_ANN_SoldeSansCongeValide_0\">";
     // line 239
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "NbJourCongeAnnuel", array()), "html", null, true);
     echo "</td>\n                                ";
     // line 240
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 241
         echo "                                    <td class=\"active\"></td>\n                                ";
     }
     // line 243
     echo "                            <tr>\n                          ";
     // line 245
     echo "                          ";
     $context["nbjourtotalAN"] = 0;
     // line 246
     echo "                          ";
     $context["soldeTemp"] = $this->getAttribute($this->getContext($context, "agent"), "NbJourCongeAnnuel", array());
     // line 247
     echo "                          \n                          ";
     // line 248
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "absences"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $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["absence"]) {
         // line 249
         echo "                            <tr id =\"";
         echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "id", array()), "html", null, true);
         echo "\">\n                              <td><span class=\"text-bold\">";
         // line 250
         echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
         echo ".</span></td>\n                              <td>";
         // line 251
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "debut", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>";
         // line 252
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "fin", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>";
         // line 253
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "2000-01-01", "d-m-Y") && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y") && ($this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 2 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 5) && $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) != 9 && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 258
             echo "                                     ";
             $context["nbjourtotalAN"] = $this->getContext($context, "nbjourtotalAN") + $this->getAttribute($context["absence"], "nbjournee", array());
             echo "        ";
             echo "            \n                                  ";
         }
         // line 260
         echo "                                                                     ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "nbjournee", array()), "html", null, true);
         echo "\n   \n                              </td>\n                              <td>";
         // line 263
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "name", array()), "html", null, true);
         echo "</td>\n                              <td>";
         // line 264
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>  ";
         // line 265
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 266
             echo "                                           En cours de traitement\n                                    ";
         } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
             // line 268
             echo "                                           Refus&eacute;\n                                    ";
         } elseif (null === $this->getAttribute($context["absence"], "Accepted", array())) {
             // line 270
             echo "                                           Envoy&eacute;\n                                    ";
         } else {
             // line 272
             echo "                                       ";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y"), "html", null, true);
             echo "\n                                    ";
         }
         // line 274
         echo "                              </td>\n                              <td >\n                                  ";
         // line 276
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "2000-01-01", "d-m-Y") && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y") && ($this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 2 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 5 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 9) && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 280
             echo "                                    ";
             $context["soldeTemp"] = $this->getContext($context, "soldeTemp") - $this->getAttribute($context["absence"], "nbjournee", array());
             echo " ";
             echo twig_escape_filter($this->env, $this->getContext($context, "soldeTemp"), "html", null, true);
             echo "\n                                  ";
         }
         // line 282
         echo "                              </td>\n                              ";
         // line 283
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 284
             echo "                              <td class='hidden-print' >\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
             // line 285
             echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "id", array()), "html", null, true);
             echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                              ";
         }
         // line 290
         echo "                            ";
         if ($this->getAttribute($context["loop"], "last", array())) {
             // line 291
             echo "                                <tfoot>\n                                    <tr >\n                                        <th >Total</th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th >";
             // line 296
             echo twig_escape_filter($this->env, $this->getContext($context, "nbjourtotalAN"), "html", null, true);
             echo "</th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th >";
             // line 300
             echo twig_escape_filter($this->env, $this->getContext($context, "soldeTemp"), "html", null, true);
             echo "</th>\n                                    </tr>        \n                                </tfoot>        \n                            ";
         }
         // line 304
         echo "                          ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['absence'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 305
     echo "                      </table>\n                    </div>\n                </div>\n          ";
     // line 308
     if (twig_length_filter($this->env, $this->getContext($context, "reliquats")) != 0) {
         // line 309
         echo "               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center \" colspan=\"9\"><span class=\"text-bold\">RELIQUATS</span><br>\n                                <small>\n                                   ( A prendre avant le 31 d&eacute;cembre ";
         // line 315
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo " )\n                                </small>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          <th>Nombre de jours</th>\n                          <th>Solde</th>\n                          ";
         // line 326
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 327
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 329
         echo "                        </tr>\n                        <tr>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td>";
         // line 337
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "Reliquat", array()), "html", null, true);
         echo "\n                            </td>\n                        <tr>\n                          ";
         // line 341
         echo "                          ";
         $context["nbjourTotalReli"] = 0;
         // line 342
         echo "                          ";
         $context["SoldeTempReli"] = $this->getAttribute($this->getContext($context, "agent"), "Reliquat", array());
         // line 343
         echo "                          \n                          ";
         // line 344
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "reliquats"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $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["reliquat"]) {
             // line 345
             echo "                              \n                          ";
             // line 346
             $context["nbjourTotalReli"] = $this->getContext($context, "nbjourTotalReli") + $this->getAttribute($context["reliquat"], "nbjournee", array());
             // line 347
             echo "                          ";
             $context["SoldeTempReli"] = $this->getContext($context, "SoldeTempReli") - $this->getAttribute($context["reliquat"], "nbjournee", array());
             // line 348
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 349
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 350
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 351
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 352
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>  ";
             // line 353
             if (twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 354
                 echo "                                        En cours de traitement\n                                ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 356
                 echo "                                       Refus&eacute;\n                                ";
             } elseif (null === $this->getAttribute($context["reliquat"], "Accepted", array())) {
                 // line 358
                 echo "                                       Envoy&eacute;\n                                ";
             } else {
                 // line 360
                 echo "                                   ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                ";
             }
             // line 362
             echo "                          </td>\n                          <td class=\"demiJ2\">";
             // line 363
             echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 364
             echo twig_escape_filter($this->env, $this->getContext($context, "SoldeTempReli"), "html", null, true);
             echo "</td>\n                          ";
             // line 365
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 366
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 367
                 echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 372
             echo "                        </tr>\n                        ";
             // line 373
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 374
                 echo "                    <tfoot>\n                        <tr class=\"\">\n                            <th colspan=\"5\">Total</th>\n                            <th >";
                 // line 377
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalReli"), "html", null, true);
                 echo "</th>\n                            <th >";
                 // line 378
                 echo twig_escape_filter($this->env, $this->getContext($context, "SoldeTempReli"), "html", null, true);
                 echo "</th>\n                        </tr>        \n                    </tfoot>        \n                        ";
             }
             // line 382
             echo "                          ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reliquat'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 383
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 387
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "MissForm")) != 0) {
         // line 388
         echo "               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">FORMATION - MISSION</td>\n                        </tr>\n                        <tr >\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Type d'absence</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Nombre de jours</th>\n                          ";
         // line 401
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 402
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 404
         echo "                        </tr>\n                          ";
         // line 406
         echo "                          ";
         $context["nbjourTotalMissForm"] = 0;
         echo " \n                          \n                          ";
         // line 408
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($context["MissForm"]);
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $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["MissForm"]) {
             // line 409
             echo "                          ";
             $context["nbjourTotalMissForm"] = $this->getContext($context, "nbjourTotalMissForm") + $this->getAttribute($context["MissForm"], "nbjournee", array());
             // line 410
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 411
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 412
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 413
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 414
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["MissForm"], "Category", array()), "name", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 415
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td class=\"demiJ2\">";
             // line 416
             echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 417
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 418
                 echo "                              <td >\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 419
                 echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 424
             echo "                        </tr>\n                        ";
             // line 425
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 426
                 echo "                    <tfoot>\n                        <tr class=\"\">\n                            <th colspan=\"5\">Total</th>\n                            <th>";
                 // line 429
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalMissForm"), "html", null, true);
                 echo "</th>\n                        </tr>        \n                    </tfoot>        \n                        ";
             }
             // line 433
             echo "                          ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['MissForm'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 434
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 438
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "tabASA")) != 0) {
         // line 439
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\" id=\"table_asa\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">Autorisation Sp&eacute;ciale d'Absence<br>\n                                <small id=\"annee_asa\">Ann&eacute;e universitaire</small>\n                            </td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Nombre de jours</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          <th>Commentaire</th>\n                          ";
         // line 455
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 456
             echo "                            <th class='hidden-print' >Action</th>\n                          ";
         }
         // line 458
         echo "                        </tr>\n                          ";
         // line 460
         echo "                          ";
         $context["nbjourTotalASA"] = 0;
         echo " \n                          \n                          ";
         // line 462
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "tabASA"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $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["ASA"]) {
             // line 463
             echo "                          ";
             $context["nbjourTotalASA"] = $this->getContext($context, "nbjourTotalASA") + $this->getAttribute($context["ASA"], "nbjournee", array());
             // line 464
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "id", array()), "html", null, true);
             echo "\"  class=\"tr_asa\">\n                          <td><span class=\"text-bold\">";
             // line 465
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 466
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 467
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                           <td class=\"demiJ2\">";
             // line 468
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 469
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 470
             if (twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 471
                 echo "                                        En cours de traitement\n                                ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 473
                 echo "                                       Refus&eacute;\n                                ";
             } elseif (null === $this->getAttribute($context["ASA"], "Accepted", array())) {
                 // line 475
                 echo "                                       Envoy&eacute;\n                                ";
             } else {
                 // line 477
                 echo "                                   ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                ";
             }
             // line 479
             echo "                          </td>\n                          <td>";
             // line 480
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "commentaire", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 481
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 482
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 483
                 echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 488
             echo "                        </tr>\n                        ";
             // line 489
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 490
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th>";
                 // line 493
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalASA"), "html", null, true);
                 echo "</th>\n                                <th colspan=\"3\"></th>\n                                <th>\n                                    <input id=\"toggle-event\"\n                                           checked  type=\"checkbox\" data-toggle=\"toggle\"\n                                           data-width=\"100\" data-height=\"10\"\n                                           data-on=\"universitaire\" data-off=\"civile\"\n                                           data-onstyle=\"warning\" data-offstyle=\"info\"><br>\n                                </th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 505
             echo "                          ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ASA'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 506
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 510
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "tabHSF")) != 0) {
         // line 511
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\" id=\"table_asa\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">R&eacute;cup&eacute;ration d'heure suppl&eacute;mentaire et heure de fractionnement</td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date</th>\n                          <th>Type de r&eacute;cup&eacute;ration</th>\n                          <th>Nombre d'heures</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          ";
         // line 524
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 525
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 527
         echo "                        </tr>\n                          ";
         // line 528
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "tabHSF"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $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["HSF"]) {
             // line 529
             echo "                          \n                        <tr id =\"";
             // line 530
             echo twig_escape_filter($this->env, $this->getAttribute($context["HSF"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 531
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 532
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "date", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 533
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["HSF"], "Category", array()), "categoryName", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 534
             $context["nbh"] = twig_split_filter($this->env, $this->getAttribute($context["HSF"], "nbheure", array()), ".");
             // line 535
             echo "                          <td class=\"demiJ2\">";
             if ($this->getAttribute($this->getContext($context, "nbh", true), 0, array(), "any", true, true)) {
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 0, array()), "html", null, true);
             }
             if ($this->getAttribute($this->getContext($context, "nbh", true), 1, array(), "any", true, true)) {
                 echo "h";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute(twig_split_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 1, array()), "", 1), 0, array()) * 0.6), "html", null, true);
                 echo "0";
             }
             echo "</span></td>\n                          <td>";
             // line 536
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 537
             if (twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 538
                 echo "                                           En cours de traitement\n                                    ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 540
                 echo "                                           Refus&eacute;\n                                    ";
             } elseif (null === $this->getAttribute($context["HSF"], "Accepted", array())) {
                 // line 542
                 echo "                                           Envoy&eacute;\n                                    ";
             } else {
                 // line 544
                 echo "                                       ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                    ";
             }
             // line 546
             echo "                          </td>\n                          ";
             // line 547
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 548
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id-hsf='";
                 // line 549
                 echo twig_escape_filter($this->env, $this->getAttribute($context["HSF"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                        <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 554
             echo "                        </tr>\n                        ";
             // line 555
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 556
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th></th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 563
             echo "                          ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['HSF'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 564
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 568
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "autres")) != 0) {
         // line 569
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">Autre</td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>D&eacute;but</th>\n                          <th>fin</th>\n                          <th>Type d'absence</th>\n                          <th>Nombre de jours</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          ";
         // line 583
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 584
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 586
         echo "                        </tr>\n                          ";
         // line 587
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "autres"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $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["autre"]) {
             // line 588
             echo "                          \n                        <tr id =\"";
             // line 589
             echo twig_escape_filter($this->env, $this->getAttribute($context["autre"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 590
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 591
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 592
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 593
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["autre"], "Category", array()), "categoryName", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 594
             $context["nbh"] = twig_split_filter($this->env, $this->getAttribute($context["autre"], "nbjournee", array()), ".");
             // line 595
             echo "                          <td class=\"demiJ2\">";
             if ($this->getAttribute($this->getContext($context, "nbh", true), 0, array(), "any", true, true)) {
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 0, array()), "html", null, true);
             }
             if ($this->getAttribute($this->getContext($context, "nbh", true), 1, array(), "any", true, true)) {
                 echo "h";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getContext($context, "nbh"), 1, array()) * 0.6), "html", null, true);
                 echo "0";
             }
             echo "</span></td>\n                          <td>";
             // line 596
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 597
             if (twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 598
                 echo "                                           En cours de traitement\n                                    ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 600
                 echo "                                           Refus&eacute;\n                                    ";
             } elseif (null === $this->getAttribute($context["autre"], "Accepted", array())) {
                 // line 602
                 echo "                                           Envoy&eacute;\n                                    ";
             } else {
                 // line 604
                 echo "                                       ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                    ";
             }
             // line 606
             echo "                          </td>\n                          ";
             // line 607
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 608
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id-hsf='";
                 // line 609
                 echo twig_escape_filter($this->env, $this->getAttribute($context["autre"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                        <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 614
             echo "                        </tr>\n                        ";
             // line 615
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 616
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th></th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 623
             echo "                          ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['autre'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 624
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 628
     echo "            </div><!-- /.col -->\n          </div><!-- /.row -->\n        </section><!-- /.content -->\n      </div><!-- /.content-wrapper -->\n \n      ";
     // line 634
     echo "        <div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">\n          <div class=\"modal-dialog\" role=\"document\">\n            <div class=\"modal-content\">\n              <div class=\"modal-header\">\n                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n                <h4 class=\"modal-title\" id=\"exampleModalLabel\">New message</h4>\n              </div>\n              <div class=\"modal-body\">\n                  Etes vous sur de vouloir supprimer l'evenement ?\n              </div>\n              <div class=\"modal-footer\">\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Non</button>\n                <a type=\"button\" class=\"btn btn-danger\" id=\"annuler_event\" href='' ><i class=\"fa fa-times\"> Oui</i> </a>\n              </div>\n            </div>\n          </div>\n        </div>\n      \n      <footer class=\"main-footer hidden-print\">\n        <div class=\"pull-right hidden-xs\">\n          <b>Version</b> 2.0\n        </div>\n        <strong>Copyright &copy; 2015 <a href=\"\">Cedric GUICHERD</a>.</strong> \n      </footer>\n    </div><!-- ./wrapper -->\n";
     // line 659
     $this->displayBlock('javascript', $context, $blocks);
     // line 748
     echo "\n  </body>\n</html>\n      ";
 }
コード例 #11
0
ファイル: Core.php プロジェクト: apishka/templater
/**
 * Returns a new date object modified.
 *
 * <pre>
 *   {{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
 * </pre>
 *
 * @param Apishka_Templater_Environment $env      A Apishka_Templater_Environment instance
 * @param DateTimeInterface|string      $date     A date
 * @param string                        $modifier A modifier string
 *
 * @return DateTimeInterface A new date object
 */
function twig_date_modify_filter(Apishka_Templater_Environment $env, $date, $modifier)
{
    $date = twig_date_converter($env, $date, false);
    return $date->modify($modifier);
}
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "    ";
     $this->env->loadTemplate("@AirBlog/Template/flashMsg.html.twig")->display($context);
     // line 9
     echo "    <article class=\"post\">\n        <header>\n            <h1>";
     // line 11
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : null, "title", array()), "html", null, true);
     echo "</h1>\n\n            <div class=\"meta-data\">\n                <div class=\"author\">Autor <a href=\"#\">";
     // line 14
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : null, "author", array()), "username", array()), "html", null, true);
     echo "</a></div>\n                <div class=\"create-date\">";
     // line 15
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : null, "publishedDate", array()), "d.m.Y, H:m"), "html", null, true);
     echo "</div>\n            </div>\n        </header>\n\n        <div class=\"thumbnail\">\n            <div class=\"meta-data\">\n                <div class=\"categories\">\n                    Kategoria:\n                    <a href=\"";
     // line 23
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("blog_category", array("slug" => $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : null, "category", array()), "slug", array()))), "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : null, "category", array()), "title", array()), "html", null, true);
     echo "</a>\n                </div>\n\n                <div class=\"tags\">\n                    Tagi:\n                    ";
     // line 28
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["post"]) ? $context["post"] : null, "tags", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
         // line 29
         echo "                    <a href=\"#\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "title", array()), "html", null, true);
         echo "</a>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 31
     echo "                </div>\n            </div>\n\n            <img src=\"";
     // line 34
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/airblog/images/default-thumbnail.jpg"), "html", null, true);
     echo "\" alt=\"\">\n        </div>\n\n        <p>";
     // line 37
     echo $this->getAttribute(isset($context["post"]) ? $context["post"] : null, "content", array());
     echo "</p>\n\n\n    </article> <!-- .post -->\n\n    <section class=\"post-comments\" id=\"post-comments\">\n        <header>\n            <h3>Komentarze (";
     // line 44
     echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["post"]) ? $context["post"] : null, "comments", array())), "html", null, true);
     echo ")</h3>\n        </header>\n        ";
     // line 47
     echo "        ";
     if ($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array())) {
         // line 48
         echo "            <div class=\"comment\">\n                <img class=\"thumbnail\" src=\"";
         // line 49
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array()), "avatar", array())), "html", null, true);
         echo "\" alt=\"\">\n\n                <div class=\"body\">\n                    <div class=\"author\">";
         // line 52
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "user", array()), "username", array()), "html", null, true);
         echo "</div>\n                    <div class=\"create-date\">";
         // line 53
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_date_converter($this->env), "d/m/Y"), "html", null, true);
         echo "</div>\n\n                    <div class=\"clearfix\"></div>\n\n                    ";
         // line 65
         echo "\n                    ";
         // line 66
         $this->env->getExtension('form')->renderer->setTheme(isset($context["commentForm"]) ? $context["commentForm"] : null, array(0 => "AirBlogBundle:Form:form_template.html.twig"));
         // line 67
         echo "                    ";
         echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["commentForm"]) ? $context["commentForm"] : null, 'form', array("action" => "#post-comments"));
         echo "\n                </div>\n            </div>\n        ";
     }
     // line 71
     echo "\n        ";
     // line 72
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["post"]) ? $context["post"] : null, "comments", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
         // line 73
         echo "            <div class=\"comment\">\n                <img class=\"thumbnail\" src=\"";
         // line 74
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($this->getAttribute($this->getAttribute($context["comment"], "author", array()), "avatar", array())), "html", null, true);
         echo "\" alt=\"\">\n\n                <div class=\"body\">\n                    <div class=\"author\">\n                        ";
         // line 78
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["comment"], "author", array()), "username", array()), "html", null, true);
         echo "\n                        ";
         // line 79
         if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) {
             // line 80
             echo "                        <div class=\"divider\"></div>\n                            ";
             // line 81
             $context["commentToken"] = $this->getAttribute(isset($context["csrfProvider"]) ? $context["csrfProvider"] : null, "generateCsrfToken", array(0 => sprintf(isset($context["tokenName"]) ? $context["tokenName"] : null, $this->getAttribute($context["comment"], "id", array()))), "method");
             // line 82
             echo "                            ";
             $context["deleteUrl"] = $this->env->getExtension('routing')->getPath("blog_deleteComment", array("commentId" => $this->getAttribute($context["comment"], "id", array()), "token" => isset($context["commentToken"]) ? $context["commentToken"] : null));
             // line 83
             echo "                        <a class=\"delete delete-comment\" href=\"";
             echo twig_escape_filter($this->env, isset($context["deleteUrl"]) ? $context["deleteUrl"] : null, "html", null, true);
             echo "\">Usuń</a>\n                        ";
         }
         // line 85
         echo "\n                    </div>\n                    <div class=\"create-date\">";
         // line 87
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["comment"], "createDate", array()), "d/m/Y"), "html", null, true);
         echo "</div>\n\n                    <div class=\"clearfix\"></div>\n\n                    <p>";
         // line 91
         echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "comment", array()), "html", null, true);
         echo "</p>\n                </div>\n            </div>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 95
     echo "    </section>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<html>\n  <head>\n    <meta charset=\"UTF-8\">\n    <title>AGeCo | Calendrier des absences</title>\n    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n    <style>\n        .bordure{\n            border: 1px solid #D2D6DE;\n            padding: 5px;\n        }\n        \n    </style>\n  </head>\n  <body class=\"skin-blue\">\n    <div class=\"wrapper\">\n      \n      ";
     // line 17
     echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("OCCalendrierBundle:Default:menu"));
     echo "\n      <!-- Right side column. Contains the navbar and content of the page -->\n      <div class=\"content-wrapper\">\n        <!-- Content Header (Page header) -->\n        <section class=\"content-header\">\n          <h1>\n            Calendrier des absences \n            <small>Edition BRH </small>\n          </h1>\n          <ol class=\"breadcrumb\">\n            <li><a href=\"#\"><i class=\"fa fa-dashboard\"></i> Home</a></li>\n            <li class=\"active\">Calendar</li>\n          </ol>\n        </section>\n        \n        <!-- Main content -->\n        <section class=\"content\">\n            \n          <div class=\"row\">\n            <div class=\"col-md-3\" style=\"min-width:250px\">\n             ";
     // line 37
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session", array()), "flashbag", array()), "get", array(0 => "notice"), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
         if ($this->getAttribute($context["flashMessage"], "alert", array(), "any", true, true)) {
             // line 38
             echo "                \n                <div class=\"alert alert-";
             // line 39
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "alert", array()), "html", null, true);
             echo " alert-dismissible col-md-8\" role=\"alert\">\n                    <button type=\"button\" class=\"close\" data-dismiss=\"alert\">\n                        <span aria-hidden=\"true\">&times;</span><span class=\"sr-only\">Close</span>\n                    </button>\n                    <strong>";
             // line 43
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "title", array()), "html", null, true);
             echo "</strong> ";
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "message", array()), "html", null, true);
             echo "\n                </div><br><br>\n             ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 46
     echo "             <br>\n             <div id=\"tabs\">\n                 <ul class=\"nav nav-tabs\" role=\"tablist\">\n                    <li role=\"presentation\" onclick=\"ChangeView('month');\"class=\"active\"><a href=\"#Absence\" aria-controls=\"home\" role=\"tab\" data-toggle=\"tab\">Absences</a></li>\n                    <li role=\"presentation\" onclick=\"ChangeView('agendaWeek');\"><a href=\"#hsf\" aria-controls=\"profile\" role=\"tab\" data-toggle=\"tab\">Heures Frac</a></li>\n                  </ul>\n                </ul>\n                <div id=\"Absence\">   \n                    <div class=\"box box-solid\">\n                   <div class=\"box-header with-border\">\n                     <h3 class=\"box-title\">Poser un congé :</h3>\n                       <div class=\"box-body\">\n                           ";
     // line 58
     echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "form"), 'form_start', array("attr" => array("class" => "form-horizontal")));
     echo "\n                           ";
     // line 59
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'errors');
     echo "\n\n                               ";
     // line 61
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Agent", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Agent : "));
     echo "\n                               ";
     // line 62
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Agent", array()), 'errors');
     echo "\n                               ";
     // line 63
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Agent", array()), 'widget', array("attr" => array("class" => "form-control", "onchange" => "calcOpenDaysJS();recupAbsenceByAgent()")));
     echo "\n                               <br>\n                               ";
     // line 65
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "debut", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Debut inclus : "));
     echo "\n                               ";
     // line 66
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "debut", array()), 'errors');
     echo "\n                               ";
     // line 67
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "debut", array()), 'widget', array("attr" => array("class" => "bordure", "onchange" => "calcOpenDaysJS()")));
     echo "\n                               <br>\n                               ";
     // line 69
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "fin", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Fin inclus :"));
     echo "\n                               ";
     // line 70
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "fin", array()), 'errors');
     echo "\n                               ";
     // line 71
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "fin", array()), 'widget', array("attr" => array("class" => "bordure selectFin", "onchange" => "calcOpenDaysJS()")));
     echo "\n                               <br>\n                               ";
     // line 73
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "nb_journee", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Nombre de journées :"));
     echo "\n                               ";
     // line 74
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "nb_journee", array()), 'errors');
     echo "\n                               ";
     // line 75
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "nb_journee", array()), 'widget', array("attr" => array("class" => "form-control", "value" => "0")));
     echo "\n                               <br>\n                               ";
     // line 77
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Category", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Type d'absence"));
     echo "\n                               ";
     // line 78
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Category", array()), 'errors');
     echo "\n                               ";
     // line 79
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Category", array()), 'widget', array("attr" => array("class" => "form-control", "onchange" => "jsfunc1();calcOpenDaysJS()")));
     echo "\n\n                               <div id=\"precisez\" style=\"visibility:hidden\" >\n                               ";
     // line 82
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Commentaire", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Précisez : "));
     echo "\n                               ";
     // line 83
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Commentaire", array()), 'errors');
     echo "\n                               ";
     // line 84
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Commentaire", array()), 'widget', array("attr" => array("class" => "form-control")));
     echo "                                                                                               \n                               </div>\n\n                               <br>\n                               ";
     // line 88
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "form"), "Sauvegarder", array()), 'widget', array("attr" => array("class" => "form-control btn btn-primary")));
     echo "\n                         ";
     // line 89
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "form"), 'rest');
     echo "\n                         ";
     // line 90
     echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "form"), 'form_end');
     echo "\n                       </div>\n                   </div>\n                 </div>\n                </div><!-- /#tabs-1 -->\n                <div id=\"hsf\">\n                                        <div class=\"box box-solid\">\n                <div class=\"box-header with-border\">\n                  <h3 class=\"box-title\">Faire une demande de r&eacute;cupération d'heure : </h3>\n                </div>\n                <div class=\"box-body\">\n                      ";
     // line 101
     echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "formHSF"), 'form_start', array("attr" => array("class" => "form-horizontal")));
     echo "\n                      \n                      ";
     // line 103
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "formHSF"), 'errors');
     echo "\n                      \n                            ";
     // line 105
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Agent", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Agent : "));
     echo "\n                            ";
     // line 106
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Agent", array()), 'errors');
     echo "\n                            ";
     // line 107
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Agent", array()), 'widget', array("attr" => array("class" => "form-control", "onchange" => "calcOpenDaysJS();recupAbsenceByAgent( \$(\"#oc_calendrierbundle_heuresupfrac_Agent\").val())")));
     echo "\n                            <br>\n                            ";
     // line 109
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "date", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Date"));
     echo "\n                            ";
     // line 110
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "date", array()), 'errors');
     echo "\n                            ";
     // line 111
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "date", array()), 'widget', array("attr" => array("class" => "bordure")));
     echo "\n                            <br>\n                            ";
     // line 113
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "AM - PM"));
     echo "\n                            ";
     // line 114
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 'errors');
     echo "<br>\n                            <div class=\"bordure\" style=\"min-width:200px\">\n                            ";
     // line 116
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 0, array()), 'widget', array("attr" => array("onclick" => "renderEventMatin();calcHoursJS()")));
     echo "\n                            ";
     // line 117
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 0, array()), 'label', array("label" => "Matin"));
     echo "<br>\n                            ";
     // line 118
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 1, array()), 'widget', array("attr" => array("onclick" => "renderEventAprem();calcHoursJS()")));
     echo "\n                            ";
     // line 119
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 1, array()), 'label', array("label" => "Après midi"));
     echo "<br>\n                            ";
     // line 120
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 2, array()), 'widget', array("attr" => array("onclick" => "renderEventJournee();calcHoursJS()")));
     echo "\n                            ";
     // line 121
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getAttribute($this->getContext($context, "formHSF"), "AmPmJH", array()), 2, array()), 'label', array("label" => "Journee"));
     echo "\n                            </div>\n                            <br>\n                            \n                            ";
     // line 125
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "nbheure", array()), 'label', array("label_attr" => array("class" => "control-label "), "label" => "Nombre d'heures"));
     echo "\n                            ";
     // line 126
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "nbheure", array()), 'errors');
     echo "\n                            ";
     // line 127
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "nbheure", array()), 'widget', array("attr" => array("class" => "form-control ")));
     echo "\n                            <br>\n                            \n                            ";
     // line 130
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Category", array()), 'label', array("label_attr" => array("class" => "control-label"), "label" => "Catégorie"));
     echo "\n                            ";
     // line 131
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Category", array()), 'errors');
     echo "\n                            ";
     // line 132
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Category", array()), 'widget', array("attr" => array("class" => "form-control selectFin")));
     echo "\n                            <br>\n                            \n                            <br>\n                            ";
     // line 136
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($this->getContext($context, "formHSF"), "Sauvegarder", array()), 'widget', array("attr" => array("class" => "form-control btn btn-primary")));
     echo "\n                      ";
     // line 137
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getContext($context, "formHSF"), 'rest');
     echo "\n                      ";
     // line 138
     echo $this->env->getExtension('form')->renderer->renderBlock($this->getContext($context, "formHSF"), 'form_end');
     echo "\n                </div>\n              </div>\n                </div><!-- /#tabs-2 -->\n             </div>\n            </div><!-- /.col -->\n            <div class=\"col-md-9\">\n              <div class=\"box box-primary\">\n                <div class=\"box-body no-padding\">\n                    <!-- THE CALENDAR -->\n                    <div id=\"calendar\"></div>\n                    <!-- Modal onclick -->\n                    <div id=\"fullCalModal\" class=\"modal fade\">\n                        <div class=\"modal-dialog\">\n                            <div class=\"modal-content\">\n                                <div class=\"modal-header\">\n                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\"><span aria-hidden=\"true\">&times;</span> <span class=\"sr-only\">close</span></button>\n                                    <h4 id=\"modalTitle\" class=\"modal-title\"></h4>\n                                </div>\n                                <div id=\"modalBody\" class=\"modal-body\"></div>\n                                <div class=\"modal-footer\">\n                                    <button class=\"btn btn-default\" data-dismiss=\"modal\">Fermer</button>\n                                    <a id=\"eventUrl\" target=\"_blank\" class=\"btn btn-primary\">Plus d'information</a>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div><!-- /.box-body -->\n              </div><!-- /. box -->\n            </div><!-- /.col -->\n          </div><!-- /.row -->\n        </section><!-- /.content -->\n      </div><!-- /.content-wrapper -->\n         <footer class=\"main-footer\">\n        <div class=\"pull-right hidden-xs\">\n          <b>Version</b> 2.0\n        </div>\n             <strong>Copyright &copy; ";
     // line 175
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_date_converter($this->env, "now"), "Y"), "html", null, true);
     echo " Cédric GUICHERD</a>.</strong> All rights reserved.\n      </footer>\n    </div><!-- ./wrapper -->\n";
     // line 178
     $this->displayBlock('stylesheet', $context, $blocks);
     // line 183
     $this->displayBlock('javascript', $context, $blocks);
     // line 478
     echo "  </body>\n</html>\n      ";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<br>\n<br>\n";
     // line 3
     if (isset($context["listado_registros"]) ? $context["listado_registros"] : $this->getContext($context, "listado_registros")) {
         // line 4
         echo "\n    ";
         // line 5
         $this->env->loadTemplate("sisconeeAdministracionBundle::flashmessages.html.twig")->display($context);
         // line 6
         echo "\n    <div><span>Consumo Acumulado General del Servicio: </span><span id=\"acumulado_servicio\" class=\"label label-info\">";
         // line 7
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["consumoAcumulado"]) ? $context["consumoAcumulado"] : $this->getContext($context, "consumoAcumulado"), 0, array(), "array"), "cantidad", array(), "array"), "html", null, true);
         echo "</span></div>\n\n    ";
         // line 9
         if (isset($context["hasPlanHorarioPico"]) ? $context["hasPlanHorarioPico"] : $this->getContext($context, "hasPlanHorarioPico")) {
             // line 10
             echo "    <div><span>Consumo Acumulado para el Horario Pico del Servicio: </span><span id=\"acumulado_hp_servicio\" class=\"label label-info\">";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["consumoAcumulado"]) ? $context["consumoAcumulado"] : $this->getContext($context, "consumoAcumulado"), 0, array(), "array"), "cantidadHP", array(), "array"), "html", null, true);
             echo "</span></div>\n   ";
         }
         // line 12
         echo "\n<h1>Listado de los registros de plan y consumo diario</h1>\n<TABLE class=\"table table-striped table-bordered table-hover\">\n    <TR>\n        <TH>Fecha</TH>\n        <TH>Plan Diario</TH>\n        <TH>Consumo</TH>\n        ";
         // line 19
         if (isset($context["hasPlanHorarioPico"]) ? $context["hasPlanHorarioPico"] : $this->getContext($context, "hasPlanHorarioPico")) {
             // line 20
             echo "        <TH>Plan de Horario Pico</TH>\n        <TH>Consumo de Horario Pico</TH>\n        ";
         }
         // line 23
         echo "        <TH>Acciones</TH>\n    </TR>\n            ";
         // line 25
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["listado_registros"]) ? $context["listado_registros"] : $this->getContext($context, "listado_registros"));
         foreach ($context['_seq'] as $context["_key"] => $context["r"]) {
             // line 26
             echo "                <TR>\n                <TD>";
             // line 27
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getFecha"), "d/m/Y"), "html", null, true);
             echo "</TD>\n                <TD>";
             // line 28
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlan"), "html", null, true);
             echo "</TD>\n                <TD ";
             // line 29
             if ($this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumo") > $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlan")) {
                 echo " class=\"texto_alerta\" ";
             }
             echo " > ";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumo"), "html", null, true);
             echo " </TD>\n                ";
             // line 30
             if (isset($context["hasPlanHorarioPico"]) ? $context["hasPlanHorarioPico"] : $this->getContext($context, "hasPlanHorarioPico")) {
                 // line 31
                 echo "                <TD>";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlanHorariopico"), "html", null, true);
                 echo "</TD>\n                <TD ";
                 // line 32
                 if ($this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumoHorariopico") > $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlanHorariopico")) {
                     echo " class=\"texto_alerta\" ";
                 }
                 echo " > ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumoHorariopico"), "html", null, true);
                 echo " </TD>\n                ";
             }
             // line 34
             echo "                <TD>";
             if (twig_date_converter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getFecha")) >= twig_date_converter($this->env, isset($context["diasPermitidos"]) ? $context["diasPermitidos"] : $this->getContext($context, "diasPermitidos")) && twig_date_converter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getFecha")) <= twig_date_converter($this->env)) {
                 echo "<a id=\"editar\" onclick=\" \$('#dialog').data('planDia',";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlan"), "html", null, true);
                 echo ");\n                    \$('#dialog').data('planDiaHorarioPico',";
                 // line 35
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getPlanHorariopico"), "html", null, true);
                 echo ");\n                    \$('#dialog').data('consumoDia',";
                 // line 36
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumo"), "html", null, true);
                 echo ");\n                    \$('#dialog').data('consumoDiaHorarioPico',";
                 // line 37
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getConsumoHorariopico"), "html", null, true);
                 echo ");\n                    \$('#dialog').data('idRegistro',";
                 // line 38
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["r"]) ? $context["r"] : $this->getContext($context, "r"), "getId"), "html", null, true);
                 echo ");\n\n                    \$('#dialog').dialog('open'); \" ";
                 // line 40
                 echo "><span class=\"glyphicon glyphicon-pencil\"></span>Editar</a>";
             }
             // line 41
             echo "                </TD>\n                </TR>\n\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['r'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 45
         echo "\n</TABLE>\n";
     } else {
         // line 48
         echo "    <p>No existe planificaci&oacute;n para los datos seleccionados</p>\n";
     }
     // line 50
     echo "\n\n\n\n\n\n\n\n\n\n";
 }
コード例 #15
0
ファイル: Core.php プロジェクト: TiGR/Twig
/**
 * Returns a new date object modified
 *
 * <pre>
 *   {{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
 * </pre>
 *
 * @param Twig_Environment  $env      A Twig_Environment instance
 * @param DateTime|string   $date     A date
 * @param string            $modifier A modifier string
 *
 * @return DateTime A new date object
 */
function twig_date_modify_filter(Twig_Environment $env, $date, $modifier)
{
    $date = twig_date_converter($env, $date, false);
    $date->modify($modifier);
    return $date;
}
コード例 #16
0
ファイル: Core.php プロジェクト: stler/NMFrame
/**
 * Returns a new date object modified
 *
 * <pre>
 *   {{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
 * </pre>
 *
 * @param Twig_Environment  $env      A Twig_Environment instance
 * @param DateTime|string   $date     A date
 * @param string            $modifier A modifier string
 *
 * @return DateTime A new date object
 */
function twig_date_modify_filter(Twig_Environment $env, $date, $modifier)
{
    $date = twig_date_converter($env, $date, false);
    $resultDate = $date->modify($modifier);
    // This is a hack to ensure PHP 5.2 support and support for DateTimeImmutable
    // DateTime::modify does not return the modified DateTime object < 5.3.0
    // and DateTimeImmutable does not modify $date.
    return null === $resultDate ? $date : $resultDate;
}
コード例 #17
0
 /**
  * @param Twig_Environment $env
  * @param DateTime $date
  * @param string $format
  * @param mixed $timezone
  * @return string
  */
 public function strftime(Twig_Environment $env, DateTime $date, $format = "%B %e, %Y %H:%M", $timezone = null)
 {
     $date = twig_date_converter($env, $date, $timezone);
     return strftime($format, $date->getTimestamp());
 }