Changeset 1062
- Timestamp:
- 08/25/08 23:42:33 (3 months ago)
- Files:
-
- trunk/lib/jelix-scripts/templates/form.xml.tpl (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core/jConfigCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/docs/ns/jforms_1.1.rng (modified) (1 diff)
- trunk/lib/jelix/forms/jFormsCompiler.class.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/forms/label.form.xml (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/forms/product.form.xml (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html_cli.php (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler_1_1.html_cli.php (modified) (2 diffs)
- trunk/testapp/modules/testapp/forms/products.form.xml (modified) (2 diffs)
- trunk/testapp/modules/testapp/forms/sample.form.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix-scripts/templates/form.xml.tpl
r938 r1062 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <form sxmlns="http://jelix.org/ns/forms/1.1">2 <form xmlns="http://jelix.org/ns/forms/1.1"> 3 3 %%content%% 4 </form s>4 </form> trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties
r1041 r1062 18 18 notunique.tag=(817) tag %1$s must be unique (file %2$s) 19 19 control.not.allowed= (818) The tag %1$s is not allowed in %2$s (file %3$s) 20 no.child.control= (819) The tag %1$s must contain some controls (file %2$s) 21 bad.root.tag=(820) the root element %1$s is incorrect, it should have the name "form" (fichier %2$s) 20 22 21 23 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties
r1041 r1062 19 19 control.not.allowed= (818) The tag %1$s is not allowed in %2$s (file %3$s) 20 20 no.child.control= (819) The tag %1$s must contain some controls (file %2$s) 21 bad.root.tag=(820) the root element %1$s is incorrect, it should have the name "form" (fichier %2$s) 21 22 22 23 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties
r1041 r1062 19 19 control.not.allowed= (818) La balise %1$s n'est pas autorisé dans %2$s (fichier %3$s) 20 20 no.child.control= (819) La balise %1$s doit contenir des balises de contrôles (fichier %2$s) 21 bad.root.tag=(820) la balise racine %1$s est incorrecte, elle devrait avoir pour nom "form" (fichier %2$s) 21 22 22 23 js.err.invalid=La saisie de "%s" est invalide trunk/lib/jelix/core/jConfigCompiler.class.php
r1058 r1062 92 92 $config->timeZone = "Europe/Paris"; 93 93 #else 94 $config->timeZone = date_default_timezone_get(); 94 $tz = ini_get('date.timezone'); 95 if ($tz != '') 96 $config->timeZone = $tz; 97 else 98 $config->timeZone = "Europe/Paris"; 95 99 #endif 96 100 } … … 158 162 $config['timeZone'] = "Europe/Paris"; 159 163 #else 160 $config['timeZone'] = date_default_timezone_get(); 164 $tz = ini_get('date.timezone'); 165 if ($tz != '') 166 $config['timeZone'] = $tz; 167 else 168 $config['timeZone'] = "Europe/Paris"; 161 169 #endif 162 170 } trunk/lib/jelix/docs/ns/jforms_1.1.rng
r1053 r1062 7 7 8 8 <start> 9 <element name="form s">9 <element name="form"> 10 10 <ref name="form.controls" /> 11 11 </element> trunk/lib/jelix/forms/jFormsCompiler.class.php
r1057 r1062 41 41 $compiler = new jFormsCompiler_jf_1_0($this->sourceFile); 42 42 } elseif ($doc->documentElement->namespaceURI == JELIX_NAMESPACE_BASE.'forms/1.1') { 43 if ($doc->documentElement->localName != 'form') { 44 throw new jException('jelix~formserr.bad.root.tag',array($doc->documentElement->localName, $this->sourceFile)); 45 } 43 46 require_once(JELIX_LIB_PATH.'forms/jFormsCompiler_jf_1_1.class.php'); 44 47 $compiler = new jFormsCompiler_jf_1_1($this->sourceFile); trunk/testapp/modules/jelix_tests/forms/label.form.xml
r629 r1062 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <form sxmlns="http://jelix.org/ns/forms/1.0">2 <form xmlns="http://jelix.org/ns/forms/1.0"> 3 3 4 4 <input ref="label" required="true"> … … 6 6 </input> 7 7 8 </form s>8 </form> trunk/testapp/modules/jelix_tests/forms/product.form.xml
r504 r1062 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <form sxmlns="http://jelix.org/ns/forms/1.0">2 <form xmlns="http://jelix.org/ns/forms/1.0"> 3 3 4 4 <input ref="name" required="true"> … … 20 20 </checkboxes> 21 21 22 </form s>22 </form> trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html_cli.php
r1050 r1062 820 820 protected $_BadXmlForms = array( 821 821 array( 822 '<form sxmlns="http://jelix.org/ns/forms/1.0">822 '<form xmlns="http://jelix.org/ns/forms/1.0"> 823 823 <reset ref="reset1"> 824 824 <label>annulation 1</label> … … 827 827 <label>annulation 2</label> 828 828 </reset> 829 </form s>',829 </form>', 830 830 'jelix~formserr.notunique.tag', 831 831 array( 'reset','myfile') trunk/testapp/modules/jelix_tests/tests/jforms.compiler_1_1.html_cli.php
r1050 r1062 1058 1058 protected $_BadXmlForms = array( 1059 1059 array( 1060 '<form sxmlns="http://jelix.org/ns/forms/1.1">1060 '<form xmlns="http://jelix.org/ns/forms/1.1"> 1061 1061 <reset ref="reset1"> 1062 1062 <label>annulation 1</label> … … 1065 1065 <label>annulation 2</label> 1066 1066 </reset> 1067 </form s>',1067 </form>', 1068 1068 'jelix~formserr.notunique.tag', 1069 1069 array( 'reset','myfile') trunk/testapp/modules/testapp/forms/products.form.xml
r661 r1062 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <form sxmlns="http://jelix.org/ns/forms/1.0">2 <form xmlns="http://jelix.org/ns/forms/1.0"> 3 3 4 4 <input ref="name" required="true"> … … 18 18 </submit> 19 19 20 </form s>20 </form> trunk/testapp/modules/testapp/forms/sample.form.xml
r1055 r1062 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <form sxmlns="http://jelix.org/ns/forms/1.1">2 <form xmlns="http://jelix.org/ns/forms/1.1"> 3 3 4 4 <hidden ref="hiddenvalue" defaultvalue="my hidden value"/> … … 119 119 </submit> 120 120 121 </form s>121 </form>
