From d6f108b91215b3109b57ce10d20d5ebf7c755e08 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: Fri, 11 Oct 2013 17:20:53 +0900
Subject: [PATCH 01/86] =?UTF-8?q?#68=20=E3=82=A2=E3=83=B3=E3=82=B1?=
=?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=A7=E8=B3=AA=E5=95=8F=E3=81=AE=E7=B7=A8?=
=?UTF-8?q?=E9=9B=86=E3=83=AA=E3=83=B3=E3=82=AF=E3=81=8C=E5=8A=B9=E3=81=8B?=
=?UTF-8?q?=E3=81=AA=E3=81=84=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=82=8B?=
=?UTF-8?q?bug=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/comp/files/js/comp_textarea.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/html/webapp/modules/comp/files/js/comp_textarea.js b/html/webapp/modules/comp/files/js/comp_textarea.js
index 308dd99..a387f97 100644
--- a/html/webapp/modules/comp/files/js/comp_textarea.js
+++ b/html/webapp/modules/comp/files/js/comp_textarea.js
@@ -96,7 +96,9 @@ compTextarea.prototype = {
// addFocusの別名
focusEditor : function(now, callback) {
- this.textarea.addFocus(now, callback);
+ if (this.textarea != null || this.textarea != undefined) {
+ this.textarea.addFocus(now, callback);
+ }
},
setOptions : function() {
From 117d8f7bbf8380c888a4b7bcd813272628e20781 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: Wed, 23 Oct 2013 17:58:47 +0900
Subject: [PATCH 02/86] =?UTF-8?q?#87=20IE11=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/common/files/js/prototype.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/html/webapp/modules/common/files/js/prototype.js b/html/webapp/modules/common/files/js/prototype.js
index cbe70f3..1999240 100644
--- a/html/webapp/modules/common/files/js/prototype.js
+++ b/html/webapp/modules/common/files/js/prototype.js
@@ -2984,6 +2984,16 @@ function Browser() {
return;
}
+ // IE11
+ s = "Trident";
+ if ((i = ua.indexOf(s)) >= 0) {
+ s = "rv:";
+ i = ua.indexOf(s);
+ this.isIE = true;
+ this.version = parseFloat(ua.substr(i + s.length));
+ return;
+ }
+
s = "Netscape";
if ((i = ua.indexOf(s)) >= 0) {
this.isGecko = true;
From 7be5273a423faa3fff484e9b5f7bbc233a90a2e9 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: Thu, 24 Oct 2013 10:42:26 +0900
Subject: [PATCH 03/86] =?UTF-8?q?#87=20IE11=20=E6=97=A5=E6=9C=AC=E8=AA=9E?=
=?UTF-8?q?=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=83=95?=
=?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E6=96=87=E5=AD=97=E5=8C=96=E3=81=91?=
=?UTF-8?q?=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/components/uploads/View.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/webapp/components/uploads/View.class.php b/html/webapp/components/uploads/View.class.php
index b58970e..eb03599 100644
--- a/html/webapp/components/uploads/View.class.php
+++ b/html/webapp/components/uploads/View.class.php
@@ -337,7 +337,7 @@ function _headerOutput($filename, $pathname, $filesize, $mimetype, $cache_flag =
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
//HTTP_USER_AGENTがない場合、
header("Content-disposition: inline; filename=\"".$filename."\"");
- } elseif (stristr($_SERVER['HTTP_USER_AGENT'], "MSIE")) {
+ } elseif (stristr($_SERVER['HTTP_USER_AGENT'], "MSIE") || stristr($_SERVER['HTTP_USER_AGENT'], "Trident")) {
// IEの場合
header("Content-disposition: inline; filename=\"".mb_convert_encoding($filename, "SJIS", _CHARSET)."\"");
} elseif (stristr($_SERVER['HTTP_USER_AGENT'], "Opera")) {
From 661c23c8fa3486e5535027bed2dacffa557a2bec 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: Thu, 24 Oct 2013 15:51:46 +0900
Subject: [PATCH 04/86] =?UTF-8?q?#88=20IE10=E4=BB=A5=E4=B8=8A=E3=81=A0?=
=?UTF-8?q?=E3=81=A3=E3=81=9F=E3=82=89=E4=BA=92=E6=8F=9B=E6=80=A7=E8=A1=A8?=
=?UTF-8?q?=E7=A4=BA=E3=81=AB=E3=81=99=E3=82=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/templates/main/header.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/html/webapp/templates/main/header.html b/html/webapp/templates/main/header.html
index 9d61453..39c06d7 100644
--- a/html/webapp/templates/main/header.html
+++ b/html/webapp/templates/main/header.html
@@ -13,6 +13,7 @@
+
<{* canonical *}>
<{**}>
From 20698946cac73ce6dd301a51c3785120f8ad868a Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Wed, 18 Dec 2013 15:17:20 +0900
Subject: [PATCH 05/86] =?UTF-8?q?#92=20=E6=B1=8E=E7=94=A8DB=E3=81=AE?=
=?UTF-8?q?=E6=A4=9C=E7=B4=A2=E3=81=A7=E3=80=81=E3=83=8F=E3=83=B3=E3=83=89?=
=?UTF-8?q?=E3=83=AB=E3=81=AB=E3=80=8C=3F=E3=80=8D=E3=82=92=E5=85=A5?=
=?UTF-8?q?=E5=8A=9B=E3=81=99=E3=82=8B=E3=81=A8=E3=82=A8=E3=83=A9=E3=83=BC?=
=?UTF-8?q?=E3=81=AB=E3=81=AA=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92?=
=?UTF-8?q?=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../multidatabase/view/main/search/result/Result.class.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
index 60d4a3e..d525c69 100644
--- a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
+++ b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
@@ -163,7 +163,8 @@ function execute()
$handles = explode(" ", trim(preg_replace("/[ \s]+/u", " ", $this->handle)));
if(is_array($handles)) {
foreach (array_keys($handles) as $i) {
- $handlesql[] = " {multidatabase_content}.insert_user_name LIKE '%".$handles[$i]."%' ";
+ $handlesql[] = " {multidatabase_content}.insert_user_name LIKE ? ";
+ $keywordBindValues[] = '%' . $handles[$i] . '%';
}
}
$sqlwhere .= " AND (".join(" OR ", $handlesql).")";
From 52278db47e6ae0f94b6dc3f8b3d5f16adae1fca2 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 14:07:54 +0900
Subject: [PATCH 06/86] =?UTF-8?q?#93=20SQL=E3=82=A8=E3=83=A9=E3=83=BC?=
=?UTF-8?q?=E6=99=82=E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8?=
=?UTF-8?q?=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/nccore/db/DbObjectAdodb.class.php | 24 ++++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/html/maple/nccore/db/DbObjectAdodb.class.php b/html/maple/nccore/db/DbObjectAdodb.class.php
index ac84a6d..0e2c1b1 100644
--- a/html/maple/nccore/db/DbObjectAdodb.class.php
+++ b/html/maple/nccore/db/DbObjectAdodb.class.php
@@ -55,7 +55,7 @@ class DbObjectAdodb
/**
* DSNをセットする
- *
+ *
* @param string $dsn DSN $driver://$username:$password@hostname/$database
* @access public
*/
@@ -65,7 +65,7 @@ function setDsn($dsn) {
/**
* DSNをゲットする
- *
+ *
* @return string $dsn DSN $driver://$username:$password@hostname/$database
* @access public
*/
@@ -75,7 +75,7 @@ function getDsn() {
/**
* Prefixをセットする
- *
+ *
* @param string $prefix
* @access public
*/
@@ -85,7 +85,7 @@ function setPrefix($prefix) {
/**
* Prefixをゲットする
- *
+ *
* @return string $prefix
* @access public
*/
@@ -106,7 +106,7 @@ function setOption($key, $value) {
/**
* 接続時のoptionをゲットする
- *
+ *
* @return array $option
* @access public
*/
@@ -130,7 +130,7 @@ function setDebugMode($debugMode=true) {
/**
* デバッグモードをゲットする
- *
+ *
* @return bool $debugMode デバッグモードをセットする
* @access public
*/
@@ -236,7 +236,7 @@ function setSql($sql) {
/**
* デバッグモードをゲットする
- *
+ *
* @return string $sql 実行するSQL文
* @access public
*/
@@ -620,7 +620,7 @@ function &selectExecute($tableName, $where_params=null, $order_params=null, $lim
/**
* テーブルInsert
- *
+ *
* @param string $tableName 対象テーブル名称
* @param array $params キー名称配列、パラメータ配列
* @param boolean true or false insert_time-update_user_nameを自動的に付与する
@@ -647,7 +647,7 @@ function insertExecute($tableName, $params=array(), $footer_flag=false, $create_
/**
* テーブルUpdate
- *
+ *
* @param string $tableName 対象テーブル名称
* @param array $params キー名称配列、更新カラム配列
* @param array $where_params キー名称配列、whereデータ配列
@@ -667,7 +667,7 @@ function updateExecute($tableName, $params=array(), $where_params=array(), $foot
/**
* テーブルDelete
- *
+ *
* @param string $tableName 対象テーブル名称
* @param array $where_params キー名称配列、whereデータ配列
* @return boolean true or false
@@ -900,7 +900,7 @@ function addError($error_no=null, $error_mes=null)
if(isset($session) && $session->getParameter("_php_debug") == _ON) {
$errorList->add($this->ErrorNo(), $this->ErrorMsg(). ":\n". $this->_bck_sql);
} else {
- $errorList->add($this->ErrorNo(), "SQL Error!");
+ $errorList->add($this->ErrorNo(), _INVALID_INPUT);
}
} else {
$errorList->add($error_no, $error_mes);
@@ -909,7 +909,7 @@ function addError($error_no=null, $error_mes=null)
/**
* MATCH AGAINST用の文字列に変換する
- *
+ *
* @return bool $debugMode デバッグモードをセットする
* @access public
*/
From 08a5c76ccaa78fdc0e0bc4a59617f845fb316eb6 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 14:10:16 +0900
Subject: [PATCH 07/86] =?UTF-8?q?#94=20=E6=B1=8E=E7=94=A8DB=E3=81=AE?=
=?UTF-8?q?=E6=A4=9C=E7=B4=A2=E3=81=A7=E3=80=81=E3=82=BD=E3=83=BC=E3=83=88?=
=?UTF-8?q?=E9=A0=86=E5=88=A4=E5=AE=9A=E5=87=A6=E7=90=86=E3=81=AE=E6=9D=A1?=
=?UTF-8?q?=E4=BB=B6=E5=88=86=E5=B2=90=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../view/main/search/result/Result.class.php | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
index d525c69..e2946af 100644
--- a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
+++ b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
@@ -187,12 +187,7 @@ function execute()
}
}
- if(empty($this->sort_metadata) || $this->sort_metadata == MULTIDATABASE_DEFAULT_SEQUENCE_SORT) {
- $order_params = array(
- "{multidatabase_content}.display_sequence" => "ASC",
- "{multidatabase_content}.insert_time" => "DESC"
- );
- }else if($this->sort_metadata == MULTIDATABASE_DEFAULT_DATE_SORT) {
+ if($this->sort_metadata == MULTIDATABASE_DEFAULT_DATE_SORT) {
$order_params = array(
"{multidatabase_content}.insert_time" => "DESC"
);
@@ -218,11 +213,16 @@ function execute()
$order_params = array(
"{multidatabase_content}.update_time" => "ASC"
);
- }else {
+ }elseif (isset($this->sort_metadatas[$this->sort_metadata])) {
$order_params = array(
"m_content".$this->sort_metadata.".content" => "ASC",
"{multidatabase_content}.insert_time" => "DESC"
);
+ }else {
+ $order_params = array(
+ "{multidatabase_content}.display_sequence" => "ASC",
+ "{multidatabase_content}.insert_time" => "DESC"
+ );
}
$this->result_count = $this->mdbView->getMDBListCount($this->multidatabase_id,
From 6bb89d6a14881fd0eedc2a8700bd486778c24b74 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 14:19:08 +0900
Subject: [PATCH 08/86] =?UTF-8?q?#95=20Ajax=E3=81=AE=E3=83=AC=E3=82=B9?=
=?UTF-8?q?=E3=83=9D=E3=83=B3=E3=82=B9=E3=83=9C=E3=83=87=E3=82=A3=E3=81=AE?=
=?UTF-8?q?=E5=85=88=E9=A0=AD=E8=A1=8C=E3=81=AB=E7=A9=BA=E8=A1=8C=E3=82=92?=
=?UTF-8?q?=E8=BF=BD=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/filter/Filter_View.class.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/html/maple/filter/Filter_View.class.php b/html/maple/filter/Filter_View.class.php
index 3185a21..9904780 100644
--- a/html/maple/filter/Filter_View.class.php
+++ b/html/maple/filter/Filter_View.class.php
@@ -917,6 +917,7 @@ function _postfilter()
}
if($header) {
//header表示--------------------------------------------------
+ print "\n";
print $result_header;
//flush();
@@ -928,6 +929,7 @@ function _postfilter()
print $result_footer;
//flush();
} else {
+ print "\n";
print $result;
}
From caa20fa6a3179b879e56ca0b19aed550c5f56957 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 14:51:34 +0900
Subject: [PATCH 09/86] =?UTF-8?q?#95=20=E5=8F=96=E3=82=8A=E6=B6=88?=
=?UTF-8?q?=E3=81=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/filter/Filter_View.class.php | 2 --
1 file changed, 2 deletions(-)
diff --git a/html/maple/filter/Filter_View.class.php b/html/maple/filter/Filter_View.class.php
index 9904780..3185a21 100644
--- a/html/maple/filter/Filter_View.class.php
+++ b/html/maple/filter/Filter_View.class.php
@@ -917,7 +917,6 @@ function _postfilter()
}
if($header) {
//header表示--------------------------------------------------
- print "\n";
print $result_header;
//flush();
@@ -929,7 +928,6 @@ function _postfilter()
print $result_footer;
//flush();
} else {
- print "\n";
print $result;
}
From e96f5403ddfca6144e1dd2a5496f65a4afa82ba8 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 15:44:02 +0900
Subject: [PATCH 10/86] =?UTF-8?q?#96=20=E3=83=91=E3=83=A9=E3=83=A1?=
=?UTF-8?q?=E3=83=BC=E3=82=BFlang=E3=81=A7Notice=E3=81=8C=E7=99=BA?=
=?UTF-8?q?=E7=94=9F=E3=81=99=E3=82=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/filter/Filter_SetConfig.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/maple/filter/Filter_SetConfig.class.php b/html/maple/filter/Filter_SetConfig.class.php
index 637e1bc..eb017b0 100644
--- a/html/maple/filter/Filter_SetConfig.class.php
+++ b/html/maple/filter/Filter_SetConfig.class.php
@@ -243,7 +243,7 @@ function _prefilter()
}
// 言語セット
- $_lang = $this->_request->getParameter('lang');
+ $_lang = trim($this->_request->getParameter('lang'));
if(!empty($_lang)) {
$languages = $this->_languagesView->getLanguages(array("lang_dirname"=>$_lang));
if (!isset($languages[0])) {
From b7926517ff1436ab5212473c516836e04cca1d7c Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Fri, 20 Dec 2013 18:09:10 +0900
Subject: [PATCH 11/86] =?UTF-8?q?#92=20=E7=8A=B6=E6=85=8B=E9=A0=85?=
=?UTF-8?q?=E7=9B=AE=E3=82=92intval=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?=
=?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../multidatabase/view/main/search/result/Result.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
index e2946af..4e72509 100644
--- a/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
+++ b/html/webapp/modules/multidatabase/view/main/search/result/Result.class.php
@@ -172,7 +172,7 @@ function execute()
if($this->status != "") {
if($this->status != MULTIDATABASE_STATUS_ALL) {
- $sqlwhere .= " AND {multidatabase_content}.agree_flag=".$this->status." ";
+ $sqlwhere .= " AND {multidatabase_content}.agree_flag=".intval($this->status)." ";
}
}
From c59e5b6e6c80f40dbe521b44c77eaf455969698e Mon Sep 17 00:00:00 2001
From: mutaguchi mitsuru
Date: Wed, 22 Jan 2014 17:55:11 +0900
Subject: [PATCH 12/86] =?UTF-8?q?#100=20=E4=B8=80=E8=88=AC=E3=81=AE?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A9=E9=99=90=E3=81=A7=E5=8B=95=E7=94=BB?=
=?UTF-8?q?=E3=81=AE=E8=B2=BC=E3=82=8A=E4=BB=98=E3=81=91=E3=82=92=E8=A8=B1?=
=?UTF-8?q?=E5=8F=AF=E5=BE=8C=E3=80=81=E6=97=A5=E8=AA=8C=E3=81=A7youtube?=
=?UTF-8?q?=E3=82=92=E8=B2=BC=E3=82=8A=E4=BB=98=E3=81=91=E3=81=A6=E3=82=82?=
=?UTF-8?q?=E6=B6=88=E3=81=88=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
DBデータを追加しました。
当パッチ適用後は、モジュール一括アップデートを実施して下さい。
---
html/webapp/components/escape/Text.class.php | 6 +++---
.../install/sql/mysql/default/common_insert.data.php | 2 ++
html/webapp/modules/module/update/Update.class.php | 6 +++---
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/html/webapp/components/escape/Text.class.php b/html/webapp/components/escape/Text.class.php
index 85f158e..c3e1ae6 100644
--- a/html/webapp/components/escape/Text.class.php
+++ b/html/webapp/components/escape/Text.class.php
@@ -234,9 +234,9 @@ function escapeWysiwyg(&$string) {
continue;
}
} else {
- // ./ と ../ の許可
- if($attribute_split[2] != "#" && !preg_match("/^\.\//", $attribute_split[2]) && !preg_match("/^\.\.\//", $attribute_split[2])) {
- $attribute_split[2] = "./".$attribute_split[2];
+ // ./ と ../ とvideo の許可
+ if($attribute_split[2] != "#" && !preg_match("/^\.\//", $attribute_split[2]) && !preg_match("/^\.\.\//", $attribute_split[2]) && !$this->_checkVideoURL($attribute_split[2], $allowable_video)) {
+ $attribute_split[2] = "./".$attribute_split[2];
}
}
}
diff --git a/html/webapp/modules/install/sql/mysql/default/common_insert.data.php b/html/webapp/modules/install/sql/mysql/default/common_insert.data.php
index 119597d..4721387 100644
--- a/html/webapp/modules/install/sql/mysql/default/common_insert.data.php
+++ b/html/webapp/modules/install/sql/mysql/default/common_insert.data.php
@@ -558,6 +558,8 @@
INSERT INTO `textarea_video_url` (`url`, `action_name`, `insert_time`, `insert_site_id`, `insert_user_id`, `insert_user_name`, `update_time`, `update_site_id`, `update_user_id`, `update_user_name`) VALUES ('http://www.youtube.com/', '', '', '', '0', '', '', '', '0', '');
INSERT INTO `textarea_video_url` (`url`, `action_name`, `insert_time`, `insert_site_id`, `insert_user_id`, `insert_user_name`, `update_time`, `update_site_id`, `update_user_id`, `update_user_name`) VALUES ('', 'multimedia_view_main_play', '', '', '0', '', '', '', '0', '');
+INSERT INTO `textarea_video_url` (`url`, `action_name`, `insert_time`, `insert_site_id`, `insert_user_id`, `insert_user_name`, `update_time`, `update_site_id`, `update_user_id`, `update_user_name`) VALUES ('http://www.youtube-nocookie.com/', '', '', '', '0', '', '', '', '0', '');
+INSERT INTO `textarea_video_url` (`url`, `action_name`, `insert_time`, `insert_site_id`, `insert_user_id`, `insert_user_name`, `update_time`, `update_site_id`, `update_user_id`, `update_user_name`) VALUES ('//www.youtube.com/', '', '', '', '0', '', '', '', '0', '');
";
?>
\ No newline at end of file
diff --git a/html/webapp/modules/module/update/Update.class.php b/html/webapp/modules/module/update/Update.class.php
index 6fc5538..47dfa31 100644
--- a/html/webapp/modules/module/update/Update.class.php
+++ b/html/webapp/modules/module/update/Update.class.php
@@ -493,11 +493,11 @@ function execute()
}
}
- // WYSIWYGの許可するVideoURLに「http://www.youtube-nocookie.com/」を追加
- $textarea_video_url = $this->db->selectExecute("textarea_video_url", array("url"=> 'http://www.youtube-nocookie.com/'));
+ // WYSIWYGの許可するVideoURLに「//www.youtube.com/」を追加
+ $textarea_video_url = $this->db->selectExecute("textarea_video_url", array("url"=> '//www.youtube.com/'));
if($textarea_video_url !== false && count($textarea_video_url) == 0) {
$sql = "INSERT INTO `".$this->db->getPrefix()."textarea_video_url` (`url`, `action_name`, `insert_time`, `insert_site_id`, `insert_user_id`, `insert_user_name`, `update_time`, `update_site_id`, `update_user_id`, `update_user_name`) VALUES
- ('http://www.youtube-nocookie.com/', '', '', '', '0', '', '', '', '0', '')";
+ ('//www.youtube.com/', '', '', '', '0', '', '', '', '0', '')";
$result = $this->db->execute($sql);
if ($result === false) {
return false;
From 441070a3b1cd9027f45fbee1c56f108521960933 Mon Sep 17 00:00:00 2001
From: mutaguchi mitsuru
Date: Thu, 23 Jan 2014 14:52:00 +0900
Subject: [PATCH 13/86] =?UTF-8?q?#99=20=E7=94=BB=E5=83=8F=E8=AA=8D?=
=?UTF-8?q?=E8=A8=BC=E3=81=AE=E8=8B=B1=E6=96=87=E3=82=B3=E3=83=A1=E3=83=B3?=
=?UTF-8?q?=E3=83=88=E6=8A=9C=E3=81=91=E3=82=92=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/registration/language/english/main.ini | 1 +
1 file changed, 1 insertion(+)
diff --git a/html/webapp/modules/registration/language/english/main.ini b/html/webapp/modules/registration/language/english/main.ini
index 64a7ad6..e5f657e 100644
--- a/html/webapp/modules/registration/language/english/main.ini
+++ b/html/webapp/modules/registration/language/english/main.ini
@@ -140,6 +140,7 @@ registration_mobile_item_name = "[%s]"
registration_not_open = "Registration is not in process."
registration_entry_text = "Fill out the form on this page, and click the %s button.
The items marked by * are required to answer."
registration_email_second = "to confirm"
+registration_image_auth_readme = "Type the words"
[Registration_View_Main_Confirm]
registration_confirm_text = "Please check the information you have entered,
From 1b91662778d81b4fd03cb6c240f71e175a11671d Mon Sep 17 00:00:00 2001
From: mutaguchi mitsuru
Date: Wed, 19 Feb 2014 18:04:11 +0900
Subject: [PATCH 14/86] =?UTF-8?q?#102=20smarty=5Fcache=E3=81=8C=E6=BA=9C?=
=?UTF-8?q?=E3=81=BE=E3=82=89=E3=81=AA=E3=81=84=E4=B8=8D=E5=85=B7=E5=90=88?=
=?UTF-8?q?=E3=81=AE=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/nccore/SmartyTemplate.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/maple/nccore/SmartyTemplate.class.php b/html/maple/nccore/SmartyTemplate.class.php
index 79d4ee5..c77153c 100644
--- a/html/maple/nccore/SmartyTemplate.class.php
+++ b/html/maple/nccore/SmartyTemplate.class.php
@@ -767,7 +767,7 @@ function smartyTemplateCacheHandler($action, &$smarty_obj, &$cache_content, $tpl
$time = date("YmdHis",timezone_date(null, true, "U") - $renderer->cache_lifetime);
$result = $db->execute("DELETE FROM {smarty_cache} " .
- $where_str." OR update_time <'".$time."' ",$params);
+ $where_str." OR expire_time <'".$time."' ",$params);
} else {
$result = $db->execute("DELETE FROM {smarty_cache} " .
$where_str,$params);
From 0b01b67bc8775f5dd9509049769204efb95c2f91 Mon Sep 17 00:00:00 2001
From: kteraguchi
Date: Tue, 11 Mar 2014 10:54:09 +0900
Subject: [PATCH 15/86] =?UTF-8?q?#90=20mysqli=E4=BD=BF=E7=94=A8=E6=99=82?=
=?UTF-8?q?=E3=81=A7=E3=82=82=E6=AD=A3=E5=B8=B8=E3=81=AB=E5=8B=95=E4=BD=9C?=
=?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/nccore/db/DbObjectAdodb.class.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/html/maple/nccore/db/DbObjectAdodb.class.php b/html/maple/nccore/db/DbObjectAdodb.class.php
index 0e2c1b1..570489a 100644
--- a/html/maple/nccore/db/DbObjectAdodb.class.php
+++ b/html/maple/nccore/db/DbObjectAdodb.class.php
@@ -186,7 +186,11 @@ function connect() {
// http://php.net/manual/ja/function.mysql-set-charset.php
if (version_compare(phpversion(), '5.2.3', '>=')
&& $server_info['version'] >= '5.0.7') {
- mysql_set_charset(DATABASE_CHARSET);
+ if (strpos($this->_dsn, 'mysqli') === 0) {
+ $this->_conn->SetCharSet(DATABASE_CHARSET);
+ } else {
+ mysql_set_charset(DATABASE_CHARSET);
+ }
}
}
From 1feb9423c624cf2a74f15036bcd8cbd05ca3cee4 Mon Sep 17 00:00:00 2001
From: s-nakajima
Date: Mon, 7 Apr 2014 09:53:39 +0900
Subject: [PATCH 16/86] =?UTF-8?q?#105=20=E3=83=AA=E3=82=AF=E3=82=A8?=
=?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=91=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF?=
=?UTF-8?q?=E3=81=8C=E9=85=8D=E5=88=97=E3=81=AE=E5=A0=B4=E5=90=88=E3=80=81?=
=?UTF-8?q?=E4=B8=80=E9=83=A8=E3=82=BB=E3=82=AD=E3=83=A5=E3=83=AA=E3=83=86?=
=?UTF-8?q?=E3=82=A3=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=81=95=E3=82=8C?=
=?UTF-8?q?=E3=81=AA=E3=81=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/maple/nccore/RequestExtra.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/maple/nccore/RequestExtra.class.php b/html/maple/nccore/RequestExtra.class.php
index a639fe2..4467165 100644
--- a/html/maple/nccore/RequestExtra.class.php
+++ b/html/maple/nccore/RequestExtra.class.php
@@ -102,7 +102,7 @@ function _rawurlDecode(&$params, $security_chk_flag = false) {
}
if(is_array($value)) {
- $this->_rawurlDecode($params[$key]);
+ $this->_rawurlDecode($params[$key], $security_chk_flag);
} else {
if($security_chk_flag) {
// ヌル文字列をスペースに変更する
From f69f8a418bf169e58014644bd2d92c642a1a50a7 Mon Sep 17 00:00:00 2001
From: goto
Date: Tue, 22 Apr 2014 18:57:04 +0900
Subject: [PATCH 17/86] =?UTF-8?q?#106=20WYSIWYG=E3=81=AE=E7=AE=87=E6=9D=A1?=
=?UTF-8?q?=E6=9B=B8=E3=81=8D=E3=81=A7=E5=85=A8=E8=A7=92=E5=85=A5=E5=8A=9B?=
=?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=A8=E3=80=81=E5=85=88=E9=A0=AD=E3=81=AE?=
=?UTF-8?q?=E6=96=87=E5=AD=97=E3=81=8C2=E8=A1=8C=E7=9B=AE=E3=81=AB?=
=?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=82=8B=E4=B8=8D=E5=85=B7?=
=?UTF-8?q?=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../files/js/plugins/comp_textareamain.js | 48 ++++++++++---------
1 file changed, 26 insertions(+), 22 deletions(-)
mode change 100644 => 100755 html/webapp/modules/comp/files/js/plugins/comp_textareamain.js
diff --git a/html/webapp/modules/comp/files/js/plugins/comp_textareamain.js b/html/webapp/modules/comp/files/js/plugins/comp_textareamain.js
old mode 100644
new mode 100755
index 02d9af0..d5961d6
--- a/html/webapp/modules/comp/files/js/plugins/comp_textareamain.js
+++ b/html/webapp/modules/comp/files/js/plugins/comp_textareamain.js
@@ -488,33 +488,37 @@ compTextareamain.prototype = {
value : {
insertOrderedList : { visible : true, tags : ['ol'],
exec : function(e) {
- if(!browser.isIE)
- this.editorDoc.execCommand("insertOrderedList", false, []);
- else {
- var n = this.applyInlineStyle('div');
- this.rangeSelect(n);
- this.editorDoc.execCommand("insertOrderedList", false, []);
- if(n && n.parentNode) {
- this.insertBefore(n, n.innerHTML)
- n.parentNode.removeChild(n);
- }
- }
+ // IE10以下で全角入力をすると、先頭の文字が2行目にも表示されるため修正
+// if(!browser.isIE)
+// this.editorDoc.execCommand("insertOrderedList", false, []);
+// else {
+// var n = this.applyInlineStyle('div');
+// this.rangeSelect(n);
+// this.editorDoc.execCommand("insertOrderedList", false, []);
+// if(n && n.parentNode) {
+// this.insertBefore(n, n.innerHTML)
+// n.parentNode.removeChild(n);
+// }
+// }
+ this.editorDoc.execCommand("insertOrderedList", false, []);
this.checkTargets();
}
},
insertUnorderedList : { visible : true, tags : ['ul'],
exec : function(e) {
- if(!browser.isIE)
- this.editorDoc.execCommand("insertUnorderedList", false, []);
- else {
- var n = this.applyInlineStyle('div');
- this.rangeSelect(n);
- this.editorDoc.execCommand("insertUnorderedList", false, []);
- if(n && n.parentNode) {
- this.insertBefore(n, n.innerHTML)
- n.parentNode.removeChild(n);
- }
- }
+ // IE10以下で全角入力をすると、先頭の文字が2行目にも表示されるため修正
+// if(!browser.isIE)
+// this.editorDoc.execCommand("insertUnorderedList", false, []);
+// else {
+// var n = this.applyInlineStyle('div');
+// this.rangeSelect(n);
+// this.editorDoc.execCommand("insertUnorderedList", false, []);
+// if(n && n.parentNode) {
+// this.insertBefore(n, n.innerHTML)
+// n.parentNode.removeChild(n);
+// }
+// }
+ this.editorDoc.execCommand("insertUnorderedList", false, []);
this.checkTargets();
}
}
From 191d12914c31da9cc46c66ccfa128c264ac66140 Mon Sep 17 00:00:00 2001
From: Rika Fujiwara
Date: Wed, 4 Jun 2014 16:27:56 +0900
Subject: [PATCH 18/86] =?UTF-8?q?#107=20=E3=83=88=E3=83=83=E3=83=97?=
=?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=A7=E3=83=9A=E3=83=BC=E3=82=B8?=
=?UTF-8?q?=E3=82=B9=E3=82=BF=E3=82=A4=E3=83=AB=E3=83=80=E3=82=A4=E3=82=A2?=
=?UTF-8?q?=E3=83=AD=E3=82=B0=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=81=8C=E3=81=A7?=
=?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dialog/files/js/default/pagestyle.js | 1064 ++++++++---------
.../modules/dialog/templates/pagestyle.html | 804 ++++++-------
2 files changed, 936 insertions(+), 932 deletions(-)
diff --git a/html/webapp/modules/dialog/files/js/default/pagestyle.js b/html/webapp/modules/dialog/files/js/default/pagestyle.js
index d47fcd3..41edb87 100644
--- a/html/webapp/modules/dialog/files/js/default/pagestyle.js
+++ b/html/webapp/modules/dialog/files/js/default/pagestyle.js
@@ -1,533 +1,533 @@
-var clsPagestyle = Class.create();
-
-clsPagestyle.prototype = {
- initialize: function() {
- this.id = null;
- this.top_el = null;
-
- this.lang_down_arrow = null;
- this.lang_right_arrow = null;
-
- this.lang_cancel_confirm = null;
-
- this.themefields = null;
- this.theme_name = null;
- this.header_flag = null;
- this.leftcolumn_flag = null;
- this.rightcolumn_flag = null;
-
- this.header_el = null;
- this.header_id_el = null;
- this.leftcolumn_el = null;
- this.centercolumn_el = null;
- this.rightcolumn_el = null;
- this.footer_el = null;
-
- this.colorclick_flag = false;
-
- this.chg_flag = false;
- this.initColorFlag = false;
- this.initStr = "";
- this.tabset = null;
- },
- init: function(id, page_id, theme_name, header_flag, leftcolumn_flag, rightcolumn_flag, active_tab, change_flag, lang_cancel_confirm, lang_style, lang_theme, lang_layout, lang_coloration, lang_down_arrow, lang_right_arrow, pages_action, permalink_prohibition, permalink_prohibition_replace) {
- this.id = id;
- this.page_id = page_id;
- this.theme_name = theme_name;
- this.header_flag = header_flag;
- this.leftcolumn_flag = leftcolumn_flag;
- this.rightcolumn_flag = rightcolumn_flag;
-
- this.pages_action = pages_action;
- this.permalink_prohibition = permalink_prohibition;
- this.permalink_prohibition_replace = permalink_prohibition_replace;
-
- var top_el = $(id);
- this.top_el = top_el;
- this.header_id_el = $("__headercolumn");
- this.header_el = $("_headercolumn");
- if(this.header_el) {
- this.header_add_module_el = Element.getChildElementByClassName(this.header_el, "headercolumn_addmodule");
- }
- this.leftcolumn_el = $("_leftcolumn");
- this.centercolumn_el = $("_centercolumn");
- this.rightcolumn_el =$("_rightcolumn");
- this.footer_el = $("_footercolumn");
-
- /* タブ */
- tabset = new compTabset(top_el);
- tabset.addTabset(lang_theme, null);
- tabset.addTabset(lang_style,pagestyleCls.clkStyle.bind($(id)));
- tabset.addTabset(lang_layout);
- tabset.addTabset(lang_coloration, null, pagestyleCls.clkColor.bind(this));
-
- tabset.setActiveIndex(valueParseInt(active_tab));
-
- tabset.render();
- if(change_flag != "") {
- this.chg_flag = true;
- } else {
- this.chg_flag = false;
- }
- this.tabset = tabset;
- this.lang_cancel_confirm = lang_cancel_confirm;
- this.lang_down_arrow = lang_down_arrow;
- this.lang_right_arrow = lang_right_arrow;
-
- //Initに時間がかかる処理は後回し
- //setTimeout(pagestyleCls.InitTimer.bind(this), 0);
- },
- clkStyle: function() {
- var top_el = this;
- var form = top_el.getElementsByTagName("form")[0];
- commonCls.focus(form.page_name);
- },
- clkColor: function() {
- this.initColorFlag = true;
- this.initStr = "";
- var coloration_el =$("_pagestyle_color");
- if(coloration_el != null) {
- //配色取得
- this.setHighlightColor(document.body, "_pagestyle_body","backgroundColor");
- this.setHighlightColor(this.header_el, "_pagestyle_headercolumn","backgroundColor");
- this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn","backgroundColor");
- this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn","backgroundColor");
- this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn","backgroundColor");
- this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn","backgroundColor");
-
- this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_top_color","borderTopColor");
- this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_right_color","borderRightColor");
- this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_bottom_color","borderBottomColor");
- this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_left_color","borderLeftColor");
-
- this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_top_color","borderTopColor");
- this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_right_color","borderRightColor");
- this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_bottom_color","borderBottomColor");
- this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_left_color","borderLeftColor");
-
- this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_top_color","borderTopColor");
- this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_right_color","borderRightColor");
- this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_bottom_color","borderBottomColor");
- this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_left_color","borderLeftColor");
-
- this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_top_color","borderTopColor");
- this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_right_color","borderRightColor");
- this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_bottom_color","borderBottomColor");
- this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_left_color","borderLeftColor");
-
- this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_top_color","borderTopColor");
- this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_right_color","borderRightColor");
- this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_bottom_color","borderBottomColor");
- this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_left_color","borderLeftColor");
- }
- this.initColorFlag = false;
- if(this.initStr != "") {
- var color_params = new Object();
- color_params["method"] = "post";
- color_params["param"] = "dialog_pagestyle_action_edit_change&page_id="+this.page_id+"&_pagestyle_flag=1"+this.initStr;
- commonCls.send(color_params);
- }
- },
- setHighlightColor: function(el, child_class_name, property_name) {
- if(el) {
- //background-image対応
- var bgImageStyle = "none";
- if(property_name == "backgroundColor" || property_name == "background-color") {
- bgImageStyle = Element.getStyle(el, "backgroundImage");
- }
-
- var color = commonCls.getColorCode(el,property_name);
- var column_el = $(child_class_name);
- ////var highlight_flag = false;
- var count = 0;
- for (var i = 0,column_len = column_el.childNodes.length; i < column_len; i++) {
- var child_el = column_el.childNodes[i];
- if(child_el.nodeType == 1) {
- if(child_el.tagName.toLowerCase() == "a" && child_el.title == color && bgImageStyle == "none") {
- Element.addClassName(child_el, "highlight");
- //if(count != 0) {
- child_el.onclick();
- //}
- break;
- } else if(child_el.tagName.toLowerCase() == "select") {
- //background-image
- if(bgImageStyle != "none") {
- var selected_flag = false;
- var select_el = child_el;
- // urlの中身だけ残す
- if(bgImageStyle.match("^url[(]{1}\"")) {
- var repBgImageStyle = bgImageStyle.replace(_nc_base_url, "").replace("../", "").replace("url(\"", "").replace("\")", "");
- } else {
- var repBgImageStyle = bgImageStyle.replace(_nc_base_url, "").replace("../", "").replace("url(", "").replace(")", "");
- }
- for (var j = 0, option_len = select_el.childNodes.length; j < option_len; j++) {
- var option_el = select_el.childNodes[j];
- if(option_el.value.match(repBgImageStyle)) {
- option_el.selected = "selected";
- selected_flag = true;
- select_el.onchange();
- break;
- }
- }
- }
- } else if(child_el.tagName.toLowerCase() == "input" && child_el.type != "hidden") {
- if(color != "transparent") {
- child_el.value = color;
- child_el.onchange();
- }
- //break;
- }
- count++;
- }
- }
-
- } else {
- //レイアウトで表示していないカラム
- commonCls.displayNone($(child_class_name));
- var sub_el = $(child_class_name + "_border");
- if(sub_el) {
- commonCls.displayNone(sub_el);
- }
- }
- },
- displayChange: function(this_el, el) {
- var img_el = Element.getChildElement(this_el);
- if(img_el.src.match("down_arrow.gif")) {
- img_el.src = img_el.src.replace("down_arrow.gif","right_arrow.gif");
- img_el.alt = this.lang_right_arrow;
- this_el.title = this.lang_right_arrow;
- } else {
- img_el.src = img_el.src.replace("right_arrow.gif","down_arrow.gif");
- img_el.alt = this.lang_down_arrow;
- this_el.title = this.lang_down_arrow;
- }
- if(el == null || el == undefined) {
- var next_el = this_el.nextSibling;
- if(Element.hasClassName(next_el,"_blockstyle_custom_sample")) {
- next_el = next_el.nextSibling;
- }
- commonCls.displayChange(next_el);
- } else {
- commonCls.displayChange($(el));
- }
- },
- themeClick: function(this_el, theme_name) {
- if(!this.themefields) {
- var pagestyle_top = $("_pagestyle_top");
- this.themefields = Element.getElementsByClassName(pagestyle_top, "_pagestyle");
- }
- var return_flag = false;
- this.themefields.each(function(field) {
- if(Element.hasClassName(field,"highlight")) {
- if(field == this_el) {
- /* 変更なし */
- return_flag = true;
- return;
- } else {
- Element.removeClassName(field,"highlight");
- }
- }
- }.bind(this));
- if(return_flag) {
- return;
- }
- Element.addClassName(this_el,"highlight");
-
- /* send */
- var all_apply = 0;
- var defultcolor_params = new Object();
-
- defultcolor_params["method"] = "post";
- defultcolor_params["param"] = {"action":"dialog_pagestyle_action_edit_setdefault","page_id":this.page_id,"_pagestyle_flag":1,"all_apply":all_apply,"sesson_only":1};
- defultcolor_params["callbackfunc"] = function(){
- var theme_params = new Object();
- theme_params["method"] = "post";
- theme_params["param"] = {"action":"dialog_pagestyle_action_edit_change","page_id":this.page_id,"_pagestyle_flag":1,"theme_name": theme_name};
- theme_params["callbackfunc"] = function(){
- this.refresh(0);
- }.bind(this);
- commonCls.send(theme_params);
- }.bind(this);
- commonCls.send(defultcolor_params);
- },
- /* 配色クリック */
- colorClick: function(class_name, property_name, color, this_el) {
- if(this_el.tagName.toLowerCase() != "select" && (color == "" || color =="1px solid " || this.colorclick_flag == true || (color.length == 7 && color.indexOf('#') != 0))) {
- return;
- }
- if(property_name == "backgroundColor" && color == null) color = this_el.title;
- else if(color == null && this_el.title == "transparent") color = "0px none";
- else if(color == null) color = "1px solid " + this_el.title;
- if(typeof class_name == "string") {
- var el = Element.getChildElementByClassName(document.body, class_name);
- var send_name = class_name+"_"+property_name;
- } else {
- var el = class_name;
- var send_name = "body"+"_"+property_name;
- }
- if(!this.initColorFlag) {
- this.colorclick_flag = true;
- if(property_name == "backgroundColor") {
- // backgroundクリア
- el.style.background = "none" ;
- }
- if(property_name == "background" && color == "") {
- color = "none";
- }
- eval("el.style."+property_name + "=\"" + color+"\";");
- if(!(browser.isIE) && property_name.match("border")) {
- //firefoxのborderの場合、すぐに反映されないため
- $("_container").style.display = "none";
- }
- var color_params = new Object();
- color_params["method"] = "post";
- color_params["param"] = "dialog_pagestyle_action_edit_change&page_id="+this.page_id+"&_pagestyle_flag=1&"+send_name+"="+encodeURIComponent(color);
- color_params["callbackfunc"] = function(){
- this.colorclick_flag = false;
- if(!(browser.isIE) && property_name.match("border") ) {
- $("_container").style.display = "table";
- }
- }.bind(this);
- commonCls.send(color_params);
- this.setHighlight(this_el);
- this.chg_flag = true;
- } else {
- //pagestyle_list初期化文字列作成
- this.initStr += "&"+send_name+"="+encodeURIComponent(color);
- }
- },
- setHighlight: function(this_el) {
- for (var i = 0; i < this_el.parentNode.childNodes.length; i++) {
- var child_el = this_el.parentNode.childNodes[i];
- if(child_el.nodeType != 1) continue;
- if(Element.hasClassName(child_el,"highlight")) {
- Element.removeClassName(child_el,"highlight");
- } else if(this_el.tagName.toLowerCase() != "select" && child_el.tagName.toLowerCase() == "select") {
- child_el.selectedIndex = 0;
- } else if(this_el.tagName.toLowerCase() != "input" && child_el.tagName.toLowerCase() == "input" && child_el.type != "hidden") {
- child_el.value = "";
- }
- }
- if(this_el.tagName.toLowerCase() != "input" && this_el.tagName.toLowerCase() != "select") {
- Element.addClassName(this_el,"highlight");
- }
- },
- /* 規定値に戻す */
- defaultColorClick: function() {
- var top_el = $(this.id);
- var form = top_el.getElementsByTagName("form")[0];
- if(form.pagestyle_all_apply) {
- if(form.pagestyle_all_apply.checked) {
- var all_apply = 1;
- } else {
- var all_apply = 0;
- }
- } else {
- var all_apply = 0;
- }
- /* send */
- var defultcolor_params = new Object();
-
- defultcolor_params["method"] = "post";
- defultcolor_params["param"] = {"action":"dialog_pagestyle_action_edit_setdefault","page_id":this.page_id,"_pagestyle_flag":1,"all_apply":all_apply};
- defultcolor_params["callbackfunc"] = function(){
- this.refresh(3);
- }.bind(this);
- commonCls.send(defultcolor_params);
- },
- /* レイアウトクリック */
- layoutClick: function(el , header_flag, leftcolum_flag, rightcolumn_flag) {
- if(Element.hasClassName(el,"highlight")) {
- //変更なし
- return;
- }
- this.chg_flag = true;
- var pagestyle_layout_el = Element.getParentElementByClassName(el, "_pagestyle_layout");
- var highlight_el = Element.getChildElementByClassName(pagestyle_layout_el, "highlight");
- Element.removeClassName(highlight_el,"highlight");
- Element.addClassName(el,"highlight");
- var refresh_flag = false;
- if(header_flag) {
- if(this.header_id_el) {
- if(this.header_add_module_el) commonCls.displayVisible(this.header_add_module_el);
- commonCls.displayVisible(this.header_id_el);
- } else {
- refresh_flag = true;
- }
- this.header_flag = 1;
- } else {
- if(this.header_add_module_el) commonCls.displayNone(this.header_add_module_el);
- if(this.header_id_el) commonCls.displayNone(this.header_id_el);
- this.header_flag = 0;
- }
- var colspan = 1;
- if(leftcolum_flag) {
- colspan++;
- if(this.leftcolumn_el) {
- commonCls.displayVisible(this.leftcolumn_el);
- } else {
- refresh_flag = true;
- }
- this.leftcolumn_flag = 1;
- } else {
- if(this.leftcolumn_el) commonCls.displayNone(this.leftcolumn_el);
- this.leftcolumn_flag = 0;
- }
- if(rightcolumn_flag) {
- colspan++;
- if(this.rightcolumn_el) {
- commonCls.displayVisible(this.rightcolumn_el);
- } else {
- refresh_flag = true;
- }
- this.rightcolumn_flag = 1;
- } else {
- if(this.rightcolumn_el) commonCls.displayNone(this.rightcolumn_el);
- this.rightcolumn_flag = 0;
- }
- if(this.header_id_el) {
- this.header_id_el.colspan = colspan;
- }
- if(this.footer_el) {
- this.footer_el.colspan = colspan;
- }
- var layout_params = new Object();
- layout_params["method"] = "post";
- layout_params["param"] = {"action":"dialog_pagestyle_action_edit_change","_pagestyle_flag":1,"page_id":this.page_id,"header_flag": this.header_flag,"leftcolumn_flag": this.leftcolumn_flag,"rightcolumn_flag": this.rightcolumn_flag};
- layout_params["callbackfunc"] = function(){
- if(refresh_flag != "" || !(browser.isIE)) {
- this.refresh(2);
- }
- }.bind(this);
- commonCls.send(layout_params);
- },
- refresh: function(active_tab, append_str) {
- var top_el = $(this.id);
- append_str = (append_str == undefined || append_str == null) ? "" : append_str;
- var str = "&_layoutmode=off";
- if(active_tab != undefined && active_tab != null) {
- str += "&active_tab="+active_tab;
- }
- location.href = _nc_base_url + _nc_index_file_name + "?action="+ this.pages_action+"&page_id="+this.page_id+
- "&_pagestyle_flag=1&pagestyle_x="+top_el.parentNode.style.left+"&pagestyle_y="+top_el.parentNode.style.top+
- str + append_str;
- },
- //行揃え変更
- chgGeneral: function(el) {
- var top_el = $(this.id);
- var form = top_el.getElementsByTagName("form")[0];
- var name = el.name;
- var hidden_el = el.nextSibling;
- if(hidden_el.value == el.value) {
- // 変更なし
- return;
- }
- this.chg_flag = true;
- var container_el = $("_container");
- if(name == "align") {
- if(el.value == "center") {
- form.leftmargin.value = "0";
- form.rightmargin.value = "0";
- container_el.style.marginRight = "";
- container_el.style.marginLeft = "";
- var buf_hidden_el = form.leftmargin.nextSibling;
- buf_hidden_el.value = "0";
- var buf_hidden_el = form.rightmargin.nextSibling;
- buf_hidden_el.value = "0";
- }
- container_el.align = el.value;
- container_el.style.textAlign = el.value;
- } else if(name == "topmargin") {
- container_el.style.marginTop = el.value + "px";
- } else if(name == "rightmargin") {
- container_el.style.marginRight = el.value + "px";
- } else if(name == "bottommargin") {
- container_el.style.marginBottom = el.value + "px";
- } else if(name == "leftmargin") {
- container_el.style.marginLeft = el.value + "px";
- }
- if((name == "leftmargin" || name == "rightmargin") && el.value != "0" && form.align.value == "center") {
- form.align.value = "left";
- container_el.align = "left";
- container_el.style.textAlign = "left";
- var buf_hidden_el = form.align.nextSibling;
- buf_hidden_el.value = "left";
- }
- if(name == "page_name") {
- var robj = new RegExp(this.permalink_prohibition, "ig");
- if(hidden_el.value.replace(robj, this.permalink_prohibition_replace) == form.permalink.value.replace(robj, this.permalink_prohibition_replace)) {
- form.permalink.value = el.value.replace(robj, this.permalink_prohibition_replace);
- }
- }
- hidden_el.value = el.value;
- //session情報に追記
- var general_params = new Object();
- general_params["method"] = "post";
- general_params["param"] = {"action":"dialog_pagestyle_action_edit_change","_pagestyle_flag":1,"page_id":this.page_id};
- general_params["param"][name] = el.value;
- commonCls.send(general_params);
- },
- /*OK*/
- okClick: function(id) {
- var top_el = $(this.id);
- var form = top_el.getElementsByTagName("form")[0];
- if(form.pagestyle_all_apply) {
- if(form.pagestyle_all_apply.checked) {
- var all_apply = 1;
- } else {
- var all_apply = 0;
- }
- } else {
- var all_apply = 0;
- }
- if(this.chg_flag) {
- setTimeout(function() {
- var top_el = $(this.id);
- var theme_params = new Object();
- if(typeof form.titletag != "undefined") {
- var titletag = form.titletag.value;
- } else {
- var titletag = null;
- }
- if(typeof form.permalink != "undefined") {
- var permalink = form.permalink.value;
- } else {
- var permalink = null;
- }
-
- theme_params["method"] = "post";
- theme_params["top_el"] = $(this.id);
- theme_params["param"] = {"action":"dialog_pagestyle_action_edit_init","page_id":this.page_id,"page_name":form.page_name.value,"permalink":permalink,"titletag":titletag,"meta_description":form.meta_description.value,"meta_keywords":form.meta_keywords.value,"_pagestyle_flag":1,"all_apply":all_apply,"prefix_id_name":"dialog_pagestyle"};
- theme_params["callbackfunc"] = function(res){
- if(form.permalink_url && form.permalink.value != undefined && form.permalink.value != '') {
- location.href = form.permalink_url.value + form.permalink.value + '/';
- } else {
- location.href = _nc_base_url + _nc_index_file_name + "?action=" + this.pages_action + "&page_id="+this.page_id;
- }
- }.bind(this);
- theme_params["callbackfunc_error"] = function(res){
- commonCls.alert(res);
- this.tabset.setActiveIndex(1);
- this.tabset.refresh();
- }.bind(this);
- commonCls.send(theme_params);
- }.bind(this),300);
- } else {
- //変更なし
- commonCls.removeBlock(id);
- }
- },
- /*キャンセル*/
- cancelClick: function(id) {
- if(this.chg_flag) {
- if(!commonCls.confirm(this.lang_cancel_confirm))return false;
- location.href = _nc_base_url + _nc_index_file_name + "?action=pages_view_main&page_id="+this.page_id;
- } else {
- //変更なし
- commonCls.removeBlock(id);
- }
- //location.href = _nc_base_url + _nc_index_file_name + "?action=pages_view_main&page_id="+this.page_id;
- }
-}
-
+var clsPagestyle = Class.create();
+
+clsPagestyle.prototype = {
+ initialize: function() {
+ this.id = null;
+ this.top_el = null;
+
+ this.lang_down_arrow = null;
+ this.lang_right_arrow = null;
+
+ this.lang_cancel_confirm = null;
+
+ this.themefields = null;
+ this.theme_name = null;
+ this.header_flag = null;
+ this.leftcolumn_flag = null;
+ this.rightcolumn_flag = null;
+
+ this.header_el = null;
+ this.header_id_el = null;
+ this.leftcolumn_el = null;
+ this.centercolumn_el = null;
+ this.rightcolumn_el = null;
+ this.footer_el = null;
+
+ this.colorclick_flag = false;
+
+ this.chg_flag = false;
+ this.initColorFlag = false;
+ this.initStr = "";
+ this.tabset = null;
+ },
+ init: function(id, page_id, theme_name, header_flag, leftcolumn_flag, rightcolumn_flag, active_tab, change_flag, lang_cancel_confirm, lang_style, lang_theme, lang_layout, lang_coloration, lang_down_arrow, lang_right_arrow, pages_action, permalink_prohibition, permalink_prohibition_replace) {
+ this.id = id;
+ this.page_id = page_id;
+ this.theme_name = theme_name;
+ this.header_flag = header_flag;
+ this.leftcolumn_flag = leftcolumn_flag;
+ this.rightcolumn_flag = rightcolumn_flag;
+
+ this.pages_action = pages_action;
+ this.permalink_prohibition = permalink_prohibition;
+ this.permalink_prohibition_replace = permalink_prohibition_replace;
+
+ var top_el = $(id);
+ this.top_el = top_el;
+ this.header_id_el = $("__headercolumn");
+ this.header_el = $("_headercolumn");
+ if(this.header_el) {
+ this.header_add_module_el = Element.getChildElementByClassName(this.header_el, "headercolumn_addmodule");
+ }
+ this.leftcolumn_el = $("_leftcolumn");
+ this.centercolumn_el = $("_centercolumn");
+ this.rightcolumn_el =$("_rightcolumn");
+ this.footer_el = $("_footercolumn");
+
+ /* タブ */
+ tabset = new compTabset(top_el);
+ tabset.addTabset(lang_theme, null);
+ tabset.addTabset(lang_style,pagestyleCls.clkStyle.bind($(id)));
+ tabset.addTabset(lang_layout);
+ tabset.addTabset(lang_coloration, null, pagestyleCls.clkColor.bind(this));
+
+ tabset.setActiveIndex(valueParseInt(active_tab));
+
+ tabset.render();
+ if(change_flag != "") {
+ this.chg_flag = true;
+ } else {
+ this.chg_flag = false;
+ }
+ this.tabset = tabset;
+ this.lang_cancel_confirm = lang_cancel_confirm;
+ this.lang_down_arrow = lang_down_arrow;
+ this.lang_right_arrow = lang_right_arrow;
+
+ //Initに時間がかかる処理は後回し
+ //setTimeout(pagestyleCls.InitTimer.bind(this), 0);
+ },
+ clkStyle: function() {
+ var top_el = this;
+ var form = top_el.getElementsByTagName("form")[0];
+ commonCls.focus(form.page_name);
+ },
+ clkColor: function() {
+ this.initColorFlag = true;
+ this.initStr = "";
+ var coloration_el =$("_pagestyle_color");
+ if(coloration_el != null) {
+ //配色取得
+ this.setHighlightColor(document.body, "_pagestyle_body","backgroundColor");
+ this.setHighlightColor(this.header_el, "_pagestyle_headercolumn","backgroundColor");
+ this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn","backgroundColor");
+ this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn","backgroundColor");
+ this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn","backgroundColor");
+ this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn","backgroundColor");
+
+ this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_top_color","borderTopColor");
+ this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_right_color","borderRightColor");
+ this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_bottom_color","borderBottomColor");
+ this.setHighlightColor(this.header_el, "_pagestyle_headercolumn_border_left_color","borderLeftColor");
+
+ this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_top_color","borderTopColor");
+ this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_right_color","borderRightColor");
+ this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_bottom_color","borderBottomColor");
+ this.setHighlightColor(this.leftcolumn_el, "_pagestyle_leftcolumn_border_left_color","borderLeftColor");
+
+ this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_top_color","borderTopColor");
+ this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_right_color","borderRightColor");
+ this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_bottom_color","borderBottomColor");
+ this.setHighlightColor(this.centercolumn_el, "_pagestyle_centercolumn_border_left_color","borderLeftColor");
+
+ this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_top_color","borderTopColor");
+ this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_right_color","borderRightColor");
+ this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_bottom_color","borderBottomColor");
+ this.setHighlightColor(this.rightcolumn_el, "_pagestyle_rightcolumn_border_left_color","borderLeftColor");
+
+ this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_top_color","borderTopColor");
+ this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_right_color","borderRightColor");
+ this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_bottom_color","borderBottomColor");
+ this.setHighlightColor(this.footer_el, "_pagestyle_footercolumn_border_left_color","borderLeftColor");
+ }
+ this.initColorFlag = false;
+ if(this.initStr != "") {
+ var color_params = new Object();
+ color_params["method"] = "post";
+ color_params["param"] = "dialog_pagestyle_action_edit_change&page_id="+this.page_id+"&_pagestyle_flag=1"+this.initStr;
+ commonCls.send(color_params);
+ }
+ },
+ setHighlightColor: function(el, child_class_name, property_name) {
+ if(el) {
+ //background-image対応
+ var bgImageStyle = "none";
+ if(property_name == "backgroundColor" || property_name == "background-color") {
+ bgImageStyle = Element.getStyle(el, "backgroundImage");
+ }
+
+ var color = commonCls.getColorCode(el,property_name);
+ var column_el = $(child_class_name);
+ ////var highlight_flag = false;
+ var count = 0;
+ for (var i = 0,column_len = column_el.childNodes.length; i < column_len; i++) {
+ var child_el = column_el.childNodes[i];
+ if(child_el.nodeType == 1) {
+ if(child_el.tagName.toLowerCase() == "a" && child_el.title == color && bgImageStyle == "none") {
+ Element.addClassName(child_el, "highlight");
+ //if(count != 0) {
+ child_el.onclick();
+ //}
+ break;
+ } else if(child_el.tagName.toLowerCase() == "select") {
+ //background-image
+ if(bgImageStyle != "none") {
+ var selected_flag = false;
+ var select_el = child_el;
+ // urlの中身だけ残す
+ if(bgImageStyle.match("^url[(]{1}\"")) {
+ var repBgImageStyle = bgImageStyle.replace(_nc_base_url, "").replace("../", "").replace("url(\"", "").replace("\")", "");
+ } else {
+ var repBgImageStyle = bgImageStyle.replace(_nc_base_url, "").replace("../", "").replace("url(", "").replace(")", "");
+ }
+ for (var j = 0, option_len = select_el.childNodes.length; j < option_len; j++) {
+ var option_el = select_el.childNodes[j];
+ if(option_el.value.match(repBgImageStyle)) {
+ option_el.selected = "selected";
+ selected_flag = true;
+ select_el.onchange();
+ break;
+ }
+ }
+ }
+ } else if(child_el.tagName.toLowerCase() == "input" && child_el.type != "hidden") {
+ if(color != "transparent") {
+ child_el.value = color;
+ child_el.onchange();
+ }
+ //break;
+ }
+ count++;
+ }
+ }
+
+ } else {
+ //レイアウトで表示していないカラム
+ commonCls.displayNone($(child_class_name));
+ var sub_el = $(child_class_name + "_border");
+ if(sub_el) {
+ commonCls.displayNone(sub_el);
+ }
+ }
+ },
+ displayChange: function(this_el, el) {
+ var img_el = Element.getChildElement(this_el);
+ if(img_el.src.match("down_arrow.gif")) {
+ img_el.src = img_el.src.replace("down_arrow.gif","right_arrow.gif");
+ img_el.alt = this.lang_right_arrow;
+ this_el.title = this.lang_right_arrow;
+ } else {
+ img_el.src = img_el.src.replace("right_arrow.gif","down_arrow.gif");
+ img_el.alt = this.lang_down_arrow;
+ this_el.title = this.lang_down_arrow;
+ }
+ if(el == null || el == undefined) {
+ var next_el = this_el.nextSibling;
+ if(Element.hasClassName(next_el,"_blockstyle_custom_sample")) {
+ next_el = next_el.nextSibling;
+ }
+ commonCls.displayChange(next_el);
+ } else {
+ commonCls.displayChange($(el));
+ }
+ },
+ themeClick: function(this_el, theme_name) {
+ if(!this.themefields) {
+ var pagestyle_top = $("_pagestyle_top");
+ this.themefields = Element.getElementsByClassName(pagestyle_top, "_pagestyle");
+ }
+ var return_flag = false;
+ this.themefields.each(function(field) {
+ if(Element.hasClassName(field,"highlight")) {
+ if(field == this_el) {
+ /* 変更なし */
+ return_flag = true;
+ return;
+ } else {
+ Element.removeClassName(field,"highlight");
+ }
+ }
+ }.bind(this));
+ if(return_flag) {
+ return;
+ }
+ Element.addClassName(this_el,"highlight");
+
+ /* send */
+ var all_apply = 0;
+ var defultcolor_params = new Object();
+
+ defultcolor_params["method"] = "post";
+ defultcolor_params["param"] = {"action":"dialog_pagestyle_action_edit_setdefault","page_id":this.page_id,"_pagestyle_flag":1,"all_apply":all_apply,"sesson_only":1};
+ defultcolor_params["callbackfunc"] = function(){
+ var theme_params = new Object();
+ theme_params["method"] = "post";
+ theme_params["param"] = {"action":"dialog_pagestyle_action_edit_change","page_id":this.page_id,"_pagestyle_flag":1,"theme_name": theme_name};
+ theme_params["callbackfunc"] = function(){
+ this.refresh(0);
+ }.bind(this);
+ commonCls.send(theme_params);
+ }.bind(this);
+ commonCls.send(defultcolor_params);
+ },
+ /* 配色クリック */
+ colorClick: function(class_name, property_name, color, this_el) {
+ if(this_el.tagName.toLowerCase() != "select" && (color == "" || color =="1px solid " || this.colorclick_flag == true || (color.length == 7 && color.indexOf('#') != 0))) {
+ return;
+ }
+ if(property_name == "backgroundColor" && color == null) color = this_el.title;
+ else if(color == null && this_el.title == "transparent") color = "0px none";
+ else if(color == null) color = "1px solid " + this_el.title;
+ if(typeof class_name == "string") {
+ var el = Element.getChildElementByClassName(document.body, class_name);
+ var send_name = class_name+"_"+property_name;
+ } else {
+ var el = class_name;
+ var send_name = "body"+"_"+property_name;
+ }
+ if(!this.initColorFlag) {
+ this.colorclick_flag = true;
+ if(property_name == "backgroundColor") {
+ // backgroundクリア
+ el.style.background = "none" ;
+ }
+ if(property_name == "background" && color == "") {
+ color = "none";
+ }
+ eval("el.style."+property_name + "=\"" + color+"\";");
+ if(!(browser.isIE) && property_name.match("border")) {
+ //firefoxのborderの場合、すぐに反映されないため
+ $("_container").style.display = "none";
+ }
+ var color_params = new Object();
+ color_params["method"] = "post";
+ color_params["param"] = "dialog_pagestyle_action_edit_change&page_id="+this.page_id+"&_pagestyle_flag=1&"+send_name+"="+encodeURIComponent(color);
+ color_params["callbackfunc"] = function(){
+ this.colorclick_flag = false;
+ if(!(browser.isIE) && property_name.match("border") ) {
+ $("_container").style.display = "table";
+ }
+ }.bind(this);
+ commonCls.send(color_params);
+ this.setHighlight(this_el);
+ this.chg_flag = true;
+ } else {
+ //pagestyle_list初期化文字列作成
+ this.initStr += "&"+send_name+"="+encodeURIComponent(color);
+ }
+ },
+ setHighlight: function(this_el) {
+ for (var i = 0; i < this_el.parentNode.childNodes.length; i++) {
+ var child_el = this_el.parentNode.childNodes[i];
+ if(child_el.nodeType != 1) continue;
+ if(Element.hasClassName(child_el,"highlight")) {
+ Element.removeClassName(child_el,"highlight");
+ } else if(this_el.tagName.toLowerCase() != "select" && child_el.tagName.toLowerCase() == "select") {
+ child_el.selectedIndex = 0;
+ } else if(this_el.tagName.toLowerCase() != "input" && child_el.tagName.toLowerCase() == "input" && child_el.type != "hidden") {
+ child_el.value = "";
+ }
+ }
+ if(this_el.tagName.toLowerCase() != "input" && this_el.tagName.toLowerCase() != "select") {
+ Element.addClassName(this_el,"highlight");
+ }
+ },
+ /* 規定値に戻す */
+ defaultColorClick: function() {
+ var top_el = $(this.id);
+ var form = top_el.getElementsByTagName("form")[0];
+ if(form.pagestyle_all_apply) {
+ if(form.pagestyle_all_apply.checked) {
+ var all_apply = 1;
+ } else {
+ var all_apply = 0;
+ }
+ } else {
+ var all_apply = 0;
+ }
+ /* send */
+ var defultcolor_params = new Object();
+
+ defultcolor_params["method"] = "post";
+ defultcolor_params["param"] = {"action":"dialog_pagestyle_action_edit_setdefault","page_id":this.page_id,"_pagestyle_flag":1,"all_apply":all_apply};
+ defultcolor_params["callbackfunc"] = function(){
+ this.refresh(3);
+ }.bind(this);
+ commonCls.send(defultcolor_params);
+ },
+ /* レイアウトクリック */
+ layoutClick: function(el , header_flag, leftcolum_flag, rightcolumn_flag) {
+ if(Element.hasClassName(el,"highlight")) {
+ //変更なし
+ return;
+ }
+ this.chg_flag = true;
+ var pagestyle_layout_el = Element.getParentElementByClassName(el, "_pagestyle_layout");
+ var highlight_el = Element.getChildElementByClassName(pagestyle_layout_el, "highlight");
+ Element.removeClassName(highlight_el,"highlight");
+ Element.addClassName(el,"highlight");
+ var refresh_flag = false;
+ if(header_flag) {
+ if(this.header_id_el) {
+ if(this.header_add_module_el) commonCls.displayVisible(this.header_add_module_el);
+ commonCls.displayVisible(this.header_id_el);
+ } else {
+ refresh_flag = true;
+ }
+ this.header_flag = 1;
+ } else {
+ if(this.header_add_module_el) commonCls.displayNone(this.header_add_module_el);
+ if(this.header_id_el) commonCls.displayNone(this.header_id_el);
+ this.header_flag = 0;
+ }
+ var colspan = 1;
+ if(leftcolum_flag) {
+ colspan++;
+ if(this.leftcolumn_el) {
+ commonCls.displayVisible(this.leftcolumn_el);
+ } else {
+ refresh_flag = true;
+ }
+ this.leftcolumn_flag = 1;
+ } else {
+ if(this.leftcolumn_el) commonCls.displayNone(this.leftcolumn_el);
+ this.leftcolumn_flag = 0;
+ }
+ if(rightcolumn_flag) {
+ colspan++;
+ if(this.rightcolumn_el) {
+ commonCls.displayVisible(this.rightcolumn_el);
+ } else {
+ refresh_flag = true;
+ }
+ this.rightcolumn_flag = 1;
+ } else {
+ if(this.rightcolumn_el) commonCls.displayNone(this.rightcolumn_el);
+ this.rightcolumn_flag = 0;
+ }
+ if(this.header_id_el) {
+ this.header_id_el.colspan = colspan;
+ }
+ if(this.footer_el) {
+ this.footer_el.colspan = colspan;
+ }
+ var layout_params = new Object();
+ layout_params["method"] = "post";
+ layout_params["param"] = {"action":"dialog_pagestyle_action_edit_change","_pagestyle_flag":1,"page_id":this.page_id,"header_flag": this.header_flag,"leftcolumn_flag": this.leftcolumn_flag,"rightcolumn_flag": this.rightcolumn_flag};
+ layout_params["callbackfunc"] = function(){
+ if(refresh_flag != "" || !(browser.isIE)) {
+ this.refresh(2);
+ }
+ }.bind(this);
+ commonCls.send(layout_params);
+ },
+ refresh: function(active_tab, append_str) {
+ var top_el = $(this.id);
+ append_str = (append_str == undefined || append_str == null) ? "" : append_str;
+ var str = "&_layoutmode=off";
+ if(active_tab != undefined && active_tab != null) {
+ str += "&active_tab="+active_tab;
+ }
+ location.href = _nc_base_url + _nc_index_file_name + "?action="+ this.pages_action+"&page_id="+this.page_id+
+ "&_pagestyle_flag=1&pagestyle_x="+top_el.parentNode.style.left+"&pagestyle_y="+top_el.parentNode.style.top+
+ str + append_str;
+ },
+ //行揃え変更
+ chgGeneral: function(el) {
+ var top_el = $(this.id);
+ var form = top_el.getElementsByTagName("form")[0];
+ var name = el.name;
+ var hidden_el = el.nextSibling;
+ if(hidden_el.value == el.value) {
+ // 変更なし
+ return;
+ }
+ this.chg_flag = true;
+ var container_el = $("_container");
+ if(name == "align") {
+ if(el.value == "center") {
+ form.leftmargin.value = "0";
+ form.rightmargin.value = "0";
+ container_el.style.marginRight = "";
+ container_el.style.marginLeft = "";
+ var buf_hidden_el = form.leftmargin.nextSibling;
+ buf_hidden_el.value = "0";
+ var buf_hidden_el = form.rightmargin.nextSibling;
+ buf_hidden_el.value = "0";
+ }
+ container_el.align = el.value;
+ container_el.style.textAlign = el.value;
+ } else if(name == "topmargin") {
+ container_el.style.marginTop = el.value + "px";
+ } else if(name == "rightmargin") {
+ container_el.style.marginRight = el.value + "px";
+ } else if(name == "bottommargin") {
+ container_el.style.marginBottom = el.value + "px";
+ } else if(name == "leftmargin") {
+ container_el.style.marginLeft = el.value + "px";
+ }
+ if((name == "leftmargin" || name == "rightmargin") && el.value != "0" && form.align.value == "center") {
+ form.align.value = "left";
+ container_el.align = "left";
+ container_el.style.textAlign = "left";
+ var buf_hidden_el = form.align.nextSibling;
+ buf_hidden_el.value = "left";
+ }
+ if(name == "page_name") {
+ var robj = new RegExp(this.permalink_prohibition, "ig");
+ if(hidden_el.value.replace(robj, this.permalink_prohibition_replace) == form.permalink.value.replace(robj, this.permalink_prohibition_replace)) {
+ form.permalink.value = el.value.replace(robj, this.permalink_prohibition_replace);
+ }
+ }
+ hidden_el.value = el.value;
+ //session情報に追記
+ var general_params = new Object();
+ general_params["method"] = "post";
+ general_params["param"] = {"action":"dialog_pagestyle_action_edit_change","_pagestyle_flag":1,"page_id":this.page_id};
+ general_params["param"][name] = el.value;
+ commonCls.send(general_params);
+ },
+ /*OK*/
+ okClick: function(id) {
+ var top_el = $(this.id);
+ var form = top_el.getElementsByTagName("form")[0];
+ if(form.pagestyle_all_apply) {
+ if(form.pagestyle_all_apply.checked) {
+ var all_apply = 1;
+ } else {
+ var all_apply = 0;
+ }
+ } else {
+ var all_apply = 0;
+ }
+ if(this.chg_flag) {
+ setTimeout(function() {
+ var top_el = $(this.id);
+ var theme_params = new Object();
+ if(typeof form.titletag != "undefined") {
+ var titletag = form.titletag.value;
+ } else {
+ var titletag = null;
+ }
+ if(typeof form.permalink != "undefined") {
+ var permalink = form.permalink.value;
+ } else {
+ var permalink = null;
+ }
+
+ theme_params["method"] = "post";
+ theme_params["top_el"] = $(this.id);
+ theme_params["param"] = {"action":"dialog_pagestyle_action_edit_init","page_id":this.page_id,"page_name":form.page_name.value,"permalink":permalink,"titletag":titletag,"meta_description":form.meta_description.value,"meta_keywords":form.meta_keywords.value,"_pagestyle_flag":1,"all_apply":all_apply,"prefix_id_name":"dialog_pagestyle"};
+ theme_params["callbackfunc"] = function(res){
+ if(form.permalink_url && form.permalink.type != "hidden" && form.permalink.value != '') {
+ location.href = form.permalink_url.value + form.permalink.value + '/';
+ } else {
+ location.href = _nc_base_url + _nc_index_file_name + "?action=" + this.pages_action + "&page_id="+this.page_id;
+ }
+ }.bind(this);
+ theme_params["callbackfunc_error"] = function(res){
+ commonCls.alert(res);
+ this.tabset.setActiveIndex(1);
+ this.tabset.refresh();
+ }.bind(this);
+ commonCls.send(theme_params);
+ }.bind(this),300);
+ } else {
+ //変更なし
+ commonCls.removeBlock(id);
+ }
+ },
+ /*キャンセル*/
+ cancelClick: function(id) {
+ if(this.chg_flag) {
+ if(!commonCls.confirm(this.lang_cancel_confirm))return false;
+ location.href = _nc_base_url + _nc_index_file_name + "?action=pages_view_main&page_id="+this.page_id;
+ } else {
+ //変更なし
+ commonCls.removeBlock(id);
+ }
+ //location.href = _nc_base_url + _nc_index_file_name + "?action=pages_view_main&page_id="+this.page_id;
+ }
+}
+
pagestyleCls = new clsPagestyle();
\ No newline at end of file
diff --git a/html/webapp/modules/dialog/templates/pagestyle.html b/html/webapp/modules/dialog/templates/pagestyle.html
index 4417dde..aad9d92 100644
--- a/html/webapp/modules/dialog/templates/pagestyle.html
+++ b/html/webapp/modules/dialog/templates/pagestyle.html
@@ -1,401 +1,405 @@
-<{strip}>
-<{* TODO:style属性、後にクラス化 *}>
-
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 84/86] =?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 85/86] 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 86/86] =?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