referer모듈의 관리자 페이지 table속성을 IE에서도 올바르게 나타나도록 css 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3108 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-29 01:20:47 +00:00
parent b3c9022918
commit adb47d545d
3 changed files with 78 additions and 77 deletions

View file

@ -19,18 +19,18 @@
* @brief 관리자 페이지 초기화면
**/
function dispRefererAdminIndex() {
$this->dispRefererAdminList();
$this->dispRefererAdminList();
}
function dispRefererAdminList() {
function dispRefererAdminList() {
// 목록을 구하기 위한 옵션
$args->page = Context::get('page'); ///< 페이지
$args->sort_index = 'regdate'; ///< 소팅 값
$oRefererModel = &getModel('referer');
$output = $oRefererModel->getLogList($args);
$oRefererModel = &getModel('referer');
$output = $oRefererModel->getLogList($args);
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
@ -38,9 +38,10 @@
Context::set('referer_list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$args2->sort_index = 'count';
$output2 = $oRefererModel->getRefererStatus($args2);
Context::set('referer_status', $output2->data);
$args2->sort_index = 'count';
$output2 = $oRefererModel->getRefererStatus($args2);
Context::set('referer_status', $output2->data);
// 템플릿 지정
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('referer_list');

View file

@ -6,22 +6,21 @@
**/
class refererModel extends referer {
function init()
{
}
function init() {
}
function isInsertedHost($host) {
$args->host = $host;
$output = executeQuery('referer.getHostStatus', $args);
return $output->data->count?true:false;
}
function isInsertedHost($host) {
$args->host = $host;
$output = executeQuery('referer.getHostStatus', $args);
return $output->data->count?true:false;
}
function getLogList($obj)
{
$query_id = 'referer.getRefererLogList';
function getLogList($obj) {
$query_id = 'referer.getRefererLogList';
$args->sort_index = 'regdate';
$args->page = $obj->page?$obj->page:1;
$args->sort_index = 'regdate';
$args->page = $obj->page?$obj->page:1;
$args->list_count = $obj->list_count?$obj->list_count:20;
$args->page_count = $obj->page_count?$obj->page_count:10;
@ -31,13 +30,12 @@
if(!$output->toBool()||!count($output->data)) return $output;
return $output;
}
}
function getRefererStatus()
{
$args->sort_index = 'count';
return executeQuery("referer.getRefererStatistics", $args);
}
function getRefererStatus() {
$args->sort_index = 'count';
return executeQuery("referer.getRefererStatistics", $args);
}
}
?>

View file

@ -1,60 +1,62 @@
<!--%import("css/referer.css")-->
<h3>{$lang->referer} <span class="gray">{$lang->cmd_management}</span></h3>
<div style="width: 250px; float:left; position:relative;">
<div class="tableSummaryType1" style="position:relative; top:10px;">
{$lang->ranking}
</div>
<div class="tableSummaryType1" style="position:relative; top:10px;">
<table cellspacing="0" class="adminTable refererStat">
<tbody>
<col width="50" />
<col width="150" />
<col width="50" />
<!--@foreach($referer_status as $no => $val)-->
<tr>
<td class="tahoma">{$no} </td>
<td class="tahoma">{$val->host}</td>
<td class="tahoma">{$val->count}</td>
</td>
<!--@end-->
</tbody>
</table>
</div>
</div>
<div style="float:left; position:relative; left:20px;">
<div class="tableSummaryType1" style="position:relative; top:10px;">
Total <strong>{number_format($total_count)}</strong>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}
</div>
<div style="position:relative; top:10px;">
<table cellspacing="0" class="adminTable referer">
<col width="80" />
<col width="150" />
<col width="350" />
<tbody>
<!--@foreach($referer_list as $no => $val)-->
<div class="refererLeft">
<div class="tableSummaryType1">{$lang->ranking}</div>
<div class="tableSummaryType1">
<table cellspacing="0" class="adminTable">
<col width="50" />
<col />
<col width="50" />
<tbody>
<!--@foreach($referer_status as $no => $val)-->
<tr>
<td class="tahoma">{zdate($val->regdate,"Y-m-d")}</td>
<td class="tahoma">{$no} </td>
<td class="tahoma">{$val->host}</td>
<td class="tahoma"><a href="{$val->url}">{$val->url}</a></td>
</tr>
<td class="tahoma">{$val->count}</td>
</td>
<!--@end-->
</tbody>
</table>
<!-- 버튼 -->
</tbody>
</table>
</div>
</div>
<!-- 페이지 네비게이션 -->
<div class="pageNavigation" style="position:relative; top:10px;">
<a href="{getUrl('page','','module_srl','')}" class="goToFirst"><img src="../../admin/tpl/images/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<span class="current">{$page_no}</span>
<!--@else-->
<a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a>
<div class="refererRight">
<div class="tableSummaryType1">
Total <strong>{number_format($total_count)}</strong>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}
</div>
<div>
<table cellspacing="0" class="adminTable refererList">
<col width="80" />
<col width="150" />
<col />
<tbody>
<!--@foreach($referer_list as $no => $val)-->
<tr>
<td class="tahoma">{zdate($val->regdate,"Y-m-d")}</td>
<td class="tahoma">{$val->host}</td>
<td class="tahoma refererUrl"><a href="{$val->url}">{$val->url}</a></td>
</tr>
<!--@end-->
</tbody>
</table>
<!-- 버튼 -->
</div>
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
<a href="{getUrl('page','','module_srl','')}" class="goToFirst"><img src="../../admin/tpl/images/bottomGotoFirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<span class="current">{$page_no}</span>
<!--@else-->
<a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a>
<!--@end-->
<!--@end-->
<!--@end-->
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="goToLast"><img src="../../admin/tpl/images/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
</div>
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="goToLast"><img src="../../admin/tpl/images/bottomGotoLast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
</div>
</div>