Esempio n. 1
0
$cid = ( ! empty( $_GET['cid'] ) ) ? intval( $_GET['cid'] ) : 0 ;
$select_intree = d3download_select_intree();
$intree =  ( ! empty( $_GET['intree'] ) ) ? 1 : 0 ;

$xoopsTpl->assign( 'select_id', $cid ) ; 
$xoopsTpl->assign( 'category_id', $cid );
$xoopsTpl->assign( 'select_intree' , $select_intree ) ; 
$xoopsTpl->assign( 'intree', $intree );

// 登録件数を取得
$total =  $mydownload->Total_Num( $whr_cat, $cid, 0, 0, $intree ) ;
$total_num = ( ! empty( $cid ) ) ? sprintf( _MD_D3DOWNLOADS_CATEGORY_NUM , $total ) : sprintf( _MD_D3DOWNLOADS_TOTAL_NUM , $total ) ;

// 非公開件数をアサイン
if( $module_admin ){
	$invisible_num = $mydownload->Invisible_Num( $cid, $intree ) ;
	$xoopsTpl->assign( 'invisible_num' , $invisible_num['num']  ) ;
	$xoopsTpl->assign( 'invisible_link' , $invisible_num['link']  ) ;
}

// ページタイトルをアサイン
$pagetitle4assign = _MD_D3DOWNLOADS_FILELIST_MAIN ;
if( ! empty( $cid ) ){
	include_once dirname( dirname(__FILE__) ).'/class/mycategory.php' ;
	$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" ) ;