<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="bootstrap/css/base.css">
<link rel="stylesheet" href="bootstrap/css/skeleton.css">
<link rel="stylesheet" href="bootstrap/css/layout.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="bootstrap/js/jquery-1.6.1.min.js" type="text/javascript"></script>
<link type"text/css" rel="Stylesheet" href="bootstrap/css/bootstrap.css" />
<meta charset="UTF-8">
<link rel="stylesheet" href="bootstrap/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<title>AFM ASS</title>
		<style type="text/css" media="screen">

			ul li { display: inline; }

		</style>
</head>

<body>
	<div class="row clearfix">
		<div class="col-md-12 column">
		</div>
	</div>
    	<div class="row clearfix">
		<div class="col-md-12 column">
		</div>
	</div>
    	<div class="row clearfix">
		<div class="col-md-12 column">
		</div>
	</div>
<div class="container">
	<div class="row clearfix">
	  <div class="col-md-12 column">
			<div class="page-header">
				<h1>
					AFM Asset Management <small>ระบบการจัดการสินทรัพย์บริษัท เอ เอฟ เอ็ม จำกัด</small>
				</h1>
			</div>
<form name="frmMain" method="post" action="saveimg.php" enctype="multipart/form-data">
			<?php include("navbartop.php"); ?>
            <?php include("connect.php");
			$strSQL = " SELECT * FROM tb_gadget,tb_department,tb_gadgettype
where
tb_gadget.Gadgettype_id = tb_gadgettype.Gadgettype_id
AND
tb_gadget.Department_user = tb_department.Department_id
AND tb_gadget.Gadget_id = '".$_GET["img_id"]."' ";
$result_show = mysql_query($strSQL) or die(mysql_error());
$row_show = mysql_fetch_array($result_show);
			?>
        <div align="center">
		  <table class="table table-bordered table-hover">
          <tr>
          	<div class="form-group">
            <img src="img/Camera-icon.png" align="absbottom" width="100" height="100">
            <h3>อัพโหลดรูปภาพ <h4><?php echo $row_show['Gadgettype'] ?> <?php echo $row_show['Brand'] ?> <?php echo $row_show['Model'] ?></h4></h3>
             <div class="col-sm-10">
             
				<input type="file"  multiple="ture" name="filUpload[]" class="form-control">
                <input type="hidden" name="gadgetid" class="form-control" value="<?php echo $_GET["img_id"]?>">
				<span id="mySpan"></span>
            </div>
            </div>
         </tr>
          <tr>
          <button type="submit" class="btn btn btn-info">
  				<span>เพิ่มรูปภาพ</span>
				</button>
          </tr>
          </table>
          <a href="viewgadget.php?view_id=<?php echo $_GET["img_id"]?>">
          <button type="button" class="btn btn  btn-warning">
  				<span>ย้อนกลับ</span>
				</button>
                </a>
          </div>
	  </form>
<script src="js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<?php include("footer.php"); ?>
</body>
</html>