--- /dev/null
+<?php
+/**
+ * ¥Õ¥©¥ë¥À ̾Á°Êѹ¹°ìÍ÷
+ *
+ * @author kuwayama
+ * @version $Revision: 1.1 $ $Date: 2006/03/20 04:09:35 $
+ */
+class RenameFolderListInputView extends BaseView
+{
+ function execute() {
+ $context = $this->getContext();
+ $controller = $context->getController();
+ $request = $context->getRequest();
+ $user = $context->getUser();
+ // get
+ $target_community_info_row = $request->getAttribute('target_community_info_row');
+ $user_folder_obj = $request->getAttribute('user_folder_obj');
+
+ // ¥Õ¥©¥ë¥À¤Î½êͼÔ
+ $target_community_id = $target_community_info_row['community_id'];
+
+ $target_community_info = '&community_id=' . $target_community_id;
+ $folder_info = '&folder_id=' . $user_folder_obj->folder_obj->get_folder_id();
+
+ $action_url = "";
+ $action_url = $this->getControllerPath('Community', 'RenameFolder');
+ $action_url .= $target_community_info;
+ $action_url .= $folder_info;
+
+ $cancel_url = "";
+ $cancel_url = $this->getControllerPath('Community', 'Folder');
+ $cancel_url .= $target_community_info;
+ $cancel_url .= $folder_info;
+
+ // ̾Á°Êѹ¹ÂоݤΥե©¥ë¥À
+ $folder_row_array = array();
+ $selected_folder_obj_array = $request->getAttribute('selected_folder_obj_array');
+ if ($selected_folder_obj_array) {
+ foreach ($selected_folder_obj_array as $selected_folder_obj) {
+ $_folder_row = array();
+
+ $_folder_row['folder_name'] = $selected_folder_obj->get_folder_name();
+ $_folder_row['folder_id'] = $selected_folder_obj->get_folder_id();
+ array_push($folder_row_array, $_folder_row);
+ }
+ }
+
+ // ̾Á°Êѹ¹ÂоݤΥե¡¥¤¥ë
+ $file_row_array = array();
+ $selected_file_obj_array = $request->getAttribute('selected_file_obj_array');
+ if ($selected_file_obj_array) {
+ foreach ($selected_file_obj_array as $selected_file_obj) {
+ $_file_row = array();
+
+ $_file_row['file_name'] = $selected_file_obj->get_display_file_name();
+ $_file_row['file_id'] = $selected_file_obj->get_file_id();
+ array_push($file_row_array, $_file_row);
+ }
+ }
+
+ // ¥Æ¥ó¥×¥ì¡¼¥È
+ $this->setScreenId("0001");
+ $this->setTemplate('RenameFolderList.tpl.php');
+
+ // set
+ $this->setAttribute('action_url', $action_url);
+ $this->setAttribute('cancel_url', $cancel_url);
+
+ // ̾Á°Êѹ¹ÂоÝ
+ $this->setAttribute('folder_row_array', $folder_row_array);
+ $this->setAttribute('file_row_array', $file_row_array);
+
+ // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
+ $this->setAttribute('error_message', $this->getErrorMessage($controller, $request, $user));
+
+ return parent::execute();
+ }
+}
+?>