<?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
{

?>
<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 type="text/css">
<!--
.style2 {color: #FFFFFF}
.style3 {font-size: 36px}
.style4 {
	font-family: Tahoma;
	font-size: 12px;
	font-weight: bold;
}
.style5 {color: #FFFF66}
-->
</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>
<script type="text/javascript">
function check_data()
{
if(document.getElementById("std_rollno").value=="")
{
alert("Field is Compulsary");
document.getElementById("std_rollno").focus();
}
else if(document.getElementById("class_name").value=="")
{
alert("Field is Compulsary");
document.getElementById("class_name").focus();
}
else if(document.getElementById("amount").value=="")
{
alert("Field is Compulsary");
document.getElementById("amount").focus();
}

else
{
document.getElementById("app_form").submit();
}
}
</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="123" align="center" valign="middle"><p align="center" class="style28"><span class="style37 style3"><strong><h1><font face="Palatino Linotype" color="#FFFFFF"><? echo "" . $_SESSION["userid"]; ?></font></h1></strong></span></p></td>
      </tr>
    </table></TD>
    <TD COLSPAN=2><a href="http://www.facebook.com"></a></TD>
    <TD bgcolor="#2365ED"><a href="signin.php">Signout</a><a href="http://www.twitter.com"></a></TD>
    <TD><a href="http://www.youtube.com"></a></TD>
  </TR>
  <TR>
    <TD COLSPAN=16><div id="ddtopmenubar" class="mattblackmenu">
<ul>
<li><a href="index.html"> Home  </a></li>
<li><a href="#" rel="ddsubmenu3">Student Section</a></li>
<li><a href="#" rel="ddsubmenu1">Teacher Section</a></li>
<li><a href="#" rel="ddsubmenu4">Exame Section </a></li>
<li><a href="#" rel="ddsubmenu2">Report Section </a></li>
<li><a href="#" rel="ddsubmenu5">Accounts Section</a></li>
<li><a href="#" rel="ddsubmenu6">Basic Section</a></li>
<li><a href="#" rel="ddsubmenu7">Parents Section</a></li>

</ul>
</div>

<script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>
<!--HTML for the Drop Down Menus associated with Top Menu Bar-->
<!--They should be inserted OUTSIDE any element other than the BODY tag itself-->
<!--A good location would be the end of the page (right above "</BODY>")-->
<!--Top Drop Down Menu 1 HTML-->
<ul id="ddsubmenu7" class="ddsubmenustyle">
<li><a href="1st_term_exame_entry_report.php">Class Result Sheet Report</a></li>
<li><a href="search_result_sheet.php">Term Wise Result Sheet Report</a></li>
<li><a href="final_result_sheet.php">Final Term Result Sheet Report</a></li>
<li><a href="syllabus_report.php">Student Syllabus Report</a></li>
<li><a href="datesheet_report.php">Student DateSheet Report</a></li>
<li><a href="Student_attendence_sheet_report.php">Student Attendence Sheet</a></li>
<li><a href="student_attendence_card_report.php">Student Attendence Card</a></li>
<li><a href="student_diary_report.php">Student Diary Report</a></li>
<li><a href="notice.php">Public Notice </a></li>
<li><a href="complain_entry.php" >Complaint/Feed Back</a></li>
</ul>

<ul id="ddsubmenu6" class="ddsubmenustyle">
<li><a href="make_notice_entry.php">Make Notice </a></li>
<li><a href="veiw_complains_report.php">Veiw Complains</a></li>
<li><a href="class_promotion.php">Class Promotion</a></li>
<li><a href="fee_increasing.php">Fee Increasing</a></li>
<li><a href="annual_fee_increasing.php">Annual Fee Increasing</a></li>
</ul>
<ul id="ddsubmenu5" class="ddsubmenustyle">
<li><a href="chart_of_accounts.php">Chart of Accounts</a></li>
<li><a href="chartofaccounts_register_report_process.php">Chart of Accounts Report</a></li>
<li><a href="acc_ledger_report.php">Accounts Ledger Report</a></li>
<li><a href="expense_vocher_entry.php">Expense Post Vocher</a></li>
<li><a href="expense_register_report.php">Expense Register</a></li>
<li><a href="income_statement.php">Income Statement</a></li>
<li><a href="#">Delete</a>
 <ul>
  <li><a href="del_expense_voucher.php">Delete Expense Voucher</a></li>
  <li><a href="del_chart_of_accounts.php">Delete Chart of Accounts</a></li>
</ul>
</li>
</ul>
<ul id="ddsubmenu4" class="ddsubmenustyle">
<li><a href="1st_term_exame_entry.php">Make Student Result</a></li>
<li><a href="syllabus_entry.php">Make Student Syllabus</a></li>
<li><a href="datesheet_entry.php">Make Student Datesheet</a></li>
<li><a href="subject_wise_attendence.php">Make Student Attendence Subject Wise</a></li>
<li><a href="#">Delete</a>
 <ul>
  <li><a href="del_student_result_sheet.php">Delete Student Result Sheet</a></li>
  <li><a href="del_student_syllabus.php">Delete Student Syllabus</a></li>
  <li><a href="del_student_Datesheet.php">Delete Student Datesheet</a></li>
  <li><a href="del_student_attendence.php">Delete Student Attendence</a></li>
  
</ul>
</li>
</ul>
<ul id="ddsubmenu1" class="ddsubmenustyle">
<li><a href="teacher_entry.php">Teacher Information Form</a></li>
<li><a href="make_salary_entry.php">Make Teacher Salary Sheet</a></li>
<li><a href="make_teacher_attendence.php">Teacher Attendence</a></li>
<li><a href="monthly_salary_sheet.php">View Monthly Salary Sheet Report</a></li>
<li><a href="teacher_ledger.php">View Teacher Ledger Report</a></li>
<li><a href="teacher_report.php">View Teacher Information Report</a></li>
<li><a href="teacher_attendence_report.php">View Teacher Attendence Report</a></li>
<li><a href="#">Delete</a>
  <ul>
  <li><a href="del_teacher_info.php">Delete Teacher Information</a></li>
  <li><a href="del_teacher_monthly_salary.php">Delete Teacher Monthly Salary</a></li>
  <li><a href="del_teacher_attendence.php">Delete Teacher Attendence</a></li>
</li>


</ul>
</ul>


<!--Top Drop Down Menu 2 HTML-->

<ul id="ddsubmenu2" class="ddsubmenustyle">
<li><a href="bal_receivable.php">Balance Wise Total Receivbale Fee</a></li>
  <li><a href="t_r_fee.php">Total Receivbale Fee</a></li>
  <li><a href="classwise_receivable.php">Class Wise Total Receivbale Fee</a></li>
  <li><a href="std_ledger.php">Student Ledger</a></li>
  <li><a href="feeslip_report.php">Monthly Challan</a></li>
     <li><a href="daily_fee_collection.php">Daily Fee Collection</a></li>
	 <li><a href="all_student.php">All Student Information Report</a></li>
  <li><a href="rollno_wise_search.php">Search Student By Rollno Wise</a></li>
  <li><a href="name_wise_search.php">Search Student By Name Wise</a></li>
  <li><a href="class_wise_search.php">Search Student By Class Wise</a></li>
  <li><a href="cellno_wise_search.php">Search Student By Cellno Wise</a></li>
  <li><a href="familyno_wise_search.php">Search Student By Familyno Wise</a></li>
<li><a href="fee_wise_search.php">Search Student By Monthly Fee Wise</a></li>
  <li><a href="widraw_info_report.php">Widraw Students Information</a></li>
  </ul>
<!--Top Drop Down Menu 3 HTML-->

<ul id="ddsubmenu3" class="ddsubmenustyle">
<li><a href="admission_form_raheem.php">Admission Form</a></li>
<li><a href="genrate_feeslip.php">Genrate Monthly Slip</a></li>
<li><a href="genrate_feeslip_annual.php">Genrate Monthly and Annual Fee Slip</a></li>
<li><a href="genrate_adm_feeslip.php">Genrate Admission Fee Slip</a></li>
<li><a href="rec_fee.php">Fee Receipt</a></li>
<li><a href="attendence.php">Genrate Attendence</a></li>
<li><a href="school_leaving_certificate.php">Genrate School Leaving Certificate</a></li>
<li><a href="student_diary.php">Student Diary</a></li>
<li><a href="show_attendence_report.php">Student Attendence Report</a></li>
<li><a href="#">Delete</a>
  <ul>
  <li><a href="widraw_student.php">Widraw Student</a></li>
  <li><a href="del_adm_info.php">Delete Admission Information</a></li>
  <li><a href="del_monthly_feeslip_all.php">Delete Monthly Fee Slip By All</a></li>
  <li><a href="del_monthly_feeslip_student.php">Delete Monthly Fee Slip By Student</a></li>
  <li><a href="del_feereceipt_student.php">Delete Fee Receipt By Student</a></li>
  <li><a href="del_class_diary.php">Delete Class Diary</a></li>
</li>
</ul></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> Monthly Fee Received From Student </strong></p></TD>
  </TR>

<?php
include 'db.php';
$userid=$_SESSION["userid"];

$sql = "select * from admission where user_id='$userid' and bal > 0 ORDER BY class_name, std_rollno";
$std_ledger=mysql_query($sql) or die("Error : " . mysql_error());
  ?>
<table width="1000" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td><form name="form1" method="post" action="rec_fee_fno_process_process.php">
<span class="style4">Month  Name <span class="style5">..</span> <span class="style5">:</span>
<select name="month_name" id="month_name">
  <option>January 2013</option>
  <option>Febuary 2013</option>
  <option>March 2013</option>
  <option>April 2013</option>
  <option>May 2013</option>
  <option>June 2013</option>
  <option>July 2013</option>
  <option>August 2013</option>
  <option>September 2013</option>
  <option>October 2013</option>
  <option>November 2013</option>
  <option>December 2013</option>
  <option>January 2014</option>
  <option>Febuary 2014</option>
  <option>March 2014</option>
  <option>April 2014</option>
  <option>May 2014</option>
  <option>June 2014</option>
  <option>July 2014</option>
  <option>August 2014</option>
  <option>September 2014</option>
  <option>October 2014</option>
  <option>November 2014</option>
  <option>December 2014</option>
  <option>January 2015</option>
  <option>Febuary 2015</option>
  <option>March 2015</option>
  <option>April 2015</option>
  <option>May 2015</option>
  <option>June 2015</option>
  <option>July 2015</option>
  <option>August 2015</option>
  <option>September 2015</option>
  <option>October 2015</option>
  <option>November 2015</option>
  <option>December 2015</option>
  <option>January 2016</option>
  <option>Febuary 2016</option>
  <option>March 2016</option>
  <option>April 2016</option>
  <option>May 2016</option>
  <option>June 2016</option>
  <option>July 2016</option>
  <option selected>August 2016</option>
  <option>September 2016</option>
  <option>October 2016</option>
  <option>November 2016</option>
  <option>December 2016</option>
  <option>January 2017</option>
  <option>Febuary 2017</option>
  <option>March 2017</option>
  <option>April 2017</option>
  <option>May 2017</option>
  <option>June 2017</option>
  <option>July 2017</option>
  <option>August 2017</option>
  <option>September 2017</option>
  <option>October 2017</option>
  <option>November 2017</option>
  <option>December 2017</option>
  <option>January 2018</option>
  <option>Febuary 2018</option>
  <option>March 2018</option>
  <option>April 2018</option>
  <option>May 2018</option>
  <option>June 2018</option>
  <option>July 2018</option>
  <option>August 2018</option>
  <option>September 2018</option>
  <option>October 2018</option>
  <option>November 2018</option>
  <option>December 2018</option>
  <option>January 2019</option>
  <option>Febuary 2019</option>
  <option>March 2019</option>
  <option>April 2019</option>
  <option>May 2019</option>
  <option>June 2019</option>
  <option>July 2019</option>
  <option>August 2019</option>
  <option>September 2019</option>
  <option>October 2019</option>
  <option>November 2019</option>
  <option>December 2019</option>
  <option>January 2020</option>
  <option>Febuary 2020</option>
  <option>March 2020</option>
  <option>April 2020</option>
  <option>May 2020</option>
  <option>June 2020</option>
  <option>July 2020</option>
  <option>August 2020</option>
  <option>September 2020</option>
  <option>October 2020</option>
  <option>November 2020</option>
  <option>December 2020</option>
  <option> </option>
</select>
</span><span class="style4">Receive Type<span class="style5">:....</span>
<select name="rt" id="rt">
  <option>CASH</option>
  <option selected>BANK</option>
  <option>FINE</option>
  <option>OTHERS</option>
</select>
</span>
<table width="1000" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF">&nbsp;</td>
<td colspan="6" bgcolor="#FFFFFF"><strong>Total Receivable Fee</strong> </td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">#</td>
<td align="center" bgcolor="#FFFFFF"><strong>Id</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Code</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Student RollNo </strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Student Name</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong> Class Name</strong></td>
<td align="center" bgcolor="#FFFFFF"><strong>Balance</strong></td>

</tr>

<?php
while($rows=mysql_fetch_array($std_ledger)){
?>

<tr>
<td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $rows['id']; ?>"></td>
<td bgcolor="#FFFFFF"><? echo $rows['id']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['code']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['std_rollno']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['std_name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['class_name']; ?></td>
<td bgcolor="#FFFFFF"><? echo $rows['bal']; ?></td>

</tr>

<?php
}
?>

<tr>
<td colspan="7" align="center" bgcolor="#FFFFFF"><input name="delete" type="submit" id="delete" value="Add"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>


<style type="text/css">
<!--
.style2 {color: #FFFFFF}
.style4 {	font-family: Tahoma;
	font-size: 12px;
	font-weight: bold;
}
-->
</style>



<table width="91%" align="center" bgcolor="#010044">
<tr>
  <td height="46" colspan="2">&nbsp;</td>
  <td width="642" rowspan="2" bgcolor="#010044">&nbsp;</td>
</tr>
      <tr>
        <td width="44" height="52">&nbsp;</td>
        <td width="216">&nbsp;</td>
      </tr>
</table>
</body>
</html>
<?php
}
?>