<?php include("../../include/dbconnect.php");?>
<title>Product Master Creation</title>

<body background="../../images/blater01.gif" topmargin=0>
<center>
<form method="Post" action="entry.php">
<table cellpadding=0 cellspacing=4 width=590>
<tr>
    <td style="padding:3px;" colspan=2 bgcolor="#93BEE2"><font face="Arial, Helvetica, sans-serif" ><b>New 
      Account Head</b></font></td>
</tr><tr valign="top"><td colspan=2>
<font >&nbsp;</font>
</td>
</tr>

  <tr> 
    <td > <font face="Arial, Helvetica, sans-serif" class="sbd"><b>Account Group</b></font> 
    </td>
    <td colspan=2> <font face="Arial, Helvetica, sans-serif"> 
      <select name=accthead>
        <?php
$query = "select acctcode,groupname  from acctgroup order by groupname";
$query = stripslashes($query);
$result= mysqli_query($conn,$query) or
      die (mysqli_error() );
     while($row=mysqli_fetch_row($result) )
       {
        echo "<option value='$row[0]'>";
	echo $row[1];
	echo "\n";
	}
?>
      </select>
      </font></td>
  </tr>
    <td><font face="Arial, Helvetica, sans-serif"><b>Description </b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text" onKeyPress="return event.keyCode!=13" size="50" name="description" >
      </font></td>
  </tr>
  
  </tr>
    <td><font face="Arial, Helvetica, sans-serif"><b>Opening Balance </b></font></font></td>
    <td> <font face="Arial, Helvetica, sans-serif"> 
      <input type="text" onKeyPress="return event.keyCode!=13" size="50" name="opening_balance" >
      </font></td>
  </tr>  
  
    </tr>
      <td><font face="Arial, Helvetica, sans-serif"><b>Status Debit / Credit</b></font></font></td>
        <td> <font face="Arial, Helvetica, sans-serif"> 
	<select name="db_cr">
	<option value="DR">Debit</option>
	<option value="CR">Credit</option>
	</select>
      </font></td>
  </tr>

  <table cellpading=0 cellspacing=10 width= 50>
    <tr> 
      <blockquote> 
        <td> <input type =submit name=submit value = "Submit"></td>
        <td><input type="reset" name="reset" value="Clear"></blockquote></td>
  </table>
</table>
<br><br><font size=1><center><a href= "index.html">Return to index page</a></center></font>

                                                                             
</body>

</form>
