1464 |
return html_a($mailto, $email); |
return html_a($mailto, $email); |
1465 |
} |
} |
1466 |
|
|
1467 |
|
/** |
1468 |
|
* build an <a name> tag with content. |
1469 |
|
* written by Bill Shaw 3/16/03 |
1470 |
|
* pasted here from http://phphtmllib.newsblob.com/forums/index.php?t=msg&th=189&start=0&rid=0 |
1471 |
|
*/ |
1472 |
|
function html_aname($name, $content=NULL, $class=NULL, $target=NULL, $title=NULL) { |
1473 |
|
|
1474 |
|
$attributes = array("name" => $name); |
1475 |
|
if ($class) { |
1476 |
|
$attributes["class"] = $class; |
1477 |
|
} |
1478 |
|
if ($target) { |
1479 |
|
$attributes["target"] = $target; |
1480 |
|
} |
1481 |
|
|
1482 |
|
if ($title) { |
1483 |
|
$attributes["title"] = $title; |
1484 |
|
} |
1485 |
|
|
1486 |
|
$a = new Atag( $attributes, $content); |
1487 |
|
$a->set_collapse(); |
1488 |
|
|
1489 |
|
return $a; |
1490 |
|
} |
1491 |
|
|
1492 |
?> |
?> |