| Server IP : 104.21.80.248 / 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/benjama/modules/calendars/ |
Upload File : |
<?
CheckUser($_SESSION['user_user'], $_SESSION['user_pwd']);
?>
<style type="text/css">
<!--
.calendars {
width:1000;
height:50;
background-color: #d7fef6;
}
-->
</style>
<div align='left'> <IMG SRC="images/icon/calendar.gif" BORDER="0" ALIGN="absmiddle"> <b>E-Note</b> <IMG SRC="images/add.gif" BORDER="0" ALIGN="absmiddle"> <A HREF="popup.php?name=calendars&file=addevent" onclick="return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 800, objectHeight: 600} )" class="highslide"><font color=blue><b><u>บันทึกปฏิทิน</u><b></font></A>
<font color=red><b>ปฏิทินการปฏิบัติงานผู้บริหาร</b></font><div>
<div align='center'>
<?
if(!$_GET['month']){
$_GET['month'] = date("m");
}
if(!$_GET['year']){
$_GET['year'] = date("Y");
}
$cal = new Mycalendare;
echo $cal->getmonthView($_GET['month'],$_GET['year'] );
?>
</div>
<?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE username='".$_SESSION['user_user']."' ");
$arr[user] = $db->fetch($res[user]);
?>
<TABLE cellSpacing=0 cellPadding=0 width=100% height=450 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<table cellSpacing=1 cellPadding=1 width=100% border=0>
<tr><td colspan=6 align=center ><font color=#990099><h4><b>กิจกรรมประจำเดือนนี้</b></font></td></tr>
<tr>
<td bgcolor="#0099CC" width="5%" align="center"><font color="#FFFFFF">ที่</td>
<td bgcolor="#0099CC" width="15%" align="center"><font color="#FFFFFF">วัน เดือน ปี</td>
<td bgcolor="#0099CC" width="10%" align="center"><font color="#FFFFFF">เวลา</td>
<td bgcolor="#0099CC" width="40%" align="center"><font color="#FFFFFF">กิจกรรม</td>
<td bgcolor="#0099CC" width="15%" align="center"><font color="#FFFFFF">สถานที่</td>
<td bgcolor="#0099CC" width="15%" align="center"><font color="#FFFFFF">ผู้ปฏิบัติ</td>
<?
if (($arr[user][work]=='9')AND($arr[user][status]==1)OR($arr[user][work]=='8')AND($arr[user][status]==1)OR($arr[user][work]=='3')AND($arr[user][status]==1)OR($arr[user][odgroup]=='4')AND($arr[user][status]==1)){ // ศธจ.============================================
?>
<td bgcolor="#0099CC" width="60" align="center"><font color="#FFFFFF">ลบ</td>
<?
}
?>
</tr>
<?
$mt=date(m);
$my=date(Y);
$res[calendars] = $db->select_query("SELECT * FROM ".TB_CALENDARS." where work between 2 and 4 and date_event between '$my-$mt-01' and '$my-$mt-31' ORDER BY person, date_event asc ");
$count=0;
$Color == 0;
$rank=1;
$resa[calendars] = $db->select_query("SELECT * FROM ".TB_CALENDARS." where work between 2 and 4 and date_event between '$my-$mt-01' and '$my-$mt-31' ORDER BY person, date_event asc ");
$arrs[calendars] = $db->fetch($resa[calendars]);
$id=$arrs[calendars][id];
if ($id !='') {
while($arr[calendars] = $db->fetch($res[calendars])){
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE id='".$arr[calendars][person]."' ");
$arr[user] = $db->fetch($res[user]);
echo "<TR>";
if($Color == 0){
$Color = 1 ;
$ColorFill = "#F0F0F0";
$textfill="#0066FF";
}else{
$Color = 0 ;
$ColorFill = "#FDEAFB";
$textfill="#0066FF";
}
$year=substr($arr[calendars][date_event],0,4);
$month=substr($arr[calendars][date_event],6,2)-1;
$day=substr($arr[calendars][date_event],8,2);
//echo "$day-$month-$year";
// $link = $this->getDateLink($day, $month, $year);
$link['link'] = "popup.php?name=calendars&file=view&id=".$arr[calendars][id]."&dates=".$arr[calendars][date_event]."";
$arr[calendars][subject] = eregi_replace("\'", "'", $arr[calendars][subject]);
$arr[calendars][subject] = htmlspecialchars($arr[calendars][subject]);
$link['title'] = "".stripslashes($arr[calendars][subject])."";
?>
<TD bgcolor="<?=$ColorFill; ?>" valign=top align="center"><?=$rank;?></td>
<TD bgcolor="<?=$ColorFill; ?>" valign=top align="center"><?echo "".thai_date_fullmonth(strtotime($arr[calendars][date_event])."" );?></td>
<TD bgcolor="<?=$ColorFill; ?>" valign=top align="center"><? echo $arr[calendars][timeout]; ?></td>
<TD bgcolor="<?=$ColorFill; ?>" valign=top><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[calendars][subject]; ?></a></td>
<TD bgcolor="<?=$ColorFill; ?>"valign=top> <? echo $arr[calendars][detail]; ?></td>
<TD bgcolor="<?=$ColorFill; ?>" valign=top ><? echo $arr[user][category_name]; ?></td>
<?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE username='".$_SESSION['user_user']."' ");
$arr[user] = $db->fetch($res[user]);
?>
<?
if (($arr[user][work]=='9')AND($arr[user][status]==1)OR($arr[user][work]=='8')AND($arr[user][status]==1)OR($arr[user][work]=='3')AND($arr[user][status]==1)OR($arr[user][odgroup]=='4')AND($arr[user][status]==1)){ // ศธจ.============================================
?>
<td width="60" valign="top">
<a href="javascript:Confirm('?name=calendars&file=delevent&id=<? echo $arr[calendars][id];?>','คุณมั่นใจในการลบปฏิทินหัวข้อนี้ ?');"><img src="images/admin/trash.gif" border="0" alt="ลบ" ></a>
</td>
<?
}
?>
</tr>
<tr>
<td height="1" align="left" class="dotline" colspan="7"></td>
</tr>
<?
$rank++;
}
}
else {
echo "<tr><td colspan=7 align=center bgcolor=#FDEAFB><font color=#990000><b><< ไม่มีกิจกรรมในเดือนนี้ >></b></font></td></tr>";
}
?>
</table>
</TD>
</TR>
</TBODY>
</TABLE>