Hacked By AnonymousFox

Current Path : C:/AppServ/www/th/lib/calendar/
Upload File :
Current File : C:/AppServ/www/th/lib/calendar/calendardetail.php

<?
header( "Content-type: application/xhtml+xml; charset=tis-620" ); 
include("../../webengine/lib/session.php");
include("../../webengine/lib/config.php");
include("../../webengine/lib/connect.php");
include("../../webengine/lib/function.php");
include("../calendar/config.php");
include("../calendar/function.php");
$Language="Thai";
$SystemModuleKey="calendar";
include("../../webengine/mod_calendar/config.php");
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<div style="left: 90px; top:195px;  width:300px; position:absolute; cursor:default;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=5, OffY=5, Color='gray', Positive='true'); " id="divInformationWindow" onMouseOver=" DivUsed=1; " onMouseOut=" DivUsed=0; clearTimeout(viewerDelayTimer); viewerDelayTimer = setTimeout('mod_Picker_AutoCloseDiv()',5000); ">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="bottom"><img src="../../images/cal/cal_01.gif" width="8" height="10"></td>
    <td style="background:url(../../images/cal/cal_02.gif) repeat-x; background-position: bottom">&nbsp;</td>
    <td valign="bottom"><img src="../../images/cal/cal_03.gif" width="8" height="10"></td>
  </tr>
  <tr>
    <td style="background:url(../../images/cal/cal-2_02.gif) repeat-y; background-position:center">&nbsp;</td>
    <td>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right" bgcolor="#FFFFFF"  id="idInformationDataHeader"><img src="../../images/bullet/no.gif" border="0" onClick="document.getElementById('divInformationWindow').style.display='none'; "  onMouseOver="this.style.cursor='pointer'"></td>
  </tr>
</table>
	<div align="center" id="idInformationData" style=" width:281px; cursor:default ">
		<!-- START BLOCK : CALENDAR_DETAIL_LIST -->
			  <?
$myModule_Table=$myModule_Table1;
	if($myCalendarDate=="") { $myCalendarDate=getDateNow(); }
	$myCalendarDateArray = explode("-",$myCalendarDate);

	// Find Start Week Day ##############################################
	$today=getdate(mktime(0,0,0,$myCalendarDateArray[1],1,$myCalendarDateArray[0]));

	$NextMonthArray=getdate(mktime(0,0,0,$myCalendarDateArray[1]+1,1,$myCalendarDateArray[0]));
	$Day=$NextMonthArray[mday]; $Month=$NextMonthArray[mon]; $Year=$NextMonthArray[year];
	$NextMonth=sprintf("%04d-%02d-%02d",$Year,$Month,$Day);

	$PrevMonthArray=getdate(mktime(0,0,0,$myCalendarDateArray[1]-1,1,$myCalendarDateArray[0]));
	$Day=$PrevMonthArray[mday]; $Month=$PrevMonthArray[mon]; $Year=$PrevMonthArray[year];
	$PrevMonth=sprintf("%04d-%02d-%02d",$Year,$Month,$Day);

	$startWeekDay=$today[wday];
	$myCalendarDateYear=$today[year];
	$myCalendarDateMonth=$today[mon];
	$endDayOfMonth=getEndDayOfMonth($myCalendarDate);

	$myStartDateOfMonth = sprintf("%04d-%02d-%02d",$myCalendarDateArray[0],$myCalendarDateArray[1],1);
	$myEndDateOfMonth = sprintf("%04d-%02d-%02d",$myCalendarDateArray[0],$myCalendarDateArray[1],$endDayOfMonth);

	$myCalendarData[0]="";
	$myCalendarEventCounter[0]=0;
$sql  = "SELECT * FROM ".$myModule_Table." WHERE ";
	$sql .= $myModule_Table."_Language='$Language' AND ";
	$sql .= $myModule_Table."_ModuleKey='$SystemModuleKey' AND ";
	$sql .= $myModule_Table."_Status!='Disable' AND (";

	if($action=="ShowOneDay"){
		$sql .= " ( ".$myModule_Table."_DateFrom<='$myCalendarDate' AND ".$myModule_Table."_DateTo>='$myCalendarDate' )  ";
	} else {
		$sql .= " ( ".$myModule_Table."_DateFrom>='$myStartDateOfMonth' AND ".$myModule_Table."_DateFrom<='$myEndDateOfMonth' ) OR ";
		$sql .= " ( ".$myModule_Table."_DateTo>='$myStartDateOfMonth' AND ".$myModule_Table."_DateTo<='$myEndDateOfMonth' ) OR ";
		$sql .= " ( ".$myModule_Table."_DateFrom<='$myStartDateOfMonth' AND ".$myModule_Table."_DateTo>='$myEndDateOfMonth' ) ";
	}

	$sql .= ") ORDER BY ".$myModule_Table."_DateFrom ASC ";
	//echo $sql;
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: ข้อผิดพลาด <br>$sql<br>\n".mysql_error());
	$RecordCount=MYSQL_NUMROWS($Query);
	$index=1;
	if($RecordCount>0) {
		while($index<$RecordCount+1) {
		$Row=MYSQL_FETCH_ARRAY($Query);
		$calendarSubject = "<a href=# onClick=setSubmit(".$Row[$myModule_Table."_ID"].") >".str_replace('"','',str_replace("'","",$Row[$myModule_Table."_Subject"]))."</a>";
		$filename = $System_RelativePath_Upload."/".$SystemModuleKey."/htmlfiles/".$Row[$myModule_Table."_HtmlFile"];
		$getDay = $Row[$myModule_Table."_DateFrom"];
if($getDay2!=$getDay || $getDay2==""){
$getDay2=$getDay;
?>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f7ede6">
<tr>
  <td width="30" height="22" align="center" valign="top"><img src="../../images/bullet/reddot.gif" width="6" height="6" vspace="8" /></td>
  <td align="left"><b><?=ShowDateLong($Row[$myModule_Table."_DateFrom"])?></b></td>
</tr>
<tr>
  <td colspan="2"><table width="100%"  border="0" align="right" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	  <tr>
		<td><img src="../../images/main/spacer.gif" width="1" height="1" /></td>
	  </tr>
  </table></td>
</tr>
</table>
<? }  ?>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FCF8F5">
<tr>
  <td width="30" height="20" align="center" valign="top">&nbsp;</td>
  <td align="left"><?=$calendarSubject?></td>
</tr>
<tr>
  <td colspan="2"><table width="100%"  border="0" align="right" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	  <tr>
		<td><img src="../../images/main/spacer.gif" width="1" height="1" /></td>
	  </tr>
  </table></td>
</tr>
</table>
<?
		$index++;
		}
	} else {
?>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
  <td width="16%" align="center" valign="top">&nbsp;</td>
  <td width="84%" align="center"><br /><br /><br />ไม่พบกิจกรรม<br /><br /><br /></td>
</tr>
</table>
<? } ?>

			  
		    <!-- END BLOCK : CALENDAR_DETAIL_LIST -->
      </div>
	</td>
    <td style="background:url(../../images/cal/cal-2_04.gif) repeat-y; background-position:center ">&nbsp;</td>
  </tr>
</table>

<div id="idPreviewEventBoxTail">
  <img src="../../images/alert/dragboxfooti.gif" width="297" height="17" /></div>
</div>
<!-- START BLOCK : CALENDAR_DETAIL_CLIENT_POSITION -->
<form name="myFormEventClient" id="myFormEventClient">
<input type="hidden" id="eventClientX" name="eventClientX" value="<?=$eventClientX?>">
<input type="hidden" id="eventClientY" name="eventClientY" value="<?=$eventClientY?>">
<input type="hidden" id="bodyScrollLeft" name="bodyScrollLeft" value="<?=$bodyScrollLeft?>">
<input type="hidden" id="bodyScrollTop" name="bodyScrollTop" value="<?=$bodyScrollTop?>">
<input type="hidden" id="documentElementScrollLeft" name="documentElementScrollLeft" value="<?=$documentElementScrollLeft?>">
<input type="hidden" id="documentElementScrollTop" name="documentElementScrollTop" value="<?=$documentElementScrollTop?>">
</form>
<!-- END BLOCK : CALENDAR_DETAIL_CLIENT_POSITION -->

Hacked By AnonymousFox1.0, Coded By AnonymousFox