<head>
<?php 	
require_once('../include/tc_calendar.php');

$table_name = $_SESSION['db_prefix']."_quotations";
$quote_query = "SELECT  cust_id, request_date, quote_type, project_no, project_description, project_place, company_contact, contact_phone, seller, designer  FROM $table_name WHERE  quote_no = '".$_SESSION['quote_no']."' ";
$quote_result = mySQL_query($quote_query);
$a1 = mysql_result($quote_result, 0, "cust_id");
$a2 = mysql_result($quote_result, 0, "request_date");
$a3 = mysql_result($quote_result, 0, "project_no");
$a4 = mysql_result($quote_result, 0, "project_description");
$a5 = mysql_result($quote_result, 0, "company_contact");
$a6 = mysql_result($quote_result, 0, "contact_phone");
$a7 = mysql_result($quote_result, 0, "project_place");
$a8 = mysql_result($quote_result, 0, "quote_type");
$_SESSION['designer'] = mysql_result($quote_result, 0, "designer");
$_SESSION['seller'] = mysql_result($quote_result, 0, "seller");
$cust_id = $a1;
$quote_no = $_SESSION['quote_no'];
$job_no='';

?>
<!--style sheets-->

<!--jscript-->
<script language="JavaScript" src="../jscript/numbers_only_decimal.js"  type="text/javascript"></script>  
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>


</head>
<?php include('../include/wait.php') ?>
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');" onBlur="MM_showHideLayers('wait','','hide');">
<div class="page_middle_frame">
<form id="feedbackform" method="get" action="quoteWizbase.php">
      <div class="wizard_frame">
              <?php 
		include ('../include/customer_block.php');
		echo '<br>';
		include ('../include/job_block.php')
		?>
            </div>
            <br>

            <div class="wizard_frame">
            <table  id="table_resume" width="526" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><u><?php echo $a8 ?></u><br>
                  
                  Products to quote:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                  <label class="star">*</label></td>
                <td align="left" valign="bottom"><label class="label_std">Price (excl VAT)</label></td>
              </tr>
              <tr>
                <td width="370"><textarea name="quote_line_1_text" cols="60" rows="2" class="text_box" id="quote_line_1_text" tabindex="1" autofocus><?php echo $_SESSION['quote_line_1'] ?></textarea></td>
                <td width="156" align="right" valign="bottom"><input type="text" name="quote_price_1_text" id="quote_price_1_text" style="text-align:right" value="<?php echo $_SESSION['quote_price_1'] ?>" onKeyPress="return isNumberKey(event)" onfocus = "this.select();" tabindex="2" class="text150"></td>
                </tr>
              <tr>
                <td><textarea name="quote_line_2_text" cols="60" rows="2" class="text_box" id="quote_line_2_text" tabindex="3"><?php echo $_SESSION['quote_line_2'] ?></textarea></td>
                <td align="right" valign="bottom"><input type="text" name="quote_price_2_text" id="quote_price_2_text"  style="text-align:right" value="<?php echo $_SESSION['quote_price_2'] ?>" onKeyPress="return isNumberKey(event)" onfocus = "this.select();" tabindex="4" class="text150"></td>
                </tr>
              <tr>
                <td height="36"><textarea name="quote_line_3_text" cols="60" rows="2" class="text_box" id="quote_line_3_text" tabindex="5"><?php echo $_SESSION['quote_line_3'] ?></textarea></td>
                <td align="right" valign="bottom"><input type="text" name="quote_price_3_text" id="quote_price_3_text" style="text-align:right" value="<?php echo $_SESSION['quote_price_3'] ?>" onKeyPress="return isNumberKey(event)" onfocus = "this.select();" tabindex="6" class="text150"></td>
                </tr>
            </table>
            <br>
            </div>
            
      <table width="675" height="50" align="center" id="table_button_bar">
                <tr>
                  <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;MM_goToURL('parent','quoteWizbase.php?s=&p=1');return document.MM_returnValue; MM_showHideLayers('wait','','show');" tabindex="8"/></td>
                  <td width="115">&nbsp;</td>
                  <td width="99"><input name="p" type="hidden" id="p" value="2" />
                    <input name="s" type="hidden" id="s" value="2" />
                  </span></td>
                  <td width="125" align="right"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../sales/sales_main.php');" value="Cancel" tabindex="9"/></td>
                  <td width="110" align="right"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" tabindex="7"/></td>
                </tr>
              </table></td>
          
</form>
</div>
<!--form validation-->
  <script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  //frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("quote_line_1_text","req","At least one item is required. Use the top box for the first item");
  frmvalidator.addValidation("quote_price_1_text","req","At least one quote price is required. Use the top box for the first pricing");
  </script>


	
    </body>