function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     $form = $request->ACSGetParameters();
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_profile_row($community_id);
     if ($form['mode'] == 'parent') {
         $parent_community_id = $form['delete_community_id'];
         $sub_community_id = $community_id;
     } elseif ($form['mode'] == 'sub') {
         $parent_community_id = $community_id;
         $sub_community_id = $form['delete_community_id'];
     }
     // 削除
     ACSCommunity::delete_community_link($parent_community_id, $sub_community_id);
     // forward
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'M003'), $this->getControllerPath('Community', 'CommunityLink') . '&community_id=' . $community_row['community_id']);
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityLinkAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_row($community_id);
     $form = $request->ACSGetParameters();
     $form['community_id'] = $community_row['community_id'];
     // 更新
     ACSCommunity::update_community_admin($acs_user_info_row, $form);
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'EditCommunityAdminAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     /* コミュニティ情報取得 */
     $target_community_id = $request->getParameter('community_id');
     $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     $delete_user_community_id_array = $request->getParameter('delete_user_community_id_array');
     $ret = ACSCommunity::delete_community_member($target_community_id, $delete_user_community_id_array);
     if (!$ret) {
         "ERROR : delete community member failed";
         exit;
     }
     /* 完了画面表示 */
     // 引数セット
     $community_top_url = $this->getControllerPath('Community', '');
     $community_top_url .= '&community_id=' . $target_community_row['community_id'];
     $community_top_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'DeleteCommunityMemberAction.class.php', 'M002'));
     $done_obj->add_link($community_top_link_name, $community_top_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
 /**
  * コミュニティ削除処理
  */
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     /* コミュニティ情報取得 */
     $target_community_id = $request->getParameter('community_id');
     $target_community_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     ACSDB::_do_query("BEGIN");
     $ret = ACSCommunity::delete_community($target_community_id);
     if (!$ret) {
         ACSDB::_do_query("ROLLBACK");
         "ERROR : delete community failed";
         exit;
     }
     // フォルダのディレクトリ移動
     $from_dir = ACS_FOLDER_DIR . "/";
     $from_dir .= ACSFile::get_upload_file_save_path($target_community_id);
     if (file_exists($from_dir)) {
         $to_dir = ACS_TRASH_FOLDER_DIR . "/";
         $to_dir .= ACSFile::get_upload_file_save_path($target_community_id);
         if (!file_exists(ACS_TRASH_FOLDER_DIR)) {
             // 置き場所ディレクトリがなければ作成する
             mkdir(ACS_TRASH_FOLDER_DIR);
             chmod(ACS_TRASH_FOLDER_DIR, 0777);
         }
         $ret = rename($from_dir, $to_dir);
         if (!$ret) {
             ACSDB::_do_query("ROLLBACK");
             "ERROR : delete community failed";
             exit;
         }
     }
     ACSDB::_do_query("COMMIT");
     /* 完了画面表示 */
     // 引数セット
     $message = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'DELETECM'), array('{TARGET_COMMUNITY_NAME}' => $target_community_row['community_name']));
     $top_page_url = $this->getControllerPath('User', 'Index');
     $top_page_link_name = ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M001');
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'DeleteCommunityAction.class.php', 'M002'));
     $done_obj->set_message($message);
     $done_obj->add_link($top_page_link_name, $top_page_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     if (!$this->get_execute_privilege()) {
         $controller->forward(SECURE_MODULE, SECURE_ACTION);
         return;
     }
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $form = $form = $request->ACSGetParameters();
     // 対象となるコミュニティIDを取得
     $community_id = $request->ACSgetParameter('community_id');
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_profile_row($community_id);
     ACSDB::_do_query("BEGIN");
     // 生成されたwaiting_idの配列
     $waiting_id_array = array();
     foreach ($form['user_community_id_array'] as $invited_user_community_id) {
         // コミュニティ招待承認待ち登録
         $waiting_id = ACSWaiting::set_waiting_for_invite_to_community($invited_user_community_id, $community_id, $acs_user_info_row['user_community_id'], $form['message']);
         if (!$waiting_id) {
             ACSDB::_do_query("ROLLBACK");
             break;
         }
         // 生成されたwaiting情報を保持
         array_push($waiting_id_array, $waiting_id);
     }
     if ($waiting_id) {
         ACSDB::_do_query("COMMIT");
     }
     // 生成されたwaiting情報を元に複数メール送信
     foreach ($waiting_id_array as $waiting_id) {
         // コミュニティ招待承認依頼通知メール
         ACSWaiting::send_admission_request_notify_mail($waiting_id);
     }
     // forward
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M001'));
     $done_obj->set_message(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'M002'));
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'InviteToCommunityAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
Exemplo n.º 6
0
 /**
  * ページングリンク出力
  *
  * @param $paging_info
  */
 function print_paging_link($paging_info)
 {
     if (!$paging_info) {
         return;
     }
     // 件数表示
     //echo "全$paging_info[all_count]件: $paging_info[start_count]-$paging_info[end_count]件を表示<br>\n";
     echo ACSMsg::get_tag_replace(ACSMsg::get_msg('lib', 'ACSTemplateLib.class.php', 'PAGE_INFO'), array("{ALL_COUNT}" => $paging_info[all_count], "{START_COUNT}" => $paging_info[start_count], "{END_COUNT}" => $paging_info[end_count]));
     // 1ページのみの場合は表示終了
     if (!$paging_info['paging_row_array']) {
         echo "<br>\n";
         return;
     }
     // 前へ・次へ
     if ($paging_info['prev_link']) {
         echo "<a href=\"{$paging_info['prev_link']}\">" . ACSMsg::get_mdmsg(__FILE__, 'M001') . "</a>";
     } else {
         echo ACSMsg::get_mdmsg(__FILE__, 'M001');
     }
     echo " ";
     if ($paging_info['next_link']) {
         echo "<a href=\"{$paging_info['next_link']}\">" . ACSMsg::get_mdmsg(__FILE__, 'M002') . "</a>";
     } else {
         echo ACSMsg::get_mdmsg(__FILE__, 'M002');
     }
     echo " ";
     // ページ数表示
     foreach ($paging_info['paging_row_array'] as $paging_row) {
         print '<span class="page_number">';
         // リンクがある場合のみ
         if ($paging_row['link_url']) {
             print '<a href="' . $paging_row['link_url'] . '">';
             print $paging_row['page_number'];
             print '</a>';
         } else {
             print '<b>' . $paging_row['page_number'] . '</b>';
         }
         print '</span>' . "\n";
     }
     print "<br><br>\n";
 }
 /**
  * コミュニティ削除処理
  */
 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_row = ACSCommunity::get_community_row($request->getParameter('community_id'));
     /* 削除処理 */
     ACSDB::_do_query("BEGIN");
     $ret = ACSCommunity::delete_community_member($target_community_id, array($acs_user_info_row['user_community_id']));
     if (!$ret) {
         ACSDB::_do_query("ROLLBACK");
         "ERROR : Delete community member failed.";
         exit;
     }
     ACSDB::_do_query("COMMIT");
     /* 完了画面表示 */
     // 引数セット
     $message = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'LEAVE_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     // マイページトップページURL
     $top_page_url = $this->getControllerPath('User', 'Index');
     $top_page_link_name = ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M001');
     // コミュニティURL
     $community_top_page_url = $this->getControllerPath('Community', 'Index');
     $community_top_page_url .= '&community_id=' . $target_community_row['community_id'];
     $community_top_page_link_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $target_community_row['community_name']));
     $done_obj = new ACSDone();
     $done_obj->set_title(ACSMsg::get_msg('Community', 'LeaveCommunityAction.class.php', 'M002'));
     $done_obj->set_message($message);
     $done_obj->add_link($top_page_link_name, $top_page_url);
     $done_obj->add_link($community_top_page_link_name, $community_top_page_url);
     $request->setAttribute('done_obj', $done_obj);
     // 画面呼び出し
     $controller->forward('Common', 'Done');
 }
Exemplo n.º 8
0
<?php

// $Id: CommunityList.tpl.php,v 1.7 2007/03/28 02:51:47 w-ota Exp $
?>

<?php 
echo "<div class=\"ttl\">";
if ($this->_tpl_vars['is_self_page']) {
    echo ACSMsg::get_msg("User", "CommunityList.tpl.php", 'M001');
} else {
    echo "<a href=\"" . $this->_tpl_vars['link_page_url']['else_user_top_page_url'] . "\">";
    echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "CommunityList.tpl.php", 'NAME'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
    echo "</a> :: ";
    echo ACSMsg::get_msg("User", "CommunityList.tpl.php", 'M002');
}
echo " (" . $this->_tpl_vars['community_row_array_num'] . ")";
echo "</div><br>\n";
?>

<?php 
// ページング表示
ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
?>

<table width="650" border="0" cellpadding="8" cellspacing="1" bgcolor="#99CC33">
<tr>
<td bgcolor="#ffffff">
<table width="100%" border="0" cellspacing="10" cellpadding="5">
<?php 
if (count($this->_tpl_vars['community_row_array'])) {
    $count = 0;
Exemplo n.º 9
0
<!-- HTML -->
<div class="ttl">
<a href="<?php 
echo $this->_tpl_vars['top_page_url'];
?>
"> <?php 
echo ACSMsg::get_msg("User", "SelectDesign.tpl.php", 'M001');
?>
</a> :: <?php 
echo ACSMsg::get_msg("User", "SelectDesign.tpl.php", 'M002');
?>
</div>
<br>
<?php 
echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SelectDesign.tpl.php", 'TITLE'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['acs_user_info_row']['community_name'])));
?>
<br>
<?php 
echo ACSMsg::get_msg("User", "SelectDesign.tpl.php", 'M010');
?>
<br>
<?php 
ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
?>

<form name="design_select" action="<?php 
echo $this->_tpl_vars['action_url'];
?>
" method="post">
<table class="common_table" border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
Exemplo n.º 10
0
 /**
  * スケジュール調整決定通知件名取得
  *
  * @return true / false
  */
 function get_decision_mail_subject($lang)
 {
     $current_lang = ACSMsg::get_lang();
     ACSMsg::set_lang($lang);
     $subject = ACSMsg::get_mdmsg(__FILE__, 'M001');
     $subject = ACSMsg::get_tag_replace($subject, array('{SUBJECT_NAME}' => $this->schedule_name));
     ACSMsg::set_lang($current_lang);
     return $subject;
 }
Exemplo n.º 11
0
<table border="0" cellpadding="6" cellspacing="1" bgcolor="#99CC33">
<tr>
<?php 
if ($this->_tpl_vars['move_id'] == 2) {
    echo "<td height=30px id=\"myttl\" bgcolor=\"#DEEEBD\">" . ACSMsg::get_msg("User", "MessageShow.tpl.php", 'M006') . "</td>";
} else {
    echo "<td height=30px id=\"myttl\" bgcolor=\"#DEEEBD\">" . ACSMsg::get_msg("User", "MessageShow.tpl.php", 'M007') . "</td>";
}
?>
		<td bgcolor="#ffffff">
		<a href="<?php 
echo $this->_tpl_vars['link_page_url']['else_user_message_url'];
?>
">
		<?php 
echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessageShow.tpl.php", 'NAME'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['message_row']['user_name'])));
?>
		</a>
		</td>
</tr>
<tr>
	<td height=30px id="myttl" bgcolor="#DEEEBD"><?php 
echo ACSMsg::get_msg("User", "MessageShow.tpl.php", 'M008');
?>
</td>
		<td bgcolor="#ffffff">
		<?php 
echo nl2br(ACSLib::sp2nbsp(htmlspecialchars($this->_tpl_vars['message_row']['post_date'])));
?>
		</td>
</tr>
Exemplo n.º 12
0
// $Id: EditFileDetail.tpl.php,v 1.7 2007/03/28 08:39:33 w-ota Exp $
?>

<?php 
// ファイルコンテンツ切り替えJS出力
ACSTemplateLib::print_change_file_contents_js('edit_file_detail_form', $this->_tpl_vars['file_contents_type_master_array'], $this->_tpl_vars['file_contents_type_master_row_array_array']);
?>

<?php 
if ($this->_tpl_vars['is_self_page']) {
    $title = ACSMsg::get_msg("User", "EditFileDetail.tpl.php", 'M001');
} else {
    $title = '<a href="' . $this->_tpl_vars['target_user_info_row']['top_page_url'] . '">';
    //$title .= htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name']) . "さん";
    $title .= ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "EditFileDetail.tpl.php", 'NAME'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['target_user_info_row']['community_name'])));
    $title .= '</a>';
    $title .= ' :: <a href="' . $this->_tpl_vars['back_url'] . '">' . ACSMsg::get_msg("User", "EditFileDetail.tpl.php", 'M002') . '</a>';
}
?>
<div class="sub_title"><?php 
echo $title;
?>
 :: <?php 
echo ACSMsg::get_msg("User", "EditFileDetail.tpl.php", 'M003');
?>
 :: <?php 
echo ACSMsg::get_msg("User", "EditFileDetail.tpl.php", 'M004');
?>
</div>
Exemplo n.º 13
0
 echo "<td valign=\"top\" colspan=\"2\">";
 if ($bbs_row['bbs_delete_flag'] == 'f') {
     echo nl2br(ACSTemplateLib::auto_link(ACSLib::sp2nbsp(htmlspecialchars($bbs_row['body']))));
 } else {
     echo ACSMsg::get_msg("Community", "BBS.tpl.php", 'M021');
 }
 echo "</td>";
 echo "</tr>\n";
 echo "</table>";
 echo "</td>";
 echo "</tr>\n";
 // 表示件数が省略されている場合
 if ($bbs_row['omission_num']) {
     echo "<tr><td colspan=\"2\" align=\"right\" bgcolor=\"#ffffff\">";
     //echo "<span class=\"note\">(1 - $bbs_row[omission_num] 件目は省略されました)</span>";
     echo "<span class=\"note\">" . ACSMsg::get_tag_replace(ACSMsg::get_msg("Community", "BBS.tpl.php", 'TPL'), array("{OMISSION_NUM}" => $bbs_row['omission_num'])) . "</span>";
     echo "&nbsp;&nbsp;";
     //echo "<a href=\"$bbs_row[bbs_res_url]\">全て読む($bbs_row[bbs_res_row_array_num])</a>";
     echo "<a href=\"" . $bbs_row['bbs_res_url'] . "\">" . ACSMsg::get_msg("Community", "BBS.tpl.php", 'M027') . "(" . $bbs_row['bbs_res_row_array_num'] . ")</a>";
     echo "</td></tr>\n";
 }
 // 返信記事
 if ($bbs_row['bbs_delete_flag'] == 'f') {
     foreach ($bbs_row['bbs_res_row_array'] as $bbs_res_row) {
         //親が削除されている時 ここから無し
         echo "<tr>";
         echo "<td align=\"center\" width=\"80px\" bgcolor=\"#ffffff\">";
         if ($bbs_res_row['bbs_res_delete_flag'] == 'f') {
             echo "<a href=\"" . $bbs_res_row['top_page_url'] . "\"><img src=\"" . $bbs_res_row['image_url'] . "\" border=\"0\"></a><br>";
             echo "<a href=\"" . $bbs_res_row['top_page_url'] . "\">" . htmlspecialchars($bbs_res_row['community_name']) . "</a>";
         }
Exemplo n.º 14
0
 /**
  * 通知メールを送信する
  *
  * @param $message_id メッセージID
  * @param $receiver_id 受信者ID
  * @param $sender_id 送信者ID
  */
 static function send_info_mail($message_id, $receiver_id, $sender_id)
 {
     $system_group = ACSMsg::get_mst('system_config_group', 'D01');
     // システムURL
     $system_base_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_URL');
     // システムログインURL
     $system_base_login_url = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_BASE_LOGIN_URL');
     // システムのメールアドレス (From:)
     $system_mail_addr = ACSSystemConfig::get_keyword_value($system_group, 'SYSTEM_MAIL_ADDR');
     // 利用者の言語設定を一時的に保存
     $org_lang = ACSMsg::get_lang();
     // 各言語のタイトルを取得
     $mail_titles = array();
     foreach (ACSMsg::get_lang_list_array() as $lang_key => $lang_name) {
         ACSMsg::set_lang($lang_key);
         $mail_titles[$lang_key] = ACSMsg::get_serial_msg('lib', 'ACSWaiting.class.php', 'MTL%03d') . "\n";
     }
     // 言語を一旦元に戻す
     ACSMsg::set_lang($org_lang);
     // 依頼側のユーザ情報
     $user_info_row = ACSUser::get_user_profile_row($sender_id);
     // 依頼される側のユーザ情報
     $target_user_info_row = ACSUser::get_user_profile_row($receiver_id);
     // 待機承認URL
     $message_url = $system_base_login_url . SCRIPT_PATH;
     $message_url .= "?" . MODULE_ACCESSOR . "=User";
     $message_url .= "&" . ACTION_ACCESSOR . "=MessageShow";
     $message_url .= "&id={$receiver_id}";
     $message_url .= "&message_id={$message_id}";
     $target_lang = ACSMsg::get_mail_lang_by_inforow($target_user_info_row);
     // 一旦依頼される側の言語に設定する
     ACSMsg::set_lang($target_lang);
     $body = $mail_titles[$target_lang];
     $body .= ACSMsg::get_tag_replace(ACSMsg::get_serial_msg('lib', 'ACSMessage.class.php', 'ADF%03d'), array("{TARGET_USER_NAME}" => $target_user_info_row['user_name'], "{USER_NAME}" => $user_info_row['user_name'], "{USER_COMMUNITY_NAME}" => $user_info_row['community_name'], "{MESSAGE_URL}" => $message_url, "{SYSTEM_BASE_URL}" => $system_base_url));
     $subject = ACSMsg::get_mdmsg(__FILE__, 'M002');
     // 言語を元に戻す
     ACSMsg::set_lang($org_lang);
     $ret = ACSLib::send_mail($system_mail_addr, $target_user_info_row['mail_addr'], null, $subject, $body);
 }
Exemplo n.º 15
0
 /**
  * ダイアリーRSSを出力する
  *
  * @param $target_user_info_row 対象ユーザ情報
  * @param $diary_row_array ダイアリー一覧
  * @param $params パラメータ等
  */
 static function print_diary_rss($target_user_info_row, $diary_row_array, $params)
 {
     // 使用クラス: acs/webapp/lib/feedcreator/feedcreator.class.php
     $rss = new UniversalFeedCreator();
     // 概要等 <channel>
     $rss->useCached();
     $rss->title = ACSMsg::get_tag_replace(ACSMsg::get_mdmsg(__FILE__, 'NAME'), array("{USER_NAME}" => $target_user_info_row['community_name']));
     // ○○さん
     $rss->description = $params['description'];
     // プロフィール (公開範囲別)
     $rss->link = $params['base_url'] . $target_user_info_row['top_page_url'];
     // マイページURL
     $rss->url = $params['base_url'] . $target_user_info_row['image_url'];
     // 画像URL  <image rdf:resource="...">
     $rss->syndicationURL = $params['rss_syndication_url'];
     // 自身のURL <channel rdf:about="...">
     // ロゴ画像 <image>
     $image = new FeedImage();
     $image->title = $target_user_info_row['image_title'];
     // ファイル名
     $image->link = ACSMsg::get_mdmsg(__FILE__, 'M002');
     // 写真
     $image->url = $params['base_url'] . $target_user_info_row['image_url'];
     $rss->image = $image;
     // 1件のダイアリー: <item>
     foreach ($diary_row_array as $index => $diary_row) {
         // CRLF → LF
         $body = preg_replace('/\\r\\n/', "\n", $diary_row['body']);
         $item = new FeedItem();
         $item->post_date = $diary_row['post_date'];
         $item->title = $diary_row['subject'];
         $item->link = $params['base_url'] . $diary_row['diary_comment_url'];
         $item->description = $body;
         if ($diary_row['file_url'] != '') {
             $item->image_link = $params['base_url'] . $diary_row['file_url'];
         }
         $item->description2 = $body;
         //第2の本文  <content:encoded>
         $rss->addItem($item);
     }
     // http-header
     mb_http_output('pass');
     header('Content-type: application/xml; charset=UTF-8');
     echo mb_convert_encoding($rss->createFeed("RSS1.0"), 'UTF-8', mb_internal_encoding());
 }
Exemplo n.º 16
0
<?php 
    if ($this->_tpl_vars['file_public_access_row']['file_id'] == "") {
        // コミュニティの管理者
        if ($this->_tpl_vars['is_community_admin']) {
            print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'M030') . '" onclick="javascript:submit_public_access(\'insert\')">';
        }
    } else {
        print '<a href="' . $this->_tpl_vars['file_public_access_row']['access_url'] . '">' . htmlspecialchars($this->_tpl_vars['file_public_access_row']['access_url']) . '</a>';
        if ($this->_tpl_vars['is_community_admin']) {
            print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'M031') . '" onclick="javascript:submit_public_access(\'delete\')">';
        }
        print '<br>';
        // 総アクセス数
        print "[" . ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'M033') . ":" . $this->_tpl_vars['file_public_access_row']['all_access_count'] . ']  ';
        // アクセス数
        print "[" . ACSMsg::get_tag_replace(ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'ACCESS_COUNT'), array("{DATE}" => $this->_tpl_vars['file_public_access_row']['access_start_date_disp'])) . ":" . $this->_tpl_vars['file_public_access_row']['access_count'] . "]";
        if ($this->_tpl_vars['is_community_admin']) {
            print '<input type="button" value="' . ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'M032') . '" onclick="javascript:submit_public_access(\'reset\')">';
        }
    }
    ?>
    </td>
    </form>
</tr>
<?php 
}
?>
<tr>
	<td id="myttl" bgcolor="#DEEEBD"><?php 
echo ACSMsg::get_msg("Community", "FileDetail.tpl.php", 'M014');
?>
Exemplo n.º 17
0
    }
    echo "<td WIDTH=230px id=\"myttl\" bgcolor=\"#DEEEBD\">" . ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M008') . "</td>";
    echo "<td WIDTH=140px id=\"myttl\" bgcolor=\"#DEEEBD\" nowrap>" . ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M009') . "</td>";
    echo "</tr>\n";
    foreach ($this->_tpl_vars['message_row_array'] as $message_row) {
        echo "<tr>";
        echo "<td bgcolor=\"#ffffff\" align=\"center\">";
        if ($message_row['read_flag'] == "f") {
            echo ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M010') . "</td>";
        } else {
            echo ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M011') . "</td>";
        }
        echo "<td bgcolor=\"#ffffff\" align=\"center\">";
        echo "<input type=\"checkbox\" name=\"selected_message[]\" value=\"" . $message_row['message_id'] . "\"></td>";
        echo "<td bgcolor=\"#ffffff\">";
        echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "MessageBox.tpl.php", 'NAME'), array("{USER_NAME}" => htmlspecialchars($message_row['user_name'])));
        echo "</td>";
        echo "<td bgcolor=\"#ffffff\"><a href=\"" . $message_row['message_show_url'] . "\">" . htmlspecialchars($message_row['subject']) . "</a></td>";
        echo "<td bgcolor=\"#ffffff\">" . $message_row['short_post_date'] . "</td>";
        echo "</tr>\n";
    }
    echo "</table>";
    echo "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp";
    echo "<input type=\"submit\" value=\"" . ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M005') . "\">";
    echo "</form>";
} else {
    echo "<table width=510px><tr><td>";
    echo ACSMsg::get_msg("User", "MessageBox.tpl.php", 'M012');
    echo "</td></tr></table>";
}
?>
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     // get
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     $target_community_info_row = $request->getAttribute('target_community_info_row');
     $community_folder_obj = $request->getAttribute('community_folder_obj');
     $detail_community_folder_obj = $request->getAttribute('detail_community_folder_obj');
     $target_community_id = $target_community_info_row['community_id'];
     // URL付加情報(表示するユーザ情報)
     $target_community_info = '&community_id=' . $target_community_id;
     $folder_info = '&folder_id=' . $community_folder_obj->folder_obj->get_folder_id();
     // フォルダの所有者
     $_target_community_info_row['community_name'] = $target_community_info_row['community_name'];
     $_target_community_info_row['top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION);
     $_target_community_info_row['top_page_url'] .= $target_community_info;
     // メンバかどうか
     $is_community_member = ACSCommunity::is_community_member($acs_user_info_row['user_community_id'], $target_community_id);
     // プットフォルダかどうか
     $is_put_folder = $detail_community_folder_obj->folder_obj->is_put_folder($target_community_info_row['community_id']);
     // フォルダパス情報
     $path_folder_obj_array = $community_folder_obj->get_path_folder_obj_array();
     $path_folder_row_array = array();
     foreach ($path_folder_obj_array as $path_folder_obj) {
         $path_folder_row = array();
         // フォルダ名
         if ($path_folder_obj->get_is_root_folder()) {
             $folder_name = $target_community_info_row['community_name'];
             //$folder_name .= "のフォルダ";
             $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'FolderDetailSuccessView.class.php', 'FOLDER_NM'), array("{COMMUNITY_NAME}" => $target_community_info_row['community_name']));
         } else {
             $folder_name = $path_folder_obj->get_folder_name();
         }
         // フォルダURL
         $link_url = $this->getControllerPath('Community', 'Folder');
         $link_url .= $target_community_info;
         $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
         // set
         $path_folder_row['folder_name'] = $folder_name;
         $path_folder_row['link_url'] = $link_url;
         array_push($path_folder_row_array, $path_folder_row);
     }
     /* ---------------- */
     /* フォルダ詳細情報 */
     /* ---------------- */
     $detail_folder_obj = $detail_community_folder_obj->get_folder_obj();
     $detail_folder_row = array();
     $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
     $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
     $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
     // 閲覧許可コミュニティ名作成
     $detail_folder_row['trusted_community_row_array'] = array();
     $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
     foreach ($trusted_community_row_array as $trusted_community_row) {
         $_trusted_community_row = array();
         $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
         $_trusted_community_row['community_top_page_url'] = $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $trusted_community_row['community_id'];
         array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
     }
     // 登録者
     $detail_folder_row['entry_user_community_name'] = $detail_folder_obj->get_entry_user_community_name();
     $detail_folder_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
     $detail_folder_row['entry_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_entry_user_community_id();
     $detail_folder_row['entry_date'] = $detail_folder_obj->get_entry_date_yyyymmddhmi();
     // 更新者
     $detail_folder_row['update_user_community_name'] = $detail_folder_obj->get_update_user_community_name();
     $detail_folder_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
     $detail_folder_row['update_user_community_link_url'] .= '&id=' . $detail_folder_obj->get_update_user_community_id();
     $detail_folder_row['update_date'] = $detail_folder_obj->get_update_date_yyyymmddhmi();
     // メニュー
     if ($is_community_member && !$is_put_folder) {
         // フォルダ情報編集メニュー
         $edit_folder_url = $this->getControllerPath('Community', 'EditFolder');
         $edit_folder_url .= $target_community_info;
         $edit_folder_url .= $folder_info;
         $edit_folder_url .= '&edit_folder_id=' . $detail_community_folder_obj->folder_obj->get_folder_id();
         $menu['edit_folder_url'] = $edit_folder_url;
         // フォルダ削除メニュー
         $delete_folder_url = $this->getControllerPath('Community', 'DeleteFolder');
         $delete_folder_url .= $target_community_info;
         $delete_folder_url .= $folder_info;
         $delete_folder_url .= '&action_type=confirm';
         $delete_folder_url .= '&selected_folder[]=' . $detail_community_folder_obj->folder_obj->get_folder_id();
         $menu['delete_folder_url'] = $delete_folder_url;
         // フォルダ移動メニュー
         $move_folder_url = $this->getControllerPath('Community', 'MoveFolderList');
         $move_folder_url .= $target_community_info;
         $move_folder_url .= $folder_info;
         $move_folder_url .= '&selected_folder[]=' . $detail_community_folder_obj->folder_obj->get_folder_id();
         $menu['move_folder_url'] = $move_folder_url;
     }
     // 戻り先URL(フォルダ一覧)
     $back_url = "";
     $back_url = $this->getControllerPath('Community', 'Folder');
     $back_url .= $target_community_info;
     $back_url .= $folder_info;
     // テンプレート
     $this->setScreenId("0001");
     $this->setTemplate('FolderDetail.tpl.php');
     // set
     $this->setAttribute('is_community_member', $is_community_member);
     $this->setAttribute('is_put_folder', $is_put_folder);
     $this->setAttribute('target_community_info_row', $_target_community_info_row);
     $this->setAttribute('path_folder_row_array', $path_folder_row_array);
     $this->setAttribute('detail_folder_row', $detail_folder_row);
     $this->setAttribute('menu', $menu);
     $this->setAttribute('back_url', $back_url);
     return parent::execute();
 }
Exemplo n.º 19
0
 /**
  * 設定された内容でカレンダーを表示します
  *
  * @param int $year
  * @param int $month
  * @param int $day
  */
 function show_calendar($year, $month, $day = 0)
 {
     // 休日の算出
     if (!isset($this->set_holiday)) {
         $this->set_holiday($year, $month);
     }
     // その月の開始とする数値を取得
     $from = 1;
     while (date("w", mktime(0, 0, 0, $month, $from, $year)) != $this->wfrom) {
         $from--;
     }
     // 前月と次月の年月を取得
     list($ny, $nm, $nj) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month + 1, 1, $year)));
     list($by, $bm, $bj) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month - 1, 1, $year)));
     // 当日取得
     $date_array = getdate();
     // 今月計算
     $curr_year = $date_array['year'];
     $curr_month = $date_array['mon'];
     // 前月計算
     $prev_year = $year;
     $prev_month = $month - 1;
     if ($prev_month < 1) {
         $prev_month = 12;
         $prev_year = $year - 1;
         if ($prev_year < 1) {
             $prev_year = 1;
             $prev_month = 1;
         }
     }
     // 次月計算
     $next_year = $year;
     $next_month = $month + 1;
     if ($next_month > 12) {
         $next_month = 1;
         $next_year = $year + 1;
     }
     $strCal = "";
     // 表示開始
     $strCal = "<table>\n";
     $strCal = $strCal . "<tr>\n";
     $strCal = $strCal . "<th" . $this->style["th"] . " colspan=\"7\">\n";
     // 前月へ
     $strCal = $strCal . "<a href=\"" . $this->str_url . "&year={$prev_year}&month={$prev_month}\">" . ACSMsg::get_msg('lib', 'calendar.class.php', 'M030') . "</a>\n";
     // 表示月
     //$strCal = $strCal . "  " . $year . "年" . $month . "月  \n";
     $strCal = $strCal . "  " . ACSMsg::get_tag_replace(ACSMsg::get_msg('lib', 'calendar.class.php', 'YEAR_MONTH'), array("{YEAR}" => $year, "{MONTH}" => $month));
     // 次月へ
     $strCal = $strCal . "<a href=\"" . $this->str_url . "&year={$next_year}&month={$next_month}\">" . ACSMsg::get_msg('lib', 'calendar.class.php', 'M031') . "</a>\n";
     $strCal = $strCal . "</th>\n";
     $strCal = $strCal . "</tr>\n";
     // 曜日表示
     $strCal = $strCal . "<tr" . $this->style["tr"] . " style=\"text-align:center\">\n";
     for ($i = 0; $i < 7; $i++) {
         $wk = ($this->wfrom + $i) % 7;
         $strCal = $strCal . "<td" . $this->style["td"] . " bgcolor=\"" . $this->bgcolor[$this->kind[$wk]] . "\">" . $this->week[$wk] . "</td>\n";
     }
     $strCal = $strCal . "</tr>\n";
     // $dayがその月の日数を超えるまでループ
     $tday = $from;
     $mday = ACSLib::get_end_day($year, $month);
     while ($tday <= $mday) {
         $strCal = $strCal . "<tr" . $this->style["tr"] . " style=\"text-align:right\">\n";
         for ($i = 0; $i < 7; $i++) {
             $fstyle = "";
             $wk = ($this->wfrom + $i) % 7;
             $bgcolor = $this->bgcolor[$this->kind[$wk]];
             // 当月判定
             if ($tday >= 1 && $tday <= $mday) {
                 if ($date_array["year"] == $year && $date_array["mon"] == $month && $date_array["mday"] == $tday) {
                     // 当日
                     $bgcolor = $this->bgcolor[4];
                 } else {
                     if ($this->holiday[$tday] == 1) {
                         // 祝日
                         $bgcolor = $this->bgcolor[2];
                     }
                 }
                 // 指定日
                 if ($day == $tday) {
                     $fstyle = " style=\"font-weight:bold\"";
                 }
             } else {
                 // 当月以外の平日
                 if ($wk > 0 && $wk < 6) {
                     $bgcolor = $this->bgcolor[3];
                 }
             }
             $strCal = $strCal . "<td" . $this->style["td"] . " bgcolor=\"" . $bgcolor . "\"" . $fstyle . ">\n";
             list($lyear, $lmonth, $lday) = explode("-", date("Y-n-j", mktime(0, 0, 0, $month, $tday, $year)));
             // データ部分表示
             if ($tday >= 1 && $tday <= $mday || $this->beforeandafterday) {
                 if (isset($this->link[$tday])) {
                     $strCal = $strCal . "<a href=\"" . $this->link[$tday]["url"] . "\" title=\"" . $this->link[$tday]["title"] . "\">" . $lday . "</a>";
                 } else {
                     $strCal = $strCal . $lday;
                 }
                 $strCal = $strCal . "</td>\n";
             } else {
                 $strCal = $strCal . "&nbsp;";
             }
             $tday++;
         }
         $strCal = $strCal . "</tr>\n";
     }
     $strCal = $strCal . "</table>\n";
     // 今月へ戻るリンク
     $strCal .= "<br>\n";
     $strCal .= "<div><a href=\"{$this->str_url}\">" . ACSMsg::get_mdmsg(__FILE__, 'M010') . "</a></div>\n";
     return $strCal;
 }
<?php

// $Id: SetOpenLevelForProfileView.tpl.php,v 1.5 2006/11/20 08:44:26 w-ota Exp $
?>

<font size="3"><?php 
echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "SetOpenLevelForProfileView.tpl.php", 'CONT'), array("{CONTENT_TYPE_NAME}" => htmlspecialchars($this->_tpl_vars['contents_type_name'])));
// 「??= htmlspecialchars($this->_tpl_vars['contents_type_name']) ??」の公開範囲設定</font><br>
?>
</font><br>
<br>

<form name="set_open_level_for_profile_form">
<?php 
echo "<select name=\"open_level_code\" onchange=\"print_sub_menu(this)\">\n";
// 選択状態をセットする
unset($selected);
foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
    if ($open_level_master_row['is_default'] == 't') {
        $selected[$open_level_master_row['open_level_code']] = ' selected';
        break;
    }
}
// プルダウンメニュー表示
foreach ($this->_tpl_vars['open_level_master_row_array'] as $open_level_master_row) {
    echo "<option value=\"{$open_level_master_row['open_level_code']}\"{$selected[$open_level_master_row['open_level_code']]}>";
    echo htmlspecialchars($open_level_master_row['open_level_name']) . "\n";
}
echo "</select><br>\n";
//マイフレンズグループ指定
echo "<div id=\"trusted_community_div\"></div>";
Exemplo n.º 21
0
    echo "<td valign=\"top\" width=\"220px\">" . $this->_tpl_vars['DiaryCommentHistory'] . "</td>\n";
    echo "</tr>\n";
    echo "<tr><td height=\"10\" colspan=\"2\"></td></tr>\n";
    echo "<tr>\n";
    echo "<td valign=\"top\" width=\"440\" colspan=\"2\">" . $this->_tpl_vars['NewBBS'] . "</td>\n";
    echo "</tr>";
    echo "<tr><td height=\"10\" colspan=\"2\"></td></tr>\n";
    echo "<tr>\n";
    echo "<td valign=\"top\" width=\"220px\">" . $this->_tpl_vars['NewFriendsFolder'] . "</td>\n";
    echo "<td valign=\"top\" width=\"220px\">" . $this->_tpl_vars['NewCommunityFolder'] . "</td>\n";
    echo "</tr>\n";
    echo "</table>";
} else {
    // ********** だれかのマイページを閲覧している場合 **********//
    echo "<div class=\"ttl\">";
    echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "Index.tpl.php", 'NAME_PROFILE'), array("{USER_NAME}" => htmlspecialchars($this->_tpl_vars['profile']['community_name'])));
    echo "</div><br><br>\n";
    if ($this->_tpl_vars['add_myfriends_url']) {
        echo "<div align=\"left\">";
        echo "<input type=\"button\" value=\"" . ACSMsg::get_msg("User", "Index.tpl.php", 'M018') . "\" onclick=\"location.href='" . $this->_tpl_vars[add_myfriends_url] . "'\">";
        echo "</form>";
        echo "</div>";
        echo "<br>";
    } else {
        if ($this->_tpl_vars['peruse_mode'] != 9) {
            echo "</form>";
        }
    }
    // プロフィールテーブル
    echo "<table class=\"common_table\" border=\"0\" cellpadding=\"6\" cellspacing=\"1\" bgcolor=\"#99CC33\">\n";
    if (is_array($this->_tpl_vars['profile']['contents_row_array']['user_name'])) {
Exemplo n.º 22
0
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるコミュニティIDを取得
     $form = $request->ACSgetParameters();
     // 待機種別マスタ
     $waiting_type_master_array = ACSDB::get_master_array('waiting_type');
     // 待機状態マスタ
     $waiting_status_master_array = ACSDB::get_master_array('waiting_status');
     // 待機情報
     $waiting_row = ACSWaiting::get_waiting_row($form['waiting_id']);
     // コミュニティ情報
     $community_row = ACSCommunity::get_community_row($waiting_row['community_id']);
     // forward
     $done_obj = new ACSDone();
     if ($form['accept_button']) {
         // 承認ボタン押下時 //
         ACSDB::_do_query("BEGIN");
         if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D20')) {
             // コミュニティメンバ追加
             $community_member_form = array();
             $community_member_form['community_id'] = $waiting_row['community_id'];
             $community_member_form['user_community_id'] = $waiting_row['waiting_community_id'];
             $ret = ACSCommunity::set_community_member($community_member_form);
         } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D40')) {
             // コミュニティ間リンク設定
             $ret = ACSCommunity::set_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
         } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D50')) {
             // コミュニティ間リンク設定
             $ret = ACSCommunity::set_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
         }
         if ($ret) {
             // 承認済みをセット
             $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master', 'D20'), $acs_user_info_row['user_community_id'], $form['reply_message']);
             if ($ret) {
                 ACSDB::_do_query("COMMIT");
                 // 整合性保持
                 if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D20')) {
                     // 参加の重複を解除
                     ACSWaiting::update_waiting_for_join_community($waiting_row['community_id'], $waiting_row['waiting_community_id']);
                     // 招待の重複を解除
                     ACSWaiting::update_waiting_for_invite_to_community($waiting_row['waiting_community_id'], $waiting_row['community_id']);
                 } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D40')) {
                     // 親コミュニティ追加の重複解除
                     ACSWaiting::update_waiting_for_parent_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
                     // サブコミュニティ追加の重複解除
                     ACSWaiting::update_waiting_for_sub_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
                 } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D50')) {
                     // サブコミュニティ追加の重複解除
                     ACSWaiting::update_waiting_for_sub_community_link($waiting_row['community_id'], $waiting_row['waiting_community_id']);
                     // 親コミュニティ追加の重複解除
                     ACSWaiting::update_waiting_for_parent_community_link($waiting_row['waiting_community_id'], $waiting_row['community_id']);
                 }
                 // 返信メッセージ
                 if ($form['reply_message'] != '') {
                     $ret = ACSWaiting::send_admission_accept_notify_mail($form['waiting_id']);
                 }
                 $done_obj->set_title(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'FIN_ADM'), array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
                 $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M001'));
             } else {
                 $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M002'));
             }
         } else {
             ACSDB::_do_query("ROLLBACK");
         }
     } elseif ($form['reject_button']) {
         // 拒否ボタン押下時
         $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master', 'D30'), $acs_user_info_row['user_community_id']);
         if ($ret) {
             $done_obj->set_title(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'FIN_DIS'), array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
             $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M001'));
         } else {
             $done_obj->set_message(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'M002'));
         }
     }
     $done_obj->add_link(ACSMsg::get_tag_replace(ACSMsg::get_msg('Community', 'WaitingListAction.class.php', 'BACK_TO_CM'), array("{COMMUNITY_NAME}" => $community_row['community_name'])), $this->getControllerPath('Community', DEFAULT_ACTION) . '&community_id=' . $community_row['community_id']);
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
// $Id: EditFriendsGroupMember.tpl.php,v 1.5 2007/03/01 09:01:43 w-ota Exp $
function is_friends_group($user_community_id, $friends_group_member_row_array)
{
    $ret = false;
    foreach ($friends_group_member_row_array as $user_info_row) {
        if ($user_community_id == $user_info_row['user_community_id']) {
            $ret = true;
            break;
        }
    }
    return $ret;
}
?>

<div class="ttl"><?php 
echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "EditFriendsGroupMember.tpl.php", 'NAME'), array("{USER_NAME}" => $this->_tpl_vars['friends_group_row']['community_name']));
//【= $this->_tpl_vars['friends_group_row']['community_name'] 】グループ メンバ編集
?>
</div><br>
<br>

<?php 
ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']);
?>

<form action="<?php 
echo $this->_tpl_vars['action_url'];
?>
" method="post">
<table border="0" cellpadding="10" cellspacing="1" bgcolor="#99CC33">
<tr><td bgcolor="#FFFFFF">
 function registerValidators(&$validatorManager)
 {
     $system_config_obj = new ACSSystemConfig();
     /* 必須チェック */
     foreach ($system_config_obj->get_system_config_keyword_data_obj_array() as $get_system_config_keyword_data_obj) {
         $keyword = $get_system_config_keyword_data_obj->get_keyword();
         $system_config_group_name = $get_system_config_keyword_data_obj->get_system_config_group_name();
         $name = $get_system_config_keyword_data_obj->get_name();
         parent::regValidateName($validatorManager, $keyword, true, ACSMsg::get_tag_replace(ACSMsg::get_msg('System', 'EditSystemConfigAction.class.php', 'M_EMPTY_VALUE'), array("{GROUP_NAME}" => $system_config_group_name, "{NAME}" => $name)));
     }
 }
Exemplo n.º 25
0
	<?php 
echo ACSMsg::get_msg("System", "DeleteUser.tpl.php", 'M001');
?>
</div>
<br><br>

<div class="confirm_msg">
<?php 
/*
登録されているユーザ[
echo $this->_tpl_vars['user_info_row']['user_id'];
echo " : ";
echo $this->_tpl_vars['user_info_row']['user_name'];
]を削除します。
*/
echo ACSMsg::get_tag_replace(ACSMsg::get_msg("System", "DeleteUser.tpl.php", 'DELM'), array("{USER_ID}" => $this->_tpl_vars['user_info_row']['user_id'], "{USER_NAME}" => $this->_tpl_vars['user_info_row']['user_name']));
?>
<br>
	<?php 
echo ACSMsg::get_msg("System", "DeleteUser.tpl.php", 'M002');
?>
<br>
	<?php 
echo ACSMsg::get_msg("System", "DeleteUser.tpl.php", 'M003');
?>
<br><br>
	<?php 
echo ACSMsg::get_msg("System", "DeleteUser.tpl.php", 'M004');
?>
<br><br>
</div>
Exemplo n.º 26
0
 /**
  * スケジュール通知メールの送信
  *
  * 各ユーザの言語に対応してスケジュール関連の<br>
  * 通知メールを送信する
  *
  * @param object $schedule スケジュールインスタンス(ACSSchedule)
  * @param string $serial_msg_key_fmg シリアルメッセージ取得用フォーマット(例:"RMD%03d")
  * @param string $subject_msg_key 件名メッセージ取得用キー(例:"M001")
  * @param array  $additional_tags 追加する置換プレースフォルダ(未指定も可)
  * @param array  $additional_message_tags 追加する置換プレースフォルダ(メッセージid指定)
  *               (未指定も可) メール言語に対応して置換されます
  * @return boolean true/false
  */
 static function send_schedule_announce_mail(&$schedule, $serial_msg_key_fmg, $subject_msg_key, $additional_tags = "", $additional_message_tags = "")
 {
     // スケジュールURL
     $schedule_url = "{SYSTEM_SCRIPT_PATH}" . "?{SYSTEM_MODULE_ACCESSOR}=Community" . "&{SYSTEM_ACTION_ACCESSOR}=AnswerSchedule" . "&community_id={$schedule->community_id}" . "&schedule_id={$schedule->schedule_id}";
     $user_community_row =& ACSUser::get_user_profile_row($schedule->user_community_id);
     // システムのメールアドレスを取得
     $system_mail_addr = ACSSystemConfig::get_keyword_value(ACSMsg::get_mst('system_config_group', 'D01'), 'SYSTEM_MAIL_ADDR');
     // 各言語用のメッセージを準備
     $msgs = array();
     $subjects = array();
     $org_lang = ACSMsg::get_lang();
     foreach (ACSMsg::get_lang_list_array() as $lang => $lang_disp) {
         ACSMsg::set_lang($lang);
         $tags_array = array('{USER_NAME}' => $user_community_row['user_name'], '{USER_COMMUNITY_NAME}' => $user_community_row['community_name'], '{SCHEDULE_NAME}' => $schedule->schedule_name, '{SCHEDULE_DETAIL}' => $schedule->schedule_detail, '{SCHEDULE_CLOSING_DATETIME}' => ACSLib::convert_pg_date_to_str($schedule->schedule_closing_datetime), '{SCHEDULE_URL}' => $schedule_url);
         if (is_array($additional_tags)) {
             $tags_array = array_merge($tags_array, $additional_tags);
         }
         if (is_array($additional_message_tags)) {
             $msg_array = array();
             foreach ($additional_message_tags as $tag => $msg_key) {
                 $msg_array[$tag] = ACSMsg::get_mdmsg(__FILE__, $msg_key);
             }
             $tags_array = array_merge($tags_array, $msg_array);
         }
         $msgs[$lang] = ACSMsg::get_serial_msg('lib', basename(__FILE__), $serial_msg_key_fmg);
         $msgs[$lang] = ACSMsg::get_tag_replace($msgs[$lang], $tags_array);
         // subjectの編集
         $subjects[$lang] = ACSMsg::get_mdmsg(__FILE__, $subject_msg_key);
     }
     ACSMsg::set_lang($org_lang);
     // メールの送信(全コミュニティメンバ)
     return ACSCommunityMail::send_community_mail($schedule->community_id, $system_mail_addr, $subjects, $msgs);
 }
Exemplo n.º 27
0
         echo "<a href=\"{$waiting_row['top_page_url']}\">" . htmlspecialchars($waiting_row['community_name']) . "</a>";
     }
     echo "</td>";
     // ¼«¸Ê¾Ò²ð
     echo "<td width=\"50px\" id=\"myttl\" bgcolor=\"#DEEEBD\">" . ACSMsg::get_msg("User", "WaitingList.tpl.php", 'M003') . "</td>";
     echo "<td bgcolor=\"#ffffff\">";
     echo nl2br(htmlspecialchars($waiting_row['waiting_community_row']['contents_row_array']['community_profile']['contents_value']));
     echo "</td>";
     echo "</tr>\n";
     // ¥«¥Æ¥´¥ê
     echo "<tr>";
     echo "<td width=\"50px\" id=\"myttl\" bgcolor=\"#DEEEBD\"><nobr>" . ACSMsg::get_msg("User", "WaitingList.tpl.php", 'M004') . "</nobr></td>";
     echo "<td bgcolor=\"#ffffff\">" . $waiting_row['waiting_community_row']['category_name'] . "</td>";
     echo "</tr>\n";
     echo "<td colspan=\"2\" id=\"myttl\" bgcolor=\"#DEEEBD\">";
     echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "WaitingList.tpl.php", 'NAME'), array("{USER_NAME}" => "<a href=\"" . $waiting_row['entry_user_info_row']['top_page_url'] . "\">" . htmlspecialchars($waiting_row['entry_user_info_row']['community_name']) . "</a>"));
     echo "</td>";
     echo "</tr>\n";
 } else {
     echo "<tr>";
     echo "<td align=\"center\" rowspan=\"4\" bgcolor=\"#ffffff\">";
     echo "<a href=\"{$waiting_row['top_page_url']}\"><img src=\"{$waiting_row['image_url']}\" border=\"0\"></a><br>";
     echo "<a href=\"{$waiting_row['top_page_url']}\">" . htmlspecialchars($waiting_row['community_name']) . "</a>";
     echo "</td>";
     echo "<td id=\"myttl\" colspan=\"2\" bgcolor=\"#DEEEBD\">";
     echo ACSMsg::get_msg("User", "WaitingList.tpl.php", 'M005') . "</td>";
     echo "</tr>\n";
 }
 echo "<tr>";
 echo "<td colspan=\"2\" valign=\"top\" width=\"450px\" bgcolor=\"#ffffff\">";
 echo ACSMsg::get_msg("User", "WaitingList.tpl.php", 'M006') . " : " . $waiting_row['entry_date'] . "<br><br>";
Exemplo n.º 28
0
 function execute()
 {
     $context = $this->getContext();
     $controller = $context->getController();
     $request = $context->getRequest();
     $user = $context->getUser();
     $acs_user_info_row = $user->getAttribute('acs_user_info_row');
     // 対象となるユーザコミュニティIDを取得
     $form = $request->ACSgetParameters();
     // 待機情報
     $waiting_row = ACSWaiting::get_waiting_row($form['waiting_id']);
     // ACSDone
     $done_obj = new ACSDone();
     if ($form['accept_button']) {
         // 承認ボタン押下時 //
         ACSDB::_do_query("BEGIN");
         if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D10')) {
             $ret = ACSUser::set_friends($waiting_row['community_id'], $waiting_row['waiting_community_id']);
         } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D30')) {
             $community_member_form = array('community_id' => $waiting_row['waiting_community_id'], 'user_community_id' => $waiting_row['community_id']);
             $ret = ACSCommunity::set_community_member($community_member_form);
         }
         if ($ret) {
             // 承認済みをセット
             $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master', 'D20'), $acs_user_info_row['user_community_id'], $form['reply_message']);
             if ($ret) {
                 ACSDB::_do_query("COMMIT");
                 // 整合性保持
                 if ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D10')) {
                     // マイフレンズ追加の双方向の重複を解除
                     ACSWaiting::update_waiting_for_add_friends($waiting_row['community_id'], $waiting_row['waiting_community_id']);
                 } elseif ($waiting_row['waiting_type_name'] == ACSMsg::get_mst('waiting_type_master', 'D30')) {
                     // 招待の重複を解除
                     ACSWaiting::update_waiting_for_invite_to_community($waiting_row['community_id'], $waiting_row['waiting_community_id']);
                     // 参加の重複を解除
                     ACSWaiting::update_waiting_for_join_community($waiting_row['waiting_community_id'], $waiting_row['community_id']);
                 }
                 // 返信メッセージ
                 if ($form['reply_message'] != '') {
                     $ret = ACSWaiting::send_admission_accept_notify_mail($form['waiting_id']);
                 }
                 //$done_obj->set_title("$waiting_row[waiting_type_name] 承認完了");
                 $done_obj->set_title(ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'FIN_ADM'), array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
                 $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'M001'));
             } else {
                 $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'M002'));
             }
         } else {
             ACSDB::_do_query("ROLLBACK");
         }
     } elseif ($form['reject_button']) {
         // 拒否ボタン押下時 //
         $ret = ACSWaiting::update_waiting_waiting_status_code($form['waiting_id'], ACSMsg::get_mst('waiting_status_master', 'D30'), $acs_user_info_row['user_community_id']);
         if ($ret) {
             //$done_obj->set_title("$waiting_row[waiting_type_name] 拒否完了");
             $done_obj->set_title(ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'FIN_DIS'), array("{WAITING_TYPE_NAME}" => $waiting_row[waiting_type_name])));
             $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'M001'));
         } else {
             $done_obj->set_message(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'M002'));
         }
     }
     $done_obj->add_link(ACSMsg::get_msg('User', 'WaitingListAction.class.php', 'M003'), './');
     $request->setAttribute('done_obj', $done_obj);
     $controller->forward('Common', 'Done');
 }
Exemplo n.º 29
0
// +----------------------------------------------------------------------+
// $Id: NewDiary.tpl.php,v 1.7 2007/03/27 02:12:43 w-ota Exp $
?>

<div class="ttl"><?php 
echo ACSMsg::get_msg("User", "NewDiary.tpl.php", 'M001');
?>
</div>
<br>

<?php 
if ($this->_tpl_vars['get_days'] > 0) {
    ?>
<div class="getdays">
    <?php 
    echo ACSMsg::get_tag_replace(ACSMsg::get_msg("User", "NewDiary.tpl.php", 'GETDAYS'), array('{DAYS}' => $this->_tpl_vars['get_days']));
    ?>
</div>
<?php 
}
// ページング表示
ACSTemplateLib::print_paging_link($this->_tpl_vars['paging_info']);
?>

<table class="layout_table">
<?php 
foreach ($this->_tpl_vars['new_diary_row_array'] as $new_diary_row) {
    echo "<tr>";
    echo "<td width=\"16px\">";
    echo "<img src=\"" . ACS_IMAGE_DIR . 'yaj2.gif' . "\">";
    echo "</td>";
 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');
     $file_obj = $request->getAttribute('file_obj');
     $user_folder_obj = $request->getAttribute('user_folder_obj');
     $file_detail_info_row = $request->getAttribute('file_detail_info_row');
     $target_user_community_id = $target_user_info_row['user_community_id'];
     // URL付加情報(表示するユーザ情報)
     $target_community_info = '&id=' . $target_user_community_id;
     $target_folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
     // 本人かどうか
     if ($target_user_community_id == $acs_user_info_row['user_community_id']) {
         $is_self_page = true;
     } else {
         $is_self_page = false;
     }
     // ファイル情報
     $file_info_row = array();
     $file_info_row['file_id'] = $file_obj->get_file_id();
     $file_info_row['display_file_name'] = $file_obj->get_display_file_name();
     $file_info_row['mime_type'] = $file_obj->get_mime_type();
     $file_info_row['file_size_kb'] = $file_obj->get_file_size_kb();
     $file_info_row['file_size'] = $file_obj->get_file_size();
     $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
     $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
     $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
     $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
     $file_info_row['link_url'] = $this->getControllerPath('User', 'DownloadFile') . $target_community_info . "&file_id=" . $file_obj->get_file_id() . $target_folder_info;
     // 登録者
     $file_info_row['entry_user_community_name'] = $file_obj->get_entry_user_community_name();
     $file_info_row['entry_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
     $file_info_row['entry_user_community_link_url'] .= '&id=' . $file_obj->get_entry_user_community_id();
     $file_info_row['entry_date'] = $file_obj->get_entry_date_yyyymmddhmi();
     // 更新者
     $file_info_row['update_user_community_name'] = $file_obj->get_update_user_community_name();
     $file_info_row['update_user_community_link_url'] = $this->getControllerPath('User', DEFAULT_ACTION);
     $file_info_row['update_user_community_link_url'] .= '&id=' . $file_obj->get_update_user_community_id();
     $file_info_row['update_date'] = $file_obj->get_update_date_yyyymmddhmi();
     // フォルダパス情報
     $path_folder_obj_array = $user_folder_obj->get_path_folder_obj_array();
     $path_folder_row_array = array();
     foreach ($path_folder_obj_array as $path_folder_obj) {
         $path_folder_row = array();
         // フォルダ名
         if ($path_folder_obj->get_is_root_folder()) {
             // $folder_name  = $target_user_info_row['community_name'];
             // $folder_name .= "さんのフォルダ";
             $folder_name = ACSMsg::get_tag_replace(ACSMsg::get_msg('User', 'EditFileDetailSuccessView.class.php', 'FOLDER_NM'), array("{COMMUNITY_NAME}" => $target_user_info_row['community_name']));
         } else {
             $folder_name = $path_folder_obj->get_folder_name();
         }
         // フォルダURL
         $link_url = $this->getControllerPath('User', 'Folder');
         $link_url .= $target_community_info;
         $link_url .= "&folder_id=" . $path_folder_obj->get_folder_id();
         // set
         $path_folder_row['folder_name'] = $folder_name;
         $path_folder_row['link_url'] = $link_url;
         array_push($path_folder_row_array, $path_folder_row);
     }
     /* ---------------- */
     /* フォルダ詳細情報 */
     /* ---------------- */
     $detail_folder_obj = $user_folder_obj->get_folder_obj();
     $detail_folder_row = array();
     $detail_folder_row['folder_name'] = $detail_folder_obj->get_folder_name();
     $detail_folder_row['comment'] = $detail_folder_obj->get_comment();
     $detail_folder_row['open_level_name'] = $detail_folder_obj->get_open_level_name();
     // 閲覧許可コミュニティ名作成
     $detail_folder_row['trusted_community_row_array'] = array();
     $trusted_community_row_array = $detail_folder_obj->get_trusted_community_row_array();
     if ($is_self_page) {
         foreach ($trusted_community_row_array as $trusted_community_row) {
             $_trusted_community_row = array();
             $_trusted_community_row['community_name'] = $trusted_community_row['community_name'];
             array_push($detail_folder_row['trusted_community_row_array'], $_trusted_community_row);
         }
     }
     // link url
     $detail_folder_row['link_url'] = $this->getControllerPath('User', 'Folder') . $target_community_info . "&folder_id=" . $detail_folder_obj->get_folder_id();
     // action URL
     $action_url = $this->getControllerPath('User', 'EditFileDetail');
     $action_url .= $target_community_info;
     $action_url .= $target_folder_info;
     $action_url .= '&file_id=' . $file_info_row['file_id'];
     // 戻り先URL (ファイル詳細情報)
     $back_url = "";
     $back_url = $this->getControllerPath('User', 'FileDetail');
     $back_url .= $target_community_info;
     $back_url .= $target_folder_info;
     $back_url .= '&file_id=' . $file_info_row['file_id'];
     // set
     $this->setAttribute('target_user_info_row', $target_user_info_row);
     $this->setAttribute('is_self_page', $is_self_page);
     $this->setAttribute('file_info_row', $file_info_row);
     $this->setAttribute('path_folder_row_array', $path_folder_row_array);
     $this->setAttribute('detail_folder_row', $detail_folder_row);
     $this->setAttribute('file_detail_info_row', $file_detail_info_row);
     $this->setAttribute('menu', $menu);
     $this->setAttribute('action_url', $action_url);
     $this->setAttribute('back_url', $back_url);
     $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->setScreenId("0001");
     $this->setTemplate('EditFileDetail.tpl.php');
     return parent::execute();
 }