<?php include("../../include/dbconnect.php");?>
<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<title>WPT WILSON PRESS TOOLS</title>

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

<script language="javascript">
function addone()
{
var a = parseFloat(document.getElementById("h1").value);
var b=parseFloat(document.getElementById("h2").value);
var c=parseFloat(document.getElementById("h3").value);
var d=parseFloat(document.getElementById("h4").value);
var e = a + b + c + d;
document.getElementById("h5").value=e;
 
}
</script>
<script language="javascript">
function add()
{
var f=parseFloat(document.getElementById("h5").value);
var g=parseFloat(document.getElementById("h6").value);
var h =  f - g ;
document.getElementById("h7").value=h;
 
}
</script>


</head>

<body lang=EN-US>

<div class=Section1>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0
 style='border-collapse:collapse;border:none'>
 <tr>
  <td width=590 colspan=7 valign=top style='width:6.15in;border:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><i><span
  style='font-size:14.0pt'>WPT WILSON PRESS TOOLS</span></i></b></p>
  <p class=MsoNormal>                                         <span
  style='font-size:10.0pt'>Admn. Office &amp; Works</span></p>
  <p class=MsoNormal><span style='font-size:10.0pt'>                                                    
  572, Avanashi Road, Coimbatore – 641 037.</span></p>
  <p class=MsoNormal><span style='font-size:10.0pt'>                                      
           Phone : 0422-2214605, 2215965 Fax : 0422-2211407</span></p>
  <p class=MsoNormal><span style='font-size:10.0pt'>                                       
          Email : wilpretool@yahoo.com</span></p>
  <p class=MsoNormal>&nbsp;</p>  </td>
 </tr>
 <form name="myForm02" method="Post"  action="save.php">
<?php 
//echo "customer". "$bcd";
//echo "prod" . "$prod";
$bcode="&bcd";
$prodcode="$prod";
?>
<input type="hidden" name="bcode" value=<? echo($bcd);?> >
<input type="hidden" name="prodcode" value=<? echo($prod);?> >
<?
$bkquery = mysql_query("SELECT bcode, prodname, drawing_no, prodcode
FROM product WHERE prodcode = '$prod' AND bcode = '$bcd'")or die( mysql_error() );
$row2 = mysql_fetch_row($bkquery);

$stQuery = mysql_query("select bcode,name,unit, address1, address2, city, buyertype from buy  where bcode= '$bcd' order by name")or die( mysql_error() );
$row1 = mysql_fetch_row($stQuery);

$result = mysql_query("select compcode,account_year from company where compcode like '%$compcode' ") or die(mysql_error());
$row = mysql_fetch_row($result);


?>
<input type="hidden" name="account_year" value=<? echo($row[1]);?> >
<?

$result = mysql_query("select max(quot_refno) from quotation where account_year = '$row[1]' ") or die(mysql_error());
$row = mysql_fetch_row($result);
$quot_refno = $row[0]+1;
?>

<SCRIPT LANGUAGE="JavaScript" src="../../include/CalendarPopup.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var cal = new CalendarPopup();
</SCRIPT>
<?
if(empty($sdt))
{
  $sdt=strftime ("%d/%m/%Y", mktime (0,0,0,date("m"),date("d"),date("Y"))); 
}?>
 <tr>
  <td width=295 colspan=3 valign=top style='width:221.35pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>To</p>
  <p class=MsoNormal>M/s.<INPUT  VALUE="<?=$row1[1]?>" size="40" readonly  ></p>
  <p class=MsoNormal><INPUT  VALUE="<?=$row1[2]?>" size="45" readonly </p>
  <p class=MsoNormal> <INPUT  VALUE="<?=$row1[3]?>"  size="45"readonly</p>
  <p class=MsoNormal> <INPUT  VALUE="<?=$row1[4]?>" size="45" readonly</p>  </td>
  <td width=295 colspan=4 valign=top style='width:221.45pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal align=center style='text-align:center'><b>QUOTATION</b></p>
  <p align="left" class=MsoNormal>Quotation No :<input name="quot_refno" type="text" value="<?=$quot_refno?>" size="15">
  </p>  
  <p align="left" class=MsoNormal>Quotation Date :
  <INPUT NAME="sdt" TYPE="text" class="text_box_button" VALUE="<?=$sdt?>" SIZE="12" readonly  >
  <A HREF="#" onClick="cal.select(document.myForm02.sdt,'anchor1','dd/MM/yyyy'); return false;"NAME="anchor1" ID="anchor1"><img  src="../../images/cal.gif" border="0"></A> <BR>
  </p>
  <p align="left" class=MsoNormal>Kind Attn : <input type="text" name="attn" value=''></p>  </p>
  <p align="left" class=MsoNormal>Your Ref : <input type="text"    onKeyPress="return event.keyCode!=13"   name="yr_refno"  value= '' > </p>
 
<div align="left">
<?
if(empty($ydt))
{
  $ydt=strftime ("%d/%m/%Y", mktime (0,0,0,date("m"),date("d"),date("Y"))); 
}?>
 </div>
      <p align="left" class=MsoNormal>Date : <INPUT NAME="ydt" TYPE="text" class="text_box_button" VALUE="<?=$ydt?>" SIZE="15" readonly  >
  <A HREF="#" onClick="cal.select(document.myForm02.ydt,'anchor1','dd/MM/yyyy'); return false;"NAME="anchor1" ID="anchor1"><img  src="../../images/cal.gif" border="0"></A> <BR>
  </p>

  <p class=MsoNormal>&nbsp;</p>  </td>
 </tr>
 <tr>
  <td width=590 colspan=7 valign=top style='width:6.15in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>We thank you very much for your enquiry,</p>
  <p class=MsoNormal>We offer below our lowest rate, which will be most
  competive and acceptable to you</p>  </td>
 </tr>
 <tr>
  <td width=47 valign=top style='width:35.15pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>S.No</p>  </td>
  <td width=128 valign=top style='width:96.15pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>DRAWING NO</p>  </td>
  <td width=200 colspan=3 valign=top style='width:150.1pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>DESCRIPTION</p>  </td>
  <td width=97 valign=top style='width:72.8pt;border-top:none;border-left:none;
  border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>MATERIAL OFFERED</p>  </td>
  <td width=118 valign=top style='width:88.6pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal>PRICE / UNIT Rs.</p>  </td>
 </tr>
 <tr style='height:260.5pt'>
  <td width=47 valign=top style='width:35.15pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:260.5pt'>
  <p class=MsoNormal>
    <input name="Input"  value="1" size="5" readonly  >
    &nbsp;</p>  </td>
  <td width=128 valign=top style='width:96.15pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:260.5pt'>
  <p class=MsoNormal><INPUT  VALUE="<?=$row2[2]?>" name= "drawing_no" readonly> &nbsp;</p>  </td>
  <td width=200 colspan=3 valign=top style='width:150.1pt;border-top:none;
  border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:260.5pt'>
  <p class=MsoNormal> <INPUT  VALUE="<?=$row2[1]?>" name="prodname" readonly>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>Raw Material :<input type="text" name="rawwgt" value='' size="5"> @<input type="text" name="rawrate" value='' size="1"></p>
  <p class=MsoNormal> </p>
  <p class=MsoNormal> <input type="text" name="invper" value='' size="1">%Inventory Carrying Cost:</p>
  <p class=MsoNormal>Process Cost :</p>
  <p class=MsoNormal>O.H. &amp; Margin :           </p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;(-)Scrap realization    </p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;&nbsp;Tool Cost :             </p>
    <p class=MsoNormal>&nbsp;</p></td>
  <td width=97 valign=top style='width:72.8pt;border-top:none;border-left:none;
  border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:260.5pt'>
  <p class=MsoNormal><input type="text" name="rawoffer" value='' size="15"></p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal> </p>
  <p align="right" class=MsoNormal>
    <input type="text" name="invcost" id="h1" value='' size="15"></p>
    <p align="right" class=MsoNormal>  <input type="text" id="h2" name="rawcost" value='' size="15"></p>
  <p align="right" class=MsoNormal><input type="text" id="h3" name="processcost" value='' size="15"></p>
  <p align="right" class=MsoNormal><input type="text" id="h4" name="admnexp" value='' size="15"></p>
  <div style='border-top:solid windowtext 1.0pt;border-left:none;border-right:none;padding:1.0pt 0in 1.0pt 0in'>
    <p align="right" class=MsoNormal style='border:none;padding:0in'><input type="text" name = "subtot" id="h5" value='' size="15"  onFocus="addone()">  </p>
  </div>
  <p align="right" class=MsoNormal><input type="text" id="h6" name="scrapcost" value='' size="15"></p>
   <div style='border-top:solid windowtext 1.0pt;border-left:none;border-right:none;padding:1.0pt 0in 1.0pt 0in'>
    <p align="right" class=MsoNormal style='border:none;padding:0in'><input type="text" id="h7" name="tot" value='' size="15" onFocus="add()">  </p>
  </div>
  <p align="right" class=MsoNormal>&nbsp;&nbsp;<input type="text"  name="tlcost" value='' size="15"></p>  </td>
  <td width=118 valign=top style='width:88.6pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:260.5pt'>
  <p class=MsoNormal>  <input type="text"    onKeyPress="return event.keyCode!=13"   name="price"  value= '' >&nbsp;</p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=331 colspan=4 valign=top style='width:3.45in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p align="left" class=MsoNormal>Delivery Period :<input type="text" name="delperiod" value='' size="43"></p>  </td>
  <td width=259 colspan=3 rowspan=5 valign=top style='width:2.7in;border-top:
  none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal>Thanking You,</p>
  <p class=MsoNormal>Yours Faithfully,</p>
  <p class=MsoNormal><b>For Wilson Press Tools</b></p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>&nbsp;</p>
  <p class=MsoNormal>                        Authorised Signatory</p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=331 colspan=4 valign=top style='width:3.45in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal>Sales Tax :<input type="text" name="st" value='' size="49"></p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=331 colspan=4 valign=top style='width:3.45in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal>Excise Duty :<input type="text" name="exduty" value='' size="46"></p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=331 colspan=4 valign=top style='width:3.45in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal>P &amp; F Charges :<input type="text" name="pandf" value='' size="43"></p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=331 colspan=4 valign=top style='width:3.45in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal>Payment Terms :<input type="text" name="payterms" value='' size="43"></p>  </td>
 </tr>
 <tr style='height:17.5pt'>
  <td width=590 colspan=7 valign=top style='width:6.15in;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:17.5pt'>
  <p class=MsoNormal><i><span style='font-size:9.0pt'>SPECIALISTS IN TOOLINGS /
  SHEETMETAL BLANKINGS / FORMINGS AND PRESSED COMPONENTS</span></i></p>  </td>
 </tr>
 <tr height=0>
  <td width=47 style='border:none'></td>
  <td width=128 style='border:none'></td>
  <td width=120 style='border:none'></td>
  <td width=36 style='border:none'></td>
  <td width=44 style='border:none'></td>
  <td width=97 style='border:none'></td>
  <td width=118 style='border:none'></td>
 </tr>
</table>

<p class=MsoNormal>&nbsp;</p>

</div>
<table cellpading=0 cellspacing=10 width= 700>
<tr> 
      <td align="center">  <input type =submit name="submit" value = "Submit"></td>
</tr>
</table>
</form>
<br><br><font size=1><center><a href= "index.html">Return to index page</a></center></font>
</body>

</html>
