<?php

/* DorcasTabithaBundle:Default:index.html.twig */
class __TwigTemplate_33b6c4c7a6a18327590b1db8ae234bda extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base.html.twig");

        $this->blocks = array(
            'body' => array($this, 'block_body'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "::base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 5
    public function block_body($context, array $blocks = array())
    {
        // line 6
        echo "
    <div id=\"navbar\" style=\"font-size:18px;\">   
        <ul>       
            <li><a href=\"";
        // line 9
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_homepage"), "html", null, true);
        echo "\"
                style=\"background-color:#00b5cb; font-size:30px;\">Home</a></li>
            <li><a href=\"";
        // line 11
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_search_show"), "html", null, true);
        echo "\">Client Search</a></li> 
            <li><a href=\"";
        // line 12
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_clientinformation_new"), "html", null, true);
        echo "\">New Client</a></li> 
            ";
        // line 13
        if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) {
            // line 14
            echo "                <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_users_show"), "html", null, true);
            echo "\">Users</a></li> 
                <li><a href=\"";
            // line 15
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_message_show"), "html", null, true);
            echo "\">Message/Reports</a></li>
            ";
        } else {
            // line 17
            echo "                <li><a href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_profile_show"), "html", null, true);
            echo "\">User Profile</a></li>
            ";
        }
        // line 19
        echo "        </ul> 
    </div>

    ";
        // line 22
        if ($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session"), "hasFlash", array(0 => "notice"), "method")) {
            // line 23
            echo "                    <div class=\"flash-notice\" style=\"display:none;\">
                        <br />
                        ";
            // line 25
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session"), "flash", array(0 => "notice"), "method"), "html", null, true);
            echo "
                    </div>
        ";
        }
        // line 28
        echo "
  <br>

<h5 style=\"color:#304145; padding-left:20px;\" >
Hi ";
        // line 32
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user"), "firstname"), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user"), "lastname"), "html", null, true);
        echo ",  <br /> Welcome to the <big>Tabitha 
    C</big><small>lient</small> <big>S</big><small>ervices</small> <big>M</big><small>anagement</small>
     <big>S</big><small>ystem</small>.
</h5>
        
        <style>
            #container { position: relative; z-index: 4; padding: 5px; background-color: white; width: 60%; margin-left: 20%; margin-top: 5%;}
        </style>

        Number of client records in the database: 
         <canvas id=\"odoCanvas\" height=\"50\" width=\"300\">No canvas support!</canvas>

<br>&nbsp;<br> 

    <div id=\"manager\" style=\"border:5px solid #00b5cb; padding: 10px; border-radius: 9px;\">
        <center><h2>Manager's Message</h2></center>
            ";
        // line 48
        echo $this->env->getExtension('actions')->renderAction("DorcasTabithaBundle:Default:message", array(), array());
        // line 49
        echo "    </div>
    <br>&nbsp;<br> 
\t<br>&nbsp;<br> 

<input type=\"hidden\" value=";
        // line 53
        echo twig_escape_filter($this->env, $this->getContext($context, "totalrecs"), "html", null, true);
        echo " id=\"totalrecs\" />
   
";
    }

    // line 57
    public function block_javascripts($context, array $blocks = array())
    {
        // line 58
        echo "
    ";
        // line 59
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo " 

   <script type=\"text/javascript\">

    function goBack()
    {
        window.history.back()
    }


    window.onload = run(document.getElementById(\"totalrecs\").value);


    //      var n = 1;
            var odo;

            function run(n) {
                var ctx = document.getElementById('odoCanvas').getContext('2d');
                odo = new odometer(ctx, {
                                    height: 40,
                                    digits: 6,
                                    decimals: 0,
                                    value: n,
                                    wobbleFactor: 0.07
                                    });
                odo.setValue(n);            
//              update();
            }

            function update() {
                n += 0.0001
                odo.setValue(n);
                setTimeout(\"update()\", 50);
            }               


    </script>          
 
";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Default:index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  131 => 59,  128 => 58,  125 => 57,  118 => 53,  112 => 49,  110 => 48,  89 => 32,  83 => 28,  77 => 25,  73 => 23,  71 => 22,  66 => 19,  60 => 17,  55 => 15,  50 => 14,  48 => 13,  44 => 12,  40 => 11,  35 => 9,  30 => 6,  27 => 5,);
    }
}
