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 |
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 |
} |
} |
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 |
|
|