From a6a082dfceca342e5b699f78637c87f348b3bc81 Mon Sep 17 00:00:00 2001 From: haneul Date: Fri, 18 Jan 2008 10:23:49 +0000 Subject: [PATCH] =?UTF-8?q?PHP=204=EC=97=90=EC=84=9C=20=EC=8B=9C=EA=B0=84?= =?UTF-8?q?=EC=9D=B4=20=EC=A0=9C=EB=8C=80=EB=A1=9C=20=EC=95=88=20=EB=A7=9E?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3544 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/lifepod/conf/info.xml | 2 +- modules/lifepod/lifepod.view.php | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/lifepod/conf/info.xml b/modules/lifepod/conf/info.xml index 75255bf2c..7a22abf9b 100644 --- a/modules/lifepod/conf/info.xml +++ b/modules/lifepod/conf/info.xml @@ -1,5 +1,5 @@ - + 라이프팟 연동 Lifepod Lifepod連動 diff --git a/modules/lifepod/lifepod.view.php b/modules/lifepod/lifepod.view.php index b38da4b75..8c61da5da 100644 --- a/modules/lifepod/lifepod.view.php +++ b/modules/lifepod/lifepod.view.php @@ -50,29 +50,29 @@ $cDay = Context::get('day'); $calendars = array(); - - foreach($caladdresses as $key => $val) + + foreach($caladdresses as $key=>$val) { $page = $oLifepodModel->getPage($val, $cYear, $cMonth, $cDay); - foreach ($page->data as $key => $val) + for($j=0;$jdata);$j++) { - if($val->childNodes["date-start"]) + $data = &$page->data[$j]; + if($data->childNodes["date-start"]) { - $val->childNodes["date-start"]->body = $this->dateFormatChange($val->childNodes["date-start"]->body); + $data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body); } - if($val->childNodes["date-end"]) + if($data->childNodes["date-end"]) { $plus = 0; - if($val->childNodes["type"]->body == "daylong") + if($data->childNodes["type"]->body == "daylong") $plus = -1; - $val->childNodes["date-end"]->body = $this->dateFormatChange($val->childNodes["date-end"]->body, $plus); + $data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus); } - $val->childNodes["description"]->body = str_replace("\n", "
", $val->childNodes["description"]->body); + $data->childNodes["description"]->body = str_replace("\n", "
", $data->childNodes["description"]->body); } $calendars[] = $page; - } Context::set('calendars', $calendars);