This topic is locked

How do I change font size within an event?

5/22/2008 8:33:19 AM
PHPRunner General questions
T
thesofa author

Hi, I am using the "before record processed "event to produce a printable letter from a database.

using the following custom code:

//********** Custom code ************

// put your custom code here

global $conn;

$b="<p>";

$kid=$data["pup_id"];

$str2 = "select * from `pupils` where `ID_pup`='".$kid."'";

$rs2 = db_query($str2,$conn);

$data2 = db_fetch_array($rs2);

$kidfirst=$data2["Forename"];

$kidlast=$data2["Surname"];

$kidname=$kidfirst." ".$kidlast;

$open="Dear Parent/Carer of ".$kidname.",<p>At Parkside School we view the opportunity to discuss and share student progress with parents/carers as an important mechanism in ensuring that your child is given the best opportunity to succeed both in and out of school. We hope this tutor report provides you with a greater insight into this progress";

$close="Please take some time to discuss this report with your child, perhaps identifying areas you could support them with or celebrating success. If you have any questions at all please do not hesitate to contact the school. ";

$a=$data["cont"];

$a.=$b;

$a.=$data["acad"];

$a.=$b;

$a.=$data["att"];

$a.=$b;

$a.=$data["beh"];

$a.=$b;

$a.=$data["com"];

echo "<IMG src=images/head.jpg width =667 height = 144 border=0>";



echo "<font size='2' face = Arial>;

echo $b;

echo $open;

echo $b;

echo $a;

echo $b;

echo $close;
return true;
// return true if you like to display row on in the list

// return false otherwise



It does not seem to matter what value I put in the font size on the coloured line, I still get the small Times Roman font from the IE page, how can I change this?

J
Jane 5/23/2008

Hi,
try to use this code:

echo "<font style=\"font-family: Arial; font-size: 11px;\">;