else $total_num = $file_manager->Total_Mypost( '', $submitter, $category_select, 1, $intree ) ; $invisible_num = $file_manager->Invisible_Num( $category_select, $intree ) ; if( ! empty( $mypost ) ) $postname = $file_manager->get_postname( $submitter ) ; if( ! empty( $category_select ) && empty( $mypost ) ){ $total_info = ( empty( $invisible ) ) ? _MD_D3DOWNLOADS_CATEGORY_FIlE_NUM : _MD_D3DOWNLOADS_CATEGORY_INVISIBLE_NUM ; } elseif( empty( $mypost ) ){ $total_info = ( empty( $invisible ) ) ? _MD_D3DOWNLOADS_TOTAL_FIlE_NUM : _MD_D3DOWNLOADS_TOTAL_INVISIBLE_NUM ; } if( empty( $mypost ) ) $total_num4assign = sprintf( $total_info , $total_num ) ; else $total_num4assign = sprintf( _MD_D3DOWNLOADS_MYPOST_NUM , $postname , $total_num ) ; $order = d3download_convertorderbyout( $select_order ) ; $pagenavarg = "page=filemanager&perpage=".$select_perpage."&orderby=".$order ; if( ! empty( $category_select ) ) $pagenavarg .= "&cid=".$category_select ; if( ! empty( $invisible ) ) $pagenavarg .= "&invisible=".$invisible ; if( ! empty( $mypost ) ) $pagenavarg .= "&mypost=".$mypost."&submitter=".$submitter ; if( ! empty( $intree ) ) $pagenavarg .= "&intree=".$intree ; require_once XOOPS_ROOT_PATH.'/class/pagenav.php' ; $pagenav = new XoopsPageNav( $total_num, $select_perpage, $current_start , 'start' , $pagenavarg ) ; $pagenav4assign = $pagenav->renderNav( 5 ) ; // GET DOWNLOAD LIST $download = $file_manager->get_files( $category_select, $select_perpage, $current_start, $select_order, $invisible, $submitter, $mypost, $intree ) ; $category_tree = ( $category_select != 0 ) ? d3download_category_tree( $mydirname, $category_select, 'index.php?page=filemanager' ) : '' ; // DOWNLOAD DATA UPDATE
$mycategory = new MyCategory( $mydirname, 'Show', $cid, $whr_cat ) ; $pagetitle4assign .= ' - '.$mycategory->return_title() ; } // パンくず部分の処理 $bc[0] = d3download_breadcrumbs( $mydirname ) ; $breadcrumbs_tree = d3download_breadcrumbs_tree( $mydirname, $cid, $whr_cat, "index.php?page=filelist" ) ; $bc[] = ( empty( $breadcrumbs_tree ) ) ? array( 'name' => _MD_D3DOWNLOADS_FILELIST_MAIN ) : array( 'url' => 'index.php?page=filelist' , 'name' => _MD_D3DOWNLOADS_FILELIST_MAIN ) ; $breadcrumbs = array_merge( $bc, $breadcrumbs_tree ) ; // ページナビの処理 $perpage4assign = d3download_items_perpage(); $select_perpage = d3download_select_perpage( $mydirname ) ; $current_start = isset( $_GET['start'] ) ? intval( $_GET['start'] ) : 0 ; require_once dirname( dirname(__FILE__) ).'/class/my_pagenav.php' ; $orderby4pagenav = d3download_convertorderbyout( $orderby ); $pagenavarg = "page=filelist&cid=".$cid."&orderby=".$orderby4pagenav."&perpage=".$select_perpage."&intree=".$intree ; $pagenav = new My_PageNav( $total, $select_perpage, $current_start, 'start', $pagenavarg ) ; $pagenav4assign = $pagenav->renderNav( 5 ) ; $orderbyarg = "index.php?page=filelist&cid=".$cid."&perpage=".$select_perpage."&intree=".$intree ; $xoopsTpl->assign( 'perpage' , $perpage4assign ) ; $xoopsTpl->assign( 'select_perpage' , $select_perpage ) ; $xoopsTpl->assign( 'pagenav' , $pagenav4assign ) ; $xoopsTpl->assign( 'argument' , $orderbyarg ) ; $xoopsTpl->assign( 'orderby' , $orderby4pagenav ) ; $xoopsOption['template_main'] = $mydirname.'_main_filelist.html' ; // 登録件数をアサイン $xoopsTpl->assign( 'download_total_num' , $total_num ) ;