<? 
/*
Author		: Sue
Version		: 1.01
Date			: 25th March 2002
Function		: User Listing
*/ 
session_start();
require ("auth.php");
if ($Transmarco["accesslevel"] < $public) {
	authfail();
} else { 

		$sql = "select * from inventoryprofile where invid=$id";
		$result = db_query($sql);
		for ($x = 0;$x < db_numrows($result);$x++) {
			$row = db_fetch_array($result,1);
			$currentinvid = $row["invid"];
			$currentinvgroupcode = $row["invgroupcode"];
			$currentinvnumber = $row["invnumber"];
			$currentinvdesc = $row["invdesc"];
			$currentinvsizerange = $row["invsizerange"];
			$currentinvsupplier = $row["invsupplier"];
			$currentinvcost = $row["invcost"];
			$currentinvdeliverydatetime = $row["invdeliverydatetime"];
			$currentinvrefno = $row["invrefno"];
			$currentinvqty = $row["invqty"];
			$currentinvretailprice = $row["invretailprice"];
			$currentinvcreatedbyuser = ucwords($row["invcreatedbyuser"]);
			$currentinvremarks = $row["invremarks"];
			$currentinvimg = $row["invimg"];
			$currentinvlock = $row["invlock"];
			$currentinvedit = $row["invedit"];

			$currentmodel = $currentinvgroupcode . $currentinvnumber;

			$sqlcolourdisplay = "select * from colourinv where invid='$currentinvid'";
			$resultcolourdisplay = db_query($sqlcolourdisplay);
			for ($y = 0;$y < db_numrows($resultcolourdisplay);$y++) {
				$rowcolourdisplay = db_fetch_array($resultcolourdisplay,$y);
				$currentcolourname = $rowcolourdisplay["colourname"];
				$availablecolours = $availablecolours . $currentcolourname . " ";
				}

		} ?>

<style type="text/css">
<!--
/*A:link {color:#EEEEEE;text-decoration: none}
A:visited {color:#990066;text-decoration: none}
A:hover {color:#990066;text-decoration: underline}*/

p {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}
br {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}
td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}
font {line-height: 16px;}
body { background-color: #FFFFFF; background-attachment: fixed; background-image: url("<? echo $images ?>scbg.gif"); background-repeat: no-repeat; background-position: left top}
-->
</style>
<script language="JavaScript"><!--
self.moveTo(0,0)
//--></script>
<title>Product View - Model [<? echo $currentmodel?>]</title>
<body leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="100%" bordercolor="#DDDDDD">
  <tr> 
    <td valign="top" height="370"> 
      <table width="100%" height="100%" cellspacing="0" cellpadding="8" border="0">
        <tr> 
          <td align="center" valign="middle"><a href="javascript:window.print()"><img src="<? echo $docroot . "/catalog/". $currentinvimg ?>" border=0 alt="Click on image to print"></a></td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC" valign="top" height="80"> 
      <table border="0" cellspacing="0" cellpadding="20" width="100%" bgcolor="#EEEEEE" height="100%">
        <tr> 
          <td valign="top" width="40%">
            <p>Model Range: 
              <? echo $currentmodel ?>
            </td>
          <td valign="top" width="60%"> 
            <p>Color: 
              <? echo $availablecolours ?>
            <p> Size: 
              <? echo $currentinvsizerange ?>
            </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
<?}?>