<?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 $entry_code; ?></td>
            <td>
            	<input type="text" name="code" value="<?php echo $code; ?>" />
              	<?php if ($error_code) { ?>
              		<span class="error"><?php echo $error_code; ?></span>
              	<?php  } ?></td>
          </tr>
         -->
         <input type="hidden" name="code" value="0" />
		   <tr>
                <td><?php echo $entry_lowclarity; ?></td>
                <td><select name="lowclarity">
                    <?php foreach ($claritymasters as $claritymaster) { ?>
                    <?php if ($claritymaster['clarity_id'] == $lowclarity) { ?>
                    <option value="<?php echo $claritymaster['clarity_id']; ?>" selected="selected"><?php echo $claritymaster['clarity_code'] . ' - ' . $claritymaster['clarity_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $claritymaster['clarity_id']; ?>"><?php echo $claritymaster['clarity_code']. ' - ' . $claritymaster['clarity_id'];; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		   <tr>
                <td><?php echo $entry_highclarity; ?></td>
                <td><select name="highclarity">
                    <?php foreach ($highclaritymasters as $highclaritymaster) { ?>
                    <?php if ($highclaritymaster['clarity_id'] == $highclarity) { ?>
                    <option value="<?php echo $highclaritymaster['clarity_id']; ?>" selected="selected"><?php echo $highclaritymaster['clarity_code'] . ' - ' . $highclaritymaster['clarity_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $highclaritymaster['clarity_id']; ?>"><?php echo $highclaritymaster['clarity_code']. ' - ' . $highclaritymaster['clarity_id'];; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		    <tr>
                <td><?php echo $entry_lowcolor; ?></td>
                <td><select name="lowcolour">
                    <?php foreach ($lowcolorclaritys as $lowcolorclarity) { ?>
                    <?php if ($lowcolorclarity['colour_id'] == $lowcolour) { ?>
                    <option value="<?php echo $lowcolorclarity['colour_id']; ?>" selected="selected"><?php echo $lowcolorclarity['colour_code']. ' - ' . $lowcolorclarity['colour_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $lowcolorclarity['colour_id']; ?>"><?php echo $lowcolorclarity['colour_code']. ' - ' . $lowcolorclarity['colour_id']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		    <tr>
                <td><?php echo $entry_highcolor; ?></td>
                <td><select name="highcolour">
                    <?php foreach ($highcolorclaritys as $highcolorclarity) { ?>
                    <?php if ($highcolorclarity['colour_id'] == $highcolour) { ?>
                    <option value="<?php echo $highcolorclarity['colour_id']; ?>" selected="selected"><?php echo $highcolorclarity['colour_code']. ' - ' . $highcolorclarity['colour_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $highcolorclarity['colour_id']; ?>"><?php echo $highcolorclarity['colour_code']. ' - ' . $highcolorclarity['colour_id']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_lowweight; ?></td>
            <td><input type="text" name="lowweight" value="<?php echo $lowweight; ?>" />
              <?php if ($error_lowweight) { ?>
              <span class="error"><?php echo $error_lowweight; ?></span>
              <?php  } ?></td>
          </tr>
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_highweight; ?></td>
            <td><input type="text" name="highweight" value="<?php echo $highweight; ?>" />
              <?php if ($error_highweight) { ?>
              <span class="error"><?php echo $error_highweight; ?></span>
              <?php  } ?></td>
          </tr>
		   <tr>
                <td><?php echo $entry_shape; ?></td>
                <td><select name="shape">
                    <?php foreach ($gemshapes as $gemshape) { ?>
                    <?php if ($gemshape['shape_id'] == $shape) { ?>
                    <option value="<?php echo $gemshape['shape_id']; ?>" selected="selected"><?php echo $gemshape['shape']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $gemshape['shape_id']; ?>"><?php echo $gemshape['shape']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
          <input type="hidden" name="pricepercarat" value="0" />
          <input type="hidden" name="priceperpiece" value="0" />
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_variation; ?></td>
            <td><input type="text" name="variation" value="<?php echo $variation; ?>" />
              <?php if ($error_variation) { ?>
              <span class="error"><?php echo $error_variation; ?></span>
              <?php  } ?></td>
          </tr>
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_clarity_default; ?></td>
            <td><select name="clarity_default">
                    <?php foreach ($claritydefaultmasters as $claritydefaultmaster) { ?>
                    <?php if ($claritydefaultmaster['clarity_id'] == $clarity_default) { ?>
                    <option value="<?php echo $claritydefaultmaster['clarity_id']; ?>" selected="selected"><?php echo $claritydefaultmaster['clarity_code'] . ' - ' . $claritydefaultmaster['clarity_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $claritydefaultmaster['clarity_id']; ?>"><?php echo $claritydefaultmaster['clarity_code']. ' - ' . $claritydefaultmaster['clarity_id'];; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_colour_default; ?></td>
             <td><select name="colour_default">
                    <?php foreach ($lowcolordefaultclaritys as $lowcolordefaultclarity) { ?>
                    <?php if ($lowcolordefaultclarity['colour_id'] == $colour_default) { ?>
                    <option value="<?php echo $lowcolordefaultclarity['colour_id']; ?>" selected="selected"><?php echo $lowcolordefaultclarity['colour_code']. ' - ' . $lowcolordefaultclarity['colour_id']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $lowcolordefaultclarity['colour_id']; ?>"><?php echo $lowcolordefaultclarity['colour_code']. ' - ' . $lowcolordefaultclarity['colour_id']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
          
		

          
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>