


 <h4>Search Results</h4>
 
<div style="width:1200px; height: 300px; overflow-x: auto; overflow-y: auto;">  
<div style="width:1800px; font-size: 14px; font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; padding-left: 5px;">
 
 
	
    <div style="width:8%; float:left; margin-left:8.5%;">
        SSN
    </div>
    <div style="width:9%; float:left;">
        Last Name           
    </div>
    <div style="width:9%; float:left;">
        First Name        
    </div>
	<div style="width:8%; float:left;">
        Alias         
    </div>
    <div style="width:12%; float:left;">
        Address         
    </div>
    <div style="width:9%; float:left;">
        OA One   
		Last Name     
    </div>
    <div style="width:9%; float:left; padding-left:43px;">
        OA One 
		First Name   
    </div>
    <div style="width:9%; float:left; padding-left:43px;">
        OA Two 
		Last Name        
    </div>
    <div style="width:9%; float:left; padding-left:63px;">
        OA Two 
		First Name   
    </div>
		
{% set clientEmailList = "" %}

<br/>&nbsp;
<hr size="2" color="black" noshade/>

{% if clients is defined %}
Number of records returned = {{ numberrecords }} / Number of Records matched = {{ allnumberrecords }}
{% for client in clients %}
    
    <article style="background-color: #00b5cb; padding-top: 8px; padding-left: 5px;">
        <div style="width:8%; float:left; position:relative; top:-4px;">
            {% set urlpath = path('DorcasTabithaBundle_clientinformation_show', { 'client_id' : client.client_id } ) %}
            <input type="button" value="Select" onClick="location.href='{{ urlpath }}'"/>

            {% if is_granted('ROLE_ADMIN') %}
                {% set urlpath = path('DorcasTabithaBundle_search_delete', { 'client_id' : client.client_id } ) %}
                <input type="button" value="Delete" onClick='warnUsersDelete("{{ urlpath }}")' />
          {% endif %}    
				
        </div>
			
        <div style="font-size: 14px; font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; background-color: #00b5cb; color:white;">
		
            <div style="width:8%; float:left;">
                        {{ client.ssn}} &nbsp;
            </div>
            <div style="width:9%; float:left;">
                        {{ client.last_name|slice(0,16) }} &nbsp;
            </div>
            <div style="width:9%; float:left;">
                        {{ client.first_name|slice(0,20) }} &nbsp;
            </div>
			<div style="width:8%; float:left;">
                        {{ client.alias|slice(0,14) }} &nbsp;
            </div>
            <div style="width:12%; float:left;">
                        {{ client.current_address|slice(0,20) }} &nbsp;
            </div>
            <div style="width:11%; float:left;">
                        {{ client.other_adult_oneLastName|slice(0,16) }} &nbsp;
            </div>
            <div style="width:12%; float:left;">
                        {{ client.other_adult_oneFirstName|slice(0,16) }} &nbsp;
            </div>
            <div style="width:12%; float:left;">
                        {{ client.other_adult_twoLastName|slice(0,16) }} &nbsp;
            </div>
            <div style="width:11%; float:left;">
                        {{ client.other_adult_twoFirstName|slice(0,16) }} &nbsp;
            </div>
           

             	
        </div>
       <br>
            <hr size="0" color="black" noshade/>
    </article>

    {% if client.email is not empty %}	
    {% set clientEmailList =  [clientEmailList, client.email]|join('; ') %} 
    {% endif %}
		
{% else %}
    <p>There are no matches for the search criteria. </p>

{% endfor %}

</div>
</div>

{% endif %}

<br />

<input type=button onClick="location.href='javascript: displayemail()'" value='Display Email' style="color:#00b5cb; background-color:white; font-size: 12px;">

<div id="emailList" style="display:none;">
    <br />
    <textarea rows="2" cols="80" readonly=true, style="font-size: 12px;">{{ clientEmailList }}</textarea> 
</div>

<br/><br/>




