tiki-admin_cookies.tpl 2.62 KB
Newer Older
1
{title help="Cookie"}{tr}Admin cookies{/tr}{/title}
awcolley's avatar
awcolley committed
2

3 4 5 6
{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}

awcolley's avatar
awcolley committed
7 8
<h2>{tr}Create/edit cookies{/tr}</h2>
<form action="tiki-admin_cookies.php" method="post">
9
	<input type="hidden" name="cookieId" value="{$cookieId|escape}" />
10
	<table class="formcolor">
11
		<tr>
changi67's avatar
changi67 committed
12
			<td>{tr}Cookie:{/tr}</td>
13
			<td>
14 15 16 17
				<input type="text" maxlength="255" size="40" name="cookie" value="{$cookie|escape}" />
			</td>
		</tr>
		<tr>
18 19
			<td>&nbsp;</td>
			<td>
20 21 22 23
				<input type="submit" name="save" value="{tr}Save{/tr}" />
			</td>
		</tr>
	</table>
awcolley's avatar
awcolley committed
24 25 26 27
</form>

<h2>{tr}Upload Cookies from textfile{/tr}</h2>
<form enctype="multipart/form-data" action="tiki-admin_cookies.php" method="post">
28
	<table class="formcolor">
29
		<tr>
30 31
			<td>{tr}Upload from disk:{/tr}</td>
			<td>
32 33 34 35 36
				<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
				<input name="userfile1" type="file" />
			</td>
		</tr>
		<tr>
37 38
			<td>&nbsp;</td>
			<td>
39 40 41 42
				<input type="submit" name="upload" value="{tr}Upload{/tr}" />
			</td>
		</tr>
	</table>
awcolley's avatar
awcolley committed
43
</form>
44

45
<br />
awcolley's avatar
awcolley committed
46 47

<h2>{tr}Cookies{/tr}</h2>
48 49
{if $channels}
	<div class="navbar">
50
		{button href="?removeall=1" _text="{tr}Remove all cookies{/tr}"}
51
	</div>
52
{/if}
53

54
{if $channels or ($find ne '')}
55
	{include file='find.tpl'}
56
{/if}
57

awcolley's avatar
awcolley committed
58
<table class="normal">
59 60 61 62 63 64 65 66 67 68 69
	<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}
70
		<tr class="{cycle}">
71 72 73
			<td class="id">{$channels[user].cookieId}</td>
			<td class="text">{$channels[user].cookie|escape}</td>
			<td class="action">
74 75 76 77 78 79 80
				&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}
81
		{norecords _colspan=3}
82
	{/section}
awcolley's avatar
awcolley committed
83
</table>
84

85
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}