forked from science-ation/science-ation
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:
parent
8efb3f2bcf
commit
89bcf64399
@ -68,6 +68,7 @@ if($report)
|
||||
case "schools":
|
||||
$q=mysql_query("SELECT
|
||||
schools.school AS name,
|
||||
schools.board AS board,
|
||||
schools.schoollang,
|
||||
schools.sciencehead AS co,
|
||||
schools.address AS address,
|
||||
@ -153,17 +154,23 @@ if($report)
|
||||
$coname=i18n("Science Department Head",array(),array(),$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")
|
||||
{
|
||||
$rep->newLabel();
|
||||
$rep->mailingLabel($r->name,$co,$r->address,$r->city,$r->province,$r->postalcode);
|
||||
|
||||
$name=$r->name;
|
||||
if($r->board)
|
||||
$name.=" [".$r->board."]";
|
||||
}
|
||||
else if($_GET['type']=="csv")
|
||||
{
|
||||
$table['data'][]=array($r->name,$co,$r->address,$r->city,$r->province,$r->postalcode);
|
||||
else {
|
||||
$co="C/O $r->co";
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user