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

Contents of /nfo/php/libs/com.newsblob.phphtmllib/tag_utils/frame_utils.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Thu Jan 30 03:29:42 2003 UTC (21 years, 5 months ago) by jonen
Branch: MAIN
Branch point for: no_vendor_tag
Initial revision

1 <?php
2
3 /**
4 * This file contains helper functions related
5 * to framesets and frames
6 *
7 * $Id: frame_utils.inc,v 1.2 2002/07/04 01:22:30 hemna Exp $
8 *
9 * @author Walter A. Boring IV <waboring@buildabetterweb.com>
10 * @package phpHtmlLib
11 *
12 */
13
14
15 /**
16 * This function is used to build a
17 * FRAMESETtag object with the most
18 * common attributes.
19 * NOTE: It comes with the following attributes
20 * defaulted to:
21 * framespacing = "0"
22 * frameborder = "no"
23 *
24 * @param string - $rows - the rows attribute
25 * @param string - $cols - the cols attribute
26 * @param int - $border - the border attribute
27 * @return FRAMESETtag object
28 */
29 function html_frameset( $rows=NULL, $cols=NULL, $border="0" ) {
30
31 $attributes = array("border" => $border,
32 "framespacing" => 0,
33 "frameborder" => "no");
34
35 if ($rows != NULL) {
36 $attributes["rows"] = $rows;
37 }
38
39 if ($cols != NULL) {
40 $attributes["cols"] = $cols;
41 }
42
43 return new FRAMESETtag( $attributes );
44 }
45
46 /**
47 * This function is used to build a
48 * FRAMEtag object with some common attributes
49 * already set.
50 * NOT: this comes with the following attribtes
51 * defaulted to:
52 * marginwidth = "0"
53 * marginheight = "0"
54 * noresize
55 * frameborder = "0"
56 *
57 * @param string - $name - the "name" attribute
58 * @param string - $src - the "src" atribute
59 * @param string - $scrolling - the "scrolling" attribute
60 * @return FRAMEtag object.
61 */
62 function html_frame( $name, $src, $scrolling="no") {
63
64 $attributes = array("name" => $name,
65 "src" => $src,
66 "border" => $border,
67 "scrolling" => $scrolling,
68 "marginwidth" => 0,
69 "marginheight" => 0,
70 "noresize",
71 "frameborder" => "no");
72
73 return new FRAMEtag( $attributes );
74 }
75
76
77 ?>

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