function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $keyword = $requests['keyword'];
     $page = $requests['page'];
     $type = $requests['type'];
     // ----------
     //バグ回避のため全角空白を半角空白に統一
     $keyword = str_replace(" ", " ", $keyword);
     do_common_insert_search_log($u, $keyword);
     $page_size = 20;
     $this->set('page', $page);
     //検索結果
     list($result, $is_prev, $is_next, $total_num, $start_num, $end_num) = db_commu_search_c_commu_topic($keyword, $page_size, $page, $type);
     $this->set('c_commu_topic_search_list', $result);
     $this->set('is_prev', $is_prev);
     $this->set('is_next', $is_next);
     $this->set('total_num', $total_num);
     $this->set('start_num', $start_num);
     $this->set('end_num', $end_num);
     $this->set('keyword', $keyword);
     $search_val_list = array('type' => $type);
     $this->set('search_val_list', $search_val_list);
     return 'success';
 }
 function execute($requests)
 {
     $u = $GLOBALS['KTAI_C_MEMBER_ID'];
     // --- リクエスト変数
     $search_word = $requests['search_word'];
     $target_c_commu_category_id = $requests['target_c_commu_category_id'];
     $page = $requests['page'];
     // ----------
     //search log
     do_common_insert_search_log($u, $search_word);
     $page_size = 10;
     //ページ
     $this->set("page", $page);
     //search_word
     $this->set("search_word", $search_word);
     //検索に用いたカテゴリ
     $this->set("target_c_commu_category_id", $target_c_commu_category_id);
     //カテゴリのリスト
     $this->set("c_commu_category_list", db_commu_c_commu_category4null());
     //検索結果
     $list = db_commu_c_commu_list4c_commu_category_id_search($target_c_commu_category_id, $page_size, $page, $search_word);
     $this->set("c_commu_search_result", $list[0]);
     $this->set("count_total", $list[3]);
     $this->set("is_prev", $list[1]);
     $this->set("is_next", $list[2]);
     return 'success';
 }
 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $keyword = $requests['keyword'];
     $page = $requests['page'];
     $type = $requests['type'];
     $c_commu_id = $requests['c_commu_id'];
     $target_commu = $requests['target_commu'];
     // ----------
     if ($target_commu == 'all') {
         openpne_forward('ktai', 'page', 'h_com_topic_find_all');
         exit;
     }
     //--- 権限チェック
     //掲示板閲覧権限
     if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
         handle_kengen_error();
     }
     //バグ回避のため全角空白を半角空白に統一
     $keyword = str_replace(" ", " ", $keyword);
     do_common_insert_search_log($u, $keyword);
     $page_size = 20;
     $this->set('page', $page);
     //検索結果
     list($result, $is_prev, $is_next, $total_num, $start_num, $end_num) = db_commu_search_c_commu_topic($keyword, $page_size, $page, $type, $c_commu_id);
     $this->set('c_commu_topic_search_list', $result);
     $this->set('is_prev', $is_prev);
     $this->set('is_next', $is_next);
     $this->set('total_num', $total_num);
     $this->set('start_num', $start_num);
     $this->set('end_num', $end_num);
     $this->set('keyword', $keyword);
     $search_val_list = array('type' => $type);
     $this->set('search_val_list', $search_val_list);
     $this->set('c_commu_id', $c_commu_id);
     if ($c_commu_id) {
         $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
     }
     return 'success';
 }
 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $keyword = $requests['keyword'];
     $page = $requests['page'];
     // ----------
     //バグ回避のため半角空白を全角に統一
     $keyword = str_replace(" ", " ", $keyword);
     do_common_insert_search_log($u, $keyword);
     $this->set('inc_navi', fetch_inc_navi("h"));
     $page_size = 20;
     $this->set('page', $page);
     list($result, $is_prev, $is_next, $total_num, $start_num, $end_num) = biz_getGroupList($keyword, $page, $page_size);
     $this->set('c_commu_search_list', $result);
     $this->set('is_prev', $is_prev);
     $this->set('is_next', $is_next);
     $this->set('total_num', $total_num);
     $this->set('start_num', $start_num);
     $this->set('end_num', $end_num);
     $this->set('keyword', $keyword);
     return 'success';
 }
Example #5
0
 function execute($requests)
 {
     $u = $GLOBALS['AUTH']->uid();
     // --- リクエスト変数
     $target_c_commu_category_parent_id = $requests['target_c_commu_category_parent_id'];
     $keyword = $requests['keyword'];
     $page = $requests['page'];
     $val_order = $requests['val_order'];
     $category_id = $requests['category_id'];
     // ----------
     //バグ回避のため全角空白を半角空白に統一
     $keyword = str_replace(" ", " ", $keyword);
     do_common_insert_search_log($u, $keyword);
     $this->set('inc_navi', fetch_inc_navi('h'));
     $page_size = 20;
     $this->set('page', $page);
     //検索結果
     list($result, $is_prev, $is_next, $total_num, $start_num, $end_num) = db_commu_search_c_commu4c_commu_category($keyword, $target_c_commu_category_parent_id, $page_size, $page, $val_order, $category_id);
     $this->set('c_commu_search_list', $result);
     $this->set('is_prev', $is_prev);
     $this->set('is_next', $is_next);
     $this->set('total_num', $total_num);
     $this->set('start_num', $start_num);
     $this->set('end_num', $end_num);
     $this->set('keyword', $keyword);
     $search_val_list = array('val_order' => $val_order, 'category_id' => $category_id);
     $this->set('search_val_list', $search_val_list);
     $this->set('c_commu_category_list', db_commu_c_commu_category_list4null());
     $this->set('c_commu_category_parent_list', db_commu_c_commu_category_parent_list4null());
     $this->set('c_commu_category_is_create_commu', db_commu_c_commu_category4is_create_commu());
     // 作成可コミュニティの有無
     $c_commu_category4createflag_num = count(db_commu_c_commu_category4is_create_commu());
     $is_created_commu = $c_commu_category4createflag_num > 0 ? true : false;
     $this->set('is_created_commu', $is_created_commu);
     return 'success';
 }