/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/tag_utils/html_utils.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/tag_utils/html_utils.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jonen, Thu May 6 16:27:37 2004 UTC revision 1.5 by joko, Wed Jul 7 02:23:42 2004 UTC
# Line 1464  function mailto($email, $subject=NULL, $ Line 1464  function mailto($email, $subject=NULL, $
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  ?>  ?>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed