OSDN Git Service

add ACS webapp, sql, htdocs
[acs/acs.git] / webapp / modules / User / views / ChangePasswordInputView.class.php
diff --git a/webapp/modules/User/views/ChangePasswordInputView.class.php b/webapp/modules/User/views/ChangePasswordInputView.class.php
new file mode 100644 (file)
index 0000000..342ffab
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+// $Id: ChangePasswordInputView.class.php,v 1.2 2006/03/28 08:26:31 kuwayama Exp $
+
+class ChangePasswordInputView extends BaseView
+{
+       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
+               $action_url = $this->getControllerPath('User', 'ChangePassword') . '&id=' . $acs_user_info_row['user_community_id'];
+               $back_url = $this->getControllerPath('User', DEFAULT_ACTION);
+
+               // ¥Æ¥ó¥×¥ì¡¼¥È
+               $this->setScreenId("0001");
+               $this->setTemplate('ChangePassword.tpl.php');
+
+               // set
+               $this->setAttribute('action_url', $action_url);
+               $this->setAttribute('back_url', $back_url);
+
+               return parent::execute();
+       }
+}
+
+?>