<link rel="stylesheet" href="css/jquery-ui.css" />
<link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
<script src="js/jquery/jquery.js" type="text/javascript"></script>
<script src="js/jquery/jquery-1.8.2.js"></script>
<script src="js/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery/autocomplete_jquery_plugin.js"></script>
<script src="js/item_creation_ajax.js"  type="text/javascript"></script>

<script>
/*********************************Pop-up window for add form********************************************************/

function add_new_measurement(url)
	{
	onmouseover6= window.open(url,'onmouseover6','height=250,width=500,scrollbars=yes,resizable=no,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no');
	}

</script>

<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include ("include/db.php");
if($_GET['edit_id']!='')
{
$measurement_table_display_style='style="display:inline;"';
} 
else
{
$measurement_table_display_styles='style="display:none;"';
}
?>

<style type="text/css">

.style2 {color: #FF0000}
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.style8{ text-align:center;font-family:Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; padding:40px; font-weight: 500;color:#32328e;letter-spacing: 1px;}
.style9{ text-align:left;font-family:Tahoma, Arial, Helvetica, sans-serif; font-size: 15px; padding:0px; font-weight: 600;color:#333;letter-spacing: 1px;padding:10px; background-color:#f7f7f7;}

</style>

<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="table-responsive">

<form name="measurement_form"  id="measurement_form" method="post" action=""  enctype="multipart/form-data">

<table width="100%" border="0" align="center" style="border-top:solid 1px; color:#ddd;">

   		<tr align="left"><div class="style9">Measurement Creation &nbsp;&nbsp;
    
                     <td width="12%" align="left"><img src="img/plus.png" name="add_button" id="add_button" title="ADD" onclick="javascript:add_new_measurement('master_entry/measurement_creation/measurement_entry.php?edit_id=<?php echo $_GET['edit_id'];?>')" align="top" width="30" height="30" border="0" tabindex="4" style="cursor:pointer; margin-left:15%; margin-top:-34px;" class="button green-button" >
</td></div><tr></table>

<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="15%" align="center" class="style15"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="15%" class="style10"><table width="100%" cellpadding="0" cellspacing="0">
  
  
  <tr>
    <td colspan="10" align="center"><div id="measurement_list_div">
      
        <?php include("measurement_entry_list.php"); ?></div>
     
    </td>
  </tr>
</table></td>
    </tr>
</table></td>
</tr>
</table>
</form>

</div>
</div>
</div>
</div>