403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/krabyai/modules/calendars/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/krabyai/modules/calendars/calendar.php
<style type="text/css">
<!--
.calendar { 
    width:220;
    background-color: #FFFFFF;
}
-->
</style>

	<TABLE cellSpacing=0 cellPadding=0 width=1000 border=0>
      <TBODY>
        <TR>
          <TD vAlign=top>
		  <!-- Admin -->
		  &nbsp;&nbsp;<IMG SRC="images/menu/textmenu_admin.gif" BORDER="0"><BR>
				<TABLE width="100%" align=center cellSpacing=0 cellPadding=0 border=0>
				<TR>
					<TD height="1" class="dotline"></TD>
				</TR>
				<TR>
					<TD>
					<BR><B><IMG SRC="images/icon/plus.gif" BORDER="0" ALIGN="absmiddle"> <A HREF="?name=admin&file=main">หน้าหลักผู้ดูแลระบบ</A> &nbsp;&nbsp;<IMG SRC="images/icon/arrow_wap.gif" BORDER="0" ALIGN="absmiddle">&nbsp;&nbsp; ปฏิทินกิจกรรม &nbsp;&nbsp;<IMG SRC="images/icon/calendar.gif" BORDER="0" ALIGN="absmiddle">&nbsp;&nbsp; <A HREF="popup.php?name=admin&file=addevent" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 700, objectHeight: 800} )" class="highslide">เพิ่มรายการใหม่ </A></B>
					<BR><BR>
						<CENTER>
								<table>
		<tr>
		<td>
						<?
						if(!$_GET['year']){
							$_GET['year'] = date("Y");
						}
						$cal = new MyCalendar;
						echo $cal->getYearView($_GET['year']);
						?>
						</CENTER>
						<BR><BR>
									<!-- End News -->
		</td>
		</tr>
		</table>
						<table>
		<tr><td colspan=5 align=center ><font color=#990099><h4><b>กิจกรรมประจำเดือนนี้</b></font></td></tr>

		<tr>
		<td bgcolor="#0099CC" width="20" align="center"><h5><font color="#FFFFFF">ที่</td>
		<td bgcolor="#0099CC" width="100" align="center"><h5><font color="#FFFFFF">วัน เดือน ปี</td>
		<td bgcolor="#0099CC" width="60" align="center"><h5><font color="#FFFFFF">เวลา</td>
		<td bgcolor="#0099CC" width="150" align="center"><h5><font color="#FFFFFF">รายละเอียด</td>
		<td bgcolor="#0099CC" width="300" align="center"><h5><font color="#FFFFFF">สถานที่</td>
		<td bgcolor="#0099CC" width="300" align="center"><h5><font color="#FFFFFF">ผู้ปฏิบัติ</td>
</tr>

	<?
	$mt=date(m);
	$my=date(Y);
$res[calendar] = $db->select_query("SELECT * FROM ".TB_CALENDAR." where date_event between  '$my-$mt-01' and '$my-$mt-31' ORDER BY date_event  ");
$count=0;
$Color == 0;
$rank=1;
$resa[calendar] = $db->select_query("SELECT * FROM ".TB_CALENDAR." where date_event between  '$my-$mt-01' and '$my-$mt-31' ORDER BY date_event  ");
$arrs[calendar] = $db->fetch($resa[calendar]);
$id=$arrs[calendar][id];
if ($id !='') {

while($arr[calendar] = $db->fetch($res[calendar])){
	$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE id='".$arr[calendar][person]."'  ");
	$arr[user] = $db->fetch($res[user]);
echo "<TR>"; 
if($Color == 0){
		$Color = 1 ;
		$ColorFill = "#F0F0F0";
		$textfill="#CC3333";
	}else{
		$Color = 0 ;
		$ColorFill = "#FDEAFB";
		$textfill="#0066FF";
	}
	$year=substr($arr[calendar][date_event],0,4);
    $month=substr($arr[calendar][date_event],6,2)-1;
	$day=substr($arr[calendar][date_event],8,2);
//echo "$day-$month-$year";
//	$link = $this->getDateLink($day, $month, $year);
            $link['link'] = "popup.php?name=calendar&file=view&id=".$arr[calendar][id]."&dates=".$arr[calendar][date_event]."";
			$arr[calendar][subject] = eregi_replace("\'", "&#039;", $arr[calendar][subject]);
			$arr[calendar][subject] = htmlspecialchars($arr[calendar][subject]);
			$link['title'] = "".stripslashes($arr[calendar][subject])."";

?>
			<TD bgcolor="<?=$ColorFill; ?>" align="center"><?=$rank;?></td>
			<TD bgcolor="<?=$ColorFill; ?>"  valign=top align="center">[ <? echo $arr[calendar][date_event]; ?>]</td>
			<TD bgcolor="<?=$ColorFill; ?>" align="center"><? echo $arr[calendar][timeout]; ?></td>
			<TD bgcolor="<?=$ColorFill; ?>"><img src="images/a.gif" border="0"><? echo "<a href=\"".$link['link']."\" onclick=\"return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 700, objectHeight: 500} )\" )\">"; ?><font color="<?=$textfill; ?>"><b><? echo $arr[calendar][subject]; ?></a></td>
			<TD bgcolor="<?=$ColorFill; ?>">	<? echo $arr[calendar][detail]; ?>
			</td>
												</tr>
												<tr>
            <td height="1" align="left" class="dotline" colspan="5"></td>
			</tr>
<?
				$rank++;
}

}	
else {
echo "<tr><td colspan=5 align=center bgcolor=#FDEAFB><font color=#990000><b><< ไม่มีกิจกรรมในเดือนนี้ >></b></font></td></tr>";
}
$db->closedb ();
?>


		</table>
					</TD>
				</TR>
			</TABLE>
			<BR><BR>
<!-- Admin -->
		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Youez - 2016 - github.com/yon3zu
LinuXploit