{* $Header: /cvsroot/tikiwiki/tiki/templates/styles/musus/tiki-admin_topics.tpl,v 1.1 2004/01/07 04:13:54 musus Exp $ *} {strip} <a class="pagetitle" href="tiki-admin_topics.php">{tr}Admin Topics{/tr}</a> <!-- the help link info --> {if $feature_help eq 'y'} <a class="tikihelp" href="http://tikiwiki.org/tiki-index.php?page=ArticleDoc" target="tikihelp" title="{tr}Tikiwiki.org help{/tr}: {tr}Admin Topics{/tr}"> <img src="img/icons/help.gif" alt="{tr}help{/tr}" /> </a> {/if} <!-- link to tpl --> {if $feature_view_tpl eq 'y'} <a class="tikihelp" href="tiki-edit_templates.php?template=templates/tiki-admin_topics.tpl" target="tikihelp" title="{tr}edit tpl{/tr}: {tr}admin topics tpl{/tr}"> <img src="img/icons/info.gif" alt="{tr}edit tpl{/tr}" /> </a> {/if} <!-- beginning of next bit --> <br /><br /> <h3>{tr}Create a new topic{/tr}</h3> <form enctype="multipart/form-data" action="tiki-admin_topics.php" method="post"> <table class="normal" summary=""> <colgroup><col /><col /></colgroup> <tbody> <tr class="formcolor"> <td>{tr}Topic Name{/tr}</td> <td><input class="text" type="text" name="name" /></td> </tr> <tr class="formcolor"> <td>{tr}Upload Image{/tr}</td> <td> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> <input class="file" name="userfile1" type="file"> </td> </tr> <tr class="formcolor"> <td>&nbsp;</td> <td><input class="submit" type="submit" name="addtopic" value="{tr}add{/tr}" /></td> </tr> </tbody> </table> </form> <h3>{tr}List of topics{/tr}</h3> <table class="normal"> <colgroup><col /><col /><col /><col /><col /></colgroup> <thead> <tr> <th>{tr}name{/tr}</th> <th>{tr}Image{/tr}</th> <th>{tr}Active?{/tr}</th> <th>{tr}Articles (subs){/tr}</th> <th>{tr}Action{/tr}</th> </tr> </thead> <tbody> {cycle print=false values="even,odd"} {section name=user loop=$topics} <tr> <td class="{cycle advance=false}">{$topics[user].name}</td> <td class="{cycle advance=false}"> {if $topics[user].image_size} <img alt="{tr}topic image{/tr}" title="{tr}topic image{/tr}" src="topic_image.php?id={$topics[user].topicId}&amp;reload=1" /> {else} &nbsp; {/if} </td> <td class="{cycle advance=false}">{$topics[user].active}</td> <td class="{cycle advance=false}">{$topics[user].arts} ({$topics[user].subs})</td> <td class="{cycle}"> <a class="link" href="tiki-admin_topics.php?remove={$topics[user].topicId}">{tr}Remove{/tr}</a> <a class="link" href="tiki-admin_topics.php?removeall={$topics[user].topicId}">{tr}Remove with articles{/tr}</a> {if $topics[user].active eq 'n'} <a class="link" href="tiki-admin_topics.php?activate={$topics[user].topicId}">{tr}Activate{/tr}</a> {else} <a class="link" href="tiki-admin_topics.php?deactivate={$topics[user].topicId}">{tr}Deactivate{/tr}</a> {/if} {if $topics[user].individual eq 'y'}({/if}<a class="link" href="tiki-objectpermissions.php?objectName={tr}Topic{/tr}%20{$topics[user].name}&amp;objectType=topic&amp;permType=topics&amp;objectId={$topics[user].topicId}">{tr}perms{/tr}</a>{if $topics[user].individual eq 'y'}){/if} <a class="link" href="tiki-edit_topic.php?topicid={$topics[user].topicId}">{tr}Edit{/tr}</a> </td> </tr> {sectionelse} <tr> <td colspan="5" class="odd">{tr}No records found{/tr}</td> </tr> {/section} </tbody> </table> {/strip}