MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/mxblog/modules/index/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/mxblog/modules/index/index.php
    <TABLE cellSpacing=0 cellPadding=0 width=720 border=0>
      <TBODY>
        <TR>
          <TD width="250" vAlign=top>
		  <!-- Left -->
		  <IMG SRC="images/menu/textmenu_news.gif" BORDER="0"><BR><BR>
				<TABLE width="250" align=top cellSpacing=0 cellPadding=0 border=0>
<?
//แสดงข่าวสาร/ประชาสัมพันธ์ 
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[news] = $db->select_query("SELECT * FROM ".TB_NEWS." ORDER BY id DESC LIMIT 5 ");
while($arr[news] = $db->fetch($res[news])){
	//Comment Icon
	if($arr[news][enable_comment]){
		$CommentIcon = " <IMG SRC=\"images/icon/suggest.gif\" WIDTH=\"13\" HEIGHT=\"9\" BORDER=\"0\" ALIGN=\"absmiddle\">";
	}else{
		$CommentIcon = "";
	}
?>
				<TR>
					<TD><FONT COLOR="#990000"><B>
					<?= ThaiTimeConvert($arr[news][post_date],"","");?>
					</B></FONT></TD>
				</TR>
				<TR><TD height="3" ></TD></TR>
				<TR>
					<TD>
					<A HREF="?name=news&file=readnews&id=<?=$arr[news][id];?>" target="_blank">
					<IMG SRC="newsicon/<?=$arr[news][post_date];?>.jpg" WIDTH="48" HEIGHT="48" BORDER="0" ALIGN="left" class="topicicon" style="filter:alpha(opacity=100)" onMouseover="makevisible(this,1)" onMouseout="makevisible(this,0)"><B><?=$arr[news][topic];?></A></B>
					<?NewsIcon(TIMESTAMP, $arr[news][post_date], "images/icon_new.gif");?>
					<BR><?=$arr[news][headline];?><?=$CommentIcon;?>
					</TD>
				</TR>
				<TR><TD height="3" ></TD></TR>
				<TR><TD height="1" class="dotline"></TD></TR>
				<TR><TD height="3" ></TD></TR>
<?
}
$db->closedb ();
//จบการแสดงข่าวสาร
?>
				</TABLE>
<BR><BR>
<IMG SRC="images/menu/textmenu_calendar.gif" BORDER="0"><BR><BR>
<?
// If no month/year set, use current month/year
 $d = getdate(time());
if ($month == "")
{
    $month = $d["mon"];
}
if ($year == "")
{
    $year = $d["year"];
}
$cal = new MyCalendar;
echo $cal->getMonthView($month, $year);
?>
<div align=right><A HREF="?name=calendar">&gt;&gt; รายการกิจกรรมทั้งหมด</A> </div>



		
			<!-- End Left -->
		  </TD>
          <TD width="10" vAlign=top><IMG src="images/fader.gif" border=0></TD>
          <TD width="460" vAlign=top><IMG src="images/topfader.gif" border=0><BR>
		  <IMG SRC="images/menu/textmenu_welcome.gif" BORDER="0">
				<TABLE width=100% cellSpacing=5 cellPadding=0 border=0>
				<TR>
					<TD>
<?
$FileEditorTalk = "editortalk/editortalk.html";
$FileEditorTalkOpen = @fopen($FileEditorTalk, "r");
$EditorTalkContent = @fread ($FileEditorTalkOpen, @filesize($FileEditorTalk));
@fclose ($FileEditorTalkOpen);
$EditorTalkContent = stripslashes($EditorTalkContent);
echo $EditorTalkContent;
?>					
					</TD>
				</TR>
				</TABLE>
				<BR>
				<TABLE width="100%" align=top cellSpacing=5 cellPadding=0 border=0>
				<TR>
					<TD valign=top>
							<IMG SRC="images/menu/textmenu_knowledge.gif" BORDER="0">
							<TABLE width="100%" align=top cellSpacing=5 cellPadding=0 border=0>
<?
//แสดงบทความ
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[knowledge] = $db->select_query("SELECT * FROM ".TB_KNOWLEDGE." ORDER BY id DESC LIMIT 2 ");
while($arr[knowledge] = $db->fetch($res[knowledge])){
?>
							<TR>
								<TD>
								<A HREF="?name=knowledge&file=readknowledge&id=<?=$arr[knowledge][id];?>" target="_blank"><IMG SRC="knowledgeicon/<?=$arr[knowledge][post_date];?>.jpg" BORDER="0" ALIGN="left" class="topicicon" style="filter:alpha(opacity=100)" onMouseover="makevisible(this,1)" onMouseout="makevisible(this,0)"> <B><?=$arr[knowledge][topic];?></B></A>
								<?NewsIcon(TIMESTAMP, $arr[knowledge][post_date], "images/icon_new.gif");?>
								<BR><?=$arr[knowledge][headline];?> <?if($arr[knowledge][enable_comment]){echo " <IMG SRC=\"images/icon/suggest.gif\" WIDTH=\"13\" HEIGHT=\"9\" BORDER=\"0\" ALIGN=\"absmiddle\">";}else{};?>
								</TD>
							</TR>
							<TR><TD height="3" ></TD></TR>
							<TR><TD height="1" class="dotline"></TD></TR>
							<TR><TD height="3" ></TD></TR>
<?
}
$db->closedb ();
//จบการแสดงบทความ
?>
							</TABLE>
					</TD>
				</TR>
				</TABLE>
				<!-- บทความ Text Random -->
				<TABLE width="100%" align=top cellSpacing=5 cellPadding=0 border=0>
<?
//แสดงบทความ Text Random
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[knowledge] = $db->select_query("SELECT * FROM ".TB_KNOWLEDGE." ORDER BY rand() LIMIT 5 ");
while($arr[knowledge] = $db->fetch($res[knowledge])){
?>
				<TR>
					<TD>
					<IMG SRC="images/icon/icon_page.gif" BORDER="0" ALIGN="absmiddle"> <A HREF="?name=knowledge&file=readknowledge&id=<?=$arr[knowledge][id];?>" target="_blank"><?=$arr[knowledge][topic];?></A> <?if($arr[knowledge][enable_comment]){echo " <IMG SRC=\"images/icon/suggest.gif\" WIDTH=\"13\" HEIGHT=\"9\" BORDER=\"0\" ALIGN=\"absmiddle\">";}else{};?>
					</TD>
				</TR>
				<TR><TD height="1" class="dotline"></TD></TR>
<?
}
$db->closedb ();
//จบการแสดงบทความ Text Random
?>
				<TR>
					<TD></TD>
				</TR>
				</TABLE>
				<!-- จบบทความ Text Random -->

				<BR><BR>
				<!-- เว็บบอร์ดล่าสุด -->
				<IMG SRC="images/menu/textmenu_webboard.gif" BORDER="0">
				<TABLE width="100%" align=top cellSpacing=5 cellPadding=0 border=0>
<?
//แสดงเว็บบอร์ดล่าสุด
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[webboard] = $db->select_query("SELECT * FROM ".TB_WEBBOARD." ORDER BY id DESC LIMIT 10 ");
while($arr[webboard] = $db->fetch($res[webboard])){
?>
				<TR>
					<TD>
					<IMG SRC="images/icon/icon_page.gif" BORDER="0" ALIGN="absmiddle"> <A HREF="?name=webboard&file=read&id=<?=$arr[webboard][id];?>" target="_blank"><?=$arr[webboard][topic];?></A>
					<?NewsIcon(TIMESTAMP, $arr[webboard][post_date], "images/icon_new.gif");?>
					</TD>
				</TR>
				<TR><TD height="1" class="dotline"></TD></TR>
<?
}
$db->closedb ();
//จบการแสดงเว็บบอร์ดล่าสุด
?>
				<TR>
					<TD></TD>
				</TR>
				</TABLE>
				<div align=right><A HREF="?name=webboard">&gt;&gt; รายการกระทู้ทั้งหมด</A> </div>

				<BR><BR>

		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Anon7 - 2021