달력콘트롤 (전광판에 이어 두번째) > 그누3 팁자료실

그누3 팁자료실

달력콘트롤 (전광판에 이어 두번째) 정보

그누호환 달력콘트롤 (전광판에 이어 두번째)

첨부파일

lib.calendar.js.htm (13.0K) 191회 다운로드 2004-12-10 12:48:27

본문

어제에 이어서 두번째
관리자모드에서 방문자등 기간날짜 선택시 날짜를 입력하는데
달력컨트롤이 출력되어서 선택할수 있는 자바스크립트입니다.
admin/countlist.php에 적용시킨겁니다.
파일 올려봅니다.

관리자모드로 보여줄수 없어서 안타깝네요...그림으로 보시고..직접 설치해보세요!
이라이브러리는 정확하지는 않는데 거친마루님과 몇분이 걸쳐져서 완성된걸로 알고 있습니다.

admin/countlist.php 소스전체
<?
if (!$fr_date) { $fr_date = $today; }
if (!$to_date) { $to_date = $today; }

$qstr = "fr_date=$fr_date&to_date=$to_date";
?>

<table width=100% cellpadding=3 cellspacing=1>
<form name=fcount method=get action='<?="./"?>'>
<input type=hidden name=doc value=''>
<tr>
    <td>
        기간 :
        <input type='text' name='fr_date' size=10 value='<?=$fr_date?>' class=input class=edit onfocus="new CalendarFrame.Calendar(this)">
        -
        <input type='text' name='to_date' size=10 value='<?=$to_date?>' class=input class=edit onfocus="new CalendarFrame.Calendar(this)">
        &nbsp;
        <input type=button value=' 접속자 '  onclick="fcountsubmit('countlist.php');">
        <input type=button value=' 도메인 '  onclick="fcountsubmit('countdomain.php');">
        <input type=button value=' 브라우저 ' onclick="fcountsubmit('countbrowser.php');">
        <input type=button value=' OS '      onclick="fcountsubmit('countos.php');">
        <input type=button value=' 시간 '    onclick="fcountsubmit('counthour.php');">
        <input type=button value=' 요일 '    onclick="fcountsubmit('countweek.php');">
        <input type=button value=' 일 '    onclick="fcountsubmit('countdate.php');">
        <input type=button value=' 월 '    onclick="fcountsubmit('countmonth.php');">
        <input type=button value=' 년 '    onclick="fcountsubmit('countyear.php');">
    </td>
</tr>
</form>
<div id="CalendarLayer" style="display:none; width:172px; height:250px">
    <iframe name="CalendarFrame" src="lib.calendar.js.htm"
        width="172" height="176" border="0" frameborder="0" scrolling="no"></iframe></div>
</body>
</table>

<script language='javascript'>
    function fcountsubmit(act)
    {
        var f = document.fcount;
        //f.action = act;
        f.doc.value = 'bbs/admin/' + act;
        f.submit();
    }
</script>
추천
0
  • 복사

댓글 전체

찾았습니당...쩝....iframe의 src 주소를 ./bbs/admin/lib.calendar.js.htm 로 하니깐 잘 됩니다...
좋은소스잘 쓰겠습니다...감사합니당...초보가 이거 엄청 해메구있습니다...^^;;
© SIRSOFT
현재 페이지 제일 처음으로