From 6399ad257eadd1359ea09c301901d5698468e8de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=89=9F=E7=94=B0=E5=8F=A3=E3=80=80=E6=BA=80?=
Date: Tue, 10 Sep 2013 13:40:42 +0900
Subject: [PATCH 01/87] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=82=B3=E3=83=A1?=
=?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=AE=E5=89=8A=E9=99=A4=E3=81=A8=E5=A4=89?=
=?UTF-8?q?=E6=95=B0=E5=90=8D=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/pm/language/chinese/main.ini | 4 ----
html/webapp/modules/pm/language/english/main.ini | 4 ----
html/webapp/modules/pm/language/japanese/main.ini | 4 ----
.../modules/reservation/language/chinese/main.ini | 10 +++++-----
.../modules/reservation/language/english/main.ini | 10 +++++-----
.../modules/reservation/language/japanese/main.ini | 10 +++++-----
.../default/reservation_view_edit_import_init.html | 12 ++++++------
7 files changed, 21 insertions(+), 33 deletions(-)
diff --git a/html/webapp/modules/pm/language/chinese/main.ini b/html/webapp/modules/pm/language/chinese/main.ini
index 227b6bc..26525bf 100644
--- a/html/webapp/modules/pm/language/chinese/main.ini
+++ b/html/webapp/modules/pm/language/chinese/main.ini
@@ -168,10 +168,6 @@ pm_body = PM_MESSAGE_BODY
pm_message_address_no_exist = "这个收件人地址不存在。"
pm_message_required = "必须输入"
define:PM_MAIL_SUBJECT = "[{X-SITE_NAME}]短消息的通知"
-; define:PM_MAIL_BODY = "Researchmapの上で、あなたへのプライベートメッセージが届きました。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時;;
-; :{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを確認するには、下記アドレスへ\n{X-URL}"
-;define:PM_MAIL_BODY = "あなたへのプライベートメッセージが届きましたので、お知らせします。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時
-;:{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを見るには、下記アドレスへ\n{X-URL}"
define:PM_MAIL_BODY = "您有新的短消息。\n\n主题:{X-TITLE}\n发件人:{X-USER}\n发送日期:{X-INPUT_TIME}\n\n{X-BODY}\n\n浏览详细信息,请点击下面的链接\n{X-URL}"
define:PM_SUBJECT_FORMAT = "Fw%s: %s"
diff --git a/html/webapp/modules/pm/language/english/main.ini b/html/webapp/modules/pm/language/english/main.ini
index f946e38..4d72ffc 100644
--- a/html/webapp/modules/pm/language/english/main.ini
+++ b/html/webapp/modules/pm/language/english/main.ini
@@ -168,10 +168,6 @@ pm_body = PM_MESSAGE_BODY
pm_message_address_no_exist = "This address does not exist."
pm_message_required = "is required"
define:PM_MAIL_SUBJECT = "[{X-SITE_NAME}]Private message notifications"
-; define:PM_MAIL_BODY = "Researchmapの上で、あなたへのプライベートメッセージが届きました。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時;;
-; :{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを確認するには、下記アドレスへ\n{X-URL}"
-;define:PM_MAIL_BODY = "あなたへのプライベートメッセージが届きましたので、お知らせします。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時
-;:{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを見るには、下記アドレスへ\n{X-URL}"
define:PM_MAIL_BODY = "You have a new private message\n\n:Subject{X-TITLE}\nFrom:{X-USER}\nDate:{X-INPUT_TIME}\n\n{X-BODY}\n\nTo verify this private message, please click the following url\n{X-URL}"
define:PM_SUBJECT_FORMAT = "Fw%s: %s"
diff --git a/html/webapp/modules/pm/language/japanese/main.ini b/html/webapp/modules/pm/language/japanese/main.ini
index 04a4edf..f574507 100644
--- a/html/webapp/modules/pm/language/japanese/main.ini
+++ b/html/webapp/modules/pm/language/japanese/main.ini
@@ -168,10 +168,6 @@ pm_body = PM_MESSAGE_BODY
pm_message_address_no_exist = "この宛先は存在しません。"
pm_message_required = "を入力してください"
define:PM_MAIL_SUBJECT = "[{X-SITE_NAME}]プライベートメッセージの通知"
-; define:PM_MAIL_BODY = "Researchmapの上で、あなたへのプライベートメッセージが届きました。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時;;
-; :{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを確認するには、下記アドレスへ\n{X-URL}"
-;define:PM_MAIL_BODY = "あなたへのプライベートメッセージが届きましたので、お知らせします。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時
-;:{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを見るには、下記アドレスへ\n{X-URL}"
define:PM_MAIL_BODY = "あなたへのプライベートメッセージが届きましたので、お知らせします。\n\n件名:{X-TITLE}\n差出人:{X-USER}\n差出日時:{X-INPUT_TIME}\n\n{X-BODY}\n\nこのプライベートメッセージを確認するには、下記アドレスへ\n{X-URL}"
define:PM_SUBJECT_FORMAT = "Fw%s: %s"
diff --git a/html/webapp/modules/reservation/language/chinese/main.ini b/html/webapp/modules/reservation/language/chinese/main.ini
index 84f18ca..d1f0531 100644
--- a/html/webapp/modules/reservation/language/chinese/main.ini
+++ b/html/webapp/modules/reservation/language/chinese/main.ini
@@ -327,11 +327,11 @@ reservation_all_delete_mess1 = "選択している施設に対して、全ての
reservation_all_delete_mess2 = "選択している施設・利用するグループに対して、予約を削除してインポートします。\n本当によろしいですか。"
reservation_duplication = "重複した件名と予約日時は無視する"
reservation_select_upload = "请指定您要导入的CSV文件。"
-researchmap_file_name = "CSV文件: "
-researchmap_download_format = "下载格式"
-researchmap_download_format_title = "CSVファイルからデータを取り込みます。"
-researchmap_download_desc = "各項目の説明"
-researchmap_download_desc_title = "各項目を説明します。"
+reservation_file_name = "CSV文件: "
+reservation_download_format = "下载格式"
+reservation_download_format_title = "CSVファイルからデータを取り込みます。"
+reservation_download_desc = "各項目の説明"
+reservation_download_desc_title = "各項目を説明します。"
reservation_import = "导入"
reservation_help_desc = "インポートファイルへの設定項目の詳細は、下記を参照ください。
なお、各項目を無指定とする場合、空白の代わりに文字列「null」を設定してください。
また、無指定(「null」指定)または指定外の設定をした場合、未設定 とします。"
reservation_help_header_item = "选项"
diff --git a/html/webapp/modules/reservation/language/english/main.ini b/html/webapp/modules/reservation/language/english/main.ini
index 0ed8d01..2b31be1 100644
--- a/html/webapp/modules/reservation/language/english/main.ini
+++ b/html/webapp/modules/reservation/language/english/main.ini
@@ -328,11 +328,11 @@ reservation_all_delete_mess1 = "Delete all reservation items and import.\nAre yo
reservation_all_delete_mess2 = "Delete reservation items and import.\nAre you sure?"
reservation_duplication = "The duplicate subject name and reservation time are disregarded. "
reservation_select_upload = "Please designate CSV file for import."
-researchmap_file_name = "CSV file "
-researchmap_download_format = "Download format"
-researchmap_download_format_title = "Import from CSV file."
-researchmap_download_desc = "Explanations of items"
-researchmap_download_desc_title = "Explain items."
+reservation_file_name = "CSV file "
+reservation_download_format = "Download format"
+reservation_download_format_title = "Import from CSV file."
+reservation_download_desc = "Explanations of items"
+reservation_download_desc_title = "Explain items."
reservation_import = "Import"
reservation_help_desc = "To see details of import file item settings, please see below.
Further, for itesm that have no settings, enter 'null' instead of blank spaces.
Also, in the case of no setting (setting of 'null') or outside range setting, it is changed to 'no setting'."
reservation_help_header_item = "Item"
diff --git a/html/webapp/modules/reservation/language/japanese/main.ini b/html/webapp/modules/reservation/language/japanese/main.ini
index 8575a0f..fc8cfb3 100644
--- a/html/webapp/modules/reservation/language/japanese/main.ini
+++ b/html/webapp/modules/reservation/language/japanese/main.ini
@@ -327,11 +327,11 @@ reservation_all_delete_mess1 = "選択している施設に対して、全予約
reservation_all_delete_mess2 = "選択している施設・利用グループに対して、全予約を削除してインポートします。\n本当によろしいですか。"
reservation_duplication = "件名と予約日時が一致するデータは無視する"
reservation_select_upload = "インポートファイルを指定してください。"
-researchmap_file_name = "CSVファイル "
-researchmap_download_format = "フォーマットのダウンロード"
-researchmap_download_format_title = "CSVファイルからデータを取り込みます。"
-researchmap_download_desc = "各項目の説明"
-researchmap_download_desc_title = "各項目を説明します。"
+reservation_file_name = "CSVファイル "
+reservation_download_format = "フォーマットのダウンロード"
+reservation_download_format_title = "CSVファイルからデータを取り込みます。"
+reservation_download_desc = "各項目の説明"
+reservation_download_desc_title = "各項目を説明します。"
reservation_import = "取り込み"
reservation_help_desc = "インポートファイルへの設定項目の詳細は、下記を参照ください。
なお、各項目を無指定とする場合、空白の代わりに文字列「null」を設定してください。
また、無指定(「null」指定)または指定外の設定をした場合、未設定 とします。"
reservation_help_header_item = "項目"
diff --git a/html/webapp/modules/reservation/templates/default/reservation_view_edit_import_init.html b/html/webapp/modules/reservation/templates/default/reservation_view_edit_import_init.html
index 6c1b384..6cd6268 100644
--- a/html/webapp/modules/reservation/templates/default/reservation_view_edit_import_init.html
+++ b/html/webapp/modules/reservation/templates/default/reservation_view_edit_import_init.html
@@ -49,7 +49,7 @@
<{* CSVファイル *}>
@@ -57,13 +57,13 @@
@@ -78,7 +78,7 @@
<{* 各項目の説明 *}>
diff --git a/html/webapp/templates/main/redirect.html b/html/webapp/templates/main/redirect.html
old mode 100644
new mode 100755
index 0869964..79650e8
--- a/html/webapp/templates/main/redirect.html
+++ b/html/webapp/templates/main/redirect.html
@@ -2,8 +2,22 @@
+<{if isset($action.redirect_url|smarty:nodefaults)}>
+ <{assign var="redirect_url" value=$action.redirect_url|smarty:nodefaults}>
+<{elseif empty($redirect_url|smarty:nodefaults)}>
+ <{assign var="redirect_url" value=$smarty.const.BASE_URL|cat:$smarty.const.INDEX_FILE_NAME}>
+<{/if}>
-<{else}><{$url|replace:"&":"&"}><{/if}>" />
+
{$smarty.const.INDEX_FILE_NAME}>?<{$smarty.const.ACTION_KEY}>=common_download_css" />
<{$header_field.script_header|smarty:nodefaults}>
@@ -26,22 +40,14 @@
+
From 909fdcadc30a3d4cf209546bbb5fce1bb8f920ff Mon Sep 17 00:00:00 2001
From: Ryuji Masukawa
Date: Tue, 4 Oct 2016 13:59:28 +0900
Subject: [PATCH 85/87] =?UTF-8?q?=E6=BA=96=E5=82=99=E4=B8=AD=E3=81=AE?=
=?UTF-8?q?=E3=82=82=E3=81=AE=E3=81=8C=E4=B8=80=E9=83=A8=E8=A1=A8=E7=A4=BA?=
=?UTF-8?q?=E3=81=95=E3=82=8C=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=81=AB?=
=?UTF-8?q?=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../admin/chgdisplay/Chgdisplay.class.php | 28 ++++++++++++++++---
1 file changed, 24 insertions(+), 4 deletions(-)
mode change 100755 => 100644 html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
diff --git a/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php b/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
old mode 100755
new mode 100644
index 173d264..4e7ec24
--- a/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
+++ b/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
@@ -53,10 +53,15 @@ function execute()
// --- 準備中->公開中に変更した場合、そのサブグループも公開中にする
// ----------------------------------------------------------------------
if($this->page['display_flag'] != $display_flag) {
- $where_params = array(
- "parent_id" => intval($this->edit_current_page_id)
+ $rooms_where_params = array(
+ "room_id = ".intval($this->edit_current_page_id)." OR parent_id = ".intval($this->edit_current_page_id) => null
);
- $subgroup_pages_id_arr =& $this->pagesView->getPages($where_params, null, null, null, array($this, "_subpagesFetchcallback"));
+ $rooms_id_arr =& $this->pagesView->getPages($rooms_where_params, null, null, null, array($this, "_roomsFetchcallback"));
+ $pages_where_params = array(
+ " room_id IN (". implode(",", $rooms_id_arr). ") " => null
+ );
+ $subgroup_pages_id_arr =& $this->pagesView->getPages($pages_where_params, null, null, null, array($this, "_subpagesFetchcallback"));
+
if(count($subgroup_pages_id_arr) > 0) {
$params = array(
"display_flag" => $display_flag
@@ -71,7 +76,22 @@ function execute()
}
}
}
-
+
+ // add by mutaguchi@opensource-workshop.jp
+ /**
+ * fetch時コールバックメソッド
+ * @param result adodb object
+ * @return array items
+ * @access private
+ */
+ function &_roomsFetchcallback($result) {
+ $ret = array();
+ while ($row = $result->fetchRow()) {
+ $ret[$row['room_id']] = $row['room_id'];
+ }
+ return $ret;
+ }
+
/**
* fetch時コールバックメソッド
* @param result adodb object
From b4fb8b6f6fc7077bd2ccc9a4a10aacdf6fe4d6a5 Mon Sep 17 00:00:00 2001
From: kteraguchi
Date: Tue, 25 Apr 2017 18:04:04 +0900
Subject: [PATCH 86/87] Fix script tag escape
---
html/webapp/components/escape/Text.class.php | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/html/webapp/components/escape/Text.class.php b/html/webapp/components/escape/Text.class.php
index c3e1ae6..7572899 100644
--- a/html/webapp/components/escape/Text.class.php
+++ b/html/webapp/components/escape/Text.class.php
@@ -445,6 +445,11 @@ function _escapeWysiwygAllowHtmltag($string) {
$script_flag = false;
foreach ($parts as $part) {
// script-/scriptまではそのまま連結
+ if(preg_match("/<\/script>$/u", $part)) {
+ $script_flag = false;
+ $string .= $part;
+ continue;
+ }
if(preg_match("/^/u", $part) || $script_flag == true) {
$script_flag = true;
if (preg_match("/<\!\-\-comment\-\->/u", $part)) {
@@ -453,10 +458,6 @@ function _escapeWysiwygAllowHtmltag($string) {
}
$string .= $part;
continue;
- } else if(preg_match("/<\/script>$/u", $part)) {
- $script_flag = false;
- $string .= $part;
- continue;
}
if (preg_match("/<\!\-\-comment\-\->/u", $part)) {
From c06abd188c5e04d4f52ae58b587d9915f23341bf Mon Sep 17 00:00:00 2001
From: Ryuji Masukawa
Date: Wed, 17 Jan 2018 18:52:29 +0900
Subject: [PATCH 87/87] =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E3=81=AE=E4=B8=8D?=
=?UTF-8?q?=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3=20=E2=91=A0?=
=?UTF-8?q?=E6=96=B0=E8=A6=8F=E3=81=A7ToDo=E3=82=92=E4=BD=9C=E6=88=90=20?=
=?UTF-8?q?=E2=91=A1ToDo=E3=82=92=E8=BF=BD=E5=8A=A0=EF=BC=88=E3=82=AB?=
=?UTF-8?q?=E3=83=AC=E3=83=B3=E3=83=80=E3=83=BC=E3=81=AB=E8=A1=A8=E7=A4=BA?=
=?UTF-8?q?=E3=81=95=E3=81=9B=E3=82=8B=EF=BC=89=20=E2=91=A2=E3=82=BB?=
=?UTF-8?q?=E3=83=83=E3=83=86=E3=82=A3=E3=83=B3=E3=82=B0=E3=83=A2=E3=83=BC?=
=?UTF-8?q?=E3=83=89=E3=81=A7ToDo=E3=83=AA=E3=82=B9=E3=83=88=E4=B8=80?=
=?UTF-8?q?=E8=A6=A7=E8=A1=A8=E7=A4=BA=E3=81=AE=E7=8A=B6=E6=85=8B=E3=81=A7?=
=?UTF-8?q?=E3=83=AA=E3=82=B9=E3=83=88=E9=81=B8=E6=8A=9E=E3=80=81=E3=80=8C?=
=?UTF-8?q?=E5=89=8A=E9=99=A4=E3=80=8D=E3=83=9C=E3=82=BF=E3=83=B3=E6=8A=BC?=
=?UTF-8?q?=E4=B8=8B=20=E2=91=A3=E3=82=AB=E3=83=AC=E3=83=B3=E3=83=80?=
=?UTF-8?q?=E3=83=BC=E3=81=AE=E4=BA=88=E5=AE=9A=E3=81=8C=E5=89=8A=E9=99=A4?=
=?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=9A=E6=AE=8B=E3=81=A3=E3=81=A6=E3=81=84?=
=?UTF-8?q?=E3=82=8B=E7=8A=B6=E6=85=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/todo/action/dicon.ini | 3 ++-
.../todo/action/edit/delete/Delete.class.php | 14 ++++++++++++++
.../modules/todo/action/edit/delete/maple.ini | 1 +
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/html/webapp/modules/todo/action/dicon.ini b/html/webapp/modules/todo/action/dicon.ini
index a22cc43..d94360c 100644
--- a/html/webapp/modules/todo/action/dicon.ini
+++ b/html/webapp/modules/todo/action/dicon.ini
@@ -1,3 +1,4 @@
[DIContainer]
todoAction = "modules://todo.components.action"
-todoView = "modules://todo.components.view"
\ No newline at end of file
+todoView = "modules://todo.components.view"
+calendarPlanAction = "calendar.action"
diff --git a/html/webapp/modules/todo/action/edit/delete/Delete.class.php b/html/webapp/modules/todo/action/edit/delete/Delete.class.php
index bf49ca8..d2d0144 100644
--- a/html/webapp/modules/todo/action/edit/delete/Delete.class.php
+++ b/html/webapp/modules/todo/action/edit/delete/Delete.class.php
@@ -19,6 +19,7 @@ class Todo_Action_Edit_Delete extends Action
// 使用コンポーネントを受け取るため
var $todoAction = null;
var $db = null;
+ var $calendarPlanAction = null;
/**
* Todo削除アクション
@@ -27,6 +28,19 @@ class Todo_Action_Edit_Delete extends Action
*/
function execute()
{
+ $whereParams = array(
+ "todo_id" => $this->todo_id,
+ "calendar_id!=0" => null
+ );
+ $tasks = $this->db->selectExecute('todo_task', $whereParams);
+ if(!empty($tasks)) {
+ foreach($tasks as $task) {
+ if (!$this->calendarPlanAction->deletePlan($task["calendar_id"], CALENDAR_PLAN_EDIT_THIS)) {
+ return false;
+ }
+ }
+ }
+
$whereParams = array(
"todo_id" => $this->todo_id
);
diff --git a/html/webapp/modules/todo/action/edit/delete/maple.ini b/html/webapp/modules/todo/action/edit/delete/maple.ini
index ba8de50..6bf5c35 100644
--- a/html/webapp/modules/todo/action/edit/delete/maple.ini
+++ b/html/webapp/modules/todo/action/edit/delete/maple.ini
@@ -6,6 +6,7 @@ key:room_id,block_id,todo_id.todo.todoExists = "1:lang._invalid_input"
[Action]
db = "ref:DbObject"
+calendarPlanAction = "ref:calendarPlanAction"
[View]
success = "action:todo_view_edit_list"
\ No newline at end of file