<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/customer.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td><span class="required"></span> <?php echo 'Sketch ID :'; ?></td>
            <td><input type="text" readonly name="sketch_id" value="<?php echo $sketch_id; ?>" /> 
          </tr>
        <!--  <tr>
            <td> <?php echo 'Enter Product ID :'; ?></td>
            <td><input type="text" name="product_id" value="<?php echo $product_id; ?>" />
             </td>
          </tr> -->
		  <tr>
             <td> <?php echo 'Product Name:'; ?></td>
              <td><select name="product_id">
                  <option value="0">None</option>
                  <?php foreach ($products as $product) { ?>
                  <?php if ($product['product_id'] == $product_id) { ?>
                  <option value="<?php echo $product['product_id']; ?>" selected="selected"><?php echo $product['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $product['product_id']; ?>"><?php echo $product['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
            </tr>
		  
		  
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>