git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

View file

@ -0,0 +1,71 @@
<!--%import("js/counter_admin.js")-->
<h3>{$lang->counter} <span class="gray">{$lang->cmd_management}</span></h3>
<div class="header4">
<table cellspacing="0" class="summary">
<col width="124" />
<col />
<col width="164" />
<col />
<tr>
<th scope="row">{$lang->total_counter}</th>
<td>Visitor <strong>{number_format($total_counter->unique_visitor)}</strong> &nbsp;/&nbsp; Pageview : <strong>{number_format($total_counter->pageview)}</strong></td>
<th scope="row">{zdate($selected_date, "Y-m-d")} <span class="vr">|</span> <a href="#" onclick="open_calendar(null, '{$selected_date}', 'changeSelectedDate');return false;"><img src="./images/buttonCalendar.gif" alt="calendar" width="16" height="13" /></a></th>
<td>Visitor : <strong>{number_format($selected_day_counter->unique_visitor)}</strong> &nbsp;/&nbsp; Pageview : <strong>{number_format($selected_day_counter->pageview)}</strong></td>
</tr>
</table>
<ul class="localNavigation">
<!--@foreach($lang->cmd_select_counter_type as $key => $val)-->
<li <!--@if($type==$key || (!$type && $key == "hour"))-->class="on"<!--@end-->><a href="{getUrl('type',$key)}">{$val}</a></li>
<!--@end-->
</ul>
</div>
<!-- 일자를 옮기는 form -->
<form action="./" method="get" id="fo_counter">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="selected_date" value="{$selected_date}" />
</form>
<!-- unique visitor 그래프 -->
<table cellspacing="0" class="tableType4 counter">
<col width="124" />
<col />
<!--@foreach($detail_status->list as $key => $val)-->
<!--@if($detail_status->sum>0)-->
{@$percent = sprintf("%0.2f", $val / $detail_status->sum * 100 )}
{@$img_width = sprintf("%0.0f", $val / $detail_status->max * 100 )}
<!--@else-->
{@$percent = 0}
{@$img_width = 1}
<!--@end-->
<tr>
<th scope="row">
<!-- 시간대별 -->
<!--@if($type == 'year')-->
<em>{$key}</em> {$lang->unit_year}
<!--@elseif($type == 'month')-->
<em>{$key}</em> {$lang->unit_month}
<!--@elseif($type == 'day')-->
<em>{$key}</em> {$lang->unit_day}
<!--@else-->
<em>{$key}</em> {$lang->unit_hour}
<!--@end-->
</th>
<td>
<div class="graph">
<img src="./images/iconBar.gif" alt="" width="12" height="6" class="bar" />
<div class="num" style="left:{$percent}%;">
<strong>{number_format($val)}</strong> ({$percent}%)
</div>
</div>
</td>
</tr>
<!--@end-->
</table>

View file

@ -0,0 +1,14 @@
/**
* @brief 카운터 정보 수집 javascript
* window.onload 이벤트 후에 counter 모듈을 호출한다.
**/
// 이벤트 등록
xAddEventListener(window,'load',doCallCounter);
// counter 모듈을 호출하는 함수
function doCallCounter() {
show_waiting_message = false;
exec_xml('counter','procCounterExecute');
show_waiting_message = true;
}

View file

@ -0,0 +1,6 @@
// 관리자 페이지에서 날짜 이동
function changeSelectedDate(selected_date) {
var fo_obj = xGetElementById('fo_counter');
fo_obj.selected_date.value = selected_date;
fo_obj.submit();
}