353 |
} // DLtag |
} // DLtag |
354 |
|
|
355 |
/** |
/** |
356 |
|
* <!DOCTYPE> tag class |
357 |
|
* @package phpHtmlLib |
358 |
|
*/ |
359 |
|
class DOCTYPEtag extends HTMLTagClass { |
360 |
|
var $_tag = "!DOCTYPE"; |
361 |
|
|
362 |
|
function _set_flags() { |
363 |
|
parent::_set_flags(); |
364 |
|
$this->_flags &= ~(_CONTENTREQUIRED | _CLOSETAGREQUIRED); |
365 |
|
$this->_flags |= _ALWAYS_UPPERCASE | _NOFINISHSLASHXHTML; |
366 |
|
} |
367 |
|
} //!DOCTYPEtag |
368 |
|
|
369 |
|
/** |
370 |
* <DT> tag class |
* <DT> tag class |
371 |
* |
* |
372 |
* The <dt> tag defines the start of a |
* The <dt> tag defines the start of a |
439 |
*/ |
*/ |
440 |
class FORMtag extends HTMLTagClass { |
class FORMtag extends HTMLTagClass { |
441 |
var $_tag = "form"; |
var $_tag = "form"; |
442 |
|
var $_xhtml_strict_attributes = array("name", "target"); |
443 |
} // FORMtag |
} // FORMtag |
444 |
|
|
445 |
|
|
1035 |
*/ |
*/ |
1036 |
class PREtag extends HTMLTagClass { |
class PREtag extends HTMLTagClass { |
1037 |
var $_tag = "pre"; |
var $_tag = "pre"; |
1038 |
|
function _set_flags() { |
1039 |
|
parent::_set_flags(); |
1040 |
|
$this->_flags &= ~_INDENT; |
1041 |
|
} |
1042 |
} // PREtag |
} // PREtag |
1043 |
|
|
1044 |
|
|
1261 |
|
|
1262 |
for ($x=0; $x <= func_num_args()-1; $x++) { |
for ($x=0; $x <= func_num_args()-1; $x++) { |
1263 |
if (is_object($args[$x])) { |
if (is_object($args[$x])) { |
1264 |
if ($args[$x]->_tag == "td") { |
if (isset($args[$x]->_tag) && $args[$x]->_tag == "td") { |
1265 |
$tr->add( $args[$x] ); |
$tr->add( $args[$x] ); |
1266 |
} else if ($args[$x]->_tag == "tr") { |
} else if (isset($args[$x]->_tag) && $args[$x]->_tag == "tr") { |
1267 |
//the user is trying to use this |
//the user is trying to use this |
1268 |
//to add a TR object. |
//to add a TR object. |
1269 |
if ($tr->count_content() >= 1) { |
if ($tr->count_content() >= 1) { |