From fbd7236704470e9faf6e0c6ad9faaa9fe38cec77 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 17 Jan 2006 13:40:50 +0000 Subject: bring getList() up to the new standards and use pagination when listing categories --- templates/edit_pigeonholes.tpl | 1 - templates/list.tpl | 62 +++++++++++++++++++--------------------- templates/view_structure_inc.tpl | 2 +- 3 files changed, 30 insertions(+), 35 deletions(-) (limited to 'templates') diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index df30670..854961d 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -68,7 +68,6 @@
-
{/form} diff --git a/templates/list.tpl b/templates/list.tpl index dbb2d0c..f4e18ae 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -1,7 +1,7 @@ {strip}
-

{tr}Categories Listing{/tr}

+

{tr}Categories Listing{/tr} [ {$listInfo.cant} ]

{* user sort related assigning *} @@ -15,40 +15,36 @@
{minifind} + +
- - - - - - {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} - - {/if} - - - {foreach from=$pigeonList item=item} - - - - {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} - - {/if} - - {foreachelse} - - - - {/foreach} -
{tr}Available Categories{/tr} [ {$pigeonCount} ]
{smartlink ititle="Title" isort=title page=$page idefault=1} / {smartlink ititle="Description" isort=data page=$page}{tr}Categories{/tr}{tr}Actions{/tr}
-

{$item.display_link}

- {$item.data} -
{include file="bitpackage:pigeonholes/view_structure_inc.tpl" no_edit=TRUE subtree=$item.subtree} - {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" ibiticon="liberty/new" structure_id=`$item.structure_id` action=create} - {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" ibiticon="liberty/edit" structure_id=`$item.structure_id`} - {smartlink ititle="Change Structure" ifile="edit_structure.php" ibiticon="pigeonholes/organise" structure_id=`$item.structure_id`} - {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" ibiticon="liberty/delete" action="remove" structure_id=`$item.structure_id`} -
{tr}No Records Found{/tr}
+
+ {foreach from=$pigeonList item=item} + {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} +
+ {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" ibiticon="liberty/new" structure_id=`$item.structure_id` action=create} + {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" ibiticon="liberty/edit" structure_id=`$item.structure_id`} + {smartlink ititle="Change Structure" ifile="edit_structure.php" ibiticon="pigeonholes/organise" structure_id=`$item.structure_id`} + {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" ibiticon="liberty/delete" action="remove" structure_id=`$item.structure_id`} +
+ {/if} +

{$item.display_link}

+ {$item.data} + {include file="bitpackage:pigeonholes/view_structure_inc.tpl" no_edit=TRUE subtree=$item.subtree no_details=true} +
+ {foreachelse} +
+ {tr}No Records Found{/tr} +
+ {/foreach} + {pagination} {libertypagination numPages=$numPages page=$curPage sort_mode=$sort_mode content_type=$contentSelect user_id=$user_id}
diff --git a/templates/view_structure_inc.tpl b/templates/view_structure_inc.tpl index e8b3a88..1b4bf26 100644 --- a/templates/view_structure_inc.tpl +++ b/templates/view_structure_inc.tpl @@ -1,5 +1,5 @@ {strip} -