
<? error_reporting(0);
    require 'include/configurations.php'; // ITECHBIDS Configuration File 
?>

<form  action="<? $_SERVER['PHP_SELF']?>" method="post" name="frm13" enctype="multipart/form-data">
<table border="0" align="center" cellpadding="5" cellspacing="2" width="80%" class="ft">
<tr class="ct" height="25">
<td colspan="4"> Membership Levels</td>
</tr>
<?
$auction_query="select * from membership_level";
$table=mysql_query($auction_query);
$total=mysql_num_rows($table);
$i=1;
?>
<tr class="ct" height="25">
  <td><strong>Feedback Score From</strong></td>
    <td><strong>Feedback Score To</strong></td>
  <td>Icon</td>
  <td align="center"> Delete</td>
</tr>
<?
while($row=mysql_fetch_array($table))
{
?>
	 <tr >
     <td width="25%">
	 <input type="hidden" name="records_id<?= $i ?>" value="<?= $row['mid'] ?>" />
	 <input class="smalltxt" type="text" class="bluetext"name="score<?= $i ?>" value="<?= $row['feedback_score_from'] ?>" ></td>
	  <td width="25%">
	 <input class="smalltxt" type="text" class="bluetext"name="scoreto<?= $i ?>" value="<?= $row['feedback_score_to'] ?>" ></td>
	 <td><img src="../images/<?= $row['icon'] ?>" /></td>
     <td width="25%" align="center"> 
	 <input type="checkbox" name="memberlevel_del<?= $i++ ?>" value="0">
	 </td>
     </tr>
<?
 }
?>
<tr  >
<td align="center" colspan="2">
<input type="hidden" name="total_records" value="<?= $total?>" />
<input type="submit" class="button"   value=" Modify " name="memberlevel_modify" ></td>
<td align="center" colspan="2"><input type="submit" class="button"   value=" Delete " name="memberlevel_delete" ></td>
</tr>
     <tr   >
     <td width="25%"><input  class="smalltxt" type="text" class="bluetext"name="score" ></td>
	  <td width="25%"><input  class="smalltxt" type="text" class="bluetext"name="scoreto" ></td>
	 <td width="25%"><input type="file" name=imgicon  /> </td>
	 <td width="25%" align="center">
	 <input type="submit" class="button"   value=" Add " name="memberlevel_add" ></td>
	 </tr> 
</table>
</form>
<br>
<script language="javascript">
function checkpermission(val,tot)
{
//alert('hai');
//alert(tot);
//alert(document.forms[0].elements.length);
var coun=document.forms[0].elements.length;
	for(i=0;i<coun;i++)
	{
		if(val=="yes")
		{
			if(document.forms[0].elements[i].type=="text")
			{
				document.forms[0].elements[i].disabled=true;
			}
		}
		if(val=="no")
		{
			if(document.forms[0].elements[i].type=="text")
			{
				document.forms[0].elements[i].disabled=false;
			}
		}
	}

}

</script>