<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:silver;}
 select
  {border-style:ridge;
   border-color:black;
   height:25px;
   border-size=1;
   font-family:verdana;
   color:black;
  }
 input
  {border-style:ridge;
   border-color:#22437f;
   background-color:white;
   height:25px;
   font-weight:bold;
   border-size=1;
   font-family:sans-serif;
   color:BLACK;
  }
</style>
<center><p>&nbsp;<p>&nbsp;<p>&nbsp;
<B>SET ACCOUNTING PERIOD</B>
<?
/*$link=mysqli_connect("localhost.localdomain","root");
mysqli_select_db("alpdb") or die ("<h3> Error:Database could not be connected-".mysqli_error());
*/
include("opendb.php");
include("test.php");
$result=mysqli_query($db,"select * from acperiod") or die (mysqli_error());
$row=mysqli_fetch_row($result) or die (mysqli_error());
$df=explode("-",$row[0]);
$dt=explode("-",$row[1]);
?>
<body onLoad=document.f1.d.focus()>
<!--
<form name=f1 action='svperiod.php'>-->

<table border=1>
<tr><td>From </td><td>DD <input type=text name=d size=2 value='<?print $df[2]?>'> MM<input type=text name=m size=2 value='<?print $df[1]?>'>YYYY <input type=text name=y size=4 value='<?print $df[0]?>'></td></tr>
<tr><td>To </td><td>DD <input type=text name=d1 size=2 value='<?print $dt[2]?>'> MM<input type=text name=m1 size=2 value='<?print $dt[1]?>'>YYYY <input type=text name=y1 size=4 value='<?print $dt[0]?>'></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Update"> <input type=button value='Cancel' onClick=document.location='blank.html'> </td>  </tr>
</table>

