<?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_gemstone; ?></td>
                <td><select name="gemstone_id">
                    <?php foreach ($gemstonelists 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_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>
		  <tr>
                <td><?php echo $entry_size; ?></td>
                <td><select name="size_code">
                    <?php foreach ($sizes as $size) { ?>
                    <?php if ($size['size_code'] == $size_code) { ?>
					<?php echo $size['size_code']; ?>
                    <option value="<?php echo $size['size_code']; ?>" selected="selected"><?php echo $size['size_code']; ?></option>
                    <?php } else { ?>
                    <option value="<?php echo $size['size_code']; ?>"><?php echo $size['size_code']; ?></option>
                    <?php } ?>
                    <?php } ?>
                  </select></td>
          </tr>
		   <tr>
            <td><span class="required">*</span> <?php echo $entry_weight; ?></td>
            <td><input type="text" name="weight" value="<?php echo $weight; ?>" />
              <?php if ($error_weight) { ?>
              <span class="error"><?php echo $error_weight; ?></span>
              <?php  } ?></td>
          </tr>
		 
		   
		   
		   
		  
	
        </table>
      </form>
    </div>
  </div>
</div>
<?php echo $footer; ?>