UPdate to custom mailing label generator, been holding this for over a year in my tree -dont think its even used anymore, but it was useful for ottawa

This commit is contained in:
james 2011-03-17 22:22:20 +00:00
parent 8efb3f2bcf
commit 89bcf64399

View File

@ -68,6 +68,7 @@ if($report)
case "schools": case "schools":
$q=mysql_query("SELECT $q=mysql_query("SELECT
schools.school AS name, schools.school AS name,
schools.board AS board,
schools.schoollang, schools.schoollang,
schools.sciencehead AS co, schools.sciencehead AS co,
schools.address AS address, schools.address AS address,
@ -153,17 +154,23 @@ if($report)
$coname=i18n("Science Department Head",array(),array(),$r->schoollang); $coname=i18n("Science Department Head",array(),array(),$r->schoollang);
$co=i18n("C/O %1",array($coname),array("Name of person"),$r->schoollang); $co=i18n("C/O %1",array($coname),array("Name of person"),$r->schoollang);
}
else $co="C/O $r->co";
if($_GET['type']=="pdf")
{ $name=$r->name;
$rep->newLabel(); if($r->board)
$rep->mailingLabel($r->name,$co,$r->address,$r->city,$r->province,$r->postalcode); $name.=" [".$r->board."]";
} }
else if($_GET['type']=="csv") else {
{ $co="C/O $r->co";
$table['data'][]=array($r->name,$co,$r->address,$r->city,$r->province,$r->postalcode); $name=$r->name;
}
if($_GET['type']=="pdf") {
$rep->newLabel();
$rep->mailingLabel($name,$co,$r->address,$r->city,$r->province,$r->postalcode);
}
else if($_GET['type']=="csv") {
$table['data'][]=array($name,$co,$r->address,$r->city,$r->province,$r->postalcode);
} }
} }