| 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 : E:/Inetpub/www/myschool/triamudom/2566/modules/reports/ |
Upload File : |
<?
CheckUser($_SESSION['user_user'], $_SESSION['user_pwd']);
?>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
<TABLE cellSpacing=0 cellPadding=0 width=1005 height=400 align=center border=0>
<TBODY>
<TR>
<TD colspan="3" valign="top" >
<div align=center><A HREF="index.php">แฟ้มรับเอกสารการรายงานตัวชี้วัด<B></A></div>
<form action="?name=report&file=index2&op=report_del&action=multidel" name="myform" method="post">
<table width="1000" align=center cellspacing="2" cellpadding="1" >
<tr bgcolor="#336633" height=25>
<td width="15" align="center"><font color="#FFFFFF"><B>ที่</B></font></td>
<td width="475" align="center"><font color="#FFFFFF"><B>เรื่อง</B></font></td>
<td width="130" align="center"><font color="#FFFFFF"><B>ตัวชี้วัด</B></font></td>
<td width="230" align="center"><font color="#FFFFFF"><B>เอกสารแนบ</B></font></td>
<td width="100" align="center"><font color="#FFFFFF"><B>แจ้งการรับ</B></font></td>
</tr>
<?
// CheckUser($_SESSION['user_user']);
$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]);
//แสดงบทความ
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$limit = 100 ;
$SUMPAGE = $db->num_rows(TB_REPORT,"id","$SQLwhere category='".$arr[user][id]."' ");
$page=$_GET[page];
if (empty($page)){
$page=1;
}
$rt = $SUMPAGE%$limit ;
$totalpage = ($rt!=0) ? floor($SUMPAGE/$limit)+1 : floor($SUMPAGE/$limit);
$goto = ($page-1)*$limit ;
$res[report] = $db->select_query("SELECT * FROM ".TB_REPORT." WHERE category='".$arr[user][id]."' ORDER BY id, kpi DESC LIMIT $goto, $limit ");
$count=0;
$i=1;
while($arr[report] = $db->fetch($res[report]))
{
$res[reports] = $db->select_query("SELECT * FROM ".TB_REPORT_CAT." WHERE id='".$arr[report][kpi]."' ");
$arr[reports] = $db->fetch($res[reports]);
if ($count==0) { echo "<TR>"; }
if ($i%2==0)
{
?><tr bgcolor="#FFFFCC"><?
} else {
?><tr bgcolor="#E6FE99" ><?
} ?>
<td valign="top"><img src="images/attach.gif"><?=$arr[reportfile][full_text];?></td>
<td valign="top">ตัวชี้วัดที่ <?echo $arr[report][topic];?></td>
<td valign="top"><?echo $arr[reports][category_name];?></td>
<td valign="top" align="center" >
<?
$res[reportfile] = $db->select_query("SELECT * FROM ".TB_REPORTFILE." WHERE report_id='".$arr[report][id]."' and curdate()<date_add(from_unixtime(post_date),interval 60 day) ORDER BY post_date DESC LIMIT 1");
while($arr[reportfile] = $db->fetch($res[reportfile]))
{
?>
<a href="?name=reports&file=readreport_2&id=<?echo $arr[report][id];?>"><img src="images/yfile.png"></A> <font color=red>ส่งเมื่อ <?echo ThaiTimeConvert($arr[reportfile][post_date],'','');?> ( <?echo $arr[reportfile][rob];?> ) <?=$CommentIcon;?><?=NewsIcon(TIMESTAMP, $arr[report][post_date], "images/icon_new.gif ");?></font><BR>
<?
$count++;
$i++;
if (($count%1) == 0) { echo ""; $count=0; }
}
?>
</td>
<td valign="top" align="center" >
<a href="?name=reports&file=addedit2&op=report_edit&id=<?echo $arr[report][id];?>"><img src="images/edit.gif"></a></td>
</TR>
<?
$count++;
$i++;
if (($count%1) == 0) { echo ""; $count=0; }
}
$db->closedb ();
//จบการแสดงข่าวสาร
?>
</table>
</form>
</TD>
</TR>
</TBODY>
</TABLE>
<div align=right>
<?
SplitPage($page,$totalpage,"?name=report&file=bookperson&op=report_read&category=".$_GET[category]."");
echo $ShowSumPages ;
echo $ShowPages ;
?>
</div>