--- nfo/php/libs/com.newsblob.phphtmllib/tag_utils/frame_utils.inc 2003/09/20 00:15:57 1.3
+++ nfo/php/libs/com.newsblob.phphtmllib/tag_utils/frame_utils.inc 2004/05/06 16:27:37 1.4
@@ -1,10 +1,9 @@
* @package phpHtmlLib
@@ -26,19 +25,13 @@
* @param int - $border - the border attribute
* @return FRAMESETtag object
*/
-function html_frameset( $rows=NULL, $cols=NULL, $border="0" ) {
+function html_frameset( $rows, $cols, $border="0" ) {
$attributes = array("border" => $border,
- "framespacing" => 0,
- "frameborder" => "no");
-
- if ($rows != NULL) {
- $attributes["rows"] = $rows;
- }
-
- if ($cols != NULL) {
- $attributes["cols"] = $cols;
- }
+ "framespacing" => "0",
+ "frameborder" => "no",
+ "rows" => $rows,
+ "cols" => $cols);
return new FRAMESETtag( $attributes );
}
@@ -64,8 +57,8 @@
$attributes = array("name" => $name,
"src" => $src,
"scrolling" => $scrolling,
- "marginwidth" => 0,
- "marginheight" => 0,
+ "marginwidth" => "0",
+ "marginheight" => "0",
"noresize",
"frameborder" => "no");