"", "result" => "", "table" => "", "dialog" => "", ); //---------------------------- // request parameter //---------------------------- $qProjectID = isset($_SESSION["project_id"]) ? $_SESSION["project_id"] : REQ_NON; //---------------------------- // judge post //---------------------------- //---------------------------- // set types //---------------------------- Util::setType($qProjectID, "int"); //---------------------------- // Auth-Before validate //---------------------------- if ( $result === RES_OK ){ if ( ! Validate::isNumeric($qProjectID) ){ $result = RES_NG; $gResult->push("{$WORD($wk, 1)}"); } } //---------------------------- // Auth //---------------------------- if ( $result === RES_OK ){ $auth = Auth::instance("project"); if ( ! $auth->read($qProjectID) ){ $result = RES_NG; $gResult->push("{$WORD($wk, 2)}"); } } //---------------------------- // Auth-After validate //---------------------------- if ( $result === RES_OK ){ } //---------------------------- // process //---------------------------- if ( $result === RES_OK ){ $objDAOProjectUser = DAO::instance("project_user"); $objViewProjectUser = View::instance("project_user"); // メンバー取得 -------------------- if ( $result === RES_OK ){ $resDAOProjectUser = $objDAOProjectUser->get($qProjectID); $result = $resDAOProjectUser["result"]; if ( $result === RES_OK ){ $arrHtml["table"] = $objViewProjectUser->table($qProjectID, $resDAOProjectUser["data"]); $arrHtml["dialog"] = $objViewProjectUser->dialogUserInfo(); } else if ( $result === RES_NO_DATA ){ $gResult->push("{$WORD($wk, 3)}"); } else { $gResult->push("{$WORD($wk, 4)}"); } } } //---------------------------- // html //---------------------------- { // menu ---------------------------------------------------------------- if ( $result !== RES_NG ){ $arrMenu = array(); //----- $arrMenu[0] = $objViewProjectUser->tab(View_project_user::TAB_LIST, $auth, $qProjectID); $arrMenu[1] = $objViewProjectUser->tab(View_project_user::TAB_EDIT, $auth, $qProjectID); //----- $arrHtml["menu"] = Printer::menuTab($arrMenu, 0); } // title --------------------------------------------------------------- $title = "{$WORD($wk, 5)}"; // form ---------------------------------------------------------------- if ( $result === RES_NG ){ // アクション(OK) $arrHtml["table"] = Printer::link("OK", "btn btn-default", NULL, NULL, "/content/project/"); } // result -------------------------------------------------------------- $arrHtml["result"] = $gResult->string(TRUE, $result); } ?>