<?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><?php echo $entry_gemstone; ?></td>
			<td><select name="gemstone_id">
                    <?php foreach ($gemstones as $gemstonelist) { ?>
                    <?php if ($gemstonelist['gemstone_id'] == $gemstone_id) { ?>
                    <option value="<?php echo $gemstonelist['gemstone_id']; ?>" selected="selected"><?php echo $gemstonelist['gemname']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $gemstonelist['gemstone_id']; ?>"><?php echo $gemstonelist['gemname']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
          <tr>
            <td><?php echo $entry_clarity; ?></td>
            
			  <td><select name="clarity_id">
                    <?php foreach ($claritymasters as $claritymaster) { ?>
                    <?php if ($claritymaster['clarity_id'] == $clarity_id) { ?>
                    <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_color; ?></td>           
			  
			<td><select name="colour_id">
                    <?php foreach ($colourmaster as $lowcolorclarity) { ?>
                    <?php if ($lowcolorclarity['colour_id'] == $colour_id) { ?>
                    <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>
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>