<tr>
    <td>
        <div class="checkbox"><input class="sel" type="checkbox" name="zone[checked][{$zone.id}]" /><input type="hidden" name="setRecord"><input type="hidden" name="wipe"></div>
    </td>
    <td>  
        {$zone.name}
    </td>
    <td><a href="clientssummary.php?userid={$zone.clientid}">{$zone.client}</a></td>
    <td>
        {if $zone.type == 1}<a href="clientsdomains.php?userid={$zone.clientid}&id={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
        {elseif $zone.type == 2}<a href="clientsservices.php?userid={$zone.clientid}&id={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
        {elseif $zone.type == 3}<a href="clientsservices.php?userid={$zone.clientid}&aid={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
        {else}{$MGLANG->T('zone_type',$zone.type)}{/if}

        {if $zone.relid neq $zone.connectedWithRelid}
            {if $zone.connectedWithType == 1}<a href="clientsdomains.php?userid={$zone.clientid}&id={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
            {elseif $zone.connectedWithType == 2}<a href="clientsservices.php?userid={$zone.clientid}&id={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
            {elseif $zone.connectedWithType == 3}<a href="clientsservices.php?userid={$zone.clientid}&aid={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
            {/if}
        {/if}
    </td>
    <td>{$zone.server_name}</td>
    <td>{if $zone.status eq 1}<span class="label label-success">{$MGLANG->T('exist')}</span>{else}<span class="label label-danger">{$MGLANG->T('not_esxist')}</span>{/if}</td>
    <td>
        <a class="btn btn-primary btn-inverse btn-icon-only zoneRowIcon" data-act="switchRelatedItem" data-query="id={$zone.id}" title="{$MGLANG->T('change_related_item')}"><i class="fa fa-share"></i></a>
        <a class="btn btn-success btn-inverse btn-icon-only zoneRowIcon" data-act="editZone" data-query="id={$zone.id}" title="{$MGLANG->T('edit')}"><i class="fa fa-pencil"></i></a>
        {*<a class="btn btn-primary btn-icon-only" data-act="synchronizeZone" data-query="id={$zone.id}" title="{$MGLANG->T('synchronize')}" data-confirm-body="{$MGLANG->T('synchronize_zone_confirm')}"><i class="fa fa-refresh"></i></a>*}
        <a class="btn btn-success btn-inverse btn-icon-only zoneRowIcon" data-act="createZone" data-query="id={$zone.id}" title="{$MGLANG->T('create')}" data-confirm-body="{$MGLANG->T('add_zone_confirm')}"><i class="fa fa-plus"></i></a>
        <a class="btn btn-info btn-inverse btn-icon-only zoneRowIcon" data-act="importZoneFromFile" data-query="id={$zone.id}" title="{$MGLANG->T('importZoneFromFile')}"><i class="glyphicon glyphicon-arrow-down"></i></a>
        <a class="btn btn-info btn-inverse btn-icon-only zoneRowIcon" data-act="exportZoneToFile" data-query="id={$zone.id}" title="{$MGLANG->T('exportZoneToFile')}"><i class="glyphicon glyphicon-arrow-up"></i></a>
        {if $zone.is_locked eq 0}
            <a class="btn btn-warning btn-inverse btn-icon-only zoneRowIcon" data-act="lockZone" data-query="id={$zone.id}" title="{$MGLANG->T('lock')}" data-confirm-body="{$MGLANG->T('lock_zone_confirm')}"><i class="fa fa-unlock"></i></a>
        {else}
            <a class="btn btn-warning btn-inverse btn-icon-only zoneRowIcon" data-act="unlockZone" data-query="id={$zone.id}" title="{$MGLANG->T('unlock')}" data-confirm-body="{$MGLANG->T('unlock_zone_confirm')}"><i class="fa fa-lock"></i></a>

        {/if}
        <a class="btn btn-danger btn-inverse btn-icon-only zoneRowIcon" data-act="removeZone" data-query="id={$zone.id}" title="{$MGLANG->T('remove')}" data-confirm-body="{$MGLANG->T('remove_zone_confirm')}"><i class="fa fa-remove"></i></a>
        <a class="btn btn-danger btn-inverse btn-icon-only zoneRowIcon" data-act="removeZoneFromWHMCS" data-query="id={$zone.id}" title="{$MGLANG->T('remove_from_whmcs_only')}" data-confirm-body="{$MGLANG->T('remove_zone_whmcs_confirm')}"><i class="fa fa-trash"></i></a>
    </td>
</tr>