summaryrefslogtreecommitdiff
path: root/list_content.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:55:51 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:55:51 +0000
commit9263d2df0226a118f4add4664d746a266ce5aa78 (patch)
tree7bc560ee5a4111a80f7b4ecd23afe53278cfd352 /list_content.php
downloadliberty-9263d2df0226a118f4add4664d746a266ce5aa78.tar.gz
liberty-9263d2df0226a118f4add4664d746a266ce5aa78.tar.bz2
liberty-9263d2df0226a118f4add4664d746a266ce5aa78.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'list_content.php')
-rw-r--r--list_content.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/list_content.php b/list_content.php
new file mode 100644
index 0000000..5678aba
--- /dev/null
+++ b/list_content.php
@@ -0,0 +1,30 @@
+<?php
+require_once("../bit_setup_inc.php");
+
+// some content specific offsets and pagination settings
+if( !empty( $_REQUEST['sort_mode'] ) ) {
+ $content_sort_mode = $_REQUEST['sort_mode'];
+ $smarty->assign( 'sort_mode', $content_sort_mode );
+}
+
+$max_content = $gBitSystem->mPrefs['maxRecords'];
+$offset_content = !empty( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
+$smarty->assign( 'user_id', !empty( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
+$smarty->assign( 'page', $page = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 );
+$offset_content = ( $page - 1 ) * $gBitSystem->mPrefs['maxRecords'];
+
+// now that we have all the offsets, we can get the content list
+include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' );
+
+// calculate page number
+$numPages = ceil( $contentList['cant'] / $gBitSystem->mPrefs['maxRecords'] );
+$smarty->assign( 'numPages', $numPages );
+
+//$smarty->assign_by_ref('offset', $offset);
+$smarty->assign( 'contentSelect', $contentSelect );
+$smarty->assign( 'contentTypes', $contentTypes );
+$smarty->assign( 'contentList', $contentList['data'] );
+
+$gBitSystem->setBrowserTitle( 'List Content' );
+$gBitSystem->display( 'bitpackage:liberty/list_content.tpl' );
+?>