Beispiel #1
0
// 管理者と管理者以外のテンプレートを分けて処理
if( $module_admin ){
	$xoopsOption['template_main'] = $mydirname.'_admin_submit.html' ;
} else {
	$xoopsOption['template_main'] = $mydirname.'_main_submit.html' ;
}

// パンくず部分の処理
$whr_cat = "cid IN (".implode(",", $user_access->can_read() ).")" ;
$bc[0] = d3download_breadcrumbs( $mydirname ) ;
$breadcrumbs = array_merge( $bc ,d3download_breadcrumbs_tree( $mydirname, $cid, $whr_cat, '', 1 ) ) ;
$formtitle = _MD_D3DOWNLOADS_SUBMIT_NEW ;
$breadcrumbs[] = array( 'name' => $formtitle ) ;

// 投稿可能なカテゴリリストのみ取得
$whr_cat4post = "cid IN (".implode(",", $user_access->can_post() ).")" ;
if( $module_admin ) $category = d3download_categories_selbox( $mydirname, $whr_cat4post );
else $category = d3download_categories_selbox( $mydirname, $whr_cat4post, $cid );

// 利用可能な OS/ソフト等のリストを取得
$submit_download = new submit_download( $mydirname ) ;
$select_platform = $submit_download->Select_Platform() ;

// ライセンスのリストを取得
$select_license = $submit_download->Select_License() ;

// スクリーンショット画像の取得
$canuseshots = $submit_download->can_useshots() ;
$usealbum = $submit_download->can_albumselect() ;
if( ! empty( $canuseshots ) ){
	$shots_dir = d3download_shots_dir( $mydirname, $cid );