- May 20, 2016
- 264
- 107
- 136
Hello guys, i`m trying to write anything useful with ts3 php framework and get this problem
One ban, but can`t show one ban on one row of table
CodePHP=
Smarty=
One ban, but can`t show one ban on one row of table
CodePHP=
PHP:
$banList = [];
try {
$banArray = $vServer->banList();
} catch (TeamSpeak3_Exception $e)
{}
foreach ($banArray as $item) {
$banList[] = $item;
}
Code:
{if !empty($bans)}
{foreach from=$bans item=baninfo}
<tr>
<td>
<input type="radio" name="ban_id" value="{$baninfo.banid}" /></td>
<td>{$baninfo.ip}</td>
<td>{if $baninfo.lastnickname eq ''}{$baninfo.name}{else}{$baninfo.lastnickname}{/if}</td>
<td>{$baninfo.uid}</td>
</tr>
{/foreach}
{/if}