{if $value->for_department eq 4}


{elseif $value->for_department eq 5}

{if $value->view == 1}
<tr class="entervisitors visitDone dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{else}

<tr class="entervisitors dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>                    
</tr>

{/if}

{elseif $value->for_department eq 8}


{if $value->view == 1}
<tr class="entervisitors visitDone dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{else}

<tr class="entervisitors dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>

    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>                              
</tr>

{/if}

{elseif $value->for_department eq 11}

{if $value->view == 1}
<tr class="entervisitors visitDone dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>

</tr>

{else}

<tr class="entervisitors dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{/if}

{elseif $value->for_department eq 12}

{if $value->view == 1}
<tr class="entervisitors visitDone dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>

    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{else}

<tr class="entervisitors dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>                              
</tr>

{/if}


{elseif $value->for_department eq 13}

{if $value->view == 1}
<tr class="entervisitors visitDone dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>
    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{else}

<tr class="entervisitors dep_for_{$value->for_department} vi_all" {if $value->customer_add == 1} style="background-color: #f1f16d;"  {/if}>

    <td class="col-md-1 text-center hidden">
        <span  style="font-weight: bold;"> {$i}</span>
    </td>
    <td class="col-md-4">
        <a data-id="{$value->id}" class="visitviewed"   href="{$hosturl}/controllers/{$link_is}id={$value->patientID}&patientid={$value->patientID}">{$value->patientName}</a>
    </td>
    <td class="col-md-1">
        <span  class="vtype" style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; ">{$value->statusno}</span>
    </td>
    <td class="col-md-4">
        <span  class="vtype">{$value->for_department_name} {if !empty($value->operation_time) }<!--({$value->operation_time})-->{/if}</span>
    </td>
    <td class="col-md-3">
        <span  class="vtype">{$value->detectionType}</span>
    </td>
</tr>

{/if}


{/if}
