Viewing file: fee_registration.php (5.93 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); ?> <?php include('session.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Fees Paid</title> <style type="text/css"> body { background-color: #CCC; } </style> <center> </head> <body> <table width="100%" border="0" bgcolor="#FFFFFF"> <tr> <td colspan="4" align="center"><?php include('header.php'); ?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessisionbar.php'); ?></td> </tr> <tr> <td colspan="1" bgcolor="#CCCCCC"> <form action="" method="get" id="form" name="form"> Enter Your Roll No:- <input name="q" type="text" id="q"> <input type="submit" name="Submit" value="Search" /> </form>
<?php $var = @$_GET['q'] ; $trimmed = trim($var); $link = mysqli_connect("localhost", 'itce_user','rb!itc838',"itce_data"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } // Attempt select query execution $sql = "SELECT * FROM admission where enrollment=\"$trimmed\" "; if($result = mysqli_query($link, $sql)) { if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_array($result)) { $coursename=$row[programname]; $reciptno=$fmembercode; $rollno=$row[roll_no]; $registrationno=$row[registration]; $studentname=$row[stduentname]; $fathername=$row[studentfathername]; $class='$row[class]'; $address=$row[address]; $mobile=$row[mobile_no]; $fees=$row[totalfees]; $ids=$row[ID]; $genter=$row[gender]; $ledger=$row[lesarno]; $cyear=$row[cyear]; $mobileno=$row[mobileno];
} echo "</table>"; // Free result set mysqli_free_result($result); } else{ } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } $laserno=$accountnew+1;
// Close connection mysqli_close($link); ?> <?php $var = @$_GET['q'] ; $trimmed = trim($var); $link = mysqli_connect("localhost", 'itce_user','rb!itc838',"itce_data"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $field = 'roll_no'; // Attempt select query execution $sql = "select * from student_admission where $field like \"$trimmed\" "; if($result = mysqli_query($link, $sql)) { if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_array($result)) { $depfees=$row[depositfees]; $totalfees=$totalfees+$depfees;
} echo "</table>"; // Free result set mysqli_free_result($result); } else{ } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } $laserno=$accountnew+1;
// Close connection mysqli_close($link); ?>
<form action="feesadd.php" method="post" id="form1" name="form1">
<table width="445" border="1"> <tr> <td width="145" align="left">ID </td> <td width="284" align="left"><input name="ids" type="text" readonly="readonly" value='<?php echo $ids ?>'/></td> </tr> <tr> <td width="145" align="left">Roll No </td> <td width="284" align="left"><input name="rollno" type="text" readonly="readonly" value='<?php echo $rollno ?>'/></td> </tr> <tr> <td align="left">Branch Name</td> <td align="left"><input name="branchname" type="text" readonly="readonly" value='<?php echo $user ?>'/></td> </tr> <tr> <td align="left">Course Name</td> <td align="left"><input name="coursename" type="text" readonly="readonly" value='<?php echo $coursename ?>'/></td> </tr> <tr> <td align="left">Student Name</td> <td align="left"><input name="studentname" type="text" readonly="readonly" value='<?php echo $studentname ?>'/></td> </tr> <tr> <td align="left">GENDER</td> <td align="left"><input name="gender" type="text" readonly="readonly" value='<?php echo $genter ?>'/></td> </tr> <tr> <td align="left">Ledger No</td> <td align="left"><input name="laser_no" type="text" readonly="readonly" value='<?php echo $ledger ?>'/></td> </tr> <tr> <td align="left">Address</td> <td align="left"><input name="address" type="text" readonly="readonly" value='<?php echo $address ?>'/></td> </tr> <tr> <td align="left">Mobile</td> <td align="left"><input name="mobileno" type="text" readonly="readonly" value='<?php echo $mobileno?>'/></td> </tr> <tr> <td align="left">Father's Name</td> <td align="left"><input name="fathername" type="text" readonly="readonly" value='<?php echo $fathername ?>'/></td> </tr> <tr> <td align="left">Course Fees</td> <td align="left"><input name="coursefees" type="text" readonly="readonly" value='<?php echo $fees ?>'/></td> </tr> <tr> <td align="left">Deposit Fees</td> <td align="left"><input name="deposit" type="text" readonly="readonly" value='<?php echo $totalfees ?>'/> </td> </tr> <tr> <td align="left">Due Fees</td> <td align="left"><input name="paidfees" type="text" value=<?php echo $fees-$totalfees ?> readonly /></td> </tr> <tr> <td align="left">Deposit Date</td> <td align="left"><input name="cdate" type="text" value=<?php echo Date('d/m/Y'); ?> readonly /></td> </tr> <tr> <td align="left">Paid Fees</td> <td align="left"><input name="paidfees" type="text" /></td> </tr> <tr> <td colspan="2"><input type="submit" name="addrecod" id="addrecod" value="Submit"/></td> </tr> </table> </form> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"><?php include('footer.php'); ?></td> </tr> </table>
</body></center> </html>
|