mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 08:39:58 +09:00
ticket:324 . Fixed lifepod module
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3588 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9c41b78fd
commit
8ac478e552
2 changed files with 33 additions and 23 deletions
|
|
@ -53,28 +53,35 @@
|
|||
|
||||
foreach($caladdresses as $key=>$val)
|
||||
{
|
||||
$page = $oLifepodModel->getPage($val, $cYear, $cMonth, $cDay);
|
||||
for($j=0;$j<count($page->data);$j++)
|
||||
{
|
||||
$data = &$page->data[$j];
|
||||
if($data->childNodes["date-start"])
|
||||
$shouldGetMore = false;
|
||||
$pageNumber = 1;
|
||||
$page = null;
|
||||
do {
|
||||
$page = $oLifepodModel->getPage($val, $cYear, $pageNumber);
|
||||
if(!$page) break;
|
||||
for($j=0;$j<count($page->data);$j++)
|
||||
{
|
||||
$data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body);
|
||||
}
|
||||
$data = &$page->data[$j];
|
||||
if($data->childNodes["date-start"])
|
||||
{
|
||||
$data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body);
|
||||
}
|
||||
|
||||
if($data->childNodes["date-end"])
|
||||
{
|
||||
$plus = 0;
|
||||
if($data->childNodes["type"]->body == "daylong")
|
||||
$plus = -1;
|
||||
$data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus);
|
||||
}
|
||||
if($data->childNodes["date-end"])
|
||||
{
|
||||
$plus = 0;
|
||||
if($data->childNodes["type"]->body == "daylong")
|
||||
$plus = -1;
|
||||
$data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus);
|
||||
}
|
||||
|
||||
$data->childNodes["description"]->body = str_replace("\n", "<BR />", $data->childNodes["description"]->body);
|
||||
$data->childNodes["description"]->body = str_replace("'", "\'", $data->childNodes["description"]->body);
|
||||
$data->childNodes["title"]->body = str_replace("'", "\'", $data->childNodes["title"]->body);
|
||||
}
|
||||
$calendars[] = $page;
|
||||
$data->childNodes["description"]->body = str_replace("\n", "<BR />", $data->childNodes["description"]->body);
|
||||
$data->childNodes["description"]->body = str_replace("'", "\'", $data->childNodes["description"]->body);
|
||||
$data->childNodes["title"]->body = str_replace("'", "\'", $data->childNodes["title"]->body);
|
||||
}
|
||||
$calendars[] = $page;
|
||||
$pageNumber++;
|
||||
} while ( $page->start + $page->perpage - 1 < $page->total );
|
||||
}
|
||||
|
||||
Context::set('calendars', $calendars);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue