{@ $oDocument = $oBodex->getWith($oDocument, array('category_srl','readed_count','voted_count','member_srl','blamed_count','reward_srl','reward_point','comment_count','is_notice')); $oDocument->reward_point=round($oDocument->reward_point/2); $oDocument->title=$oDocument->getTitle(); $oDocument->permanentUrl=$oDocument->getPermanentUrl(); $oDocument->member_srl = $oDocument->getMemberSrl(); $oDocument->nickName = $oDocument->getNickName(); $oDocument->nickName = ($oDocument->nickName=='anonymous'?$lang->anonymous:$oDocument->nickName); $oDocument->member_srl = (!$grant->manager && $oDocument->member_srl && $oDocument->get('user_id')=='anonymous')?0:$oDocument->member_srl; $oDocument->profileImage = $oDocument->getProfileImage(); $oDocument->signature = $oDocument->getSignature(); $is_document_secret = ($oDocument->isSecret() && !$oDocument->isGranted()); $is_display_image = (!$module_info->display_file_list || $module_info->display_file_list=='A'||$module_info->display_file_list=='I'||$module_info->display_file_list=='BI'||$module_info->display_file_list=='MI'); $is_display_media = (!$module_info->display_file_list || $module_info->display_file_list=='A'||$module_info->display_file_list=='M'||$module_info->display_file_list=='BM'||$module_info->display_file_list=='MI'); $is_display_binary = (!$module_info->display_file_list || $module_info->display_file_list=='A'||$module_info->display_file_list=='B'||$module_info->display_file_list=='BM'||$module_info->display_file_list=='BI'); $adopted_reward_point = ($module_info->use_reward != 'N' && $oDocument->reward_point > 0)?$oDocument->reward_point:0; $download_file_point = abs($oBodex->getPointConfig('download_file')); $extra_key_list = $writer_rating_list = $writer_display_ccl = $writer_appoint_ids = array(); } {@ $grant->view = true} {@ $oDocument->voted_list = $oBodex->getVotedLogInfo($oDocument->document_srl); $logged_user_voted_star = $oDocument->voted_list[$logged_info->member_srl]; } {@ $writer_rating_list[$key] = $val} {@ $writer_display_ccl = explode('|@|',$val->value)} {@$writer_appoint_ids = ($val->value)?explode(',',$val->value):null} {@ $extra_key_list[$key] = $val} {@ $file_list = $oBodex->getSplitFileList($oDocument->getUploadedFiles()); $downloaded_list = ($module_info->use_down_point_always=='Y') ? array():$oBodex->getDownloadedLogInfo($oDocument->document_srl); } {@ $is_writer_appoint_id = ($grant->manager || !count($writer_appoint_ids) || ($logged_info->user_id && in_array($logged_info->user_id, $writer_appoint_ids)))} {@ $oDocument->add('content',sprintf($lang->msg_act_not_permitted,$lang->col_read)); $oDocument->add('allow_comment','N'); $file_list = $extra_key_list = array(); }
{$val->name}: |
|
---|---|
{$lang->user.' '.$lang->rating}: |
{$lang->voted_count} : {$oDocument->voted_count} / {$oDocument->blamed_count}
{@ $average = number_format($oDocument->voted_count / abs($oDocument->blamed_count), 1)}
|
{$val->name}: |
|
---|---|
{$val->name}: | {$val->getValueHTML()} |