|
Hi, This is a fee receipt page of a php school administration script. The problem is that while giving print command, The receipt prints in a whole A4 size page. The characters are getting printed one upon other in big bold letters, resulting the receipt unreadable. The scripts vendors are demanding very high fees to change it when i request them to help.
I have tried several methods like changing the font size of the browser and changing the html content of the page; but no use.
Other reports are printing fine.
Please help, I dont know php. I am pasting the code in the fee receipt page here. If any one can help me, I will be grateful to them.
Thanking you
Ram
<?PHP
session_start();
$module="fees";
include("../../db.php");
// If the session is null then redirect to Login page.
if($user_id=="") { ?>
<script>
parent.location.href="../../index.php";
</script> <?PHP
} else { // if the user is not admin then deny access
$priv_row=mysql_fetch_array(mysql_db_query($db_nam e,"select permission from privilege where empid='$priv_id' and module='$module' and br_id='$branch_id'"));
if($priv_row[0] < 1) Header("Location:../../noaccess.php");
}
include("../../colors.php");
include("../../lang/".$language."/".$module.".php");
include("../classsecfromid.php");
$res2=mysql_db_query($db_name,"select fee_payment_details.admno,fee_payment_details.paid _date,fee_types.name,fee_payment_details.amount,st udent.lastname,student.firstname,student.stu_class ,student.rollno,fee_payment_details.mon,fee_types. fee_type,fee_payment_details.fine from fee_payment_details,student,fee_types where student.admno=fee_payment_details.admno and student.br_id=fee_payment_details.br_id and fee_payment_details.br_id='$branch_id' and trans_id='$trans_id' and student.br_id=fee_types.br_id and fee_types.id=fee_payment_details.fee_type");
$arr=array("",$jan,$feb,$mar,$apr,$may,$jun,$jul,$ aug,$sep,$oct,$nov,$dec);
echo mysql_error();
$row=mysql_fetch_row($res2);
$schoolarr=array('schoolname','address1','address2 ','city','zipcode');
$scarr=array();
for($x=0;$x<sizeof($schoolarr);$x++) {
$schooldet=mysql_fetch_array(mysql_db_query($db_na me,"select setting_value from settings where setting_type='$schoolarr[$x]'"));
$scarr[$x]=$schooldet[0];
}
if($status!=1) {
include("../newheader.php");
include("../../lang/".$language."/".$module.".php"); ?>
<table><td><h3 align=left><font Style=FILTER:Shadow(color=silver,direction=125);He ight=5><?echo $sgstr52;?><b></h3</font></td></table><br><br>
<table align="center" width="100%" cellspacing="3" cellpadding="0" bordercolorlight="<? echo $light; ?>" bordercolordark="<? echo $toolight; ?>" bgcolor="<? echo $light; ?>" border="1">
<tr>
<td width="25%">
<p align="center"><a href="fees.php"><b><?echo $sgstr3;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="fees_concession.php">
<b><?echo $sgstr4;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="fee_payment_search.php"><font color='<?echo $visitedcolor;?>'><b><?echo $sgstr5;?></b></a></p>
</td>
<td width="25%">
<p align="center"><a href="feereport.php"><b><?echo $sgstr6;?></b></a></p>
</td>
</tr>
</table> <?PHP
} ?>
<table border="0" width="100%">
<tr><td> </td></tr>
<tr>
<td width="70%"><b><?echo $sgstr53;?> :</b> <?echo $trans_id;?></td>
<td width="30%"><b><?echo $sgstr54;?> :</b> <?echo $row[1];?></td>
</tr>
</table><br>
<table border="0" width="100%">
<tr><td align="center"><b> <?echo $scarr[0];?></b></td></tr>
<tr><td align="center"><b><?echo $scarr[3]."-".$scarr[4]?></b></td></tr>
</table><br>
<table border="0" width="100%">
<tr>
<td width="70%"><b><?echo $sgstr11;?> :</b> <?echo $row[0];?></td>
<td width="30%" align=left>
<b><?echo $sgstr27;?>:</b> <?echo $row[4]." ".$row[5];?>
</td>
|