コード例 #1
0
 function upload()
 {
     global $my, $mainframe, $database, $option, $priTask, $subTask;
     global $WBG_CONFIG, $wbGalleryDB_cat;
     $cat_id = intval($mainframe->getUserStateFromRequest("view{$option}cat_id", 'cat_id', 0));
     $lists = array();
     $catTree = $wbGalleryDB_cat->getCategoryTree();
     $tList = array(mosHTML::makeOption('0', 'Select a Category...', 'id', 'name'));
     $tList = array_merge($tList, $catTree);
     $lists['cat_id'] = mosHTML::selectList($tList, 'cat_id', '', 'id', 'name', $cat_id);
     wbGallery_img_html::upload($lists);
 }