<!--100% desenvolvido pelo otanger e.drink@hotmail.com -->
<? session_start();
include 'cnn.php';
$serial = ($_POST['serial']);
if(empty($serial)) {
echo "<script>alert('Coloque um serial para poder rastrear'); 
	location='javascript:history.back()'</script>";	
}
?>
<head>
<link rel="stylesheet" href="pink.css" type="text/css" />
<style type="text/css">
table.sample td {
	padding-right: 3px;
	padding-left: 3px;
	padding-top: 1px;
	padding-bottom: 1px;
}
.head {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
}
.rank {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	color: #FFFFFF;
}
body {
	background-image: url();
	background-color: #CCCCCC;
}
.fgdffg {
	color: #FFF;
	font-weight: bold;
}
.ioiop {
	color: #CCF;
}
.style10 {color: #FF0033; font-weight: bold; }
body p {
	color: #CCC;
}
dsdsds {
	color: #CCC;
}
body,td,th {
	color: #FFF;
	font-weight: bold;
}
dsads {
	color: #CCF;
}
bghjghj {
	color: #CCF;
}
.style22 {color: #000000; font-weight: bold; }
.style23 {color: #000000}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/JavaScript">
<!--


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>



<body text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<table width="300" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="16"><h1 class="style23"><strong>Rastreador de Item Por Serial</strong></h1></td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="619" height="160" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="21" colspan="2" valign="top"><span class="style23">* Caso aparecer mais de um resultado fique atento verifique pois pode ser Duper</span></td>
  </tr>
  <tr>
    <td width="294" height="21" align="center" valign="top"><p class="style22">Item Bau</p></td>
    <td width="319" align="center" valign="top"><p class="style22">Item Iventario</p></td>
  </tr>
  <tr>
    <td width="294" height="92" valign="top"><div align="center"><span class="fgdffg">
      <? 
			  $Top = mssql_query("Select AccountID FROM warehouse Where (Charindex (0x$serial, warehouse.items) %10=4)");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			
			  echo '
			<span class="ioiop">'.$DadosTop[0].'</span><br>


				'; } ?>
    </span></div></td>
    <td valign="top"><div align="center"><span class="fgdffg">
      <? 
			  $Top = mssql_query("Select Name FROM character
Where (Charindex (0x$serial, character.inventory) %10=4)
");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			
			  echo '
			<span class="ioiop">'.$DadosTop[0].'</span><br>
				'; }  ?>
    </span><span class="fgdffg"></span><span class="ioiop"></span></div></td>
  </tr>
  <tr>
    <td height="21" colspan="2" align="center" valign="top"><strong><span class="style10">Caso n&atilde;o apare&ccedil;a nada, nenhum resultado foi encontrado</span></strong><span class="style10"></span></td>
  </tr>
</table>
<p><a href="javascript:history.back(-1);" class="style23">&lt;&lt; voltar </a></p>
<!--100% desenvolvido pelo otanger e.drink@hotmail.com -->