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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Sat Sep 20 00:15:57 2003 UTC (20 years, 11 months ago) by jonen
Branch: MAIN
Changes since 1.2: +1 -2 lines
+ updated whole phphtmllib to v2.3.0

1 jonen 1.1 <?php
2    
3     /**
4     * This file contains helper functions related
5     * to framesets and frames
6     *
7 jonen 1.3 * $Id: frame_utils.inc,v 1.3 2003/07/28 20:58:34 hemna Exp $
8 jonen 1.1 *
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     "scrolling" => $scrolling,
67     "marginwidth" => 0,
68     "marginheight" => 0,
69     "noresize",
70     "frameborder" => "no");
71    
72     return new FRAMEtag( $attributes );
73     }
74    
75    
76     ?>

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