KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/schedule/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/schedule/CalAjax.html
<?
	# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	#
	#  subject : schedule
	#  date    : 2013.03.20
	#  editor  : dblee
	#
	# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	include "myclass.inc";
	
	$qry = "
	SELECT 
	
	count(*),
	substring(schedule_date,1,10) as schedule_date 
	
	FROM 
	board_schedule 
	
	WHERE 
	is_delete='N' 
	
	GROUP BY schedule_date 
	";
	$oci->query($qry);
  
	while($oci->fetch_array())
	{
		$count         = $oci->field(0); // count
		$schedule_date = $oci->field(1); // schedule_date
		
		$arrayCheck .= "'$schedule_date',";
	}

	// ScheckDate.lenth - 1 => all count
	$SCRIPT .= "
	var ScheckDate = new Array($arrayCheck'');
	";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Look - Drop&Down</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<link rel="icon" href="./favicon.ico" type="image/x-icon" />         
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="./css/ui-lightness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
<script src="./js/jquery.js" type="text/javascript"></script>
<?
	include "./js/jquery-ui.inc";
?>
<script src="./js/jquery.ui.datepicker-jp.js"></script> 

<script type="text/javascript">

$(document).ready(function() 
{
	// calendar
	$("#CAL_DISPLAY").datepicker({
		showOtherMonths: true,
		selectOtherMonths: true
	});

	// ajax
	$("#CAL_DISPLAY").change(function()
	{
		var dataString = 'str='+ $(this).val();
		//alert(dataString);
		
		$.ajax({ 
			type : "post",                // method
			url  : "CalAjaxActive.html",  // url
			data : dataString,            // name & value
			cache: false,                 // cache
			success: function(html) {     // display
				$("#RESULT").html(html);
			} 
		});
	});

	// drop&down menu
  $(".slidingDiv").hide();
	$(".show_hide").show();
	$('.show_hide').click(function()
	{
		$("#RESULT").html(""); // hidden
		
		if($('.slidingDiv').is(":visible"))
		{
			$(".show_hide").html("Schedule"); // <img src='???'> 을 정의 해도 가능
		}
		else 
		{
			$(".show_hide").html("Close"); // <img src='???'> 을 정의 해도 가능
		}
		$(".slidingDiv").slideToggle();
	});
});

</script>
<style>

body { scroll: yes; font-family:Verdana, Geneva, sans-serif; font-size:14px; }

.show_hide  { z-index: -1; display:none; }
.slidingDiv {
	z-index: 100;
	position: relative; // relative, fixed, absolute, static
	width: 100%;
	height:300px;
	background-color: #ffffff;
	padding: 20px 30px 20px 30px;
	margin-top:0px;
	border-bottom:5px solid #dddddd;
}
.display {
	z-index: 1111;
	position: absolute;
	width: 400px;
	height:250px;
	left: 500px;
	top: 30px;
	text-align: left;
	line-height: 130%; 
	text-align: justify;
	margin-top:0px;
}

</style>


<div style="text-align:center;">
	<a href="#" class="show_hide">Schedule</a>
</div>


<div>
	<div class="slidingDiv" style="width: 100%;">
		<div id="CAL_DISPLAY" style="width: 481px;"></div>
		<!--<a href="#" class="show_hide">Close</a>-->
		<div class=display id='RESULT'></div>
	</div>
</div>



</body>
</html>

Anon7 - 2021