Panel/modules/teamspeak3/templates/new/sgroupclients.tpl
2025-09-11 13:29:15 -04:00

88 lines
No EOL
2.9 KiB
Smarty

{if isset($permoverview['b_virtualserver_servergroup_client_list']) AND empty($permoverview['b_virtualserver_servergroup_client_list'])}
<table class="border" style="width:50%;" cellpadding="1" cellspacing="0">
<tr>
<td class="thead">{$lang['error']}</td>
</tr>
<tr>
<td class="green1">{$lang['nopermissions']}</td>
</tr>
</table>
{else}
{if !empty($error) OR !empty($noerror)}
<table>
{if !empty($error)}
<tr>
<td class="error">{$error}</td>
</tr>
{/if}
{if !empty($noerror)}
<tr>
<td class="noerror">{$noerror}</td>
</tr>
{/if}
</table>
{/if}
<table style="width:100%" class="border" cellpadding="1" cellspacing="0">
<tr>
<td class="thead" colspan="6">{$lang['searchfor']}{$lang['client']}</td>
</tr>
<tr>
<td class="green1" colspan="6">
<form method="post" action="index.php?site=sgroupclients&amp;sid={$sid}&amp;sgid={$sgid}">
<select name="searchby">
<option value="cldbid">{$lang['cldbid']}</option>
<option value="name">{$lang['name']}</option>
</select>
<input type="text" name="search" value="" />
<input type="submit" name="sendsearch" value="{$lang['search']}" />
</form>
</td>
</tr>
<tr>
<td class="thead" colspan="6">({$sgroupid}) {$sgroupname} {$lang['groupmember']}</td>
</tr>
<tr>
<td class="thead">{$lang['uniqueid']}</td>
<td class="thead">{$lang['dbid']}</td>
<td class="thead">{$lang['name']}</td>
<td class="thead">{$lang['created']}</td>
<td class="thead">{$lang['lastonline']}</td>
<td class="thead">{$lang['option']}</td>
</tr>
{if !empty($groupclients)}
{foreach key=key item=value from=$groupclients}
{if $change_col % 2} {assign var=td_col value="green1"} {else} {assign var=td_col value="green2"} {/if}
<tr>
<td class="{$td_col} center">{$value['client_unique_identifier']}</td>
<td class="{$td_col} center">{$value['cldbid']}</td>
<td class="{$td_col} center">{secure($value['client_nickname'])}</td>
<td class="{$td_col} center">{date("d.m.Y", $value['client_created'])}</td>
<td class="{$td_col} center">{date("d.m.Y", $value['client_lastconnected'])}</td>
<td class="{$td_col} center">
<form method="post" action="index.php?site=sgroupclients&amp;sid={$sid}&amp;sgid={$sgid}">
<input type="hidden" name="cldbid" value="{$value['cldbid']}" />
<input type="submit" class="delete" name="kickclient" value="" title="kick"/>
</form>
</td>
</tr>
{assign var=change_col value="`$change_col+1`"}
{/foreach}
{/if}
</table>
<br />
<form method="post" action="index.php?site=sgroupclients&amp;sid={$sid}&amp;sgid={$sgid}">
<table class="border" cellpadding="1" cellspacing="0">
<tr>
<td colspan="2" class="thead">{$lang['addclient']}</td>
</tr>
<tr>
<td class="green1">{$lang['cldbid']}</td>
<td class="green1"><input type="text" name="cldbid" value="" /></td>
</tr>
<tr>
<td class="green2">{$lang['options']}</td>
<td class="green2"><input type="submit" name="addclient" value="{$lang['add']}" /></td>
</tr>
</table>
</form>
{/if}