<?php session_start(); 
if($_SESSION["username"]=="")
{
 	echo "You are not Logged in Please <a href='signin.php'>Sign in </a> First ";
}
elseif($_SESSION["usertype"]=="Parents")
{
 	echo "You are not Authorized This Page <a href='parents.php'>Back </a> ";
}
else
{
include 'dbc.php';
$id =$_REQUEST['id'];
$userid=$_SESSION["userid"];
$sqladm = "SELECT * FROM issueslip WHERE id  = '$id'";
$std_ledger=mysql_query($sqladm) or die("Error : " . mysql_error());
   $test=mysql_fetch_array($std_ledger);
		$id=$test['id'] ;
				$std_name=$test['stdname'] ;
				$std_rollno= $test['rollno'] ;	
				$months= $test['months'] ;					
				$father_name=$test['fname'] ;
				$class_name=$test['cname'] ;
				$mfee=$test['mfee'] ;
				
				$afee=$test['afee'] ;
				
				$gfee=$test['gfee'] ;
				$total=$test['total'] ;
				$bal=$test['bal'] ;
				$nettotal=$test['nettotal'] ;
				
		
?>
<HTML>
<HEAD>
<TITLE>MIND TECH SOLUTION</TITLE>
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<style>
<style type="text/css">
<!--
.style1 {font-weight: bold}
.style2 {color: #FFFFFF}
.style3 {font-size: 36px}
.style4 {
	font-family: Tahoma;
	font-size: 12px;
	font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js">

/***********************************************
* All Levels Navigational Menu- (c) Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (home final.psd) -->
<TABLE WIDTH=1000 BORDER=0 CELLPADDING=0 CELLSPACING=0 align=center>
  <TR>
    <TD COLSPAN=3 bgcolor="#2365ED"><div align="center"><img src="logo copy.jpg" width="134" height="130"></div></TD>
    <TD COLSPAN=9 bgcolor="#2365ED"><table width="561" border="0" align="left">
	
      <tr>
        <td width="555" height="97" align="center" valign="middle"><p align="center" class="style28">
		<h1><font face="Palatino Linotype" color="#FFFFFF"><? echo "" . $_SESSION["userid"]; ?></font></h1>
		</p></td>
      </tr>
      <tr>
        <td height="49" align="center" valign="middle"><a href="signin.php"></a></td>
      </tr>
    </table></TD>
    <TD COLSPAN=2 bgcolor="#2365ED"><a href="http://www.facebook.com"></a></TD>
    <TD width="49" bgcolor="#2365ED"><a href="http://www.twitter.com"></a></TD>
    <TD width="56" bgcolor="#2365ED"><a href="signin.php">Signout</a><a href="http://www.youtube.com"></a></TD>
  </TR>
  <TR>
    <TD COLSPAN=16 bgcolor="#2365ED"><div id="ddtopmenubar" class="mattblackmenu">
<?php include("includes/menu.php") ?></TD>
  </TR>
  <TR>
    <TD COLSPAN=16 align=center></TD>
  </TR>
  <TR>
    <TD COLSPAN=16 bgcolor="#2365ED">&nbsp;</TD>
  </TR>
  <TR>
    <TD height="26" COLSPAN=16 bgcolor="#000045"><p align="center" class="style36 style2"><strong>Challan edit Form </strong></p></TD>
  </TR>
  <TR>
    <TD height="282" colspan="16" valign="top" bgcolor="#FFFF66">
	
      <table width="646" border="0" align="center">
	  <form action="print_voucher.php" method="post" name="app_form">
        <tr>
          <td colspan="4"><?php 
	  if(isset($_GET['Message'])){
    echo $_GET['Message'];
}
	?></td>
	<td width="152"><span class="style4">
            <input name="id" type="text" id="id" size="25" value="<?php echo $id ?>"/>
          </span></td>
          </tr>
        <tr>
          <td width="79">Account No: </td>
          <td colspan="3"><span class="style4">
            <select name="accno" id="accno">
              <option>MALE: 0073-0981-009550-01-3</option>
              <option>FEMALE : 0073-0981-009549-01-0</option>
            </select>
          </span></td>
        </tr>
        <tr>
          <td><span class="style4">Admission #</span></td>
          <td width="150"><span class="style4">
            <input name="std_rollno" type="text" id="std_rollno" size="25" value="<? echo $std_rollno ?>"/>
          </span></td>
          <td width="86">&nbsp;</td>
          <td width="157">&nbsp;</td>
        </tr>
        <tr>
          <td><span class="style4">Student Name</span></td>
          <td><span class="style4">
            <input name="std_name" type="text" id="std_name" size="25" value="<? echo $std_name ?>"/>
          </span></td>
          <td><span class="style4">Father Name</span></td>
          <td><span class="style4">
            <input name="father_name" type="text" id="father_name" size="25" value="<? echo $father_name ?>"/>
          </span></td>
        </tr>
        <tr>
          <td><span class="style4">Class name </span></td>
          <td><span class="style4">
            <input name="class_name" type="text" id="class_name" size="25"/ value="<? echo $class_name ?>">
          </span></td>
          <td><strong>Month</strong></td>
          <td><span class="style4">
            <input name="monthname" type="text" id="monthname" value="<? echo $months ?>" size="25"/>
          </span></td>
        </tr>
        <tr>
          <td colspan="4">&nbsp;</td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><span class="style4">Monthly Fee</span></td>
          <td><span class="style4">
            <input name="monthly_fee" type="text" id="monthly_fee" size="25" value="<? echo $mfee ?>"/>
          </span></td>
          <td><span class="style4">Annual Fee<span class="style2">:</span></span></td>
          <td><span class="style4">
            <input name="annual_fee" type="text" id="annual_fee" size="25" value="<? echo $afee ?>"/>
          </span></td>
        </tr>
		
		
        <tr>
          <td><span class="style4">Other Fee</span></td>
          <td><span class="style4">
            <input name="other_fee" type="text" id="other_fee" value="0" size="25"/>
          </span></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><span class="style4">Tranport fee <span class="style2">:</span></span></td>
          <td><span class="style4">
            <input name="tfee" type="text" id="tfee" size="25" value="<? echo $gfee ?>"/>
          </span></td>
          <td><span class="style4">Total</span></td>
          <td><span class="style4">
            <input name="total" type="text" id="total" size="25" value="<? echo $total ?>"/>
          </span></td>
        </tr>
        <tr>
          <td><span class="style4"> Bal </span></td>
          <td><span class="style4">
            <input name="bal" type="text" id="bal" size="25" value="<? echo $bal ?>"/>
          </span></td>
          <td><span class="style4">Net Total <span class="style2">:</span></span></td>
          <td><span class="style4">
            <input name="nettotal" type="text" id="nettotal" size="25" value="<? echo $nettotal ?>"/>
          </span></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><div align="right">
            <input type="submit" value="Print Voucher" />
          </div></td>
          <td><input type="reset" name="Submit2" value="Refresh"></td>
          <td>&nbsp;</td>
        </tr>
      </table>
	  </form>
    </TD>
  </TR>
  <TR>
    <TD COLSPAN=16 bgcolor="#2365ED">&nbsp;</TD>
  </TR>
  
  <TR>
    <TD COLSPAN=16><table width="998" border="0" bgcolor="#000144">
      <tr>
        <td height="46" colspan="2" bgcolor="#010044">&nbsp;</td>
        <td width="580" rowspan="2" bgcolor="#010044">&nbsp;</td>
      </tr>
      <tr>
        <td height="52" bgcolor="#010044">&nbsp;</td>
        <td bgcolor="#010044">&nbsp;</td>
      </tr>
    </table></TD>
  </TR>
  <TR>
    <TD width="233" height="2"><IMG SRC="images/spacer.gif" WIDTH=233 HEIGHT=1 ALT=""></TD>
    <TD width="15"><IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
    <TD width="15"><IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
    <TD width="77"><IMG SRC="images/spacer.gif" WIDTH=77 HEIGHT=1 ALT=""></TD>
    <TD width="151"><IMG SRC="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD>
    <TD width="15"><IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
    <TD width="17"><IMG SRC="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD>
    <TD width="103"><IMG SRC="images/spacer.gif" WIDTH=103 HEIGHT=1 ALT=""></TD>
    <TD width="116"><IMG SRC="images/spacer.gif" WIDTH=116 HEIGHT=1 ALT=""></TD>
    <TD width="14"><IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
    <TD width="15"><IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
    <TD width="54"><IMG SRC="images/spacer.gif" WIDTH=54 HEIGHT=1 ALT=""></TD>
    <TD width="56"><IMG SRC="images/spacer.gif" WIDTH=56 HEIGHT=1 ALT=""></TD>
    <TD width="14"><IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
    <TD><IMG SRC="images/spacer.gif" WIDTH=49 HEIGHT=1 ALT=""></TD>
    <TD><IMG SRC="images/spacer.gif" WIDTH=56 HEIGHT=1 ALT=""></TD>
  </TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
<?Php
}
?>