Hacked By AnonymousFox

Current Path : C:/AppServ/www/th/gallery/
Upload File :
Current File : C:/AppServ/www/th/gallery/album.php

<?
include("../lib/config.php");
include("../lib/connect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>:: ศูนย์แพทยศาสตร์ศึกษาชั้นคลินิกสำนักการแพทย์ ::</title>
    <link href="ddmenu/ddmenu.css" rel="stylesheet" type="text/css" />
    <script src="ddmenu/ddmenu.js" type="text/javascript"></script>
    <style>
        body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFF;
}
    .style1 {
	color: #FFFFFF;
	font-weight: bold;
}
    </style>
</head>    
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td align="left" bgcolor="#11145B"><table width="70%" border="0" align="center">
      <tr>
        <td><img src="../ddmenu/bgnew.gif" /></td>
      </tr>
    </table></td>
  </tr>
</table>
	 <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#FFFFFF"><br /><div align="center" style="background-color:lightblue">
<h1><br />
  อัพโหลดอัลบั้มภาพ</h1> 
<!-- ส่วนแสดงภาพที่อัพโหลดเข้าไป -->

<form id="imageform" method="post" enctype="multipart/form-data" action='index.php'>
  <p>ชื่ออัลบั้มภาพ
  <input type="text" name="namealbum" id="namealbum">
  </p>
<input type="submit" value="บันทึกข้อมูล">
<br />
<br>
<br>
</form>
</div>
           <br />
           <table width="80%" border="0" align="center">
           <tr>
             <td width="49%" align="center" valign="top"><h2>อัลบั้มรูปภาพกิจกรรม</h2><br />
             <br />
			   
			   <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
		  <? 			
			  
			   
			     $sql="SELECT * FROM namealbum order by Id desc" ;
				
			  $Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: &#3648;&#3585;&#3636;&#3604;&#3588;&#3623;&#3634;&#3617;&#3612;&#3636;&#3604;&#3614;&#3621;&#3634;&#3604; <br>$sql<br>\n");
			  $TotalRecordCount=mysql_num_rows($Query);
			  $RecordCount=mysql_num_rows( $Query);
				 if($RecordCount>0){ 
						$count = 0;
						while ($Row = mysql_fetch_array($Query)) { 
						$ID=$Row[moe_mod_news_ID];
						$count++; 
						if ($count==0) { ?>
            <tr >
                    <? } ?>
              <td align="center" valign="top" width="25%">
                <table width="100%" border="0" align="center" cellspacing="0">
                  <tr style="border-bottom:1px #CCCCCC dotted; ">
                    <td align="center" valign="top">
						<?
						$sql1="SELECT * FROM uploadimg where type='$Row[Id]' order by upload_id desc" ;
				
			  $Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1); 
			  $Row1=mysql_fetch_array($Query1);
			  ?>
						<br />
						<a href="../albumst-view.php?Ids=<?=$Row[Id]?>">
						<? if($Row1[image_name]!=""){ ?>
						
						<img src="../gallery/uploads/<?=$Row1[image_name]?>" width="300" height="200" border="3" style="border-color:#3279C9" />
						<br />
						<? }else{ ?>
						<img src="../bg-pic-s.gif" width="300" height="200" border="0"  />
						<? } ?>
						<br />
<?=$Row[Name]?></a>
					    <br />                   
					  </td>
                    </tr>
              </table></td>
              <? if ($count==4) { $count = 0; ?>
            </tr><tr height="1"><td height="1" colspan="2" background="images/h-line.gif"><img src="images/h-line.gif" width="1" height="1" /></td>
            </tr>
            <? } ?>
            <? } ?>
            <?
						if ($count>0) {
							for ($i=($count+1);$i<=2;$i++) echo '<td align="center" valign="top" width="25%">&nbsp;</td>';
							echo '</tr>';
						}
						?>
						<? }else{ ?> 
						<tr><td align="center"><br />
						  &#3652;&#3617;&#3656;&#3617;&#3637;&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;<br /></td>
						</tr> <? } ?>
          </table>
			   </td>
           </tr>
         </table>
           <br /></td></tr>
     </table>
	 <table width="100%" border="0">
             <tr>
               <td background="../footer.gif" height="153" bgcolor="#FFFFFF"><br />
<br />
<div align="center" class="style1">สำนักการแพทย์ กรุงเทพมหานคร เลขที่ 514  ถนนหลวง เขตป้อมปราบศัตรูพ่าย กรุงเทพฯ 10100      <br />

โทร. 0-2224-2954 , 0-2224-9711 , 0-2221-6020 , 0-2225-4966  โทรสาร 0-2226-1931 , 0-2221-6029 <br />

ติดต่อ Webmaster : webmaster@msdbangkok.go.th</div></td>
             </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox