<%@ page contentType="text/html; charset=euc-kr" %> <%@ page import = "com.vizensoft.monitor.*"%> <%@ page import = "com.vizensoft.util.*"%> <%@ page import="com.vizensoft.monitor.SessionBean" %> <%@ page import="java.util.*" %> <%@ page import = "java.text.DecimalFormat" %> <% DecimalFormat df = new DecimalFormat("#.#"); // ¼Ò¼öÁ¡ ¸î±îÁö ±¸Çϴ Ŭ·¡½º int sitenum = 0; boolean loginCheck = false; SessionBean ssb = (SessionBean)session.getAttribute("userinfo"); int normalArea = 5; int pageArea = 60; int searchArea = 200; int siteArea = 420; int visitorArea = 550; int configArea = 745; int helpArea = 405; boolean curLog = false; boolean curPerfect = false; if (ssb != null) { loginCheck = true; sitenum = ssb.getSiteNum(); if(ssb.getIslog() == 1) { curLog = true; normalArea = normalArea + 105; siteArea = siteArea + 40; visitorArea = visitorArea + 50; configArea = configArea + 15; } if(ssb.getIsperfect() == 1) { curPerfect = true; } else { pageArea = pageArea + 30; searchArea = searchArea + 50; siteArea = siteArea + 37; } } Calendar cDate = Calendar.getInstance(); // Calendar Ŭ·¡½ºÀÇ ÀνºÅϽº »ý¼º int year = cDate.get(Calendar.YEAR); // ÇöÀç ³âµµ¸¦ ±¸ÇÏ´Ù. int imonth = cDate.get(Calendar.MONTH)+1; // ÇöÀç ¿ùÀ» ±¸ÇÏ´Ù. int iday = cDate.get(Calendar.DATE); // ÇöÀç ÀÏÀ» ±¸ÇÏ´Ù. // ÇÑÀÚ¸® ´Þ¼ö³ª ÀϼöÀÏ °æ¿ì ¾Õ¿¡ '0'À» ºÙÀ̱â À§ÇÑ ¹®ÀÚ¿­ String month = ""; String day = ""; if (imonth < 10) { month = "0"+imonth; } else { month = imonth+""; } if (iday < 10) { day = "0"+iday; } else { day = iday + ""; } String today = year+"-"+month+"-"+day; String hhour = ""; String prevdate = ""; String nextdate = ""; String period = ""; String mode = ""; String thisdate = request.getParameter("thisdate"); // ¾îÁ¦³¯Â¥ ±¸Çϱâ cDate.set(year, imonth-1, iday); cDate.add(cDate.DATE, -1); String ymonth = ""; String yday = ""; // ´Þ¼ö°¡ 10º¸´Ù ÀÛÀ» °æ¿ì ¾Õ¿¡ '0'À» ºÙÀδÙ. if ((cDate.get(Calendar.MONTH)+1) < 10) { ymonth = "0"+(cDate.get(Calendar.MONTH)+1); } else { ymonth = (cDate.get(Calendar.MONTH)+1) + ""; } // Àϼö°¡ 10º¸´Ù ÀÛÀ» °æ¿ì ¾Õ¿¡ '0'À» ºÙÀδÙ. if (cDate.get(Calendar.DATE) < 10) { yday = "0" + cDate.get(Calendar.DATE); } else { yday = cDate.get(Calendar.DATE) + ""; } prevdate = cDate.get(Calendar.YEAR)+"-"+ymonth+"-"+yday; // ³»Àϳ¯Â¥ ±¸Çϱâ cDate.add(cDate.DATE, 1); String tmonth = ""; String tday = ""; // ´Þ¼ö°¡ 10º¸´Ù ÀÛÀ» °æ¿ì ¾Õ¿¡ '0'À» ºÙÀδÙ. if ((cDate.get(Calendar.MONTH)+1) < 10) { tmonth = "0"+(cDate.get(Calendar.MONTH)+1); } else { tmonth = (cDate.get(Calendar.MONTH)+1) + ""; } // Àϼö°¡ 10º¸´Ù ÀÛÀ» °æ¿ì ¾Õ¿¡ '0'À» ºÙÀδÙ. if (cDate.get(Calendar.DATE) < 10) { tday = "0" + cDate.get(Calendar.DATE); } else { tday = cDate.get(Calendar.DATE) + ""; } nextdate = cDate.get(Calendar.YEAR)+"-"+tmonth+"-"+tday; // ÇØ´ç ³¯Â¥°¡ ÆĶó¹ÌÅÍ·Î ³Ñ¾î¿ÀÁö ¾ÊÀ¸¸é ¿À´Ã³¯Â¥¸¦ ³ÖÀ½. if (thisdate == null || "".equals(thisdate)) { thisdate = today; } String startdate = prevdate; String enddate = nextdate; session.setAttribute("thisdate",thisdate); session.setAttribute("period",period); session.setAttribute("startdate",startdate); session.setAttribute("enddate",enddate); session.setAttribute("mode",mode); session.setAttribute("pageType","index"); %> ºñÁ¨À¥·Î±×ºÐ¼® >
<%@ include file="topmenu.jsp"%>
 
<% if (sitenum > 0) { MonitorMgr mgr = MonitorMgr.getInstance(); today = mgr.getToday(); %>
<%@ include file="selectDate.jsp"%>

°Ë»ö¿£Áø ¼øÀ§
<% String bgcolor = ""; int searchCnt = mgr.getNewIndexSearchSummationCnt(sitenum, today); MonitorData[] searchData = mgr.getNewIndexSearchSummation(sitenum, today); if(searchData != null) { for(int i=0; i <% } } else { bgcolor = "white"; %> <% } %>
¼øÀ§ °Ë»ö¿£Áø ¹æ¹®¼ö ºñÀ²
<%=i+1%> <%=searchData[i].getTitle()%> <%=searchData[i].getCnt()%> <%=df.format(((double)searchData[i].getCnt() / (double)searchCnt ) * (double)100 ) %>%
ÇöÀç µî·ÏµÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.

¿À¹öÃß¾î ¼øÀ§
<% int overCnt = mgr.getNewIndexOverSummationCnt(sitenum, today); MonitorData[] overData = mgr.getNewIndexOverSummation(sitenum, today); if(overData != null) { for(int i=0; i <% } } else { bgcolor = "white"; %> <% } %>
¼øÀ§ °Ë»ö¾î ¹æ¹®¼ö ºñÀ²
<%=i+1%> <%=overData[i].getTitle()%> <%=overData[i].getCnt()%> <%=df.format(((double)overData[i].getCnt() / (double)overCnt ) * (double)100 ) %>%
ÇöÀç µî·ÏµÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.

¿¡µå¿öÁî ¼øÀ§
<% int adwordsCnt = mgr.getNewIndexAdSummationCnt(sitenum, today); MonitorData[] adwordsData = mgr.getNewIndexAdSummation(sitenum, today); if(adwordsData != null) { for(int i=0; i <% } } else { bgcolor = "white"; %> <% } %>
¼øÀ§ °Ë»ö¾î ¹æ¹®¼ö ºñÀ²
<%=i+1%> <%=adwordsData[i].getTitle()%> <%=adwordsData[i].getCnt()%> <%=df.format(((double)adwordsData[i].getCnt() / (double)adwordsCnt ) * (double)100 ) %>%
ÇöÀç µî·ÏµÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.

<% } else { // ·Î±×ÀÎÀÌ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é %>


">
 
       


<% } %>
<%@ include file="bottom.jsp"%>