<?php

/* DorcasTabithaBundle:Search:searchform.html.twig */
class __TwigTemplate_36556ed47757f8d7a8672d30947b5a7d 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 3
    public function block_body($context, array $blocks = array())
    {
        // line 4
        echo "
<div id=\"navbar\" style=\"font-size:18px;\">   
    <ul>       
        <li><a href=\"";
        // line 7
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_homepage"), "html", null, true);
        echo "\">Home</a></li>
        <li><a href=\"";
        // line 8
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_search_show"), "html", null, true);
        echo "\" style=\"background-color:#00b5cb; font-size:30px;\">Client Search</a></li> 
        <li><a href=\"";
        // line 9
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_clientinformation_new"), "html", null, true);
        echo "\">New Client</a></li> 
        ";
        // line 10
        if ($this->env->getExtension('security')->isGranted("ROLE_ADMIN")) {
            // line 11
            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 12
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("DorcasTabithaBundle_message_show"), "html", null, true);
            echo "\">Message/Reports</a></li>
        ";
        }
        // line 13
        echo "  
    </ul> 
</div>
    <section class=\"user\" id=\"users\">
                ";
        // line 18
        echo "        <br/>
        <input type=button onClick=\"location.href='javascript: clearform()'\" value='Clear Search' style=\"color:#00b5cb; background-color:white; margin-right: 30px;\">
        ";
        // line 20
        echo $this->env->getExtension('actions')->renderAction("DorcasTabithaBundle:Search:new", array(), array());
        // line 21
        echo "
    </section>

    <section class=\"users\" id=\"users\">
        <section class=\"previous-users\">  
           ";
        // line 26
        if (array_key_exists("clients", $context)) {
            // line 27
            echo "               ";
            $this->env->loadTemplate("DorcasTabithaBundle:Search:searchloop.html.twig")->display(array_merge($context, array("clients" => $this->getContext($context, "clients"), "numberrecords" => $this->getContext($context, "numberrecords"))));
            // line 28
            echo "           ";
        } else {
            // line 29
            echo "               <p> </p>
                <br />
           ";
        }
        // line 32
        echo "
            
        </section>
    </section>

    </div>
</div>

";
    }

    // line 42
    public function block_javascripts($context, array $blocks = array())
    {
        // line 43
        echo "
    ";
        // line 44
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo " 

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

function displayemail()
{
    var textareaid = document.getElementById('clientinformationform_emailList');
    textareaid.style.display='block';
}

function clearform()
{
    var textboxid = document.getElementById('clientinformationform_ssn');
    textboxid.value = \"\";
    var input = document.getElementById('clientinformationform_first_name');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_last_name');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_alias');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_current_address');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_prev_address1');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_other_adult_oneLastName');
    input.value = \"\";
    var input = document.getElementById('clientinformationform_other_adult_twoLastName');
    input.value = \"\";  
    var input = document.getElementById('clientinformationform_other_adult_oneFirstName');
    input.value = \"\";  
    var input = document.getElementById('clientinformationform_other_adult_twoFirstName');
    input.value = \"\";  
}          
 
</script>

";
    }

    public function getTemplateName()
    {
        return "DorcasTabithaBundle:Search:searchform.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  109 => 44,  106 => 43,  103 => 42,  91 => 32,  86 => 29,  83 => 28,  80 => 27,  78 => 26,  71 => 21,  69 => 20,  65 => 18,  59 => 13,  54 => 12,  49 => 11,  47 => 10,  43 => 9,  39 => 8,  35 => 7,  30 => 4,  27 => 3,);
    }
}
