<style>
 td{font-family:verdana;font-size:14;color:black;}
 th{font-family:verdana;font-size:14;color:white;background-color:#5b5858}
 body{background-color:ivory;}
 input
  {border-style:ridge;
   border-color:#22437f;
   background-color:white;
   height:25px;
   border-size=1;
   font-family:sans-serif;
   color:BLACK;
  }
</style><center>
<p>&nbsp;<p>&nbsp;<p>&nbsp;
<?

include("opendb.php");
include("test.php");
$dtcheck1=mysqli_query($db,'select acfrom,acto from acperiod') or die(mysqli_error());
$dtrow=mysqli_fetch_array($dtcheck1);
 $acfr=explode('-',$dtrow[0]);
 $act=explode('-',$dtrow[1]);
  print $acfrom[2].$acto[2];

?>

<font face=verdana size=4>
<form action="tbdw.php">
<table border=0>
<tr><td colspan=2 bgcolor=#5b5858 align=center><font color=white size=4><b>Trial Balance for the Period</font></td></tr>
<tr><td> From </td>
    <td>dd<input type=text name=d size=1 maxlength=2 value='<?print $acfr[2]?>'>
	mm<input type=text name=m size=1 maxlength=2 value='<?print $acfr[1]?>'>
	yyyy<input type=text name=y size=3 maxlength=4 value='<?print $acfr[0]?>'>
    </td>
</tr>
<tr><td> To </td>
    <td>dd<input type=text name=d1 size=1 maxlength=2 value='<?print $act[2]?>'>
	mm<input type=text name=m1 size=1 maxlength=2 value='<?print $act[1]?>'>
	yyyy<input type=text name=y1 size=3 maxlength=4 value='<?print $act[0]?>'>

    </td>
</tr>
<tr><td colspan=2 bgcolor=#5b5858 align=center>
  <input type=submit value="Show"></td>
</tr>
</table>
</form>
