사이트 전역 포인트 정리 표시 페이지 만들기
---
<h2>{$module_info->browser_title}</h2>
{@
$oModuleModel = &getModel('module');
$columnList = array('module_srl', 'module', 'browser_title', 'mid');
$mid_list = $oModuleModel->getMidList(null, $columnList);
}
<table cellpadding="0" cellspacing="0" border="0" class="PointList">
<thead>
<tr>
<th>게시판</th>
<th>글 작성</th>
<th>댓글 작성</th>
<th>파일 업로드</th>
<th>파일 다운로드<br /><span style="color:#777;">(이미지 제외)</span></th>
<th>게시글 조회</th>
<th>추천 받음</th>
<th>비추천 받음</th>
</tr>
</thead>
<tbody>
<tr loop="$mid_list => $val" cond="$val->module == 'board'" >
{@
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('point');
$module_config = $oModuleModel->getModulePartConfig('point', $val->module_srl);
if($module_config['insert_document']) $insert_document = $module_config['insert_document'];
else $insert_document = $config->insert_document;
if($module_config['insert_comment']) $insert_comment = $module_config['insert_comment'];
else $insert_comment = $config->insert_comment;
if($module_config['upload_file']) $upload_file = $module_config['upload_file'];
else $upload_file = $config->upload_file;
if($module_config['download_file']) $download_file = $module_config['download_file'];
else $download_file = $config->download_file;
if($module_config['read_document']) $read_document = $module_config['read_document'];
else $read_document = $config->read_document;
if($module_config['voted']) $voted = $module_config['voted'];
else $voted = $config->voted;
if($module_config['blamed']) $blamed = $module_config['blamed'];
else $blamed = $config->blamed;
}
<td class="Title"><a href="{getUrl('mid',$val->mid)}">{$val->browser_title}</a></td>
<td><span>{$insert_document}</span></td>
<td><span>{$insert_comment}</span></td>
<td><span>{$upload_file}</span></td>
<td><span>{$download_file}</span></td>
<td><span>{$read_document}</span></td>
<td><span>{$voted}</span></td>
<td><span>{$blamed}</span></td>
</tr>
</tbody>
</table>
---
CSS
댓글 6