function execute($requests) { $u = $GLOBALS['KTAI_C_MEMBER_ID']; $pw = $GLOBALS['KTAI_PASSWD']; // --- リクエスト変数 $target_c_commu_topic_id = $requests['target_c_commu_topic_id']; $page = $requests['page']; // ---------- $c_topic = db_commu_c_topic4c_commu_topic_id_2($target_c_commu_topic_id); $c_commu_id = $c_topic['c_commu_id']; $page_size = 20; //ページ $this->set("page", $page); //メンバーリスト $list = db_commu_c_event_member_list4c_commu_topic_id_2($target_c_commu_topic_id, $page_size, $page); $this->set("c_event_member_list", $list[0]); $this->set('is_prev', $list[1]); $this->set('is_next', $list[2]); $pager = array(); $pager['start'] = $page_size * ($page - 1) + 1; $pager['end'] = $pager['start'] + count($list[0]) - 1; $this->set('pager', $pager); // イベント $this->set('c_event', $c_topic); //コミュニティID $this->set("c_commu_id", $c_commu_id); //イベントID $this->set("c_commu_topic_id", $target_c_commu_topic_id); //コミュニティのメンバー数 $this->set("count_member", db_commu_count_c_event_member_list4c_commu_topic_id_2($target_c_commu_topic_id)); return 'success'; }
function k_p_c_event_member_list4c_commu_topic_id($c_commu_topic_id, $page_size, $page) { return db_commu_c_event_member_list4c_commu_topic_id_2($c_commu_topic_id, $page_size, $page); }