<? $sql="SELECT * FROM tb_company WHERE year=$_GET[year] "; $query=mysql_query($sql) or die (mysql_error()); echo $sql; while($result=mysql_fetch_assoc($query)){ ?> <div class="back"> <ol> <li style="float:left;"> <form name="frmSearch" method="get" action="search.php?code=<?=$_GET["txtKeyword"];?>&&sn=<?=$_GET["txtKeyword"];?>&&des=<?=$_GET["txtKeyword"];?>&&department=<?=$_GET["txtKeyword"];?>&&occupant=<?=$_GET["txtKeyword"];?>&&year_search=<?=$_GET["year"];?>&&company_search=<?=$result["company_name"];?>"> Search<input name="txtKeyword" type="text" id="txtKeyword" value="<? echo $_GET["txtKeyword"];?>"><input type="submit" value="Search"> </form> </li> </ol> </div> <? } ?>
<? // Search $strSQL = "SELECT * FROM tb_asset WHERE code LIKE '%".$_GET["code"]."%' or sn LIKE '%".$_GET["sn"]."%' or des LIKE '%".$_GET["des"]."%' or department LIKE '%".$_GET["department"]."%' or occupant LIKE '%".$_GET["occupant"]."%' "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); echo $strSQL; if($_GET["txtKeyword"] != ""){ ?> <ol> <li style="width:20px;"><?=$no++?></li> <? if($result['receiveDate'] !=''){?> <li style="width:70px;"><?=$result['receiveDate'];?></li> <? }else{?> <li style="width:70px;"> - </li> <? }?> <li style="width:25px; text-align:center;"><?=$result['class'];?></li> <li style="width:25px;"><?=$result['type'];?></li> <li style="width:50px;"><?=$result['owner'];?></li> <li style="width:109px;"><?=$result['code'];?></li> <? if($result['code_tcc'] !=''){?> <li style="width:109px; text-align:center;"><?=$result['code_tcc'];?></li> <? }else{?> <li style="width:109px;"> - </li> <? }?> <? if($result['sn'] !=''){?> <li style="width:250px;"><?=$result['sn'];?></li> <? }else{?> <li style="width:250px;"> - </li> <? }?> <li style="width:550px;"><?=$result['des'];?></li> <? if($result['price'] !=''){?> <li style="width:109px;"><?=$result['price'];?></li> <? }else{?> <li style="width:109px;"> - </li> <? }?> <? if($result['po'] !=''){?> <li style="width:109px;"><?=$result['po'];?></li> <? }else{?> <li style="width:109px;"> - </li> <? }?> <? if($result['pv'] !=''){?> <li style="width:109px;"><?=$result['pv'];?></li> <? }else{?> <li style="width:109px;"> - </li> <? }?> <li style="width:109px;"><?=$result['department'];?></li> <li style="width:150px;"><?=$result['occupant'];?></li> <li style="width:103px;"><?=$result['place'];?></li> <li style="width:150px;"><?=$result['company'];?></li> <? if($result['buy_from'] !=''){?> <li style="width:250px;"><?=$result['buy_from'];?></li> <? }else{?> <li style="width:250px;"> - </li> <? }?> <? if($result['status'] !=''){?> <li style="width:150px;"><?=$result['status'];?></li> <? }else{?> <li style="width:150px;"> - </li> <? }?> <li style="width:350px;"><?=$result['notes'];?></li> <? if($result['files'] !=''){?> <li style="width:305px;"><a href="files/<?=$result['files'];?>.pdf"><?=$result['files'];?></a></li> <? }else{?> <li style="width:305px;"> - </li> <? }?> </ol> <ol> <li> </li> </ol> <? } ?>
<form name="frmSearch" method="get" action="search.php?code=<?=$_GET["txtKeyword"];?>&&sn=<?=$_GET["txtKeyword"];?>&&des=<?=$_GET["txtKeyword"];?>&&department=<?=$_GET["txtKeyword"];?>&&occupant=<?=$_GET["txtKeyword"];?>&&year_search=<?=$_GET["year"];?>&&company_search=<?=$result["company_name"];?>">
http://localhost/asset/search.php?txtKeyword=Monitor
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง