From d1c9c79cb9d443da1c2db0a49c91a7baaaa57714 Mon Sep 17 00:00:00 2001 From: wjames5 Date: Fri, 28 Mar 2008 21:09:48 +0000 Subject: new getViewTemplates for asking for center templates from any content type - content classes can override to use their templates - liberty provides generic center templates by default --- templates/center_list_generic.tpl | 83 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 templates/center_list_generic.tpl (limited to 'templates/center_list_generic.tpl') diff --git a/templates/center_list_generic.tpl b/templates/center_list_generic.tpl new file mode 100644 index 0000000..beed221 --- /dev/null +++ b/templates/center_list_generic.tpl @@ -0,0 +1,83 @@ +{strip} +
{bithelp}
+ +
+
+

{tr}{if $contentType}{$contentType}s{else}Content Listing{/if}{/tr}

+
+ + {formfeedback error=$errors} + +
+ {form class="minifind" legend="find in entries"} + + {biticon ipackage="icons" iname="edit-find" iexplain="Search"}   +   +   +   +   + + {/form} + + {form id="checkform"} + + + + + +
+ + + + + {counter name=cols start=-1 print=false} + + {counter name=cols assign=cols print=false} + + {counter name=cols assign=cols print=false} + + {counter name=cols assign=cols print=false} + + {counter name=cols assign=cols print=false} + + {counter name=cols assign=cols print=false} + + {counter name=cols assign=cols print=false} + {if $gBitUser->hasPermission('p_liberty_view_all_status')} + + {counter name=cols assign=cols print=false} + {/if} + + {foreach from=$contentList item=item} + + + + + + + + {if $gBitUser->hasPermission('p_liberty_view_all_status')} + + {/if} + + {foreachelse} + + {/foreach} +
{tr}{if $contentType}{$contentType}s{else}Content{/if} Listing{/tr} [ {$listInfo.total_records} ]
{smartlink ititle="ID" isort=content_id list_page=$listInfo.current_page ihash=$listInfo.ihash}{smartlink ititle="Title" isort=title list_page=$listInfo.current_page idefault=1 ihash=$listInfo.ihash}{smartlink ititle="Content Type" isort=content_type_guid list_page=$listInfo.current_page ihash=$listInfo.ihash}{smartlink ititle="Author" isort=$isort_author list_page=$listInfo.current_page ihash=$listInfo.ihash}{smartlink ititle="Most recent editor" isort=$isort_editor list_page=$listInfo.current_page ihash=$listInfo.ihash}{smartlink ititle="Last Modified" isort=last_modified list_page=$listInfo.current_page ihash=$listInfo.ihash}{smartlink ititle="IP" isort=ip list_page=$listInfo.current_page ihash=$listInfo.ihash}
{$item.content_id}{$item.display_link}{assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid}{displayname real_name=$item.creator_real_name user=$item.creator_user}{displayname real_name=$item.modifier_real_name user=$item.modifier_user}{$item.last_modified|bit_short_date}{$item.ip}
+ {tr}No records found{/tr} +
+ {/form} + + {pagination} +
+
+{/strip} -- cgit v1.3