<?php // Outputs: id="input1" size="39" maxlength="30" echo html::attributes (array ("id" => "input1", "size" => 30, "maxLength" => 30, "class" => "")); // Outputs: id="input1" size="39" maxlength="30" class="" echo html::attributes (array ("id" => "input1", "size" => 30, "maxLength" => 30, "class" => ""), true); ?>
<?php echo html::options (array ("AU" => "Austria", "IT" => "Italia", "SI" => "Slovenia"), "SI"); echo html::options (array ("EU" => array ("AU" => "Austria", "IT" => "Italia", "SI" => "Slovenia"), "America" => array ("USA" => "USA", "CA" => "Canada)), array ("CA","SI")); ?>
<option value="AU">Austria</option> <option value="IT">Italia</option> <option value="SI" selected="selected">Slovenia</option> <optgroup label="EU"> <option value="AU">Austria</option> <option value="IT">Italia</option> <option value="SI" selected="selected">Slovenia</option> </optgroup> <optgroup label="America"> <option value="USA">USA</option> <option value="CA" selected="selected">Canada</option> </optgroup>
<?php echo html::ul (array ("Europa", "America", "E" => array ("<a href="austria.php">Austria</a>", "Italia", "SI" => "Slovenia")), array ("id" => "world")); ?>
<ul id="world"> <li>Europa</li> <li>America</li> <li> <ul id="E"> <li><a href="austria.php">Austria</a></li> <li>Italia</li> <li id="SI">Slovenia</li> </ul> </li> </ul>
<?php // Outputs: <a href="test.php" onclick="doClick()">TEST</a> echo html::a ("TEST", "test.php", array ("onClick" => "doClick()")); // Outputs: <a href="test.php">test.php</a> echo html::a ("", "test.php"); // Outputs: <a href="test.php"><img src="test.png" alt="TEST" /></a> echo html::a ("<img src="test.png" alt="TEST" />, "test.php"); // Outputs: TEST echo html::a ("TEST", ""); // Outputs: <a id="top" /> echo html::a ("", "", array ("id" => "top")); ?>
© 2003-24 iNeta d.o.o. | Koroška cesta 31, SI-4000 Kranj | info@ineta.si | Pravno obvestilo
Powered by BravoCMS