0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-admin_chat.tpl
<h1><a class="pagetitle" href="tiki-admin_chat.php">{tr}Chat Administration{/tr}</a></h1> {if $feature_help eq 'y'} <a href="{$helpurl}Chat+Admin" target="tikihelp" class="tikihelp" title="{tr}Chat Admin{/tr}"><img src="img/icons/help.gif" border="0" height="16" width="16" alt='{tr}help{/tr}' /></a> {/if} {if $feature_view_tpl eq 'y'} <a href="tiki-edit_templates.php?template=tiki-admin_chat.tpl" target="tikihelp" class="tikihelp" title="{tr}View tpl{/tr}: {tr}Chat Admin tpl{/tr}"><img src="img/icons/info.gif" border="0" width="16" height="16" alt='{tr}Edit template{/tr}' /></a> {/if} <h2>{tr}Create/edit channel{/tr}</h2> <form action="tiki-admin_chat.php" method="post"> <input type="hidden" name="channelId" value="{$channelId|escape}" /> <table class="normal"> <tr><td class="formcolor">{tr}Name{/tr}:</td><td class="formcolor"><input type="text" name="name" value="{$name|escape}" /></td></tr> <tr><td class="formcolor">{tr}Description{/tr}:</td><td class="formcolor"><textarea name="description" rows="4" cols="40">{$description|escape}</textarea></td></tr> <tr><td class="formcolor">{tr}Active{/tr}:</td><td class="formcolor"><input type="checkbox" name="active" {if $active eq 'y'}checked="checked"{/if} /></td></tr> <tr><td class="formcolor">{tr}Refresh rate{/tr}:</td><td class="formcolor"> <select name="refresh"> <option value="500" {if $refresh eq 500}selected="selected"{/if}>{tr}Half a second{/tr}</option> <option value="1000" {if $refresh eq 1000}selected="selected"{/if}>1 {tr}second{/tr}</option> <option value="2000" {if $refresh eq 2000}selected="selected"{/if}>2 {tr}seconds{/tr}</option> <option value="3000" {if $refresh eq 3000}selected="selected"{/if}>3 {tr}seconds{/tr}</option> <option value="4000" {if $refresh eq 4000}selected="selected"{/if}>4 {tr}seconds{/tr}</option> <option value="5000" {if $refresh eq 5000}selected="selected"{/if}>5 {tr}seconds{/tr}</option> <option value="6000" {if $refresh eq 6000}selected="selected"{/if}>6 {tr}seconds{/tr}</option> <option value="7000" {if $refresh eq 7000}selected="selected"{/if}>7 {tr}seconds{/tr}</option> <option value="8000" {if $refresh eq 8000}selected="selected"{/if}>8 {tr}seconds{/tr}</option> <option value="9000" {if $refresh eq 9000}selected="selected"{/if}>9 {tr}seconds{/tr}</option> <option value="10000" {if $refresh eq 10000}selected="selected"{/if}>10 {tr}seconds{/tr}</option> </select> </td></tr> <tr><td class="formcolor"> </td><td class="formcolor"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr> </table> </form> <h2>{tr}Chat channels{/tr}</h2> <div align="center"> <table class="findtable"> <tr><td class="findtable">{tr}Find{/tr}</td> <td class="findtable"> <form method="get" action="tiki-admin_chat.php"> <input type="text" name="find" value="{$find|escape}" /> <input type="submit" value="{tr}find{/tr}" name="search" /> <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> </form> </td> </tr> </table> <table class="normal"> <tr> <td class="heading"><a class="tableheading" href="tiki-admin_chat.php?offset={$offset}&sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}name{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-admin_chat.php?offset={$offset}&sort_mode={if $sort_mode eq 'description_desc'}description_asc{else}description_desc{/if}">{tr}description{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-admin_chat.php?offset={$offset}&sort_mode={if $sort_mode eq 'active_desc'}active_asc{else}active_desc{/if}">{tr}active{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-admin_chat.php?offset={$offset}&sort_mode={if $sort_mode eq 'refresh_desc'}refresh_asc{else}refresh_desc{/if}">{tr}refresh{/tr}</a></td> <td class="heading">{tr}action{/tr}</td> </tr> {section name=user loop=$channels} {if $smarty.section.user.index % 2} <tr> <td class="odd">{$channels[user].name}</td> <td class="odd">{$channels[user].description}</td> <td class="odd">{$channels[user].active}</td> <td class="odd">{$channels[user].refresh}</td> <td class="odd"> <a title="{tr}delete{/tr}" class="link" href="tiki-admin_chat.php?offset={$offset}&sort_mode={$sort_mode}&remove={$channels[user].channelId}" ><img src="img/icons2/delete.gif" border="0" height="16" width="16" alt='{tr}delete{/tr}' /></a> <a title="{tr}edit{/tr}" class="link" href="tiki-admin_chat.php?offset={$offset}&sort_mode={$sort_mode}&channelId={$channels[user].channelId}"><img src="img/icons/edit.gif" border="0" width="20" height="16" alt='{tr}edit{/tr}' /></a> </td> </tr> {else} <tr> <td class="even">{$channels[user].name}</td> <td class="even">{$channels[user].description}</td> <td class="even">{$channels[user].active}</td> <td class="even">{$channels[user].refresh}</td> <td class="even"> <a title="{tr}delete{/tr}" class="link" href="tiki-admin_chat.php?offset={$offset}&sort_mode={$sort_mode}&remove={$channels[user].channelId}" ><img src="img/icons2/delete.gif" border="0" height="16" width="16" alt='{tr}delete{/tr}' /></a> <a title="{tr}edit{/tr}" class="link" href="tiki-admin_chat.php?offset={$offset}&sort_mode={$sort_mode}&channelId={$channels[user].channelId}"><img src="img/icons/edit.gif" border="0" width="20" height="16" alt='{tr}edit{/tr}' /></a> </td> </tr> {/if} {sectionelse} <tr><td class="odd" colspan="5"> {tr}No records found{/tr} </td></tr> {/section} </table> <div class="mini"> {if $prev_offset >= 0} [<a class="prevnext" href="tiki-admin_chat.php?find={$find}&offset={$prev_offset}&sort_mode={$sort_mode}">{tr}prev{/tr}</a>] {/if} {tr}Page{/tr}: {$actual_page}/{$cant_pages} {if $next_offset >= 0} [<a class="prevnext" href="tiki-admin_chat.php?find={$find}&offset={$next_offset}&sort_mode={$sort_mode}">{tr}next{/tr}</a>] {/if} </div> </div>