Esempio n. 1
0
 /**
  * @param string $tplFile
  */
 protected function fetch($tplFile)
 {
     if (DAGGER_TEMPLATE_ENGINE === 'smarty') {
         $tpl = new BaseViewSmarty();
     } else {
         $tpl = new BaseView();
     }
     $tpl->assign($this->view);
     return trim($tpl->fetch($tplFile));
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $community_row = $request->getAttribute('community_row');
     $delete_community_row = $request->getAttribute('delete_community_row');
     $mode = $request->getAttribute('mode');
     // 加工
     $delete_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $delete_community_row['community_id'];
     // コミュニティトップページのURL
     $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // コミュニティ間リンク設定URL
     $community_link_url = $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id'];
     // action URL
     $action_url = $this->getControllerPath('Community', 'DeleteCommunityLink') . '&community_id=' . $community_row['community_id'] . '&delete_community_id=' . $delete_community_row['community_id'] . '&mode=' . $mode;
     // back URL
     $back_url = $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id'];
     // set
     $this->setAttribute('community_row', $community_row);
     $this->setAttribute('delete_community_row', $delete_community_row);
     $this->setAttribute('mode', $mode);
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     $this->setAttribute('community_link_url', $community_link_url);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('back_url', $back_url);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DeleteCommunityLink.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $file_id = $request->getParameter('file_id');
     $file_info_row = $request->getAttribute('file_info_row');
     $file_history_row = $request->getAttribute('file_history_row');
     // コミュニティ情報 //
     $target_community_row = ACSCommunity::get_community_row($target_community_id);
     $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
     // 加工
     $file_history_row['display_file_name'] = $file_info_row['display_file_name'];
     $file_history_row['file_size_kb'] = number_format(ceil($file_history_row['file_size'] / 1024)) . " KB";
     $file_history_row['download_history_file_url'] = $this->getControllerPath('Community', 'DownloadHistoryFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id . '&file_history_id=' . $file_history_row['file_history_id'];
     $action_url = $this->getControllerPath('Community', 'RestoreHistoryFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id . '&file_history_id=' . $file_history_row['file_history_id'];
     // ファイル詳細情報URL
     $file_detail_url = $this->getControllerPath('Community', 'FileDetail') . '&community_id=' . $target_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_community_folder_id;
     // set
     $this->setAttribute('target_community_row', $target_community_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('file_detail_url', $file_detail_url);
     $this->setAttribute('file_history_row', $file_history_row);
     $this->setScreenId("0001");
     $this->setTemplate('RestoreHistoryFile.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // get
     // ユーザ情報一覧
     $user_info_row_array = $request->getAttribute('user_info_row_array');
     $form = $request->getAttribute('form');
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
     // 加工
     if (is_array($user_info_row_array)) {
         foreach ($user_info_row_array as $index => $user_info_row) {
             $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
             $user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
             $user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
         }
     }
     // URL
     $action_url = $this->getControllerPath();
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('SearchUser.tpl.php');
     // set
     $this->setAttribute('form', $form);
     $this->setAttribute('user_info_row_array', $user_info_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('module', 'User');
     $this->setAttribute('action', 'SearchUser');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $target_message_id = $request->getAttribute('target_message_id');
     // メッセージの所有者
     $target_user_community_id = $target_user_info_row['user_community_id'];
     $target_user_info = '&id=' . $target_user_community_id;
     $action_url = "";
     $action_url = $this->getControllerPath('User', 'DeleteMessage');
     $action_url .= $target_user_info;
     $action_url .= "&action_type=delete";
     $move_id = $request->getAttribute('move_id');
     if ($move_id == 2) {
         $action_url .= "&move_id=2";
     }
     // 削除対象メッセージ
     $message_id_array = array();
     foreach ($target_message_id as $message) {
         $_message_row['message_id'] = $message;
         array_push($message_id_array, $_message_row);
     }
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DeleteMessage.tpl.php');
     // set
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('message_id_array', $message_id_array);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $form = $request->getAttribute('form');
     // get
     $user_info_row_array = $request->getAttribute('user_info_row_array');
     foreach ($user_info_row_array as $index => $user_info_row) {
         $user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
         $user_info_row_array[$index]['edit_page_url'] = $this->getControllerPath('System', 'EditUser') . '&id=' . $user_info_row['user_community_id'];
         $user_info_row_array[$index]['delete_page_url'] = $this->getControllerPath('System', 'DeleteUser') . '&id=' . $user_info_row['user_community_id'];
         $user_info_row_array[$index]['login_info_url'] = $this->getControllerPath('System', 'LoginInfo') . '&id=' . $user_info_row['user_community_id'];
     }
     $add_user_url = $this->getControllerPath('System', 'AddUser');
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $user_info_row_array, $display_count);
     // URL
     $action_url = $this->getControllerPath();
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('UserList.tpl.php');
     // set
     $this->setAttribute('form', $form);
     $this->setAttribute('user_info_row_array', $user_info_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('add_user_url', $add_user_url);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('module', 'System');
     $this->setAttribute('action', 'UserList');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 表示対象のユーザ情報
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     // 表示対象のフォルダID
     $target_folder_id = $request->getAttribute('target_folder_id');
     // 選択対象となるコミュニティ
     $community_row_array = $request->getAttribute('community_row_array');
     // 設定されているプット先コミュニティ
     $put_community_row_array = $request->getAttribute('put_community_row_array');
     // ----------------------------
     // 加工
     // プット先コミュニティ設定URL
     $put_community_url = $this->getControllerPath('User', 'FolderPutCommunity');
     $put_community_url .= '&id=' . $target_user_info_row['user_community_id'];
     $put_community_url .= '&folder_id=' . $target_folder_id;
     // 選択可能なコミュニティを加工
     $select_community_row_array = array();
     foreach ($community_row_array as $community_row) {
         $select_community_row = array();
         $select_community_row['community_id'] = $community_row['community_id'];
         $select_community_row['community_name'] = $community_row['community_name'];
         $select_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
         $select_community_row['top_page_url'] .= '&community_id=' . $community_row['community_id'];
         // フォルダツリー取得
         $select_community_row['folder_tree'] = "";
         //$folder_tree = $community_row['folder_tree'];
         $folder_tree = array();
         $this->make_folder_tree($community_row['folder_tree'], $folder_tree);
         // 設定されているかどうか
         foreach ($put_community_row_array as $put_community_row) {
             // フォルダ検索
             $folder_tree_index = 0;
             foreach ($folder_tree as $folder_row) {
                 if ($put_community_row['community_id'] == $community_row['community_id'] && $put_community_row['put_community_folder_id'] == $folder_row['folder_id']) {
                     $folder_tree[$folder_tree_index]['is_selected'] = true;
                     $is_selected = true;
                     break;
                 }
                 $folder_tree_index++;
             }
         }
         // フォルダツリーをセット
         $select_community_row['folder_tree'] = $folder_tree;
         array_push($select_community_row_array, $select_community_row);
     }
     // ----------------------------
     // set
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('FolderPutCommunity.tpl.php');
     $this->setAttribute('put_community_url', $put_community_url);
     $this->setAttribute('select_community_row_array', $select_community_row_array);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $system_announce_row_array = $request->getAttribute('system_announce_row_array');
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $system_announce_row_array, $display_count);
     foreach ($system_announce_row_array as $index => $system_announce_row) {
         $system_announce_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $system_announce_row['community_id'];
         $system_announce_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['post_date'], true, true);
         $system_announce_row_array[$index]['expire_date'] = ACSLib::convert_pg_date_to_str($system_announce_row['expire_date'], false, false, false);
         $system_announce_row_array[$index]['is_expire'] = ACSLib::get_boolean($system_announce_row['is_expire']);
         $system_announce_row_array[$index]['system_announce_delete_flag'] = ACSLib::get_boolean($system_announce_row['system_announce_delete_flag']);
         $system_announce_row_array[$index]['delete_system_announce_url'] = $this->getControllerPath('System', 'DeleteSystemAnnounce') . '&system_announce_id=' . $system_announce_row['system_announce_id'];
     }
     // システムアナウンス(システムからのお知らせ)作成URL
     $create_system_announce_url = $this->getControllerPath('System', 'CreateSystemAnnounce');
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('SystemAnnounceList.tpl.php');
     // set
     $this->setAttribute('system_announce_row_array', $system_announce_row_array);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('create_system_announce_url', $create_system_announce_url);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $footprint_info_row_array = $request->getAttribute('footprint_info_row_array');
     $user_community_id = $request->getAttribute('user_community_id');
     //top
     $top_page_url = $this->getControllerPath('User', 'Index') . '&id=' . $user_community_id;
     foreach ($footprint_info_row_array as $index => $footprint_row) {
         // 足跡日付
         $footprint_info_row_array[$index]['post_date_disp'] = ACSLib::convert_pg_date_to_str($footprint_row['post_date']);
         // 足跡をつけたユーザのトップページURL
         $footprint_info_row_array[$index]['visitor_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $footprint_row['visitor_community_id'];
         // コンテンツ日付
         $footprint_info_row_array[$index]['contents_date_disp'] = "(" . ACSLib::convert_pg_date_to_str($footprint_row['contents_date'], 0, 0) . ")";
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'FOOTPRINT_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $footprint_info_row_array, $display_count);
     // set
     $this->setAttribute('acs_user_info_row', $acs_user_info_row);
     $this->setAttribute('top_page_url', $top_page_url);
     $this->setAttribute('footprint_info_row_array', $footprint_info_row_array);
     $this->setAttribute('paging_info', $paging_info);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('FootprintCheck.tpl.php');
     return parent::execute();
 }
Esempio n. 10
0
    protected function getScript()
    {
        ob_start();
        ?>
			<?php 
        echo parent::getScript();
        ?>
			
			$(document).ready(function() {
				// jQuery Form: Manipulação de formulário via AJAX
				$('#myLogin').ajaxForm({
					success: function(data) {
						// Redirecionamento de página
						if(data.redirect != null)
							window.location.href = data.redirect;
						
						// Preenche mensagem global
						$('#message').hide().html(data.message).fadeIn('slow');
					},
					error: function(data) {
						ajaxErrorResponse = data.responseText;
						$('#message').html("<?php 
        echo $this->errorAjax;
        ?>
");
					},
					dataType: 'json'
				}); 
			});
		<?php 
        return ob_get_clean();
    }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // ユーザ一覧URL
     $user_list_url = $this->getControllerPath('System', 'UserList');
     // ログ管理URL
     $log_url = $this->getControllerPath('System', 'Log');
     // システムアナウンス(システムからのお知らせ)一覧URL
     $system_announce_list_url = $this->getControllerPath('System', 'SystemAnnounceList');
     // システム設定URL
     $edit_system_config_url = $this->getControllerPath('System', 'EditSystemConfig');
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('Index.tpl.php');
     // set
     $this->setAttribute('user_list_url', $user_list_url);
     $this->setAttribute('log_url', $log_url);
     $this->setAttribute('create_system_announce_url', $create_system_announce_url);
     $this->setAttribute('system_announce_list_url', $system_announce_list_url);
     $this->setAttribute('edit_system_config_url', $edit_system_config_url);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $target_community_row = $request->getAttribute('target_community_row');
     $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
     // URL に付加する target_community
     $target_community_info = '&community_id=' . $target_community_row['community_id'];
     // コミュニティのURL
     $community_top_page_url = $this->getControllerPath('Community', 'Index');
     $community_top_page_url .= $target_community_info;
     // キャンセルURL
     $cancel_action_url = $community_top_page_url;
     // 削除アクションURL
     $delete_action_url = $this->getControllerPath('Community', 'DeleteCommunity');
     $delete_action_url .= $target_community_info;
     // コミュニティの概要
     $delete_community_row = array();
     $delete_community_row['community_name'] = $target_community_row['community_name'];
     $delete_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . $target_community_info;
     $delete_community_row['image_url'] = ACSCommunity::get_image_url($target_community_row['community_id']);
     $delete_community_row['community_profile'] = $target_community_row['community_profile']['contents_value'];
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     $this->setAttribute('target_community_name', $target_community_row['community_name']);
     $this->setAttribute('delete_community_row', $delete_community_row);
     // form のアクション先 URL
     $this->setAttribute('cancel_action_url', $cancel_action_url);
     $this->setAttribute('delete_action_url', $delete_action_url);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DeleteCommunity_confirm.tpl.php');
     return parent::execute();
 }
 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $new_open_diary_row_array = $request->getAttribute('new_open_diary_row_array');
     // 加工
     foreach ($new_open_diary_row_array as $index => $new_open_diary_row) {
         // 投稿者のトップページURL
         $new_open_diary_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $new_open_diary_row['user_community_id'];
         // 投稿者の写真
         $new_open_diary_row_array[$index]['image_url'] = ACSUser::get_image_url($new_open_diary_row['user_community_id'], 'thumb');
         // ダイアリーコメントURL
         $new_open_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $new_open_diary_row['user_community_id'] . '&diary_id=' . $new_open_diary_row['diary_id'];
         $new_open_diary_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_open_diary_row['post_date']);
     }
     // set
     $this->setAttribute('new_open_diary_row_array', $new_open_diary_row_array);
     // テンプレートをセットする
     $this->setTemplate('NewOpenDiary.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("NewOpenDiary", $this->render());
     return parent::execute();
 }
 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $new_bbs_for_press_release_row_array = $request->getAttribute('new_bbs_for_press_release_row_array');
     // 加工
     foreach ($new_bbs_for_press_release_row_array as $index => $new_bbs_row) {
         $new_bbs_for_press_release_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $new_bbs_row['community_id'];
         $new_bbs_for_press_release_row_array[$index]['bbs_res_url'] = $this->getControllerPath('Community', 'BBSRes') . '&community_id=' . $new_bbs_row['community_id'] . '&bbs_id=' . $new_bbs_row['bbs_id'];
         if ($new_bbs_row['file_id']) {
             $new_bbs_for_press_release_row_array[$index]['file_url'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], 'thumb');
             // サムネイル
             $new_bbs_for_press_release_row_array[$index]['file_url_alink'] = ACSBBSFile::get_image_url($new_bbs_row['bbs_id'], '');
             // ポップアップ用
         }
         $new_bbs_for_press_release_row_array[$index]['post_date'] = ACSLib::convert_pg_date_to_str($new_bbs_row['post_date'], 1, 0);
     }
     // set
     $this->setAttribute('new_bbs_for_press_release_row_array', $new_bbs_for_press_release_row_array);
     // テンプレートをセットする
     $this->setTemplate('NewPressRelease.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("NewPressRelease", $this->render());
     return parent::execute();
 }
 function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
     // 加工
     foreach ($commented_diary_row_array as $index => $commented_diary_row) {
         $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
         $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_LIST_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $commented_diary_row_array, $display_count);
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
     $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('get_days', $request->getAttribute('get_days'));
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('DiaryCommentHistory.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $login_info_row_array = $request->getAttribute('login_info_row_array');
     $top_page_url = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $target_user_info_row['community_id'];
     // 加工
     foreach ($login_info_row_array as $index => $login_info_row) {
         $login_info_row_array[$index]['login_date'] = ACSLib::convert_pg_date_to_str($login_info_row['login_date']);
         $login_info_row_array[$index]['logout_date'] = ACSLib::convert_pg_date_to_str($login_info_row['logout_date']);
     }
     // ページング設定
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'USER_SEARCH_RESULT_DISPLAY_MAX_COUNT');
     $paging_info = $this->getPagingInfo($controller, $request, $login_info_row_array, $display_count);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('LoginInfo.tpl.php');
     // set
     //$this->setAttribute('form', $form);
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('login_info_row_array', $login_info_row_array);
     $this->setAttribute('top_page_url', $top_page_url);
     $this->setAttribute('paging_info', $paging_info);
     $this->setAttribute('module', 'System');
     $this->setAttribute('action', 'LoginInfo');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $target_community_row = $request->getAttribute('target_community_row');
     $delete_user_info_row_array = $request->getAttribute('delete_user_info_row_array');
     // URL に付加する target_community
     $target_community_info = '&community_id=' . $target_community_row['community_id'];
     // 加工
     // コミュニティのURL
     $community_top_page_url = $this->getControllerPath('Community', 'Index');
     $community_top_page_url .= $target_community_info;
     // キャンセルURL
     $cancel_action_url = $community_top_page_url;
     // 退会アクションURL
     $leave_action_url = $this->getControllerPath('Community', 'LeaveCommunity');
     $leave_action_url .= $target_community_info;
     // set
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     $this->setAttribute('target_community_name', $target_community_row['community_name']);
     // form のアクション先 URL
     $this->setAttribute('cancel_action_url', $cancel_action_url);
     $this->setAttribute('leave_action_url', $leave_action_url);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('LeaveCommunity_confirm.tpl.php');
     return parent::execute();
 }
Esempio n. 18
0
 public function __construct()
 {
     if (!in_array($_SESSION['dept'], self::$dept)) {
         PublicView::jumpswitch();
     }
     parent::__construct();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $community_row = $request->getAttribute('community_row');
     $community_member_user_info_row_array = $request->getAttribute('community_member_user_info_row_array');
     $community_member_user_info_row_array_num = count($community_member_user_info_row_array);
     foreach ($community_member_user_info_row_array as $index => $user_info_row) {
         $community_member_user_info_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
         $community_member_user_info_row_array[$index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
         $community_member_user_info_row_array[$index]['friends_row_array_num'] = ACSUser::get_friends_row_array_num($user_info_row['user_community_id']);
     }
     // コミュニティトップページのURL
     $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('CommunityMemberList.tpl.php');
     // set
     $this->setAttribute('community_row', $community_row);
     $this->setAttribute('community_member_user_info_row_array', $community_member_user_info_row_array);
     $this->setAttribute('community_member_user_info_row_array_num', $community_member_user_info_row_array_num);
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $community_row = $request->getAttribute('community_row');
     $is_admission_required = $request->getAttribute('is_admission_required');
     // URL
     $action_url = $this->getControllerPath('Community', 'JoinCommunity') . '&community_id=' . $community_row['community_id'];
     $back_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // コミュニティトップページのURL
     $community_top_page_url = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id'];
     // テンプレート
     if ($is_admission_required) {
         // 承認が必要
         $this->setScreenId("0001");
         $this->setTemplate('JoinCommunity_admission.tpl.php');
     } else {
         // 自由参加
         $this->setScreenId("0001");
         $this->setTemplate('JoinCommunity.tpl.php');
     }
     // set
     $this->setAttribute('community_row', $community_row);
     $this->setAttribute('is_admission_required', $is_admission_required);
     $this->setAttribute('back_url', $back_url);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('community_top_page_url', $community_top_page_url);
     return parent::execute();
 }
Esempio n. 21
0
 function execute()
 {
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('Logout.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $file_id = $request->getParameter('file_id');
     // コミュニティ情報 //
     $target_community_row = ACSCommunity::get_community_row($target_community_id);
     $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
     $action_url = $this->getControllerPath('Community', 'UpdateFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&file_id=' . $file_id;
     // ファイル詳細情報URL
     $file_detail_url = $this->getControllerPath('Community', 'FileDetail') . '&community_id=' . $target_community_id . '&file_id=' . $file_id . '&folder_id=' . $target_community_folder_id;
     // set
     $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
     $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
     $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
     $this->setAttribute('target_community_row', $target_community_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('file_detail_url', $file_detail_url);
     $this->setScreenId("0001");
     $this->setTemplate('UpdateFile.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $message_row = $request->getAttribute('message_row');
     // 加工
     //送信者のトップページURL
     $link_page_url['else_user_message_url'] = $this->getControllerPath(DEFAULT_MODULE, 'Index') . '&id=' . $message_row['user_id'];
     // 投稿日時
     $message_row['post_date'] = ACSLib::convert_pg_date_to_str($message_row['post_date']);
     // メニュー部URL
     $menu['receiv_box_url'] = $this->getControllerPath('User', 'MessageBox') . '&id=' . $acs_user_info_row['user_community_id'];
     $menu['send_box_url'] = $this->getControllerPath('User', 'MessageBox') . '&id=' . $acs_user_info_row['user_community_id'] . '&move_id=2';
     // 返信ボタンURL
     $message_return_url = $this->getControllerPath('User', 'Message') . '&id=' . $message_row['user_id'] . '&message_id=' . $message_row['message_id'] . '&move_id=4';
     // set
     $this->setAttribute('acs_user_info_row', $acs_user_info_row);
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('message_row', $message_row);
     $this->setAttribute('message_return_url', $message_return_url);
     $this->setAttribute('menu', $menu);
     $this->setAttribute('move_id', $request->getAttribute('move_id'));
     $this->setAttribute('link_page_url', $link_page_url);
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('MessageShow.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     //get
     // 対象となるUserIDを取得
     $user_id = $request->getParameter('id');
     //ユーザ入力情報
     $form = $user->getAttribute('new_form_obj');
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // form action
     $action_url = $this->getControllerPath('User', 'MessagePre') . '&id=' . $user_id . '&move_id=2';
     $back_url = $this->getControllerPath('User', 'Message') . '&id=' . $user_id . '&move_id=3';
     // MessageトップページのURL
     $message_top_page_url = $this->getControllerPath('User', 'Message') . '&id=' . $user_id;
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('acs_user_info_row', $acs_user_info_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('back_url', $back_url);
     $this->setAttribute('message_top_page_url', $message_top_page_url);
     $this->setAttribute('form', $form);
     // エラーメッセージ
     $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
     // テンプレート
     $this->setTemplate('MessagePre.tpl.php');
     $this->setScreenId("0001");
     return parent::execute();
 }
 public function __construct()
 {
     parent::__construct();
     if (!isset($_REQUEST["PHPSESSID"])) {
         $this->smarty->assign("progressInfor", A('Public')->act_getInforProgress());
     }
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $friends_group_row_array = $request->getAttribute('friends_group_row_array');
     // マイフレンズグループ数
     $friends_group_row_array_num = count($friends_group_row_array);
     // マイフレンズグループ
     foreach ($friends_group_row_array as $index => $friends_group_row) {
         $friends_group_row_array[$index]['edit_friends_group_member_url'] = $this->getControllerPath('User', 'EditFriendsGroupMember') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
         $friends_group_row_array[$index]['delete_friends_group_url'] = $this->getControllerPath('User', 'DeleteFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'] . '&community_id=' . $friends_group_row['community_id'];
         // 各マイフレンズグループのメンバ
         foreach ($friends_group_row_array[$index]['friends_row_array'] as $user_info_row_index => $user_info_row) {
             $friends_group_row_array[$index]['friends_row_array'][$user_info_row_index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $user_info_row['user_community_id'];
             $friends_group_row_array[$index]['friends_row_array'][$user_info_row_index]['image_url'] = ACSUser::get_image_url($user_info_row['user_community_id'], 'thumb');
         }
         $friends_group_row_array[$index]['friends_row_array_num'] = count($friends_group_row_array[$index]['friends_row_array']);
     }
     // マイフレンズグループ作成URL
     $create_friends_group_url = $this->getControllerPath('User', 'CreateFriendsGroup') . '&id=' . $target_user_info_row['user_community_id'];
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('FriendsGroupList.tpl.php');
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('friends_group_row_array', $friends_group_row_array);
     $this->setAttribute('friends_group_row_array_num', $friends_group_row_array_num);
     $this->setAttribute('create_friends_group_url', $create_friends_group_url);
     return parent::execute();
 }
 public function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     // get
     $ranking_community_row_array = $request->getAttribute('ranking_community_row_array');
     // 加工
     $rank = 1;
     foreach ($ranking_community_row_array as $index => $ranking_community_row) {
         // トップページURL
         $ranking_community_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $ranking_community_row['community_id'];
         // 写真
         $ranking_community_row_array[$index]['image_url'] = ACSCommunity::get_image_url($ranking_community_row['community_id'], 'thumb');
         // プロフィール
         $ranking_community_row_array[$index]['contents_row_array']['community_profile'] = ACSCommunity::get_contents_row($ranking_community_row['community_id'], ACSMsg::get_mst('contents_type_master', 'D07'));
         // 順位
         $ranking_community_row_array[$index]['rank'] = $rank;
         $rank++;
     }
     // set
     $this->setAttribute('ranking_community_row_array', $ranking_community_row_array);
     // テンプレートをセットする
     $this->setTemplate('CommunityRanking.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("CommunityRanking", $this->render());
     return parent::execute();
 }
 function execute()
 {
     $context =& $this->getContext();
     $user = $context->getUser();
     $request = $context->getRequest();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $target_user_info_row = $request->getAttribute('target_user_info_row');
     $commented_diary_row_array = $request->getAttribute('commented_diary_row_array');
     // 加工
     foreach ($commented_diary_row_array as $index => $commented_diary_row) {
         $commented_diary_row_array[$index]['diary_comment_url'] = $this->getControllerPath(DEFAULT_MODULE, 'DiaryComment') . '&id=' . $commented_diary_row['community_id'] . '&diary_id=' . $commented_diary_row['diary_id'];
         $commented_diary_row_array[$index]['is_unread'] = ACSLib::get_boolean($commented_diary_row['is_unread']);
     }
     // 新着日記一覧URL
     $diary_comment_history_url = $this->getControllerPath(DEFAULT_MODULE, 'DiaryCommentHistory') . '&id=' . $target_user_info_row['user_community_id'];
     // 表示件数制御 //
     $display_count = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D02'), 'NEW_INFO_TOP_DISPLAY_MAX_COUNT');
     $commented_diary_row_array = array_slice($commented_diary_row_array, 0, $display_count);
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('commented_diary_row_array', $commented_diary_row_array);
     $this->setAttribute('diary_comment_history_url', $diary_comment_history_url);
     $this->setAttribute('get_days', $request->getAttribute('get_days'));
     // テンプレート
     $this->setTemplate('DiaryCommentHistory.tpl.php');
     $context->getController()->setRenderMode(View::RENDER_VAR);
     $request->setAttribute("DiaryCommentHistory", $this->render());
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_community_id = $request->getParameter('community_id');
     $target_community_folder_id = $request->getParameter('folder_id');
     $target_community_row = ACSCommunity::get_community_row($target_community_id);
     $target_community_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $target_community_row['community_id'];
     // action
     $action_url = $this->getControllerPath('Community', 'UploadFile') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
     // フォルダURL 通常表示
     $folder_url = $this->getControllerPath('Community', 'Folder') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id;
     // フォルダURL グループ表示
     $folder_group_mode_url = $this->getControllerPath('Community', 'Folder') . '&community_id=' . $target_community_id . '&folder_id=' . $target_community_folder_id . '&mode=group';
     // set
     $this->setAttribute('file_contents_type_master_row_array_array', $request->getAttribute('file_contents_type_master_row_array_array'));
     $this->setAttribute('file_category_master_array', $request->getAttribute('file_category_master_array'));
     $this->setAttribute('file_contents_type_master_array', $request->getAttribute('file_contents_type_master_array'));
     $this->setAttribute('target_community_row', $target_community_row);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('folder_url', $folder_url);
     $this->setAttribute('folder_group_mode_url', $folder_group_mode_url);
     $this->setScreenId("0001");
     $this->setTemplate('UploadFile.tpl.php');
     return parent::execute();
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // get
     $waiting_type_name = $request->getAttribute('waiting_type_name');
     $waiting_row_array = $request->getAttribute('waiting_row_array');
     // 加工
     foreach ($waiting_row_array as $index => $waiting_row) {
         $waiting_row_array[$index]['entry_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
         $waiting_row_array[$index]['complete_date'] = ACSLib::convert_pg_date_to_str($waiting_row['entry_date']);
         if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D10')) {
             $waiting_row_array[$index]['image_url'] = ACSUser::get_image_url($waiting_row['waiting_community_id'], 'thumb');
             $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['waiting_community_id'];
         } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D30')) {
             $waiting_row_array[$index]['image_url'] = ACSCommunity::get_image_url($waiting_row['waiting_community_id'], 'thumb');
             $waiting_row_array[$index]['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $waiting_row['waiting_community_id'];
             $waiting_row_array[$index]['entry_user_info_row']['top_page_url'] = $this->getControllerPath(DEFAULT_MODULE, DEFAULT_ACTION) . '&id=' . $waiting_row['entry_user_info_row']['user_community_id'];
             // コミュニティプロフィール
             $waiting_row_array[$index]['waiting_community_row'] = ACSCommunity::get_community_profile_row($waiting_row['waiting_community_id']);
         }
         $waiting_row_array[$index]['action_url'] = $this->getControllerPath('User', 'WaitingList') . '&id=' . $acs_user_info_row['user_community_id'] . '&waiting_id=' . $waiting_row['waiting_id'];
     }
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('WaitingList.tpl.php');
     // set
     $this->setAttribute('waiting_type_name', $waiting_type_name);
     $this->setAttribute('waiting_row_array', $waiting_row_array);
     return parent::execute();
 }