OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / Community / views / LeaveCommunitySuccessView.class.php
diff --git a/webapp/modules/Community/views/LeaveCommunitySuccessView.class.php b/webapp/modules/Community/views/LeaveCommunitySuccessView.class.php
new file mode 100644 (file)
index 0000000..c1b3cbe
--- /dev/null
@@ -0,0 +1,52 @@
+<?php
+/**
+ * ¥³¥ß¥å¥Ë¥Æ¥£Âà²ñ¡Ê³Îǧ¡Ë
+ *
+ * @author  kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/02 08:48:33 $
+ */
+class LeaveCommunitySuccessView extends BaseView
+{
+       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();
+       }
+}
+?>