blob: 7c31c0d4af67b6ca444275fcc1712caf31ec16a3 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{strip}
<div class="floaticon">{bithelp}</div>
<div class="listing {$contentType|strtolower}">
<div class="header">
<h1>{tr}{if $contentType}{$contentType}s{else}Content Listing{/if}{/tr}</h1>
</div>
{formfeedback error=$errors}
<div class="body">
{form class="minifind" legend="find in entries"}
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
{booticon iname="icon-search" ipackage="icons" iexplain="Search"}
<label>{tr}Title{/tr}: <input size="16" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label>
<label>{tr}Author{/tr}: <input size="10" type="text" name="find_author" value="{$find_author|default:$smarty.request.find_author|escape}" /></label>
<label>{tr}Last Editor{/tr}: <input size="10" type="text" name="find_last_editor" value="{$find_last_editor|default:$smarty.request.find_last_editor|escape}" /></label>
<input type="submit" name="search" value="{tr}Find{/tr}" />
<input type="button" onclick="location.href='{$smarty.server.SCRIPT_NAME}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&{/foreach}'" value="{tr}Reset{/tr}" />
{/form}
{form id="checkform"}
<ul class="inline navbar">
<li>{booticon iname="icon-circle-arrow-right" ipackage="icons" iexplain="sort by"}</li>
<li>{smartlink ititle="Title" isort="title" icontrol=$listInfo}</li>
<li>{smartlink ititle="Last Modified" iorder="desc" idefault=1 isort="last_modified" icontrol=$listInfo}</li>
<li>{smartlink ititle="Author" isort="creator_user" icontrol=$listInfo}</li>
<li>{smartlink ititle="Last Editor" isort="modifier_user" icontrol=$listInfo}</li>
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list_sort' serviceHash=$gContent->mInfo}
</ul>
<input type="hidden" name="offset" value="{$offset}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
<div class="clear"></div>
<table class="data">
<caption>{tr}{if $contentType}{$contentType}s{else}Content{/if} Listing{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
<tr>
{counter name=cols start=-1 print=false}
<th class="width2p">{smartlink ititle="ID" isort=content_id list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
<th>{smartlink ititle="Title" isort=title list_page=$listInfo.current_page idefault=1 ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
<th>{smartlink ititle="Content Type" isort=content_type_guid list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
<th>{smartlink ititle="Author" isort=$isort_author list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
<th>{smartlink ititle="Most recent editor" isort=$isort_editor list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
<th>{smartlink ititle="Last Modified" isort=last_modified list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
{if $gBitUser->hasPermission('p_liberty_view_all_status')}
<th>{smartlink ititle="IP" isort=ip list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{counter name=cols assign=cols print=false}
{/if}
</tr>
{foreach from=$contentList item=item}
<tr class="{cycle values='odd,even'}">
<td class="aligncenter">{$item.content_id}</td>
<td>{$item.display_link}</td>
<td>{assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid}</td>
<td>{displayname real_name=$item.creator_real_name user=$item.creator_user}</td>
<td>{displayname real_name=$item.modifier_real_name user=$item.modifier_user}</td>
<td>{$item.last_modified|bit_short_date}</td>
{if $gBitUser->hasPermission('p_liberty_view_all_status')}
<td class="aligncenter">{$item.ip}</td>
{/if}
</tr>
{foreachelse}
<tr class="norecords">
<td class="aligncenter" colspan="{$cols}">
{tr}No records found{/tr}
</td>
</tr>
{/foreach}
</table>
{/form}
{pagination}
</div><!-- end .body -->
</div><!-- end .listing -->
{/strip}
|