18 if(!$this->grant->list || $this->module_info->consultation ==
'Y')
31 if($oDocument->isExists())
34 if(!$this->grant->view)
43 if($this->act==
'dispBoardContentCommentList')
46 $oCommentModel =
getModel(
'comment');
47 $output = $oCommentModel->getCommentList($oDocument->document_srl, 0,
false, $oDocument->getCommentCount());
52 foreach(
$output->data as $key => $val)
55 $oComment->setAttribute($val);
57 if(!$oComment->isAccessible())
continue;
59 $content .=
"<b>".$oComment->getNickName().
"</b> (".$oComment->getRegdate(
"Y-m-d").
")<br>\r\n".$oComment->getContent(
false,
false).
"<br>\r\n";
64 $oMobile->setContent( $content );
73 $content = strip_tags(str_replace(
'<p>',
'<br> ',$oDocument->getContent(
false,
false,
false)),
'<br><b><i><u><em><small><strong><big>');
77 $content =
Context::getLang(
'replies').
' : <a href="'.
getUrl(
'act',
'dispBoardContentCommentList').
'">'.$oDocument->getCommentCount().
'</a><br>'.
"\r\n".$content;
78 $content =
'<b>'.$oDocument->getNickName().
'</b> ('.$oDocument->getRegdate(
"Y-m-d").
")<br>\r\n".$content;
81 $oMobile->setContent( $content );
96 $args->list_count = 9;
97 $args->sort_index = $this->module_info->order_target?$this->module_info->order_target:
'list_order';
98 $args->order_type = $this->module_info->order_type?$this->module_info->order_type:
'asc';
100 $document_list =
$output->data;
101 $page_navigation =
$output->page_navigation;
104 if($document_list && count($document_list))
106 foreach($document_list as $key => $val)
108 $href =
getUrl(
'mid',$_GET[
'mid'],
'document_srl',$val->document_srl);
110 $obj[
'href'] = $val->getPermanentUrl();
112 $title = htmlspecialchars($val->getTitleText());
113 if($val->getCommentCount()) $title .=
' ['.$val->getCommentCount().
']';
114 $obj[
'link'] =
$obj[
'text'] =
'['.$val->getNickName().
'] '.$title;
117 $oMobile->setChilds($childs);
120 $totalPage = $page_navigation->last_page;
122 if(!$page) $page = 1;
127 $oMobile->setPrevUrl(
getUrl(
'mid',$_GET[
'mid'],
'page',$page-1), sprintf(
'%s (%d/%d)',
Context::getLang(
'cmd_prev'), $page-1, $totalPage));
130 if($page < $totalPage)
132 $oMobile->setNextUrl(
getUrl(
'mid',$_GET[
'mid'],
'page',$page+1), sprintf(
'%s (%d/%d)',
Context::getLang(
'cmd_next'), $page+1, $totalPage));
135 $oMobile->mobilePage = $page;
136 $oMobile->totalPage = $totalPage;
setBrowserTitle($site_title)
$module_srl
integer value to represent a run-time instance of Module (XE Module)
procWAP(&$oMobile)
wap procedure method