blob: 15c5dd2d18da7d6e2d4076751b6847c332b1ac08 (
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
|
{strip}
{* assign the correct sort columns for user name sorting *}
{if $gBitSystem->getConfig( 'users_display_name' ) eq 'login'}
{assign var=isort_author value=creator_user}
{assign var=isort_editor value=modifier_user}
{else}
{assign var=isort_author value=creator_real_name}
{assign var=isort_editor value=modifier_real_name}
{/if}
{if $gBitUser->isAdmin()}
<form id="bulkcontentform" action="{$smarty.const.LIBERTY_PKG_URL}list_content.php?{$smarty.server.QUERY_STRING}" method="POST">
{/if}
{assign var=showStatus value=($gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitUser->hasPermission( 'p_liberty_view_all_status' ))}
<table class="table data clear">
<caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
<tr>
{if $gBitUser->isAdmin()}
<th><input name="switcher" id="switcher" type="checkbox" onclick="BitBase.switchCheckboxes(this.form.id,'batch_content_ids[]','switcher')" /></th>
{/if}
<th class="text-right">{smartlink ititle="ID" isort="lc.content_id" list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{if $showStatus}
<th>{smartlink ititle="Status" isort=content_status_name list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{/if}
<th>{smartlink ititle="Title" isort=title list_page=$listInfo.current_page idefault=1 ihash=$listInfo.ihash}</th>
<th>{smartlink ititle="Content Type" isort=content_type_guid list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
<th>{smartlink ititle="Author" isort=$isort_author list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
<th>{smartlink ititle="Most recent editor" isort=$isort_editor list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
<th>{smartlink ititle="Last Modified" isort=last_modified list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
<th>{smartlink ititle="IP" isort=ip list_page=$listInfo.current_page ihash=$listInfo.ihash}</th>
{/if}
</tr>
{foreach from=$contentList item=item}
<tr class="{cycle values='odd,even'}">
{if $gBitUser->isAdmin()}
<td><input type="checkbox" name="batch_content_ids[]" value="{$item.content_id}"/></td>
{/if}
<td class="text-right">{$item.content_id}</td>
{if $showStatus}
<td>{$item.content_status_name}</td>
{/if}
<td>{$item.display_link|default:'Not Set'}</td>
<td>{assign var=content_type_guid value=$item.content_type_guid}{$gLibertySystem->getContentTypeName($content_type_guid)}</td>
<td>{displayname real_name=$item.creator_real_name user=$item.creator_user}</td>
<td class="alignright">{displayname real_name=$item.modifier_real_name user=$item.modifier_user}</td>
<td class="alignright">{$item.last_modified|bit_short_datetime}</td>
{if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
<td>{$item.ip}</td>
{/if}
</tr>
{foreachelse}
<tr class="norecords">
<td colspan="8">{tr}No records found{/tr}</td>
</tr>
{/foreach}
</table>
{if $gBitUser->hasPermission( 'p_users_admin' )}
<div style="text-align:right;">
<select name="action" onchange="if( confirm('Are you sure you want to PERMANENTLY DELETE checked content? This is NOT UNDOABLE.') ) { this.form.submit() }">
<option value="">{tr}with checked{/tr}:</option>
<option value="delete">{tr}Remove{/tr}</option>
<option value="export">{tr}Export List{/tr}</option>
</select>
<noscript>
<div><input type="submit" class="btn btn-default" value="{tr}Submit{/tr}" /></div>
</noscript>
</div>
</form>
{/if}
{pagination content_status_id=$smarty.request.content_status_id|default:''}
{/strip}
|