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:281px; height:83px; 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" bgcolor="" >
  <tr>
  	<td height="12" colspan="3" valign="bottom"><img src="../../images/cal/header-cal.gif" width="297" height="12"></td>
    </tr>
  <tr>
    <td background="../../images/cal/cal-2_02.gif" bgcolor="#FFFFFF"></td>
    <td bgcolor="#FFFFFF"> <div align="center" style="width:281px; height:29px;">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="30"  id="idInformationDataHeader">&nbsp;</td>
          <td align="right"  id="idInformationDataHeader"><img src="../../images/bullet/no.gif" border="0" onClick="document.getElementById('divInformationWindow').style.display='none'; "  onMouseOver="this.style.cursor='hand'"></td>
        </tr>
      </table>
	   </div>
	    <div align="center" id="idInformationData" style=" width:281px; cursor:default ">
		<!-- START BLOCK : CALENDAR_DETAIL_LIST -->
			  <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><?
$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="100%"  border="0" 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="100%"  border="0" cellpadding="0" cellspacing="0">
<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="100%"  border="0" cellpadding="0" cellspacing="0">
<tr>
  <td width="30" height="20" align="center" valign="top">&nbsp;</td>
  <td align="center"><br /><br /><br />ไม่พบกิจกรรม<br /><br /><br /></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>
<? } ?>
</td>
  </tr>
</table>
			  
		    <!-- END BLOCK : CALENDAR_DETAIL_LIST -->
		
		   
           <table width="100%"  border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td >&nbsp;</td>
             </tr>
           </table>
      </div></td>
    <td width="8"></td>
  </tr>
 </table>
<div id="idPreviewEventBoxTail">
		<img src="../../images/alert/dragboxfoot.gif" width="282" height="47" />
		<img src="../../images/alert/dragboxfooti.gif" width="282" height="16" />
</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