Commit 9ad90da5 authored by pkdille's avatar pkdille

[MOD] remove some useless css classs on td and tr tags in formcolor tables

parent d94e6e2e
......@@ -2,70 +2,137 @@
{title help="Contribution"}{tr}Admin Contributions{/tr}{/title}
{if $contribution}
<h2>{tr}Edit the contribution:{/tr} {$contribution.name|escape}</h2>
<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post">
<input type="hidden" name="contributionId" value="{$contribution.contributionId}" />
<table class="normal">
<tr><td class="formcolor">{tr}Name{/tr}</td><td class="formcolor"><input type="text" name="name"{if $contribution.name} value="{$contribution.name|escape}"{/if} /></td></tr>
<tr><td class="formcolor">{tr}Description{/tr}</td><td class="formcolor"><input type="text" name="description" size="80" maxlength="250"{if $contribution.description} value="{$contribution.description|escape}"{/if} /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="replace" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
<h2>{tr}Edit the contribution:{/tr} {$contribution.name|escape}</h2>
<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post">
<input type="hidden" name="contributionId" value="{$contribution.contributionId}" />
<table class="normal">
<tr>
<td class="formcolor">{tr}Name{/tr}</td>
<td class="formcolor">
<input type="text" name="name"{if $contribution.name} value="{$contribution.name|escape}"{/if} />
</td>
</tr>
<tr>
<td class="formcolor">{tr}Description{/tr}</td>
<td class="formcolor">
<input type="text" name="description" size="80" maxlength="250"{if $contribution.description} value="{$contribution.description|escape}"{/if} />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="replace" value="{tr}Save{/tr}" />
</td>
</tr>
</table>
</form>
{/if}
<h2>{tr}Settings{/tr}</h2>
<form action="tiki-admin_contribution.php?page=features" method="post">
{cycle print=false values="even,odd"}
<table class="normal">
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contribution_mandatory" {if $prefs.feature_contribution_mandatory eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributions are mandatory in wiki pages{/tr}</td></tr>
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contribution_mandatory_forum" {if $prefs.feature_contribution_mandatory_forum eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributions are mandatory in forums{/tr}</td></tr>
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contribution_mandatory_comment" {if $prefs.feature_contribution_mandatory_comment eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributions are mandatory in comments{/tr}</td></tr>
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contribution_mandatory_blog" {if $prefs.feature_contribution_mandatory_blog eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributions are mandatory in blogs{/tr}</td></tr>
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contribution_display_in_comment" {if $prefs.feature_contribution_display_in_comment eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributions are displayed in the comment/post{/tr}</td></tr>
<tr><td class="{cycle advance=false}"><input type="checkbox" name="feature_contributor_wiki" {if $prefs.feature_contributor_wiki eq 'y'}checked="checked"{/if}/></td>
<td class="{cycle}">{tr}Contributors{/tr}</td></tr>
<tr><td class="{cycle advance=false}">&nbsp;</td><td class="{cycle}"><input type="submit" name="setting" value="{tr}Save{/tr}" /></td></tr>
</table>
{cycle print=false values="even,odd"}
<table class="normal">
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contribution_mandatory" {if $prefs.feature_contribution_mandatory eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">
{tr}Contributions are mandatory in wiki pages{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contribution_mandatory_forum" {if $prefs.feature_contribution_mandatory_forum eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">
{tr}Contributions are mandatory in forums{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contribution_mandatory_comment" {if $prefs.feature_contribution_mandatory_comment eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">
{tr}Contributions are mandatory in comments{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contribution_mandatory_blog" {if $prefs.feature_contribution_mandatory_blog eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">
{tr}Contributions are mandatory in blogs{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contribution_display_in_comment" {if $prefs.feature_contribution_display_in_comment eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">
{tr}Contributions are displayed in the comment/post{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">
<input type="checkbox" name="feature_contributor_wiki" {if $prefs.feature_contributor_wiki eq 'y'}checked="checked"{/if}/>
</td>
<td class="{cycle}">{tr}Contributors{/tr}
</td>
</tr>
<tr>
<td class="{cycle advance=false}">&nbsp;</td>
<td class="{cycle}">
<input type="submit" name="setting" value="{tr}Save{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}Create a new contribution{/tr}</h2>
<form enctype="multipart/form-data" action="tiki-admin_contribution.php" method="post">
<table class="normal">
<tr><td class="formcolor">{tr}Name{/tr}</td><td class="formcolor"><input type="text" name="name" /></td></tr>
<tr><td class="formcolor">{tr}Description{/tr}</td><td class="formcolor"><input type="text" name="description" size="80" maxlength="250" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="add" value="{tr}Add{/tr}" /></td></tr>
</table>
<table class="normal">
<tr>
<td class="formcolor">{tr}Name{/tr}</td>
<td class="formcolor"><input type="text" name="name" /></td>
</tr>
<tr>
<td class="formcolor">{tr}Description{/tr}</td>
<td class="formcolor">
<input type="text" name="description" size="80" maxlength="250" />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="add" value="{tr}Add{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}List of contributions{/tr}</h2>
<table class="normal">
<tr>
<th>{tr}Name{/tr}</th>
<th>{tr}Description{/tr}</th>
<th>{tr}Actions{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
{section name=ix loop=$contributions}
<tr>
<td class="{cycle advance=false}">{$contributions[ix].name}</td>
<td class="{cycle advance=false}">{$contributions[ix].description|truncate|escape}</td>
<td class="{cycle}">
<a class="link" href="tiki-admin_contribution.php?contributionId={$contributions[ix].contributionId}">{icon _id='shape_square_edit'}</a> &nbsp;
<a class="link" href="tiki-admin_contribution.php?remove={$contributions[ix].contributionId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr>
<td colspan="3" class="odd">{tr}No records found{/tr}</td>
</tr>
{/section}
<tr>
<th>{tr}Name{/tr}</th>
<th>{tr}Description{/tr}</th>
<th>{tr}Actions{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
{section name=ix loop=$contributions}
<tr>
<td class="{cycle advance=false}">{$contributions[ix].name}</td>
<td class="{cycle advance=false}">{$contributions[ix].description|truncate|escape}</td>
<td class="{cycle}">
<a class="link" href="tiki-admin_contribution.php?contributionId={$contributions[ix].contributionId}">{icon _id='shape_square_edit'}</a> &nbsp;
<a class="link" href="tiki-admin_contribution.php?remove={$contributions[ix].contributionId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr>
<td colspan="3" class="odd">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
{title help="Cookie"}{tr}Admin cookies{/tr}{/title}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}To use cookie in a text area (Wiki page, etc), a <a class="rbox-link" href="tiki-admin_modules.php">module</a> or a template, use {literal}{cookie}{/literal}.{/tr}{/remarksbox}
{remarksbox type="tip" title="{tr}Tip{/tr}"}
{tr}To use cookie in a text area (Wiki page, etc), a <a class="rbox-link" href="tiki-admin_modules.php">module</a> or a template, use {literal}{cookie}{/literal}.{/tr}
{/remarksbox}
<h2>{tr}Create/edit cookies{/tr}</h2>
<form action="tiki-admin_cookies.php" method="post">
<input type="hidden" name="cookieId" value="{$cookieId|escape}" />
<table class="normal">
<tr><td class="formcolor">{tr}Cookie{/tr}:</td><td class="formcolor"><input type="text" maxlength="255" size="40" name="cookie" value="{$cookie|escape}" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
<input type="hidden" name="cookieId" value="{$cookieId|escape}" />
<table class="normal">
<tr>
<td class="formcolor">{tr}Cookie{/tr}:</td>
<td class="formcolor">
<input type="text" maxlength="255" size="40" name="cookie" value="{$cookie|escape}" />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="save" value="{tr}Save{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}Upload Cookies from textfile{/tr}</h2>
<form enctype="multipart/form-data" action="tiki-admin_cookies.php" method="post">
<table class="normal">
<tr><td class="formcolor">{tr}Upload from disk:{/tr}</td><td class="formcolor">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
<input name="userfile1" type="file" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="upload" value="{tr}Upload{/tr}" /></td></tr>
</table>
<table class="normal">
<tr>
<td class="formcolor">{tr}Upload from disk:{/tr}</td>
<td class="formcolor">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
<input name="userfile1" type="file" />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="upload" value="{tr}Upload{/tr}" />
</td>
</tr>
</table>
</form>
<br />
<h2>{tr}Cookies{/tr}</h2>
......@@ -29,31 +52,36 @@
{/if}
{if $channels or ($find ne '')}
{include file='find.tpl'}
{include file='find.tpl'}
{/if}
<table class="normal">
<tr>
<th><a href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'cookieId_desc'}cookieId_asc{else}cookieId_desc{/if}">{tr}ID{/tr}</a></th>
<th><a href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'cookie_desc'}cookie_asc{else}cookie_desc{/if}">{tr}cookie{/tr}</a></th>
<th width="15%">{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false advance=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].cookieId}</td>
<td class="{cycle advance=false}">{$channels[user].cookie|escape}</td>
<td class="{cycle advance=true}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;cookieId={$channels[user].cookieId}">
{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].cookieId}" >
{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr><td colspan="3" class="odd">{tr}No records found{/tr}</td></tr>
{/section}
<tr>
<th>
<a href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'cookieId_desc'}cookieId_asc{else}cookieId_desc{/if}">{tr}ID{/tr}</a>
</th>
<th>
<a href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'cookie_desc'}cookie_asc{else}cookie_desc{/if}">{tr}cookie{/tr}</a>
</th>
<th width="15%">{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false advance=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].cookieId}</td>
<td class="{cycle advance=false}">{$channels[user].cookie|escape}</td>
<td class="{cycle advance=true}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;cookieId={$channels[user].cookieId}">{icon _id='page_edit'}</a>
&nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_cookies.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].cookieId}" >{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr>
<td colspan="3" class="odd">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
{title help="Admin+DSN"}{tr}Admin dsn{/tr}{/title}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Use Admin DSN to define the database to be used by the SQL plugin.{/tr}{/remarksbox}
{remarksbox type="tip" title="{tr}Tip{/tr}"}
{tr}Use Admin DSN to define the database to be used by the SQL plugin.{/tr}
{/remarksbox}
<h2>{tr}Create/edit dsn{/tr}</h2>
<form action="tiki-admin_dsn.php" method="post">
<input type="hidden" name="dsnId" value="{$dsnId|escape}" />
<table class="normal">
<tr><td class="formcolor">{tr}Name{/tr}:</td><td class="formcolor"><input type="text" maxlength="255" size="10" name="name" value="{$info.name|escape}" /></td></tr>
<tr><td class="formcolor">{tr}DSN{/tr}:</td><td class="formcolor"><input type="text" maxlength="255" size="40" name="dsn" value="{$info.dsn|escape}" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
<input type="hidden" name="dsnId" value="{$dsnId|escape}" />
<table class="normal">
<tr>
<td class="formcolor">{tr}Name{/tr}:</td>
<td class="formcolor">
<input type="text" maxlength="255" size="10" name="name" value="{$info.name|escape}" />
</td>
</tr>
<tr>
<td class="formcolor">{tr}DSN{/tr}:</td>
<td class="formcolor">
<input type="text" maxlength="255" size="40" name="dsn" value="{$info.dsn|escape}" />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="save" value="{tr}Save{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}DSN{/tr}</h2>
<table class="normal">
<tr>
<th><a href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
<th><a href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'dsn_desc'}dsn_asc{else}dsn_desc{/if}">{tr}DSN{/tr}</a></th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
<tr>
<td class="{cycle advance=false}">{tr}Local (Tiki database){/tr}</td>
<td class="{cycle advance=false}">{tr}See db/local.php{/tr}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a class="link" href="tiki-objectpermissions.php?objectName=local&amp;objectType=dsn&amp;permType=dsn&amp;objectId=local">{icon _id='key' alt="{tr}Perms{/tr}"}</a>
</td>
</tr>
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].name}</td>
<td class="{cycle advance=false}">{$channels[user].dsn}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;dsnId={$channels[user].dsnId}">{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].dsnId}">{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
<a class="link" href="tiki-objectpermissions.php?objectName={$channels[user].name|escape:"url"}&amp;objectType=dsn&amp;permType=dsn&amp;objectId={$channels[user].name|escape:"url"}">{icon _id='key' alt="{tr}Perms{/tr}"}</a>
</td>
</tr>
{/section}
<tr>
<th>
<a href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a>
</th>
<th>
<a href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'dsn_desc'}dsn_asc{else}dsn_desc{/if}">{tr}DSN{/tr}</a>
</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
<tr>
<td class="{cycle advance=false}">{tr}Local (Tiki database){/tr}</td>
<td class="{cycle advance=false}">{tr}See db/local.php{/tr}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a class="link" href="tiki-objectpermissions.php?objectName=local&amp;objectType=dsn&amp;permType=dsn&amp;objectId=local">{icon _id='key' alt="{tr}Perms{/tr}"}</a>
</td>
</tr>
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].name}</td>
<td class="{cycle advance=false}">{$channels[user].dsn}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;dsnId={$channels[user].dsnId}">{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_dsn.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].dsnId}">{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
<a class="link" href="tiki-objectpermissions.php?objectName={$channels[user].name|escape:"url"}&amp;objectType=dsn&amp;permType=dsn&amp;objectId={$channels[user].name|escape:"url"}">{icon _id='key' alt="{tr}Perms{/tr}"}</a>
</td>
</tr>
{/section}
</table>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
{title}{tr}Admin external wikis{/tr}{/title}
{if $prefs.feature_help eq 'y'}
<a href="{$prefs.helpurl}External+Wikis" target="tikihelp" class="tikihelp" title="{tr}Admin External Wikis{/tr}">{icon _id='help'}</a>
<a href="{$prefs.helpurl}External+Wikis" target="tikihelp" class="tikihelp" title="{tr}Admin External Wikis{/tr}">{icon _id='help'}</a>
{/if}
{if $prefs.feature_view_tpl eq 'y'}
<a href="tiki-edit_templates.php?template=tiki-admin_external_wikis.tpl" target="tikihelp" class="tikihelp" title="{tr}View template{/tr}: {tr}tiki admin external wikis template{/tr}">
{icon _id='shape_square_edit' alt="{tr}Edit template{/tr}"}</a>
{/if}</h1>
<a href="tiki-edit_templates.php?template=tiki-admin_external_wikis.tpl" target="tikihelp" class="tikihelp" title="{tr}View template{/tr}: {tr}tiki admin external wikis template{/tr}">
{icon _id='shape_square_edit' alt="{tr}Edit template{/tr}"}</a>
{/if}
<h2>{tr}Create/Edit External Wiki{/tr}</h2>
<form action="tiki-admin_external_wikis.php" method="post">
<input type="hidden" name="extwikiId" value="{$extwikiId|escape}" />
<table class="normal">
<tr><td class="formcolor">{tr}Name{/tr}:</td><td class="formcolor"><input type="text" maxlength="255" size="10" name="name" value="{$info.name|escape}" /></td></tr>
<tr><td class="formcolor">{tr}URL (use $page to be replaced by the page name in the URL example: http://www.example.com/tiki-index.php?page=$page){/tr}:</td><td class="formcolor"><input type="text" maxlength="255" size="40" name="extwiki" value="{$info.extwiki|escape}" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
<input type="hidden" name="extwikiId" value="{$extwikiId|escape}" />
<table class="normal">
<tr>
<td class="formcolor">{tr}Name{/tr}:</td>
<td class="formcolor">
<input type="text" maxlength="255" size="10" name="name" value="{$info.name|escape}" />
</td>
</tr>
<tr>
<td class="formcolor">
{tr}URL (use $page to be replaced by the page name in the URL example: http://www.example.com/tiki-index.php?page=$page){/tr}:
</td>
<td class="formcolor">
<input type="text" maxlength="255" size="40" name="extwiki" value="{$info.extwiki|escape}" />
</td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="save" value="{tr}Save{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}External Wiki{/tr}</h2>
<!-- second table -->
<table class="normal">
<tr>
<th><a href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
<th><a href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'extwiki_desc'}extwiki_asc{else}extwiki_desc{/if}">{tr}ExtWiki{/tr}</a></th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].name}</td>
<td class="{cycle advance=false}">{$channels[user].extwiki}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;extwikiId={$channels[user].extwikiId}">
{icon _id='page_edit'}</a> &nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].extwikiId}" >
{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr><td class="odd" colspan="3">{tr}No records found{/tr}</td></tr>
{/section}
<tr>
<th>
<a href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a>
</th>
<th>
<a href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'extwiki_desc'}extwiki_asc{else}extwiki_desc{/if}">{tr}ExtWiki{/tr}</a>
</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}">{$channels[user].name}</td>
<td class="{cycle advance=false}">{$channels[user].extwiki}</td>
<td class="{cycle}">
&nbsp;&nbsp;
<a title="{tr}Edit{/tr}" class="link" href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;extwikiId={$channels[user].extwikiId}">{icon _id='page_edit'}</a>
&nbsp;
<a title="{tr}Delete{/tr}" class="link" href="tiki-admin_external_wikis.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].extwikiId}" >{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr>
<td class="odd" colspan="3">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
......@@ -5,36 +5,52 @@
<h2>{tr}Add Hotword{/tr}</h2>
<form method="post" action="tiki-admin_hotwords.php">
<table class="normal">
<tr><td class="formcolor">{tr}Word{/tr}</td><td class="formcolor"><input type="text" name="word" /></td></tr>
<tr><td class="formcolor">{tr}URL{/tr}</td><td class="formcolor"><input type="text" name="url" /></td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="add" value="{tr}Add{/tr}" /></td></tr>
</table>
<table class="normal">
<tr>
<td class="formcolor">{tr}Word{/tr}</td>
<td class="formcolor"><input type="text" name="word" /></td>
</tr>
<tr>
<td class="formcolor">{tr}URL{/tr}</td>
<td class="formcolor"><input type="text" name="url" /></td>
</tr>
<tr>
<td class="formcolor">&nbsp;</td>
<td class="formcolor">
<input type="submit" name="add" value="{tr}Add{/tr}" />
</td>
</tr>
</table>
</form>
<h2>{tr}Hotwords{/tr}</h2>
{if $words}
{include file='find.tpl'}
{include file='find.tpl'}
{/if}
<table class="normal">
<tr>
<th><a href="tiki-admin_hotwords.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'word_desc'}word_asc{else}word_desc{/if}">{tr}Word{/tr}</a></th>
<th><a href="tiki-admin_hotwords.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'url_desc'}url_asc{else}url_desc{/if}">{tr}URL{/tr}</a></th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$words}
<tr>
<td class="{cycle advance=false}">{$words[user].word}</td>
<td class="{cycle advance=false}">{$words[user].url}</td>
<td class="{cycle advance=true}">
<a class="link" href="tiki-admin_hotwords.php?remove={$words[user].word|escape:"url"}{if $offset}&amp;offset={$offset}{/if}&amp;sort_mode={$sort_mode}"
title="{tr}Delete{/tr}">{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr><td colspan="3" class="odd">{tr}No records found{/tr}</td></tr>
{/section}
<tr>
<th>
<a href="tiki-admin_hotwords.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'word_desc'}word_asc{else}word_desc{/if}">{tr}Word{/tr}</a>
</th>
<th>
<a href="tiki-admin_hotwords.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'url_desc'}url_asc{else}url_desc{/if}">{tr}URL{/tr}</a>
</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$words}
<tr>
<td class="{cycle advance=false}">{$words[user].word}</td>
<td class="{cycle advance=false}">{$words[user].url}</td>
<td class="{cycle advance=true}">
<a class="link" href="tiki-admin_hotwords.php?remove={$words[user].word|escape:"url"}{if $offset}&amp;offset={$offset}{/if}&amp;sort_mode={$sort_mode}" title="{tr}Delete{/tr}">{icon _id='cross' alt="{tr}Delete{/tr}"}</a>
</td>
</tr>
{sectionelse}
<tr>
<td colspan="3" class="odd">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset }{/pagination_links}
......@@ -10,22 +10,31 @@
</div>
{if $zone}
<h2>{tr}Edit zone{/tr}</h2>
<form action="tiki-admin_html_page_content.php" method="post">
<input type="hidden" name="pageName" value="{$pageName|escape}" />
<input type="hidden" name="zone" value="{$zone|escape}" />
<table class="normal">
<tr><td class="formcolor">{tr}Zone{/tr}:</td><td class="formcolor">{$zone}</td></tr>
<tr><td class="formcolor">{tr}Content{/tr}:</td><td class="formcolor">
{if $type eq 'ta'}
<textarea rows="5" cols="60" name="content">{$content|escape}</textarea>
{else}
<input type="text" name="content" value="{$content|escape}" />
{/if}
</td></tr>
<tr><td class="formcolor">&nbsp;</td><td class="formcolor"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
<h2>{tr}Edit zone{/tr}</h2>
<form action="tiki-admin_html_page_content.php" method="post">
<input type="hidden" name="pageName" value="{$pageName|escape}" />
<input type="hidden" name="zone" value="{$zone|escape}" />
<table class="normal">