|
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/gov_news/ |
Upload File : |
<?
session_start();
ob_start();
if ($_SESSION['display']==0) { $appsession = $_SESSION[session_apppermit][6]; } else { $appsession=""; }
//echo "<pre>";
//print_r($appsession);
//exit;
$staffid=$_SESSION['session_staffid'];
$org_id=$_SESSION['session_org'];
include("var.inc.php");
include("../../config/config.inc.php");
include("../../common/function.php");
$save_dir = "../../upload/govnews/";
//insert timeQuery
include("../../common/common_system.inc.php");
$ApplicationName="gov_news";
$time_start = getmicrotime();
//insert timeQuery
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>พรบ. ข้อมูลข่าวสาร</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../../common/style.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
body {
margin-left: 4px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background:#EFEFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.style1 {color: #FFFFFF;}
.style2 {color: #000066;}
.style3 {color: #006600;}
-->
</style>
<script type="text/javascript" src="../../common/popcalendar.js"></script>
<script type="text/javascript" src="../../common/fckeditor/fckeditor.js"></script>
<body>
<br>
<br>
<table width="620" border="0" align="center" cellpadding="0" cellspacing="2">
<?
$sql = "SELECT * FROM org_staffgroup WHERE org_id<>1"; // AND parent <> 0
$query = mysql_query($sql) or die(mysql_error());
$nrows = mysql_num_rows($query);
$temp =ceil($nrows/4);
$start=0;
$end=4;
for($i=1;$i<=$temp;$i++) { //AND parent <> 0
$sqlx = "SELECT gid,groupname,image FROM org_staffgroup WHERE org_id<>1 ORDER BY gid ASC LIMIT $start,$end";
$queryx = mysql_query($sqlx) or die(mysql_error());
//echo "$sqlx <br>".mysql_num_rows($queryx);
echo "<tr>";
while($rsx = mysql_fetch_assoc($queryx)) { ?>
<td width="155" align="center">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" >
<tr>
<td align="center" valign="bottom" height="155">
<a href="main_addition.php?act=display&gid=<?=$rsx[gid]?>">
<? if($rsx[image]) { echo "<img src=\"$rsx[image]\" border=\"0\" width=\"120\" height=\"120\" />"; }
else { echo "<img src=\"../../upload/govnews/org_images/default.jpg\" border=\"0\" /> "; }?></a>
</td>
</tr>
<tr>
<td height="30" align="center" valign="top"><a href="main_addition.php?act=display&gid=<?=$rsx[gid]?>">
<?=$rsx[groupname];?></a></td>
</tr>
</table>
</td>
<? } echo "</tr>"; $start=$start+4 ;} ?>
</table>
<br>
<br>
</body>
</html>
<?
//insert timeQuery
$time_end = getmicrotime();
writetime2db($timestart,$timeend);
//insert timeQuery
?>