| 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/myoffice/2564/modules/publish/ |
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=100% height=500 border=0>
<TBODY>
<TR>
<TD width="100%" vAlign=top>
<form action="?name=admin&file=publish&op=publish_del&action=multidel" name="myform" method="post">
<table width="100%" cellspacing="2" cellpadding="1" >
<tr bgcolor="#336633" height=25>
<td align=center width="5%"><font color="#FFFFFF"><B>แก้ไข</B></font></td>
<td align=center width="5%"><font color="#FFFFFF"><B>ที่ </B></font></td>
<td align=center width=""><font color="#FFFFFF"><B>เรื่อง</B></font></td>
<td width="15%" align=center ><font color="#FFFFFF"><B>วัน เดือน ปี</B></font></td>
<td width="15%" 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 = 5 ;
$SUMPAGE = $db->num_rows(TB_PUBLISH,"id","$SQLwhere");
$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[publish] = $db->select_query("SELECT id, tabain, topic, post_date, posted, full_text, full_texts, full_textu, full_texto, UNIX_TIMESTAMP(date) AS date2 FROM ".TB_PUBLISH." WHERE posted='".$arr[user][id]."' ORDER BY id DESC LIMIT $goto, $limit ");
$count=0;
while($arr[publish] = $db->fetch($res[publish]))
{
if ($count==0) { echo "<TR>"; }
if ($i%2==0)
{
?><tr bgcolor="#FFFFC6" class="unnamed1"><?
} else {
?><tr bgcolor="#E6FEDE" class="unnamed2"><?
} ?>
<td align="left" ><A HREF="?name=publish&file=edit&op=publish_edit&id=<?echo $arr[publish][id];?>"><FONT COLOR="#FF0000" size=2><img src="images/admin/edit.gif" border="0" alt="แก้ไข" ></FONT></a>
</td>
<td align="left" >
<?echo $arr[publish][tabain];?>
</td>
<td valign="top"><a href="?name=publish&file=readpublish&id=<?echo $arr[publish][id];?>"><?echo $arr[publish][topic];?></a><?=$CommentIcon;?><?=NewsIcon(TIMESTAMP, $arr[publish][post_date], "images/icon_new.gif");?></td>
<td >
<div align="center"><?= ThaiTimeConvert($arr[publish][date2]);?></div></td>
<td valign="top"><CENTER>
<?
if($arr[publish][full_text]){
?>
<a href="data/publish/<? echo $arr[publish][full_text];?> " target="_blank"><b>ไฟล์ที่ 1</b></A> ,
<? } else {
echo "ไม่มีไฟล์แนบ";
}?>
<?
if($arr[publish][full_texts]){
?>
<a href="data/publish/<? echo $arr[publish][full_texts];?> " target="_blank"><b>ไฟล์ที่ 2</b></A> ,
<? }?>
<?
if($arr[publish][full_textu]){
?>
<a href="data/publish/<? echo $arr[publish][full_textu];?> " target="_blank"><b>ไฟล์ที่ 3</b></A> ,
<? }?>
<?
if($arr[publish][full_texto]){
?>
<a href="data/publish/<? echo $arr[publish][full_texto];?> " target="_blank"><b>ไฟล์ที่ 4</b></A> ,
<? }?>
</CENTER></td></tr>
<?
$i++;
?>
<?
$count++;
if (($count%1) == 0) { echo ""; $count=0; }
}
$db->closedb ();
//จบการแสดงข่าวสาร
?>
</table>
</form>
</TD>
</TR>
</TBODY>
</TABLE>
<table border="0" cellpadding="0" cellspacing="1" width="100%" align=center>
<tr>
<td align=right>
<?
SplitPage($page,$totalpage,"?name=publish&op=publish_read&category=".$_GET[category]."");
echo $ShowSumPages ;
echo "<BR>";
echo $ShowPages ;
?>
</TD>
</TR>
</TABLE>