관리자 모드에서 ... 브라우즈별 그래프 만들어 볼려고 일단 노출은 성공을 시켰습니다만 ...
상단 붉은 박스가 왜? 이중으로 들어가는지 당췌 모르겠습니다.
include_once("./visit.sub.php"); 때문인가 싶기도 하구요...
추가 한 부분은 아래와 같습니다.
똑 같은 글이 자게에도 있어요 ...
http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=501884&cc=0
<!--추가-->
<script src="http://www.google.com/jsapi?key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q"></script>
<script type="text/javascript">google.load("mootools", "1.3");</script>
<script type="text/javascript" src="<?=$g4[path]?>/adm/chart/table2chart-yui-compressed.js"></script>
<script>
window.addEvent('domready',function(){
new Table2Chart();
});
</script>
<?
echo "<div>";
echo "<table class='toChart size700x300 colora00286' summary='Browsers for this site, 30 May 2010'>";
echo "<tbody>";
$max = 0;
$sum_count = 0;
$sql = " select * from $g4[visit_table] where vi_date between '$fr_date' and '$to_date' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$s = get_brow($row[vi_agent]);
$arr[$s]++;
if ($arr[$s] > $max) $max = $arr[$s];
$sum_count++;
}
$i = 0;
$k = 0;
$save_count = -1;
$tot_count = 0;
if (count($arr)) {
arsort($arr);
foreach ($arr as $key=>$value) {
$count = $arr[$key];
if ($save_count != $count) {
$i++;
$no = $i;
$save_count = $count;
} else {
$no = "";
}
$list = ($k++%2);
echo "<tr><td>{$no}위 : $key</td><td>$count</td></tr>";
}
echo "";
} else {
echo "<tr><td>자료가 없습니다.</td></tr>";
}
echo "</tbody>";
echo "</table>";
echo "</div>";
?>
<!--추가//-->
댓글 2개
이런 부분은 항상 레퍼런스를 참조하셔서 초기화가 필요 했습니다.
값을 안주고 생성시키거나 보이지 않게하는 함수값이 있다면 그렇게 하면 되더라고요.
new Table2Chart(); 로 차트를 불러오기전에 .js파일에서 값을 설정하시면 될거라
믿습니다.
구글무료 차트는 안써봤지만 다 비슷하지 않을까 싶네요~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2730 | 15년 전 | 654 | ||
| 2729 | 15년 전 | 1402 | ||
| 2728 |
|
15년 전 | 934 | |
| 2727 |
용다섯마리
|
15년 전 | 691 | |
| 2726 |
니콜크더만
|
15년 전 | 775 | |
| 2725 |
Insungbyun
|
15년 전 | 836 | |
| 2724 | 15년 전 | 1229 | ||
| 2723 | 15년 전 | 725 | ||
| 2722 | 15년 전 | 739 | ||
| 2721 | 15년 전 | 960 | ||
| 2720 | 15년 전 | 689 | ||
| 2719 |
|
15년 전 | 1429 | |
| 2718 | 15년 전 | 1053 | ||
| 2717 |
디이자이너
|
15년 전 | 2873 | |
| 2716 |
|
15년 전 | 1368 | |
| 2715 | 15년 전 | 657 | ||
| 2714 |
고추장불고기
|
15년 전 | 624 | |
| 2713 | 15년 전 | 787 | ||
| 2712 | 15년 전 | 1266 | ||
| 2711 | 15년 전 | 1190 | ||
| 2710 | 15년 전 | 668 | ||
| 2709 | 15년 전 | 793 | ||
| 2708 |
TWM소프트
|
15년 전 | 982 | |
| 2707 |
|
15년 전 | 1217 | |
| 2706 |
|
15년 전 | 1017 | |
| 2705 | 15년 전 | 999 | ||
| 2704 | 15년 전 | 1190 | ||
| 2703 |
|
15년 전 | 668 | |
| 2702 |
|
15년 전 | 654 | |
| 2701 | 15년 전 | 1062 | ||
| 2700 | 15년 전 | 649 | ||
| 2699 | 15년 전 | 1749 | ||
| 2698 | 15년 전 | 2256 | ||
| 2697 |
|
15년 전 | 822 | |
| 2696 | 15년 전 | 821 | ||
| 2695 | 15년 전 | 1483 | ||
| 2694 |
|
15년 전 | 891 | |
| 2693 | 15년 전 | 979 | ||
| 2692 | 15년 전 | 1392 | ||
| 2691 |
Homepix
|
15년 전 | 1551 | |
| 2690 | 15년 전 | 1654 | ||
| 2689 | 15년 전 | 1095 | ||
| 2688 |
sooram
|
15년 전 | 1759 | |
| 2687 |
terrorboys
|
15년 전 | 1571 | |
| 2686 |
진정한승리
|
15년 전 | 803 | |
| 2685 |
|
15년 전 | 1794 | |
| 2684 |
진정한승리
|
15년 전 | 925 | |
| 2683 |
dannykim
|
15년 전 | 782 | |
| 2682 | 15년 전 | 829 | ||
| 2681 | 15년 전 | 781 | ||
| 2680 | 15년 전 | 950 | ||
| 2679 | 15년 전 | 963 | ||
| 2678 | 15년 전 | 1174 | ||
| 2677 |
|
15년 전 | 3186 | |
| 2676 | 15년 전 | 1759 | ||
| 2675 | 15년 전 | 905 | ||
| 2674 | 15년 전 | 1606 | ||
| 2673 | 15년 전 | 775 | ||
| 2672 | 15년 전 | 909 | ||
| 2671 |
다케미카코
|
15년 전 | 1868 | |
| 2670 | 15년 전 | 1817 | ||
| 2669 | 15년 전 | 860 | ||
| 2668 |
terrorboys
|
15년 전 | 1116 | |
| 2667 | 15년 전 | 1070 | ||
| 2666 | 15년 전 | 1036 | ||
| 2665 | 15년 전 | 1223 | ||
| 2664 | 15년 전 | 956 | ||
| 2663 | 15년 전 | 979 | ||
| 2662 | 15년 전 | 902 | ||
| 2661 | 15년 전 | 1034 | ||
| 2660 | 15년 전 | 948 | ||
| 2659 | 15년 전 | 1543 | ||
| 2658 | 15년 전 | 785 | ||
| 2657 | 15년 전 | 756 | ||
| 2656 | 15년 전 | 1396 | ||
| 2655 | 15년 전 | 1294 | ||
| 2654 | 15년 전 | 1236 | ||
| 2653 | 15년 전 | 805 | ||
| 2652 | 15년 전 | 1597 | ||
| 2651 | 15년 전 | 980 | ||
| 2650 | 15년 전 | 1635 | ||
| 2649 |
windday
|
15년 전 | 1989 | |
| 2648 | 15년 전 | 1416 | ||
| 2647 | 15년 전 | 7612 | ||
| 2646 | 15년 전 | 1039 | ||
| 2645 | 15년 전 | 1262 | ||
| 2644 | 15년 전 | 991 | ||
| 2643 | 15년 전 | 1205 | ||
| 2642 | 15년 전 | 978 | ||
| 2641 | 15년 전 | 1194 | ||
| 2640 |
프리랜서개발자
|
15년 전 | 925 | |
| 2639 | 15년 전 | 2016 | ||
| 2638 | 15년 전 | 1028 | ||
| 2637 | 15년 전 | 937 | ||
| 2636 | 15년 전 | 1427 | ||
| 2635 | 15년 전 | 1318 | ||
| 2634 | 15년 전 | 1046 | ||
| 2633 | 15년 전 | 918 | ||
| 2632 | 15년 전 | 952 | ||
| 2631 | 15년 전 | 1236 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기