本文整理汇总了PHP中BaseView类的典型用法代码示例。如果您正苦于以下问题:PHP BaseView类的具体用法?PHP BaseView怎么用?PHP BaseView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BaseView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: fetch
/**
* @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));
}
开发者ID:az0ne,项目名称:diaoyu,代码行数:13,代码来源:BasePagelet.php
示例2: 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');
$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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:34,代码来源:DeleteCommunityLinkInputView.class.php
示例3: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:31,代码来源:RestoreHistoryFileSuccessView.class.php
示例4: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:SearchUserInputView.class.php
示例5: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:34,代码来源:DeleteMessageSuccessView.class.php
示例6: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:UserListSuccessView.class.php
示例7: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:60,代码来源:FolderPutCommunityInputView.class.php
示例8: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:SystemAnnounceListSuccessView.class.php
示例9: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:32,代码来源:FootprintCheckSuccessView.class.php
示例10: getScript
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();
}
开发者ID:sohflp,项目名称:Hooked,代码行数:32,代码来源:class.LoginView.php
示例11: 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');
// ユーザ一覧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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:26,代码来源:IndexSuccessView.class.php
示例12: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:35,代码来源:DeleteCommunitySuccessView.class.php
示例13: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:26,代码来源:NewOpenDiaryInputView.class.php
示例14: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:NewPressReleaseInputView.class.php
示例15: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:DiaryCommentHistorySuccessView.class.php
示例16: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:31,代码来源:LoginInfoSuccessView.class.php
示例17: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:30,代码来源:LeaveCommunitySuccessView.class.php
示例18: __construct
public function __construct()
{
if (!in_array($_SESSION['dept'], self::$dept)) {
PublicView::jumpswitch();
}
parent::__construct();
}
开发者ID:ohjack,项目名称:newErp,代码行数:7,代码来源:amazonMessagefilter.view.php
示例19: 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');
$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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:28,代码来源:CommunityMemberListSuccessView.class.php
示例20: 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();
}
开发者ID:nkawa,项目名称:acs-git-test,代码行数:33,代码来源:JoinCommunityInputView.class.php
注:本文中的BaseView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论