3 function XHTML_Text($text, $class = null)
7 echo "<div class=\"".$class."\">";
17 define("XHTML_FormMethodGET", "GET");
18 define("XHTML_FormMethodPOST", "POST");
20 function XHTML_Form_Begin($action, $method)
22 echo "<form action=\"".$action."\" method=\"".$method."\">\n";
25 function XHTML_Form_GET_Begin($action)
27 XHTML_Form_Begin($action, constant("XHTML_FormMethodGET"));
30 function XHTML_Form_POST_Begin($action)
32 XHTML_Form_Begin($action, constant("XHTML_FormMethodPOST"));
35 function XHTML_Form_End()
40 function XHTML_Form_Input_Text($name, $size = null)
42 echo "<input type=\"text\" class=\"input-text\" name=\"".$name."\"";
45 echo " size=\"".$size."\"";
50 function XHTML_Form_Input_Checkbox($name)
52 echo "<input type=\"checkbox\" class=\"input-checkbox\" name=\"".$name."\" />\n";
55 function XHTML_Form_Input_Choice($name, $value, $checked = false)
59 echo "<input type=\"radio\" class=\"input-radio\" name=\"".$name."\" value=\"".$value."\" checked />\n";
63 echo "<input type=\"radio\" class=\"input-radio\" name=\"".$name."\" value=\"".$value."\" />\n";
67 function XHTML_Form_Input_Submit($value)
69 echo "<input type=\"submit\" value=\"".$value."\" class=\"input-button\">";
72 function XHTML_Form_Select_Begin($name)
74 echo "<select name=\"".$name."\">\n";
77 function XHTML_Form_Select_End()
82 function XHTML_Form_Option($description, $value, $selected=false)
86 echo "<option value=\"".$value."\" selected>".$description."</option>\n";
90 echo "<option value=\"".$value."\">".$description."</option>\n";
94 function XHTML_Table_Begin()
99 function XHTML_Table_End()
104 function XHTML_Table_Row_Begin()
109 function XHTML_Table_Row_End()
114 function XHTML_Table_Cell_Begin()
119 function XHTML_Table_Cell_End()
124 function XHTML_Span_Begin($class)
126 echo "<span class=\"".$class."\">\n";
129 function XHTML_Span_End()
134 function XHTML_LineBreak()