Element: 'calendar'
MonTueWedThuFriSatSun
! day [ integer] = '1' ! month [ integer] = '5' ! year [ integer] = '2001' ! minyear [ integer] = '2000' ! maxyear [ integer] = '2010' ! now [ string] = 'today' ! prev [ string] = '<<' ! next [ string] = '>>' ! language [ string] = 'en' ! weekdays [ boolean] = '1' ! type [ string] = 'calendar' ! name [ string] = 'calendar' ! value [ mixed] = '' ! elname [ string] = 'calendar' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'checkbox' ! tabindex [ integer] = '1' ! accesskey [ string] = 'A' ! checked [ boolean] = '' ! type [ string] = 'checkbox' ! name [ string] = 'checkbox' ! value [ mixed] = 'value' ! elname [ string] = 'checkbox' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = ' style' Element: 'combo' ! size [ integer] = '1' ! intro [ mixed] = 'Array' ! intro_e [ string] = 'Don't select me' ! accesskey [ string] = 'O' ! tabindex [ integer] = '2' ! inputsize [ integer] = '1' ! minlength [ integer] = '1' ! maxlength [ integer] = '2' ! length_e [ string] = 'length_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! valid_e [ string] = 'valid_e' ! readonly [ boolean] = '' ! sort [ string] = 'true' ! add [ string] = 'true' ! type [ string] = 'combo' ! name [ string] = 'combo' ! options [ array] = 'Array' ! value [ mixed] = '1' ! elname [ string] = 'combo' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = ' style' Element: '' ! now [ string] = '' ! preload [ boolean] = '' ! language [ string] = 'en' ! intro [ array] = '' ! intro_e [ string] = '' ! min_year_long [ integer] = '1990' ! max_year_long [ integer] = '2010' ! min_year_short [ integer] = '90' ! max_year_short [ integer] = '10' ! type [ string] = '' ! name [ string] = '' ! format [ string] = '' ! value [ mixed] = '' ! elname [ string] = '' ! additional_html [ string] = '' ! validator [ string] = '' ! validator_callback [ boolean] = '' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = '' ! id [ string] = '' ! style [ string] = '' :( checkConfigutation(): Illegal field type of field 'intro'. It is 'string', should be 'array' Element: 'file' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! size [ integer] = '1' ! accept [ string] = '' ! length_e [ string] = 'length_e' ! minlength [ integer] = '0' ! maxlength [ integer] = '1' ! valid_e [ string] = 'valid_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! type [ string] = 'file' ! name [ string] = 'file' ! value [ mixed] = 'value' ! elname [ string] = 'file' ! additional_html [ string] = ' additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'fileupload' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! size [ integer] = '1' ! accept [ string] = '' ! length_e [ string] = 'length_e' ! minlength [ integer] = '0' ! maxlength [ integer] = '1' ! valid_e [ string] = 'valid_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! maxfilesize [ integer] = '100' ! type [ string] = 'fileupload' ! name [ string] = 'fileupload' ! value [ mixed] = 'value' ! elname [ string] = 'fileupload' ! additional_html [ string] = ' additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'hidden' ! type [ string] = 'hidden' ! name [ string] = 'hidden' ! value [ mixed] = 'value' ! elname [ string] = 'hidden' ! additional_html [ string] = ' additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'image' ! align [ string] = '' ! alt [ string] = '' ! hspace [ integer] = '1' ! vspace [ integer] = '1' ! border [ integer] = '1' ! width [ integer] = '1' ! height [ integer] = '1' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! usemap [ string] = '' ! type [ string] = 'image' ! name [ string] = 'image' ! src [ string] = 'src' ! value [ mixed] = '' ! elname [ string] = 'image' ! additional_html [ string] = ' additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'password' ! size [ integer] = '-1' ! length_e [ string] = 'length_e' ! minlength [ integer] = '0' ! maxlength [ integer] = '-1' ! valid_e [ string] = 'valid_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! readonly [ boolean] = '' ! tabindex [ integer] = '0' ! accesskey [ string] = '' ! id [ string] = 'id' ! class [ string] = 'css class' ! style [ string] = ' style' ! type [ string] = 'password' ! name [ string] = 'password' ! value [ mixed] = 'value' ! elname [ string] = 'password' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' Element: 'radio' ! tabindex [ integer] = '0' ! accesskey [ string] = '' ! checked [ boolean] = '' ! type [ string] = 'radio' ! name [ string] = 'radio' ! value [ mixed] = 'value' ! elname [ string] = 'radio' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = ' style' Element: 'reset' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! width [ integer] = '1' ! height [ integer] = '1' ! type [ string] = 'reset' ! name [ string] = 'reset' ! value [ mixed] = '' ! elname [ string] = 'reset' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = ' style' Element: 'select' ! size [ integer] = '0' ! intro [ mixed] = 'Array' ! intro_e [ string] = 'error' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! multiple [ boolean] = '' ! type [ string] = 'select' ! name [ string] = 'select' ! options [ array] = 'Array' ! value [ mixed] = 'value' ! elname [ string] = 'select' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'submit' ! accesskey [ string] = '' ! tabindex [ integer] = '0' ! width [ integer] = '1' ! height [ integer] = '1' ! type [ string] = 'submit' ! name [ string] = 'submit' ! value [ mixed] = 'value' ! elname [ string] = 'submit' ! additional_html [ string] = ' additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = 'css class' ! id [ string] = 'id' ! style [ string] = 'style' Element: 'text' ! size [ integer] = '-1' ! length_e [ string] = 'length_e' ! minlength [ integer] = '0' ! maxlength [ integer] = '-1' ! valid_e [ string] = 'valid_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! readonly [ boolean] = '' ! tabindex [ integer] = '0' ! accesskey [ string] = '' ! id [ string] = 'id' ! class [ string] = 'css class' ! style [ string] = ' style' ! type [ string] = 'text' ! name [ string] = 'text' ! value [ mixed] = 'value' ! elname [ string] = 'text' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' Element: 'textarea' ! rows [ integer] = '1' ! cols [ integer] = '1' ! wrap [ string] = 'virtual' ! length_e [ string] = 'length_e' ! minlength [ integer] = '0' ! maxlength [ integer] = '-1' ! valid_e [ string] = 'valid_e' ! valid_regex [ string] = '' ! valid_icase [ boolean] = '' ! valid_global [ boolean] = '' ! readonly [ boolean] = '' ! tabindex [ integer] = '0' ! accesskey [ string] = '' ! id [ string] = 'id' ! class [ string] = 'css class' ! style [ string] = ' style' ! type [ string] = 'textarea' ! name [ string] = 'textarea' ! value [ mixed] = 'value' ! elname [ string] = 'textarea' ! additional_html [ string] = 'additional html' ! validator [ string] = '' ! validator_callback [ boolean] = '1' ! js_validator [ string] = '' ! frozen [ boolean] = '' Element: '' ! iframe_width [ integer] = '-1' ! iframe_height [ integer] = '-1' ! iframe_border [ integer] = '-1' ! iframe_scrolling [ string] = '' ! iframe_warning [ string] = '' ! fonts [ array] = 'Array' ! fontsize [ array] = 'Array' ! txcolors [ array] = 'Array' ! bxcolors [ array] = '' ! features [ array] = 'Array' ! type [ string] = '' ! name [ string] = '' ! iframe_src [ string] = '' ! value [ mixed] = '' ! elname [ string] = '' ! additional_html [ string] = '' ! validator [ string] = '' ! validator_callback [ boolean] = '' ! js_validator [ string] = '' ! frozen [ boolean] = '' ! class [ string] = '' ! id [ string] = '' ! style [ string] = '' :( checkConfiguration(): Missing field: 'iframe_src'. :( checkConfiguration(): You've tried to define a new optional field 'accesskey' :( checkConfiguration(): You've tried to define a new optional field 'tabindex'
form include: 0.0041 s [0.0041 s] factory: 0.0629 s [0.0588 s] finish: 0.0715 s [0.0086 s]

<pre>
<?php
function getmicrotime(){ 

  
$mtime microtime(); 
  
$mtime explode(" ",$mtime); 
  
$mtime $mtime[1] + $mtime[0]; 
  return (
$mtime); 


// whatever you need...
define("FORM_INCLUDE_DIR"$DOCUMENT_ROOT "/php/form/");

$start getmicrotime();
include_once(
FORM_INCLUDE_DIR "form.inc");
include_once(
FORM_INCLUDE_DIR "form_xmlfactory.inc");
$time["form include"] = getmicrotime();

$x = new form_xmlfactory($DOCUMENT_ROOT "/projekte/form/cvs/form.xml");
$time["factory"] = getmicrotime();

$x->Start();

if (!empty(
$x->elements)) {
  
  foreach(
$x->elements as $k => $el) {
  
    
printf("Element: '%s'\n%s\n"$el->name$x->getElement($el->name));
    
$allowed array_merge($el->optional_fields$el->shared_required_fields$el->required_fields$el->shared_optional_fields);
    foreach (
$allowed as $k => $v) {
      
$m = !(isset($el->ed[$k]));
      
printf("%s%s %30s [%8s] = '%s'%s\n"
          (
$m) ? "<b>" "",
          (!
$m) ? "x" "!"
          
$k
          
$v,
          
$el->$k,
          (
$m) ? "</b>" ""
        
);
    }
    
    if (!empty(
$el->exceptions))
      foreach(
$el->exceptions as $k => $e)
        
printf(":( %s\n"$e->message);
 
    print 
"\n";       
  }

}

$x->Finish();

$time["finish"] = getmicrotime();

$lv 0;
foreach (
$time as $k => $v) {
  
printf("%30s: %2.4f s [%2.4f s]\n"$k$v $start, ($lv) ? $v $lv $v $start);
  
$lv $v;
}

?>
</pre>
<hr>
<?php
highlight_string
(implode(""file($DOCUMENT_ROOT "/projekte/form/cvs/test.php")));
?>
<hr>
<?php
print nl2br(str_replace("<" "&lt;"implode(""file($DOCUMENT_ROOT "/projekte/form/cvs/form.xml"))));
?>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form SYSTEM "C:\www\apache\form\form.dtd">
<form method="POST" action="test.php" target="self" name="form1" jsname="jsname">

<javascript mode="weak">
<errorprefix>There're errors in the form: \n\n</errorprefix>
<errorpostfix>\n\nPlease correct the input.</errorpostfix>
</javascript>

<defaults>
<text size="0" maxlength="0"/>
<file size="0"/>
<image border="0"/>
<intros errormsg = "Don't select me">
<intro value="0">intro</intro>
</intros>
<css class="css class" id="id">style</css>
</defaults>

<elements nameprefix="">

<calendar name="calendar" elname="calendar" frozen="false" minyear="2000" maxyear="2010" now="today" prev="<<" next=">>">
<preselect>
<day>1</day>
<month>5</month>
<year>2001</year>
</preselect>
<css class="css class" id="id">style</css>
<html>additional html</html>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</calendar>

<checkbox name="checkbox" elname="checkbox" frozen="false" checked="false">
value
<css class="css class" id="id">style</css>
<html accesskey="A" tabindex="1">additional html</html>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</checkbox>

<combo name="combo" elname="combo" inputsize="1" readonly="false" sort="true" frozen="false" add="true" size="1">
1
<options>
<option value="1">1</option>
<option value="2">2</option>
</options>
<intros errormsg = "Don't select me">
<intro value="0">intro</intro>
</intros>
<validation>
<length min="1" max="2">length_e</length>
<regexp reg="" icase="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
<css class="css class" id="id">style</css>
<html accesskey="O" tabindex="2">additional html</html>
</combo>

<date name="date" elname="date" language="en" frozen="false" preload="false" format="d.m.Y" now="jetzt" intro="" intro_e="">
value
<limits>
<yearlong min="1990" max="2010"/>
<yearshort min="90" max="99"/>
</limits>
<html>additional html</html>
<css class="css class" id="id">style</css>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</date>

<file size="1" accept="" name="file" elname="file" frozen="false">
value
<html accesskey="" tabindex="">additional html</html>
<css class="css class" id="id">style</css>
<validation>
<length min="0" max="1">length_e</length>
<regexp reg="" icase="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</file>

<fileupload size="1" maxfilesize="100" accept="" name="fileupload" elname="fileupload" frozen="false">
value
<html accesskey="" tabindex="">additional html</html>
<css class="css class" id="id">style</css>
<validation>
<length min="0" max="1">length_e</length>
<regexp reg="" icase="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</fileupload>

<hidden name="hidden" elname="hidden" frozen="false">
value
<html>additional html</html>
<css class="css class" id="id">style</css>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</hidden>

<image name="image" elname="image" align="" alt="" hspace="1" vspace="1" border="1" width="1" height="1" usemap="" frozen="false">
src
<html accesskey="" tabindex="">additional html</html>
<css class="css class" id="id">style</css>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</image>

<password name="password" elname="password" size="-1" readonly="false" frozen="false">
value
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<length min="0" max="-1">length_e</length>
<regexp reg="" icase="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</password>

<radio name="radio" elname="radio" checked="false" frozen="false">
value
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</radio>

<reset name="reset" elname="reset" frozen="false" width="1" height="1">
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</reset>

<select name="select" elname="select" frozen="false" size="0" multiple="false">
value
<options>
<option value=""/>
</options>
<intros errormsg="error">
<intro value="">intro</intro>
</intros>
<html accesskey="" tabindex="">additional html</html>
<css class="css class" id="id">style</css>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</select>

<submit name="submit" elname="submit" width="1" height="1" frozen="false" accesskey="" tabindex="">
value
<html accesskey="" tabindex="">additional html</html>
<css class="css class" id="id">style</css>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</submit>

<text name="text" elname="text" size="-1" readonly="false" frozen="false">
value
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<length min="0" max="-1">length_e</length>
<regexp reg="" icase="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</text>

<textarea name="textarea" elname="textarea" rows="1" cols="1" wrap="virtual" readonly="false" frozen="false">
value
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<length min="0" max="-1">length_e</length>
<regexp reg="" icase="false" global="false">valid_e</regexp>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</textarea>

<textedit name="textedit" elname="textedit" frozen="false">
value
<css class="css class" id="id">style</css>
<html accesskey="" tabindex="">additional html</html>
<validation>
<phpfunction callback="false"></phpfunction>
<jsfunction></jsfunction>
</validation>
</textedit>
</elements>

</form>