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

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

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

revision 1.3 by jonen, Sat Sep 20 00:15:57 2003 UTC revision 1.4 by jonen, Thu May 6 16:27:37 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
   
2  /**  /**
3   * This file contains helper functions related   * This file contains helper functions related
4   * to framesets and frames   * to framesets and frames
# Line 26  Line 25 
25   * @param int    - $border - the border attribute   * @param int    - $border - the border attribute
26   * @return FRAMESETtag object   * @return FRAMESETtag object
27   */   */
28  function html_frameset( $rows=NULL, $cols=NULL, $border="0" ) {  function html_frameset( $rows, $cols, $border="0" ) {
29    
30      $attributes = array("border" => $border,      $attributes = array("border" => $border,
31                          "framespacing" => 0,                          "framespacing" => "0",
32                          "frameborder" => "no");                          "frameborder" => "no",
33                            "rows" => $rows,
34      if ($rows != NULL) {                          "cols" => $cols);
         $attributes["rows"] = $rows;  
     }  
   
     if ($cols != NULL) {  
         $attributes["cols"] = $cols;  
     }  
35    
36      return new FRAMESETtag( $attributes );      return new FRAMESETtag( $attributes );
37  }  }
# Line 64  function html_frame( $name, $src, $scrol Line 57  function html_frame( $name, $src, $scrol
57      $attributes = array("name" => $name,      $attributes = array("name" => $name,
58                          "src" => $src,                          "src" => $src,
59                          "scrolling" => $scrolling,                          "scrolling" => $scrolling,
60                          "marginwidth" => 0,                          "marginwidth" => "0",
61                          "marginheight" => 0,                          "marginheight" => "0",
62                          "noresize",                          "noresize",
63                          "frameborder" => "no");                          "frameborder" => "no");
64    

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

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