$code="board"; $board = new BbsSql("$code"); // 테이블명조회 및 객체생성. $boardFile = new BoardFileSql(); // 파일 생성. $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : ''; $searchValue = isset($_REQUEST['searchValue']) ? $_REQUEST['searchValue'] : ''; $boardId="epublication"; $listSize = $listSize == '' ? '10' : $listSize; $startDate = isset($_REQUEST['startDate']) ? $_REQUEST['startDate'] : ''; $endDate = isset($_REQUEST['endDate']) ? $_REQUEST['endDate'] : ''; $startDate = $startDate == '' ? date("Y-m-d",strtotime("-20 year", time())) : $startDate; // 기본 20년 이전. $endDate = $endDate == '' ? date("Y-m-d",time()) : $endDate; $category = isset($_REQUEST['category']) ? $_REQUEST['category'] : ''; if (!$page) $page=1; //if($boardId) $pWhere=" where board_id='$boardId' and is_open in ('Y', 'N', Null) "; $pWhere=" where board_id='$boardId' and is_open='Y' "; $gConn = new DBConn(); if ($startDate) $pWhere .=" and reg_date >= '$startDate.:00:00:00' "; if ($endDate) $pWhere .=" and reg_date <= '$endDate.:23:99:99' "; if ($category) $pWhere .=" and category = '$category' "; //echo '$searchvalue'. $searchValue; $board->category="board_publication"; $PageLs = $board->PageLs ( $pWhere, '', $searchValue, $page, $listSize, $gConn->mConn); $codeList = new CodeListSql(); $codeList->codeGroup = "board_publication"; $categoryList = $codeList->SelectCodeGroupList ($gConn->mConn) ; $gConn->DisConnect(); $PageLink="?page=$page&listSize=$listSize&startDate=$startDate&endDate=$endDate&category=$category"; $CommLink="?searchValue=$searchValue&listSize=$listSize&startDate=$startDate&endDate=$endDate&category=$category"; $boardInfo = BbsSql::getBoardInfo($boardId); ?> $type = "sub"; $dep1 = "4"; $dep2 = "1"; $dep1_name = "Reference"; $dep2_name = "Publication"; $sub_title = "Publication"; ?>