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/eoffice/application/document/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/eoffice/application/document/doc_menu_bar.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="../../common/mootool/js/mootools-for-dropdown.js"> </script>
<script type="text/javascript" src="../../common/mootool/js/UvumiDropdown-compressed.js"> </script>
<link rel="stylesheet" type="text/css" media="screen" href="../../common/mootool/css/uvumi-dropdown.css" />
<style type="text/css">	
	body,html{padding:0;}
	#main{padding:0;}
	</style>
<script type="text/javascript">
		new UvumiDropdown('dropdown-demo');
	</script>
<SCRIPT type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//-->
</SCRIPT>
<SCRIPT type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
</head>
<BODY onLoad="MM_preloadImages('../../images/bar/menu2_01.jpg','../../images/bar/menu2_02.jpg','../../images/bar/menu2_03.jpg','../../images/bar/menu2_04.jpg','../../images/bar/menu2_05.jpg','../../images/bar/menu2_08.jpg','../../images/bar/menu2_06.jpg','../../images/bar/menu2_13.jpg','../../images/bar/menu2_07.jpg','../../images/bar/menu2_09.jpg','../../images/bar/menu2_14.jpg','../../images/bar/menu2_15.jpg')">
<? if( ($type!="personal") && ( ($action!="view") && ($action!="activity") && ($action!="edit")  )   ){?>
<TABLE width="100%" height="32"  border="0" cellpadding="0" cellspacing="0">
	<TR  >
		<TD  align="center" valign="top" >&nbsp;</TD>
		<TD width="100%" height="32"  align="left" valign="top">
		<ul id="dropdown-demo" class="dropdown">
				<? if($session_username!="root"){?>
				
				<li><? if(($type=="all")||((!$type)&&(!$action))) {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_03.jpg" alt="˹ѧÊ×Í·Ñé§ËÁ´" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?><A href="?type=all" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ALL','','../../images/bar/menu2_03.jpg',1)"><IMG src="../../images/bar/menu1_03.jpg" alt="˹ѧÊ×Í·Ñé§ËÁ´" name="ALL" width="99" height="32" border="0" id="ALL" /></A>
				<? }?></li>
				
				<li><? if(($type=="get")&&(!$action)) {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_01.jpg" alt="˹ѧÊ×ÍÃѺ" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?> <A href="?type=get" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('GETTING1','','../../images/bar/menu2_01.jpg',1)"> <IMG src="../../images/bar/menu1_01.jpg" alt="˹ѧÊ×ÍÃѺ" name="GETTING1" width="99" height="32" border="0" id="GETTING1" /></A> 
				<?}?>
				</li>
				
				<li> <? if(($type=="send")&&(!$action)) {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_02.jpg" alt="˹ѧÊ×ÍÅÊè§" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?> <A href="?type=send" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SENDING','','../../images/bar/menu2_02.jpg',1)"> <IMG src="../../images/bar/menu1_02.jpg" alt="˹ѧÊ×ÍÊè§" name="SENDING" width="99" height="32" border="0" id="SENDING" /></A> 
				<? }?>
				</li>
				
				<li> <? if(($type=="circular")&&(!$action)) {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_12.jpg" alt="˹ѧÊ×ÍàÇÕ¹" name="ALL" width="99" height="31" border="0" id="ALL" />
				<? }else{ ?> <A href="?type=circular" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','../../images/bar/menu2_13.jpg',1)"> <IMG src="../../images/bar/menu1_13.jpg" alt="˹ѧÊ×ÍàÇÕ¹" name="Image12" width="99" height="32" border="0"></A> 
				<? }?>
				</li>
				
				<li> <? if($action=="search") {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_07.jpg" alt="¤é¹ËÒ¢éÍÁÙÅ" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?> <A href="?action=search" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SEARCH','','../../images/bar/menu2_07.jpg',1)"><IMG src="../../images/bar/menu1_07.jpg" alt="¤é¹ËÒ¢éÍÁÙÅ" name="SEARCH" width="99" height="32" border="0" id="SEARCH" /> </A> 
				<?}?>
				</li>
				
				
				<?  if( ($session_permit[500])||($session_permit[400])||($session_permit[300])||($session_permit[600])||($session_permit[700]) ){?>
				<li> <? if($action=="add") {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_08.jpg" alt="à¾ÔèÁ¢éÍÁÙÅ" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?> <A onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ADD','','../../images/bar/menu2_08.jpg',1)"> <IMG src="../../images/bar/menu1_08.jpg" alt="à¾ÔèÁ¢éÍÁÙÅ" name="ADD" width="99" height="32" border="0" id="ADD" /></A>
				<?}?>
					<ul><? if($session_permit[700]){?>
						<li>
						<a href="?type=get&action=add"><strong>&#8226; ˹ѧÊ×ÍÃѺ</strong></a>
						<!--<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="24" bgcolor="#FFFFFF">
							<tr>
								<td width="9"><img src="../../images/profile_collapsed.gif" alt="" width="9" height="9" border="0" /></td>
								<td><a href="?type=get&action=add"><strong>˹ѧÊ×ÍÃѺ</strong></a></td>
							</tr>
						</table>-->
						</li>
						<? }?>
						<? if($session_permit[500]){?>
						<li>
						<a href="?type=send&action=add"><strong>&#8226; ˹ѧÊ×ÍÊè§</strong></a>
						<!--<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="20" bgcolor="#FFFFFF">
							<tr>
								<td width="9"><img src="../../images/profile_collapsed.gif" alt="" width="9" height="9" border="0" /></td>
								<td><a href="?type=send&action=add"><strong>˹ѧÊ×ÍÊè§</strong></a></td>
							</tr>
						</table>-->						
						</li>
						<? }?>
						<? if($session_permit[400]){?>
						<li>
						<a href="?type=circular&action=add"><strong>&#8226; ˹ѧÊ×ÍàÇÕ¹</strong></a>
						<!--<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="20" bgcolor="#FFFFFF">
							<tr>
								<td width="9"><img src="../../images/profile_collapsed.gif" alt="" width="9" height="9" border="0" /></td>
								<td><a href="?type=circular&action=add"><strong>˹ѧÊ×ÍàÇÕ¹</strong></a></td>
							</tr>
						</table>	-->					
						</li>
						<? }?>
						<?  if($session_permit[600]){?>
						<li>
						</li>						
						<li>
						<a href="?type=send&action=add_past"><strong>&#8226; ˹ѧÊ×ÍÊè§ &nbsp;&nbsp;&nbsp;Âé͹ËÅѧ</strong></a>
						<!--<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="20" bgcolor="#FFFFFF">
							<tr>
								<td width="9"><img src="../../images/profile_collapsed.gif" alt="" width="9" height="9" border="0" /></td>
								<td><a href="?type=send&action=add_past"><strong>˹ѧÊ×ÍÊè§Âé͹ËÅѧ</strong></a></td>
							</tr>
						</table>-->							
						</li>
						<li>
						<a href="?type=circular&action=add_past"><strong>&#8226; ˹ѧÊ×ÍàÇÕ¹ &nbsp;&nbsp;&nbsp;Âé͹ËÅѧ</strong></a>
						<!--<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="20" bgcolor="#FFFFFF">
							<tr>
								<td width="9"><img src="../../images/profile_collapsed.gif" alt="" width="9" height="9" border="0" /></td>
								<td><a href="?type=circular&action=add_past"><strong>˹ѧÊ×ÍàÇÕ¹Âé͹ËÅѧ</strong></a></td>
							</tr>
						</table>-->						
						</li>
						<?  }?>
					</ul>
					<? } ?>
					
				<li> 
				<? if($type=="profile") {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_04.jpg" alt="PROFILE" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?>
				<A href="?type=profile" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('PROFILE','','../../images/bar/menu2_04.jpg',1)"> <IMG src="../../images/bar/menu1_04.jpg" alt="Profile Manager" name="PROFILE" width="99" height="32" border="0" id="PROFILE" /></A> 
				<? }?></li>
				
				
				<li> 
				<? if($type=="setting") {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_05.jpg" alt="SETTING" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?>
				<A href="?type=setting" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SETTING','','../../images/bar/menu2_05.jpg',1)"> <IMG src="../../images/bar/menu1_05.jpg" alt="µÑ駤èÒáÊ´§¼Å" name="SETTING" width="99" height="32" border="0" id="SETTING" /></A> 
				<?}?>
				</li>
				
				
				<? } ?>
				<? if($session_permit[300]){?>
				<li> 
					<? if($type=="report") {?>				
				<IMG src="../../images/bar_disabled/Untitled-1_13.jpg" alt="ÃÒ§ҹʶԵÔ" name="ALL" width="99" height="32" border="0" id="ALL" />
				<? }else{ ?>
				<A href="?type=report" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../../images/bar/menu2_14.jpg',1)"> <IMG src="../../images/bar/menu1_14.jpg" alt="ÃÒ§ҹʶԵÔ" name="Image13" width="99" height="32" border="0"></A> 
				<? }?>
				</li>
				
				
				<? } ?>
				<? if($session_username=="root"){?>
				<li>		
				 <A href="?type=system" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('GETTING','','../../images/bar/menu2_09.jpg',1)"> <IMG src="../../images/bar/menu1_09.jpg" alt="System manager" name="GETTING" width="99" height="32" border="0" id="GETTING" /></A> 

				</li>
				
				<? } ?>
				<li> <A href="logout.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','../../images/bar/menu2_06.jpg',1)"> <IMG src="../../images/bar/menu1_06.jpg" alt="ÍÍ¡¨Ò¡Ãкº" name="Image20" width="99" height="32" border="0"></A> </li>
		</ul>
		
		</TD>
	</TR>
</TABLE>
<? }elseif($type=="personal"){ ?>
<TABLE width="100%" height="32"  border="0" cellpadding="0" cellspacing="0" background="../../images/bar/menu_10s.jpg">
	<TR  >
		<TD  align="right" valign="top" width="100%">&nbsp;</TD>
		<TD width="99"  align="center" valign="top" ><A href="?type=all" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../../images/bar/menu2_15.jpg',1)"><IMG src="../../images/bar/menu1_15.jpg" alt="˹éÒËÅÑ¡" name="Image14" width="99" height="32" border="0"></A></TD>
		<TD  align="center" valign="top"><A href="logout.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('LOGOUT','','../../images/bar/menu2_06.jpg',1)"><IMG src="../../images/bar/menu1_06.jpg" alt="ÍÍ¡¨Ò¡Ãкº" name="LOGOUT" width="99" height="32" border="0" id="LOGOUT" /> </A> </TD>
	</TR>
</TABLE>
<?}elseif( ($action=="view") || ($action=="activity")  || ($action=="edit") ){?>
<TABLE width="100%" height="32"  border="0" cellpadding="0" cellspacing="0" background="../../images/bar/menu_10s.jpg">
	<TR  >
		<TD  align="right" valign="top" width="100%">&nbsp;
<?		
if($id){
$sql="
SELECT
*
FROM
document
WHERE
document.id =  '$id'
";
$result = mysql_query($sql)or die("Query line " . __LINE__ . " error<hr>".mysql_error());
$ers = mysql_fetch_assoc($result);
}


$sql_p="
SELECT
distinct
docid,
count(timeknow) as num_letter
FROM
doc_receive
WHERE
docid=$id
group by docid 
";
// doc_receive.staff_id
$result_p = mysql_query($sql_p)or die("Query line " . __LINE__ . " error<hr>".mysql_error());
while($ersp = mysql_fetch_assoc($result_p)){
$prd[$ersp[docid]]=$ersp[num_letter];
}

?>		</TD>
		<TD width="99"  align="center" valign="top" ><A href="?type=all" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','../../images/bar/menu2_15.jpg',1)"><IMG src="../../images/bar/menu1_15.jpg" alt="˹éÒËÅÑ¡" name="Image14" width="99" height="32" border="0"></A><A href="?type=all"></A></TD>
		
		
		<? if(!$ers[doc_status]=="w"){?>
		<? if(($session_permit[300])||($session_permit[400])||($session_permit[500])){?>
		<TD width="99"  align="center" valign="top" <? if($action=="edit") {echo "bgcolor='#FFCC00'"; } ?>><?// if(!$prd[$id]) {?>
			<A href="<?=$PHP_SELF?>?action=edit&id=<?=$id?>&page=<?=$page?>&type=<?=$type?>" style="text-decoration:none"> <IMG src="../../images/bar/menu1_16.jpg" alt="á¡éä¢" width="99" height="32" border="0"> </A>
			<!--<?// }else{?>
		<IMG src="../../images/bar/menu2_16.jpg" alt="á¡éä¢" width="99" height="32" border="0">
		<?// }?>-->
		</TD>
		
		
		<TD width="99"  align="center" valign="top" >
			<A href="<?=$PHP_SELF?>?action=del&id=<?=$id?>&page=<?=$page?>&type=<?=$type?>" style="text-decoration:none" onClick="return confirm('¡ÒÃźäÁèÊÒÁÒö¡Ùé¤×¹ä´é ¡Ãسҡ´ OK à¾×èÍÂ×¹Âѹ¡ÒÃźè ?')"> <IMG src="../../images/bar/menu1_17.jpg" alt="ź" width="99" height="32" border="0"> </A>
			<? }?>
		</TD>
		
		
		<? // }?>
		<? if(($session_permit[300]) && ($type!="circular")){?>
		<TD width="99"  align="center" valign="top" ><A href="<?=$PHP_SELF?>?action=activity&amp;id=<?=$id?>&amp;page=<?=$page?>&amp;type=<?=$type?>" style="text-decoration:none"><IMG src="../../images/bar/menu1_18.jpg" alt="Êè§µèÍ" width="99" height="32" border="0"></A> </TD>
		<?  } ?>
		<? }?>
		
		
		<TD  align="center" valign="top"><A href="logout.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('LOGOUT1','','../../images/bar/menu2_06.jpg',1)"><IMG src="../../images/bar/menu1_06.jpg" alt="ÍÍ¡¨Ò¡Ãкº" name="LOGOUT1" width="99" height="32" border="0" id="LOGOUT1" /> </A> </TD>
	</TR>
</TABLE>
<?}?>
</BODY>
</html>

Anon7 - 2021