달력콘트롤 (전광판에 이어 두번째) 정보
그누호환 달력콘트롤 (전광판에 이어 두번째)
첨부파일
본문
어제에 이어서 두번째
관리자모드에서 방문자등 기간날짜 선택시 날짜를 입력하는데
달력컨트롤이 출력되어서 선택할수 있는 자바스크립트입니다.
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)">
<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>
관리자모드에서 방문자등 기간날짜 선택시 날짜를 입력하는데
달력컨트롤이 출력되어서 선택할수 있는 자바스크립트입니다.
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)">
<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
0
댓글 전체
와......... 달력 너무 이뻐요
참고 사항
<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" id=cal style="LEFT: 0px; TOP: 0px" VIEWASTEXT></OBJECT>
<OBJECT classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" id=cal style="LEFT: 0px; TOP: 0px" VIEWASTEXT></OBJECT>
좋습니다/...~~~!!
찾았습니당...쩝....iframe의 src 주소를 ./bbs/admin/lib.calendar.js.htm 로 하니깐 잘 됩니다...
좋은소스잘 쓰겠습니다...감사합니당...초보가 이거 엄청 해메구있습니다...^^;;
좋은소스잘 쓰겠습니다...감사합니당...초보가 이거 엄청 해메구있습니다...^^;;
흠...이대루해봤더니...스크립트 에러가 나는것 같습니다...
위 소스는 count.sub.php에 있었습니다...버젼업 되면서 그런건가요?
위 소스는 count.sub.php에 있었습니다...버젼업 되면서 그런건가요?
조아요..