26 $args =
new stdClass();
27 if($search_target && $search_keyword)
29 switch($search_target)
32 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
33 $args->s_title= $search_keyword;
36 $args->s_regdate = $search_keyword;
39 $args->s_ipaddress= $search_keyword;
45 $args->list_count = 50;
46 $args->page_count = 10;
48 $args->sort_index =
'P.list_order';
52 $output = $oPollAdminModel->getPollListWithMember(
$args);
57 $uploadTargetSrlList = array();
58 foreach(
$output->data as $value)
60 $uploadTargetSrlList[] = $value->upload_target_srl;
64 $targetDocumentOutput =
$oDocumentModel->getDocuments($uploadTargetSrlList);
65 if(!is_array($targetDocumentOutput)) $targetDocumentOutput = array();
67 $oCommentModel =
getModel(
'comment');
68 $columnList = array(
'comment_srl',
'document_srl');
69 $targetCommentOutput = $oCommentModel->getComments($uploadTargetSrlList, $columnList);
70 if(!is_array($targetCommentOutput)) $targetCommentOutput = array();
72 foreach(
$output->data as $value)
74 if(array_key_exists($value->upload_target_srl, $targetDocumentOutput))
75 $value->document_srl = $value->upload_target_srl;
77 if(array_key_exists($value->upload_target_srl, $targetCommentOutput))
79 $value->comment_srl = $value->upload_target_srl;
80 $value->document_srl = $targetCommentOutput[$value->comment_srl]->document_srl;
94 $security->encodeHTML(
'poll_list..title',
'poll_list..nick_name');
95 $security->encodeHTML(
'search_target',
'search_keyword');
115 if(!$skin_list[$config->skin]) $config->skin =
"default";
117 Context::set(
'colorset_list', $skin_list[$config->skin]->colorset);
120 $security->encodeHTML(
'config..');
121 $security->encodeHTML(
'skin_list..title');
122 $security->encodeHTML(
'colorset_list..name',
'colorset_list..title');
137 $args =
new stdClass();
142 if(!
$output->data)
return $this->
stop(
'msg_poll_not_exists');
144 $poll =
new stdClass();
145 $poll->stop_date =
$output->data->stop_date;
146 $poll->poll_count =
$output->data->poll_count;
151 return $this->
stop(
'msg_poll_not_exists');
154 $tmp = &$poll->poll[
$args->poll_index_srl];
155 $tmp->title =
$output->data->title;
156 $tmp->checkcount =
$output->data->checkcount;
157 $tmp->poll_count =
$output->data->poll_count;
165 $poll->poll_srl = $poll_srl;
setTemplateFile($filename)
set($key, $val, $set_to_get_vars=0)
The admin view class of the poll module.
dispPollAdminResult()
Poll Results.
dispPollAdminList()
Administrator's Page.
getAdminModel($module_name)
dispPollAdminConfig()
Confgure the poll skin and colorset.
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
The parent class of the poll module.