blob: e81b152420d75385e66a0f82537782819d7ce3ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<div class="floaticon">{bithelp}</div>
<div class="admin ewiki">
<div class="header">
<h1>{tr}Admin external wikis{/tr}</h1>
</div>
<div class="body">
<h2>{tr}Create/Edit External Wiki{/tr}</h2>
<form action="{$smarty.const.WIKI_PKG_URL}admin/admin_external_wikis.php" method="post">
<input type="hidden" name="extwiki_id" value="{$extwiki_id|escape}" />
<table class="panel">
<tr><td>{tr}name{/tr}:</td><td><input type="text" maxlength="255" size="10" name="name" value="{$info.name|escape}" /></td></tr>
<tr><td>{tr}URL (use $page to be replaced by the page name in the URL example: http://www.example.com/{$smarty.const.WIKI_PKG_URL}index.php?page=$page){/tr}:</td><td><input type="text" maxlength="255" size="40" name="extwiki" value="{$info.extwiki|escape}" /></td></tr>
<tr class="panelsubmitrow"><td colspan="2"><input type="submit" class="btn btn-default" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
<h2>{tr}External Wiki{/tr}</h2>
<table class="table data">
<tr>
<th><a href="{$smarty.const.WIKI_PKG_URL}admin/admin_external_wikis.php?offset={$offset}&sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}name{/tr}</a></th>
<th><a href="{$smarty.const.WIKI_PKG_URL}admin/admin_external_wikis.php?offset={$offset}&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="even,odd" print=false}
{section name=user loop=$channels}
<tr class="{cycle}">
<td>{$channels[user].name}</td>
<td>{$channels[user].extwiki}</td>
<td>
<a href="{$smarty.const.WIKI_PKG_URL}admin/admin_external_wikis.php?offset={$offset}&sort_mode={$sort_mode}&remove={$channels[user].extwiki_id}" onclick="return confirm('{tr}Are you sure you want to delete this external wiki?{/tr}')" title="Click here to delete this external wiki">{booticon iname="fa-trash" iexplain="remove"}</a>
<a href="{$smarty.const.WIKI_PKG_URL}admin/admin_external_wikis.php?offset={$offset}&sort_mode={$sort_mode}&extwiki_id={$channels[user].extwiki_id}">{booticon iname="fa-pen-to-square" iexplain="edit"}</a>
</td>
</tr>
{sectionelse}
<tr class="norecords"><td colspan="3">{tr}No records found{/tr}</td></tr>
{/section}
</table>
</div><!-- end .body -->
{pagination}
</div> {* end .admin *}
|