{@ $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 = $oBodex->cutStrEx($oDocument->getNickName(), $module_info->nick_name_cut_size); $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_document_blind = (((int)$module_info->declare_blind_document > 0 && !$oDocument->isGranted())?((int)$module_info->declare_blind_document<=$oBodex->getDocumentDeclaredCount($oDocument->document_srl)):false); $is_document_logged = $logged_info && (abs($logged_info->member_srl) == abs($oDocument->member_srl)); $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 = array(); $not_allow_down = $not_allow_view = false; } {@ $writer_rating_list[$key] = $val} {@ $writer_display_ccl = explode('|@|',$val->value)} {@ $extra_key_list[$key] = $val} {@ $grant->view = true} {@ $oDocument->voted_list = $oBodex->getVotedLogInfo($oDocument->document_srl, false); $logged_user_voted_star = $oDocument->voted_list[$logged_info->member_srl]; } {@ $grant->write_comment = false} {@ $not_allow_down = $not_allow_view = !$oBodex->isMemberComment($oDocument->document_srl); $not_allow_down = ($not_allow_down && $module_info->use_allow_down == 'Y'); $not_allow_view = ($not_allow_view && $module_info->use_allow_view == 'Y'); } {@ $not_allow_view = !$oBodex->getReadedLogInfo($oDocument->document_srl)} {@ $oDocument->add('content',sprintf($lang->msg_act_not_permitted,$lang->col_read)); $oDocument->add('allow_comment','N'); $oDocument->add('allow_Trackback','N'); $file_list = $extra_key_list = array(); } {@ $file_list = $oBodex->getSplitFileList($oDocument->getUploadedFiles()); $downloaded_list = ($module_info->use_down_point_always=='Y') ? array():$oBodex->getDownloadedLogInfo($oDocument->document_srl); }
{$oDocument->nickName}
{$lang->voted_count} : {$oDocument->voted_count} / {$oDocument->blamed_count}
{@ $average = number_format($oDocument->voted_count / abs($oDocument->blamed_count), 1)}
 
({$average?$average:'0'}/{abs($oDocument->blamed_count)})
{$lang->readed_count} : {$oDocument->readed_count}
{$oDocument->getRegdate('Y.m.d')} ({$oDocument->getRegdate('H:i:s')})
{@ $ccl['attribution'] = in_array('attribution', $writer_display_ccl)?'yes':'no'; $ccl['commercial'] = in_array('commercial', $writer_display_ccl)?'yes':'no'; $ccl['derivatives'] = in_array('sharealike', $writer_display_ccl)?'alike':(in_array('derivatives', $writer_display_ccl)?'yes':'no'); $ccl['licenses'] = ($ccl['attribution']=='yes')?'by':''; $ccl['licenses'] .= ($ccl['commercial']=='no')?'-nc':''; $ccl['licenses'] .= ($ccl['derivatives']=='no')?'-nd':''; $ccl['licenses'] .= ($ccl['derivatives']=='alike')?'-sa':''; }
{$is_document_blind?'blind':'secret'} no image
{$val->name}:  {@ $val->value = (float)$val->value}
 
{$lang->user.' '.$lang->rating}: 
{$lang->voted_count} : {$oDocument->voted_count} / {$oDocument->blamed_count}
{@ $average = number_format($oDocument->voted_count / abs($oDocument->blamed_count), 1)}
 
({$average?$average:'0'}/{abs($oDocument->blamed_count)})
{$val->name}: 
 
{$val->name}:  {$val->getValueHTML()} 
{preg_replace(array('/%MID%/','/%LOGIN%/','/%URL%/','/%TITLE%/','/%NAME%/','/%SRL%/'),array($mid,($logged_info?$logged_info->nick_name:$lang->visitor),$oDocument->permanentUrl,$oDocument->title,$oDocument->nickName,$oDocument->document_srl),$module_info->document_top_text)}
{$is_document_secret?$lang->msg_is_secret:$lang->msg_is_blind}
{$lang->msg_not_allow_view.'
'.$lang->msg_not_allow_comment} {$lang->msg_not_allow_view}
{sprintf($lang->msg_not_allow_view_point, round($oDocument->get('reward_point')/2))}
{$oDocument->getContent(false)}
{$oDocument->getContent()} {@$message=sprintf($lang->msg_act_not_permitted,$lang->col_read); $is_poped=1}
{preg_replace(array('/%MID%/','/%LOGIN%/','/%URL%/','/%TITLE%/','/%NAME%/','/%SRL%/'),array($mid,($logged_info?$logged_info->nick_name:$lang->visitor),$oDocument->permanentUrl,$oDocument->title,$oDocument->nickName,$oDocument->document_srl),$module_info->document_bottom_text)}
profile
{$oDocument->signature}
{$oDocument->permanentUrl} ({$oDocument->getIpaddress()})
  {$lang->cmd_change_state} {$lang->cmd_adopted_comment_view} {$lang->cmd_history_all} {$lang->cmd_view_all}{$lang->cmd_back} {$lang->cmd_modify} {$lang->cmd_delete}
{@ $d_display_comment = $d_display_trackback = ''} {@ $d_display_trackback = 'exDHide'} {@ $d_display_comment = 'exJsDHideEx'} {@ $d_display_trackback = 'exDHide'; $d_display_comment = 'exJsDHideEx'; }
{@ $form_include = true}