row.tpl 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <tr>
  2. <td>
  3. <div class="checkbox"><input class="sel" type="checkbox" name="zone[checked][{$zone.id}]" /><input type="hidden" name="setRecord"><input type="hidden" name="wipe"></div>
  4. </td>
  5. <td>
  6. {$zone.name}
  7. </td>
  8. <td><a href="clientssummary.php?userid={$zone.clientid}">{$zone.client}</a></td>
  9. <td>
  10. {if $zone.type == 1}<a href="clientsdomains.php?userid={$zone.clientid}&id={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
  11. {elseif $zone.type == 2}<a href="clientsservices.php?userid={$zone.clientid}&id={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
  12. {elseif $zone.type == 3}<a href="clientsservices.php?userid={$zone.clientid}&aid={$zone.relid}">{$MGLANG->T('zone_type',$zone.type)} #{$zone.relid}</a>
  13. {else}{$MGLANG->T('zone_type',$zone.type)}{/if}
  14. {if $zone.relid neq $zone.connectedWithRelid}
  15. {if $zone.connectedWithType == 1}<a href="clientsdomains.php?userid={$zone.clientid}&id={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
  16. {elseif $zone.connectedWithType == 2}<a href="clientsservices.php?userid={$zone.clientid}&id={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
  17. {elseif $zone.connectedWithType == 3}<a href="clientsservices.php?userid={$zone.clientid}&aid={$zone.connectedWithRelid}">{$MGLANG->T('zone_type',$zone.connectedWithType)} #{$zone.connectedWithRelid}</a>
  18. {/if}
  19. {/if}
  20. </td>
  21. <td>{$zone.server_name}</td>
  22. <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>
  23. <td>
  24. <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>
  25. <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>
  26. {*<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>*}
  27. <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>
  28. <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>
  29. <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>
  30. {if $zone.is_locked eq 0}
  31. <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>
  32. {else}
  33. <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>
  34. {/if}
  35. <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>
  36. <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>
  37. </td>
  38. </tr>