diff --git a/README.md b/README.md index 4f92d83..2d5b0cd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ -# Fee Collection System +# Islamic public high school -Free collection system for private school. Developed in CORE PHP. \ No newline at end of file + + + + + \ No newline at end of file diff --git a/ad.png b/ad.png new file mode 100644 index 0000000..1712ec0 Binary files /dev/null and b/ad.png differ diff --git a/bg.png b/bg.png new file mode 100644 index 0000000..b2f7b15 Binary files /dev/null and b/bg.png differ diff --git a/bulk_data_update.PNG b/bulk_data_update.PNG new file mode 100644 index 0000000..83c1cca Binary files /dev/null and b/bulk_data_update.PNG differ diff --git a/bulkupdatestd.php b/bulkupdatestd.php new file mode 100644 index 0000000..0d1037b --- /dev/null +++ b/bulkupdatestd.php @@ -0,0 +1,24 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students + +

Update Bulk Students

+ + +
+ + \ No newline at end of file diff --git a/createslips.php b/createslips.php new file mode 100644 index 0000000..5902dc0 --- /dev/null +++ b/createslips.php @@ -0,0 +1,68 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Create Slips + +

Create Slips

+ +
+ + + + + + + + + +
Create slips for the monthyear
+ +
+ +
+ + \ No newline at end of file diff --git a/edtstd.php b/edtstd.php new file mode 100644 index 0000000..05bfdfb --- /dev/null +++ b/edtstd.php @@ -0,0 +1,49 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Edit Student Data + +

Edit Student Data

+ +View All Students";}else {echo "Data not Updated
". mysql_error();} + +} + +?> +
+ + \ No newline at end of file diff --git a/head.css b/head.css new file mode 100644 index 0000000..e12609f --- /dev/null +++ b/head.css @@ -0,0 +1,32 @@ +table, tr, td{ +padding: 0px; +} + +.slip{ +page-break-after:always;} + +.sliphead{ +height: 200px; +} + +.ad{ +height: 50px; +} + + +.prntslip{ +width: 700px; +} + + +.feecl{ +border-right: solid; +} + +.total{ +font-size: 25px; +} + +.sprt{ +border-right: solid; +} \ No newline at end of file diff --git a/home.PNG b/home.PNG new file mode 100644 index 0000000..61f9213 Binary files /dev/null and b/home.PNG differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..514dc28 --- /dev/null +++ b/index.php @@ -0,0 +1,35 @@ + + + + +Islamic Public School Fee System + + + +
+

Welcome to The Fee System

+

Student

+ + +

Slips

+ + +

Payment

+ +
+ + \ No newline at end of file diff --git a/iphs.sql b/iphs.sql new file mode 100644 index 0000000..5d7536c --- /dev/null +++ b/iphs.sql @@ -0,0 +1,149 @@ +-- phpMyAdmin SQL Dump +-- version 4.4.1.1 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Generation Time: Apr 21, 2015 at 04:28 PM +-- Server version: 5.5.42 +-- PHP Version: 5.3.28 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- +-- Database: `iphs` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `faimly` +-- + +CREATE TABLE IF NOT EXISTS `faimly` ( + `id` int(11) NOT NULL, + `faimlynum` int(11) NOT NULL, + `fname` text NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `payments` +-- + +CREATE TABLE IF NOT EXISTS `payments` ( + `id` int(11) NOT NULL, + `srno` int(11) NOT NULL, + `amount` int(11) NOT NULL, + `date` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `slips` +-- + +CREATE TABLE IF NOT EXISTS `slips` ( + `id` int(11) NOT NULL, + `stnum` int(11) DEFAULT NULL, + `faimlynum` int(11) NOT NULL, + `month` text NOT NULL, + `admission` int(11) DEFAULT NULL, + `tuition` int(11) DEFAULT NULL, + `sports` int(11) DEFAULT NULL, + `building` int(11) DEFAULT NULL, + `medical` int(11) DEFAULT NULL, + `recreation` int(11) DEFAULT NULL, + `examination` int(11) DEFAULT NULL, + `buscharge` int(11) DEFAULT NULL, + `total` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `students` +-- + +CREATE TABLE IF NOT EXISTS `students` ( + `id` int(11) NOT NULL, + `name` text, + `class` text, + `regnum` int(11) DEFAULT NULL, + `faimlynum` int(11) DEFAULT NULL, + `admission` int(11) DEFAULT NULL, + `tuition` int(11) DEFAULT NULL, + `sports` int(11) DEFAULT NULL, + `building` int(11) DEFAULT NULL, + `medical` int(11) DEFAULT NULL, + `recreation` int(11) DEFAULT NULL, + `examination` int(11) DEFAULT NULL, + `buscharge` int(11) DEFAULT NULL, + `active` text +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `faimly` +-- +ALTER TABLE `faimly` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `faimlynum` (`faimlynum`); + +-- +-- Indexes for table `payments` +-- +ALTER TABLE `payments` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `slips` +-- +ALTER TABLE `slips` + ADD PRIMARY KEY (`id`); + +-- +-- Indexes for table `students` +-- +ALTER TABLE `students` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `regnum` (`regnum`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `faimly` +-- +ALTER TABLE `faimly` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `payments` +-- +ALTER TABLE `payments` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `slips` +-- +ALTER TABLE `slips` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; +-- +-- AUTO_INCREMENT for table `students` +-- +ALTER TABLE `students` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/newfaimly.php b/newfaimly.php new file mode 100644 index 0000000..d99ad0d --- /dev/null +++ b/newfaimly.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - New Family + +

Add New Family

+ +
+ + + + + + + + + + + + + +
Faimly Name
Faimly Number
+ +
+".mysql_error();} +} +?> +
+ + \ No newline at end of file diff --git a/newstd.php b/newstd.php new file mode 100644 index 0000000..4419452 --- /dev/null +++ b/newstd.php @@ -0,0 +1,133 @@ + + + + +Islamic Public School Fee System + + + +
+Home - New Student + +

Add New Student

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name
Class + + + +
Registration Number
Faimly Number
Default Tuition Fee
Default Generator Fund
Default Building Fund
Default Medical Fee
Default Recreation Fee
Default Examination Fee
Default Bus charges
Active + + + +
+ +
+".mysqli_error();} +} +?> +
+ + \ No newline at end of file diff --git a/payment.php b/payment.php new file mode 100644 index 0000000..a2a7f10 --- /dev/null +++ b/payment.php @@ -0,0 +1,100 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Receive Payments + +

Receive Payments

+ +
+ + + + + + + + + +
Sr. No:
+ +
+"; +$paid = mysql_fetch_array(mysql_query("SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id",$con)); + + + +$balance = $total - $paid["amount"]; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + + +echo ""; +echo ""; +echo ""; +echo "
Sr. No:".$id."
Family No:".$faimlynum."View All Slips by Family No
Fee Month:".$month."
Slip Amount:".$total."
Paid Amount:".$paid["amount"]."
Balance Amount:".$balance."
Received Amount:
"; +} +echo ""; + +/*--------------------Payment History Section Start------------------------------------------*/ +echo "

Payment History

"; +echo ""; + +$paymentdata = mysql_query("SELECT * FROM iphs.payments WHERE srno = $id",$con); + +while($payment = mysql_fetch_array($paymentdata)){ + +echo ""; + +} +echo "
DateAmount
"; +echo date("d-m-y",$payment["date"]); +echo ""; +echo $payment["amount"]."
"; +/*--------------------Payment History Section End------------------------------------------*/ + + +echo ""; +} +if($_POST["submit"]=='Receive'){ +$con = mysql_connect("localhost","root","root","iphs"); +if(!$con){echo "Unable to Connect". mysql_error();} +$amount = $_POST["amount"]; +$srno = $_POST["srno"]; +$date = time(); + +$insert = mysql_query("INSERT INTO iphs.payments (srno, amount, date)VALUES ('$srno', '$amount', '$date')",$con); +if($insert){echo "Amount Recorded";}else{echo "Amount not recorded ".mysql_error();} +} +?> +
+ + \ No newline at end of file diff --git a/printslips.php b/printslips.php new file mode 100644 index 0000000..e8e64d0 --- /dev/null +++ b/printslips.php @@ -0,0 +1,142 @@ + + + + +Islamic Public School Fee System +"; } else { echo "";}?> + + +
+"; +echo "
"; + +echo "


"; +echo ""; +echo ""; +echo ""; + +$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); + +echo ""; +echo ""; +echo "
Sr. No: ".$id."Fee Month: ".$month."
Name: "; + +while($std = mysql_fetch_array($name)){ echo $std["name"].", ";} + +echo "Class: "; + +$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); + +while($std = mysql_fetch_array($name)){ echo $std["class"].", ";} + +echo "
"; + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo "
FeeRupees
Admission".$admission."
Tuition".$tuition."
Generator".$sports."
Building".$building."
Medical".$medical."
Recreation".$recreation."
Examination".$examination."
Bus Charge".$buscharge."
Grand TotalRs.".$total."
"; +echo "
"; +echo "
"; + +echo "
------------------------------------------------------Cut Here------------------------------------------------------
"; + +echo "
"; +echo ""; +echo ""; +echo ""; + +$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); + +echo ""; +echo ""; +echo "
Sr. No: ".$id."Fee Month: ".$month."
Name: "; + +while($std = mysql_fetch_array($name)){ echo $std["name"].", ";} + +echo "Class: "; + +$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); + +while($std = mysql_fetch_array($name)){ echo $std["class"].", ";} + +echo "
"; + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo "
FeeRupees
Admission".$admission."
Tuition".$tuition."
Generator".$sports."
Building".$building."
Medical".$medical."
Recreation".$recreation."
Examination".$examination."
Bus Charge".$buscharge."
Grand Total".$total."
"; +echo "
"; +echo "
"; +} + +/* +$insert = mysql_query("INSERT INTO iphs.students (name, class, regnum, faimlynum, admission, tuition, sports, building, medical, recreation, examination, buscharge)VALUES('$name', '$class', '$regnum', '$faimlynum', '$admission', '$tuition', '$sports', '$building', '$medical', '$recreation', '$examination', '$buscharge')",$con); +if($insert){echo "Data Entered";}else{echo "Data not Entered
".mysql_error();}*/ +} +else{ +echo "Home - View/Print Slips + +

View/Print Slips

+ +
+ + + + + + + + + +
View/Print slips for the month of year
+ +
"; +} +?> + + + \ No newline at end of file diff --git a/requirment.txt b/requirment.txt new file mode 100644 index 0000000..36b4a90 --- /dev/null +++ b/requirment.txt @@ -0,0 +1,8 @@ +MySQL Windows 5.5 + -Username: root + -Password: root +IIS 7.5 +PHP Manager for IIS +PHP MyAdmin 4.4.1.1 +PHP Version 5.3.28 + diff --git a/sliphead.png b/sliphead.png new file mode 100644 index 0000000..fd1d1da Binary files /dev/null and b/sliphead.png differ diff --git a/style.css b/style.css new file mode 100644 index 0000000..3b1888d --- /dev/null +++ b/style.css @@ -0,0 +1,74 @@ +table, tr, td{ +padding: 0px; +} + +.slip{ +page-break-after:always;} + +.sliphead{ +height: 200px; +} + +.ad{ +height: 50px; +background-image:url('ad.png'); +background-repeat: no-repeat; +} + +.prntslip{ +width: 700px; +} + +.feecl{ +border-right: solid; +} + +.total{ +font-size: 25px; +} + +.sprt{ +border-right: solid; +} + +h2{ +color: green; +} + +h3{ +color: red; +} + +ul{ +color: blue; +} + +body{ +background-image: url("bg.png"); +} + +input, select{ +width: 200px; +} + +.warning{ +background-color: yellow; +color: red; +} + +.unpaid{ +background-color: red; +} + +.wraper{ +background-color: #F0F8FF; +Width: 70%; +position: absolute; +left: 200px; +top: 100px; +box-shadow: 0px 0px 20px #ADFF2F; +border: 1px solid red; +box-sizing: border-box; +float: left; +border-color: #008000; +} \ No newline at end of file diff --git a/update_all_active_students.PNG b/update_all_active_students.PNG new file mode 100644 index 0000000..5499dc9 Binary files /dev/null and b/update_all_active_students.PNG differ diff --git a/update_by_class.PNG b/update_by_class.PNG new file mode 100644 index 0000000..1423bbf Binary files /dev/null and b/update_by_class.PNG differ diff --git a/update_by_family.PNG b/update_by_family.PNG new file mode 100644 index 0000000..64f04b3 Binary files /dev/null and b/update_by_family.PNG differ diff --git a/updateallbuilding.php b/updateallbuilding.php new file mode 100644 index 0000000..14b7c60 --- /dev/null +++ b/updateallbuilding.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Building Fund + +

Update All Students Building Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Building Fund
"; +echo "
"; +}?> +
+ + + \ No newline at end of file diff --git a/updateallbuscharge.php b/updateallbuscharge.php new file mode 100644 index 0000000..2c29cdd --- /dev/null +++ b/updateallbuscharge.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Bus Charges + +

Update All Students Bus Charges

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Bus Charge
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateallexamination.php b/updateallexamination.php new file mode 100644 index 0000000..fb9e63f --- /dev/null +++ b/updateallexamination.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Examination Fee + +

Update All Students Examination Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Recreation Fund
"; +echo "
"; +}?> +
+ + + \ No newline at end of file diff --git a/updateallgenerator.php b/updateallgenerator.php new file mode 100644 index 0000000..ea3806f --- /dev/null +++ b/updateallgenerator.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Generator Fee + +

Update All Students Generator Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Generator Fee
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateallmedical.php b/updateallmedical.php new file mode 100644 index 0000000..3f5fa2b --- /dev/null +++ b/updateallmedical.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Medical Fee + +

Update All Students Medical Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Medical Fund
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateallrecreation.php b/updateallrecreation.php new file mode 100644 index 0000000..80b2911 --- /dev/null +++ b/updateallrecreation.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Recreation Fund + +

Update All Students Recreation Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Recreation Fund
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatealltution.php b/updatealltution.php new file mode 100644 index 0000000..2bc6e8f --- /dev/null +++ b/updatealltution.php @@ -0,0 +1,51 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students - Update All Students Tuition Fee + +

Update All Students Tuition Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + +
Enter Tuition Fee
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatebyall.php b/updatebyall.php new file mode 100644 index 0000000..e25677d --- /dev/null +++ b/updatebyall.php @@ -0,0 +1,28 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update All Active Students + +

Update All Active Students

+ + +
+ + \ No newline at end of file diff --git a/updatebyclass.php b/updatebyclass.php new file mode 100644 index 0000000..4771828 --- /dev/null +++ b/updatebyclass.php @@ -0,0 +1,28 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class + +

Update by Class

+ + +
+ + \ No newline at end of file diff --git a/updatebyfamily.php b/updatebyfamily.php new file mode 100644 index 0000000..acdb048 --- /dev/null +++ b/updatebyfamily.php @@ -0,0 +1,28 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family + +

Update by Family

+ + +
+ + \ No newline at end of file diff --git a/updateclassbuilding.php b/updateclassbuilding.php new file mode 100644 index 0000000..c8fdc43 --- /dev/null +++ b/updateclassbuilding.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Building Fund + +

Update Class Building Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Building Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclassbuscharge.php b/updateclassbuscharge.php new file mode 100644 index 0000000..6d51805 --- /dev/null +++ b/updateclassbuscharge.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Bus Charges + +

Update Class Bus Charges

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Bus Charges
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclassexamination.php b/updateclassexamination.php new file mode 100644 index 0000000..37454d6 --- /dev/null +++ b/updateclassexamination.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Examination Fee + +

Update Class Examination Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Examination Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclassgenerator.php b/updateclassgenerator.php new file mode 100644 index 0000000..cb57940 --- /dev/null +++ b/updateclassgenerator.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Generator Fee + +

Update Class Generator Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Generator Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclassmedical.php b/updateclassmedical.php new file mode 100644 index 0000000..1d62b48 --- /dev/null +++ b/updateclassmedical.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Medical Fee + +

Update Class Medical Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Medical Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclassrecreation.php b/updateclassrecreation.php new file mode 100644 index 0000000..c3cadea --- /dev/null +++ b/updateclassrecreation.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Recreation Fund + +

Update Class Recreation Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Medical Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updateclasstution.php b/updateclasstution.php new file mode 100644 index 0000000..813d92e --- /dev/null +++ b/updateclasstution.php @@ -0,0 +1,71 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Class - Update Class Tuition Fee + +

Update Class Tuition Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Tuition Fund
Enter Class + + + +
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatefamilybuilding.php b/updatefamilybuilding.php new file mode 100644 index 0000000..764801f --- /dev/null +++ b/updatefamilybuilding.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Building Fund + +

Update Family Building Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Building Fund
Enter Family Number
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatefamilybuscharge.php b/updatefamilybuscharge.php new file mode 100644 index 0000000..dbaf6ed --- /dev/null +++ b/updatefamilybuscharge.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Bus Charges + +

Update Family Bus Charges

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Bus Charges
Enter Family Number
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatefamilyexamination.php b/updatefamilyexamination.php new file mode 100644 index 0000000..101c5a8 --- /dev/null +++ b/updatefamilyexamination.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Examination Fee + +

Update Family Examination Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Examination Fee
Enter Family Number
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatefamilygenerator.php b/updatefamilygenerator.php new file mode 100644 index 0000000..84540c7 --- /dev/null +++ b/updatefamilygenerator.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Generator Fee + +

Update Family Generator Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Generator Fee
Enter Family Number
"; +echo "
"; +}?> + +
+ + \ No newline at end of file diff --git a/updatefamilymedical.php b/updatefamilymedical.php new file mode 100644 index 0000000..c26cb79 --- /dev/null +++ b/updatefamilymedical.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Medical Fee + +

Update Family Medical Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Medical Fund
Enter Family Number
"; +echo "
"; +}?> +
+ + + \ No newline at end of file diff --git a/updatefamilyrecreation.php b/updatefamilyrecreation.php new file mode 100644 index 0000000..8947ecc --- /dev/null +++ b/updatefamilyrecreation.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Recreation Fund + +

Update Family Recreation Fund

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Recreation Fund
Enter Family Number
"; +echo "
"; +}?> +
+ + + \ No newline at end of file diff --git a/updatefamilytution.php b/updatefamilytution.php new file mode 100644 index 0000000..c816179 --- /dev/null +++ b/updatefamilytution.php @@ -0,0 +1,53 @@ + + + + +Islamic Public School Fee System + + + +
+Home - Update Bulk Students - Update by Family - Update Family Tuition Fee + +

Update Family Tuition Fee

+ +". mysql_error(); + +} + +} + +else{ +echo "
"; +echo " + + + +
Enter Tuition Fee
Enter Family Number
"; +echo "
"; +}?> +
+ + + \ No newline at end of file diff --git a/viewpaymentbyfn.php b/viewpaymentbyfn.php new file mode 100644 index 0000000..ddf6e7e --- /dev/null +++ b/viewpaymentbyfn.php @@ -0,0 +1,95 @@ + + + + +Islamic Public School Fee System + + + +
+Home - View Payments by Family Number + +

View Payments by Family Number

+ +Back to Slip";} + +$fndata = mysql_query("SELECT * FROM iphs.slips WHERE faimlynum = $fn",$con); + +echo ""; + +while($row = mysql_fetch_array($fndata)){ + +$id = $row["id"]; + +$paid = mysql_fetch_array(mysql_query("SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id",$con)); + +if($row["total"] - $paid["amount"]>0){echo "";} else {echo "";} + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +} + +echo "
Slip Sr. No.Fee MonthAmountPaidBalance
"; +echo "".$row["id"].""; +echo ""; +echo $row["month"]; +echo ""; +echo $row["total"]; +echo ""; +echo $paid["amount"]; +echo ""; +echo $row["total"] - $paid["amount"]; +echo "
"; + +} + +else{ + +echo "
"; +echo ""; + +echo ""; + +echo ""; + +echo "
"; +echo "Enter Family Number: "; +echo ""; +echo " "; +echo "
"; +echo ""; +echo "
"; +echo "
"; +} +?> +
+ + \ No newline at end of file diff --git a/viewstd.php b/viewstd.php new file mode 100644 index 0000000..9015ee2 --- /dev/null +++ b/viewstd.php @@ -0,0 +1,177 @@ + + + + +Islamic Public School Fee System + + + +
+Home - View Student Data + +

View Student Data

+ +Note: Please re-write all fields wither it is correct or not.
"; + +echo "
"; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; +echo "
Name
Class"; +echo " "; + +echo "
Registration Number
Faimly Number
Default Addmission Fee
Default Tuition Fee
Default Generator Fund
Default Building Fund
Default Medical Fee
Default Recreation Fee
Default Examination Fee
Default Bus charges
Active
"; + +}} + +else{ + + +echo ""; + +$stddata = mysql_query("SELECT * FROM iphs.students",$con); +while($row = mysql_fetch_array($stddata)){ + +$id = $row["id"]; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; +} +echo "
Reg. NumNameClassFamily NoAdmissionTuitionGeneratorBuildingMedicalRecreationExaminationBuschargeActiveEdit
"; +echo $row["regnum"]; +echo ""; +echo $row["name"]; +echo ""; +echo $row["class"]; +echo ""; +echo $row["faimlynum"]; +echo ""; +echo $row["admission"]; +echo ""; +echo $row["tuition"]; +echo ""; +echo $row["sports"]; +echo ""; +echo $row["building"]; +echo ""; +echo $row["medical"]; +echo ""; +echo $row["recreation"]; +echo ""; +echo $row["examination"]; +echo ""; +echo $row["buscharge"]; +echo ""; +echo $row["active"]; +echo ""; +echo "
"; +echo "
"; +} + +?> + + + \ No newline at end of file