You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fe...@apache.org on 2007/07/22 16:51:30 UTC
svn commit: r558490 [15/33] - in
/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha:
./ images/ images/de/ images/fr/ lang/ modules/ modules/ColorPicker/
modules/CreateLink/ modules/Dialogs/ m...
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/form-operations.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/form-operations.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/form-operations.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/form-operations.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,432 @@
+Xinha.Config.prototype.FormOperations={"multiple_field_format":"php","allow_edit_form":false,"default_form_action":_editor_url+"plugins/FormOperations/formmail.php","default_form_html":Xinha._geturlcontent(_editor_url+"plugins/FormOperations/default_form.html")};
+FormOperations._pluginInfo={name:"FormOperations",version:"1.0",developer:"James Sleeman",developer_url:"http://www.gogo.co.nz/",c_owner:"Gogo Internet Services",license:"htmlArea",sponsor:"Gogo Internet Services",sponsor_url:"http://www.gogo.co.nz/"};
+function FormOperations(_1){
+this.editor=_1;
+this.panel=false;
+this.html=false;
+this.ready=false;
+this.activeElement=null;
+this._preparePanel();
+_1.config.pageStyleSheets.push(_editor_url+"plugins/FormOperations/iframe.css");
+var _2=["separator","insert_form","insert_text_field","insert_textarea_field","insert_select_field","insert_cb_field","insert_rb_field","insert_button"];
+this.editor.config.toolbar.push(_2);
+function pasteAndSelect(_3){
+var id=Xinha.uniq("fo");
+_3=_3.replace(/^<([^ \/>]+)/i,"<$1 id=\""+id+"\"");
+_1.insertHTML(_3);
+var el=_1._doc.getElementById(id);
+el.setAttribute("id","");
+_1.selectNodeContents(el);
+_1.updateToolbar();
+return el;
+}
+var _6=_1.imgURL("buttons.gif","FormOperations");
+FormOperations.prototype._lc=function(_7){
+return Xinha._lc(_7,"FormOperations");
+};
+this.editor.config.btnList.insert_form=[this._lc("Insert a Form."),[_6,0,0],false,function(){
+var _8=null;
+if(_1.config.FormOperations.default_form_html){
+_8=pasteAndSelect(_1.config.FormOperations.default_form_html);
+}else{
+_8=pasteAndSelect("<form> </form>");
+}
+if(_1.config.FormOperations.default_form_action&&!_8.action){
+_8.action=_1.config.FormOperations.default_form_action;
+}
+}];
+this.editor.config.btnList.insert_text_field=[this._lc("Insert a text, password or hidden field."),[_6,1,0],false,function(){
+pasteAndSelect("<input type=\"text\" />");
+},"form"];
+this.editor.config.btnList.insert_textarea_field=[this._lc("Insert a multi-line text field."),[_6,2,0],false,function(){
+pasteAndSelect("<textarea> </textarea>");
+},"form"];
+this.editor.config.btnList.insert_select_field=[this._lc("Insert a select field."),[_6,3,0],false,function(){
+pasteAndSelect("<select> <option value=\"\">Please Select...</option> </select>");
+},"form"];
+this.editor.config.btnList.insert_cb_field=[this._lc("Insert a check box."),[_6,4,0],false,function(){
+pasteAndSelect("<input type=\"checkbox\" />");
+},"form"];
+this.editor.config.btnList.insert_rb_field=[this._lc("Insert a radio button."),[_6,5,0],false,function(){
+pasteAndSelect("<input type=\"radio\" />");
+},"form"];
+this.editor.config.btnList.insert_button=[this._lc("Insert a submit/reset button."),[_6,6,0],false,function(){
+pasteAndSelect("<input type=\"submit\" value=\"Send\" />");
+},"form"];
+}
+FormOperations.prototype.onGenerate=function(){
+if(Xinha.is_gecko){
+var _9=this.editor;
+var _a=this.editor._doc;
+Xinha._addEvents(_a,["mousemove"],function(_b){
+return _9._editorEvent(_b);
+});
+}
+};
+FormOperations.prototype._preparePanel=function(){
+var fo=this;
+if(this.html==false){
+Xinha._getback(_editor_url+"plugins/FormOperations/panel.html",function(_d){
+fo.html=_d;
+fo._preparePanel();
+});
+return false;
+}
+if(typeof Xinha.Dialog=="undefined"){
+Xinha._loadback(_editor_url+"modules/Dialogs/inline-dialog.js",function(){
+fo._preparePanel();
+});
+return false;
+}
+if(typeof Xinha.PanelDialog=="undefined"){
+Xinha._loadback(_editor_url+"modules/Dialogs/panel-dialog.js",function(){
+fo._preparePanel();
+});
+return false;
+}
+this.panel=new Xinha.PanelDialog(this.editor,"bottom",this.html,"FormOperations");
+this.panel.hide();
+this.ready=true;
+};
+FormOperations.prototype.onUpdateToolbar=function(){
+if(!this.ready){
+return true;
+}
+var _e=this.editor._activeElement(this.editor._getSelection());
+if(_e!=null){
+if(_e==this.activeElement){
+return true;
+}
+var _f=_e.tagName.toLowerCase();
+this.hideAll();
+if(_f==="form"){
+if(this.editor.config.FormOperations.allow_edit_form){
+this.showForm(_e);
+}else{
+this.panel.hide();
+this.activeElement=null;
+this.panel.hide();
+return true;
+}
+}else{
+if(this.editor.config.FormOperations.allow_edit_form&&typeof _e.form!="undefined"&&_e.form){
+this.showForm(_e.form);
+}
+switch(_f){
+case "form":
+this.showForm(_e);
+break;
+case "input":
+switch(_e.getAttribute("type").toLowerCase()){
+case "text":
+case "password":
+case "hidden":
+this.showText(_e);
+break;
+case "radio":
+case "checkbox":
+this.showCbRd(_e);
+break;
+case "submit":
+case "reset":
+case "button":
+this.showButton(_e);
+break;
+}
+break;
+case "textarea":
+this.showTextarea(_e);
+break;
+case "select":
+this.showSelect(_e);
+break;
+default:
+this.activeElement=null;
+this.panel.hide();
+return true;
+}
+}
+this.panel.show();
+this.activeElement=_e;
+return true;
+}else{
+this.activeElement=null;
+this.panel.hide();
+return true;
+}
+};
+FormOperations.prototype.hideAll=function(){
+this.panel.getElementById("fs_form").style.display="none";
+this.panel.getElementById("fs_text").style.display="none";
+this.panel.getElementById("fs_textarea").style.display="none";
+this.panel.getElementById("fs_select").style.display="none";
+this.panel.getElementById("fs_cbrd").style.display="none";
+this.panel.getElementById("fs_button").style.display="none";
+};
+FormOperations.prototype.showForm=function(_10){
+this.panel.getElementById("fs_form").style.display="";
+var _11={"action":_10.action,"method":_10.method.toUpperCase()};
+this.panel.setValues(_11);
+var f=_10;
+this.panel.getElementById("action").onkeyup=function(){
+f.action=this.value;
+};
+this.panel.getElementById("method").onchange=function(){
+f.method=this.options[this.selectedIndex].value;
+};
+};
+FormOperations.prototype.showText=function(_13){
+this.panel.getElementById("fs_text").style.display="";
+var _14={"text_name":this.deformatName(_13,_13.name),"text_value":_13.value,"text_type":_13.type.toLowerCase(),"text_width":_13.style.width?parseFloat(_13.style.width.replace(/[^0-9.]/,"")):"","text_width_units":_13.style.width?_13.style.width.replace(/[0-9.]/,"").toLowerCase():"ex","text_maxlength":_13.maxlength?_13.maxlength:""};
+this.panel.setValues(_14);
+var i=_13;
+var fo=this;
+this.panel.getElementById("text_name").onkeyup=function(){
+i.name=fo.formatName(i,this.value);
+};
+this.panel.getElementById("text_value").onkeyup=function(){
+i.value=this.value;
+};
+this.panel.getElementById("text_type").onchange=function(){
+if(!Xinha.is_ie){
+i.type=this.options[this.selectedIndex].value;
+}else{
+var _17=fo.editor._doc.createElement("div");
+if(!/type=/.test(i.outerHTML)){
+_17.innerHTML=i.outerHTML.replace(/<INPUT/i,"<input type=\""+this.options[this.selectedIndex].value+"\"");
+}else{
+_17.innerHTML=i.outerHTML.replace(/type="?[a-z]+"?/i,"type=\""+this.options[this.selectedIndex].value+"\"");
+}
+var _18=Xinha.removeFromParent(_17.childNodes[0]);
+i.parentNode.insertBefore(_18,i);
+Xinha.removeFromParent(i);
+_13=i=_18;
+}
+};
+var w=this.panel.getElementById("text_width");
+var wu=this.panel.getElementById("text_width_units");
+this.panel.getElementById("text_width").onkeyup=this.panel.getElementById("text_width_units").onchange=function(){
+if(!w.value||isNaN(parseFloat(w.value))){
+i.style.width="";
+}
+i.style.width=parseFloat(w.value)+wu.options[wu.selectedIndex].value;
+};
+this.panel.getElementById("text_maxlength").onkeyup=function(){
+i.maxlength=this.value;
+};
+};
+FormOperations.prototype.showCbRd=function(_1b){
+this.panel.getElementById("fs_cbrd").style.display="";
+var _1c={"cbrd_name":this.deformatName(_1b,_1b.name),"cbrd_value":_1b.value,"cbrd_checked":_1b.checked?1:0,"cbrd_type":_1b.type.toLowerCase()};
+this.panel.setValues(_1c);
+var i=_1b;
+var fo=this;
+this.panel.getElementById("cbrd_name").onkeyup=function(){
+i.name=fo.formatName(i,this.value);
+};
+this.panel.getElementById("cbrd_value").onkeyup=function(){
+i.value=this.value;
+};
+this.panel.getElementById("cbrd_type").onchange=function(){
+if(!Xinha.is_ie){
+i.type=this.options[this.selectedIndex].value;
+}else{
+var _1f=fo.editor._doc.createElement("div");
+if(!/type=/.test(i.outerHTML)){
+_1f.innerHTML=i.outerHTML.replace(/<INPUT/i,"<input type=\""+this.options[this.selectedIndex].value+"\"");
+}else{
+_1f.innerHTML=i.outerHTML.replace(/type="?[a-z]+"?/i,"type=\""+this.options[this.selectedIndex].value+"\"");
+}
+var _20=Xinha.removeFromParent(_1f.childNodes[0]);
+i.parentNode.insertBefore(_20,i);
+Xinha.removeFromParent(i);
+_1b=i=_20;
+}
+};
+this.panel.getElementById("cbrd_checked").onclick=function(){
+i.checked=this.checked;
+};
+};
+FormOperations.prototype.showButton=function(_21){
+this.panel.getElementById("fs_button").style.display="";
+var _22={"button_name":this.deformatName(_21,_21.name),"button_value":_21.value,"button_type":_21.type.toLowerCase()};
+this.panel.setValues(_22);
+var i=_21;
+var fo=this;
+this.panel.getElementById("button_name").onkeyup=function(){
+i.name=fo.formatName(i,this.value);
+};
+this.panel.getElementById("button_value").onkeyup=function(){
+i.value=this.value;
+};
+this.panel.getElementById("button_type").onchange=function(){
+if(!Xinha.is_ie){
+i.type=this.options[this.selectedIndex].value;
+}else{
+var _25=fo.editor._doc.createElement("div");
+if(!/type=/.test(i.outerHTML)){
+_25.innerHTML=i.outerHTML.replace(/<INPUT/i,"<input type=\""+this.options[this.selectedIndex].value+"\"");
+}else{
+_25.innerHTML=i.outerHTML.replace(/type="?[a-z]+"?/i,"type=\""+this.options[this.selectedIndex].value+"\"");
+}
+var _26=Xinha.removeFromParent(_25.childNodes[0]);
+i.parentNode.insertBefore(_26,i);
+Xinha.removeFromParent(i);
+_21=i=_26;
+}
+};
+};
+FormOperations.prototype.showTextarea=function(_27){
+this.panel.getElementById("fs_textarea").style.display="";
+var _28={"textarea_name":this.deformatName(_27,_27.name),"textarea_value":_27.value,"textarea_width":_27.style.width?parseFloat(_27.style.width.replace(/[^0-9.]/,"")):"","textarea_width_units":_27.style.width?_27.style.width.replace(/[0-9.]/,"").toLowerCase():"ex","textarea_height":_27.style.height?parseFloat(_27.style.height.replace(/[^0-9.]/,"")):"","textarea_height_units":_27.style.height?_27.style.height.replace(/[0-9.]/,"").toLowerCase():"ex"};
+this.panel.setValues(_28);
+var i=_27;
+var fo=this;
+this.panel.getElementById("textarea_name").onkeyup=function(){
+i.name=fo.formatName(i,this.value);
+};
+this.panel.getElementById("textarea_value").onkeyup=function(){
+i.value=i.innerHTML=this.value;
+};
+var w=this.panel.getElementById("textarea_width");
+var wu=this.panel.getElementById("textarea_width_units");
+this.panel.getElementById("textarea_width").onkeyup=this.panel.getElementById("textarea_width_units").onchange=function(){
+if(!w.value||isNaN(parseFloat(w.value))){
+i.style.width="";
+}
+i.style.width=parseFloat(w.value)+wu.options[wu.selectedIndex].value;
+};
+var h=this.panel.getElementById("textarea_height");
+var hu=this.panel.getElementById("textarea_height_units");
+this.panel.getElementById("textarea_height").onkeyup=this.panel.getElementById("textarea_height_units").onchange=function(){
+if(!h.value||isNaN(parseFloat(h.value))){
+i.style.height="";
+}
+i.style.height=parseFloat(h.value)+hu.options[hu.selectedIndex].value;
+};
+};
+FormOperations.prototype.showSelect=function(_2f){
+this.panel.getElementById("fs_select").style.display="";
+var _30={"select_name":this.deformatName(_2f,_2f.name),"select_multiple":_2f.multiple?1:0,"select_width":_2f.style.width?parseFloat(_2f.style.width.replace(/[^0-9.]/,"")):"","select_width_units":_2f.style.width?_2f.style.width.replace(/[0-9.]/,"").toLowerCase():"ex","select_height":_2f.style.height?parseFloat(_2f.style.height.replace(/[^0-9.]/,"")):(_2f.size&&_2f.size>0?_2f.size:1),"select_height_units":_2f.style.height?_2f.style.height.replace(/[0-9.]/,"").toLowerCase():"items"};
+this.panel.setValues(_30);
+var i=_2f;
+var fo=this;
+this.panel.getElementById("select_name").onkeyup=function(){
+i.name=fo.formatName(i,this.value);
+};
+this.panel.getElementById("select_multiple").onclick=function(){
+i.multiple=this.checked;
+};
+var w=this.panel.getElementById("select_width");
+var wu=this.panel.getElementById("select_width_units");
+this.panel.getElementById("select_width").onkeyup=this.panel.getElementById("select_width_units").onchange=function(){
+if(!w.value||isNaN(parseFloat(w.value))){
+i.style.width="";
+}
+i.style.width=parseFloat(w.value)+wu.options[wu.selectedIndex].value;
+};
+var h=this.panel.getElementById("select_height");
+var hu=this.panel.getElementById("select_height_units");
+this.panel.getElementById("select_height").onkeyup=this.panel.getElementById("select_height_units").onchange=function(){
+if(!h.value||isNaN(parseFloat(h.value))){
+i.style.height="";
+return;
+}
+if(hu.selectedIndex==0){
+i.style.height="";
+i.size=parseInt(h.value);
+}else{
+i.style.height=parseFloat(h.value)+hu.options[hu.selectedIndex].value;
+}
+};
+var _37=this.panel.getElementById("select_options");
+this.arrayToOpts(this.optsToArray(_2f.options),_37.options);
+this.panel.getElementById("add_option").onclick=function(){
+var txt=prompt(Xinha._lc("Enter the name for new option.","FormOperations"));
+if(txt==null){
+return;
+}
+var _39=new Option(txt);
+var _3a=fo.optsToArray(_37.options);
+if(_37.selectedIndex>=0){
+_3a.splice(_37.selectedIndex,0,_39);
+}else{
+_3a.push(_39);
+}
+fo.arrayToOpts(_3a,_2f.options);
+fo.arrayToOpts(_3a,_37.options);
+};
+this.panel.getElementById("del_option").onclick=function(){
+var _3b=fo.optsToArray(_37.options);
+var _3c=[];
+for(var i=0;i<_3b.length;i++){
+if(_3b[i].selected){
+continue;
+}
+_3c.push(_3b[i]);
+}
+fo.arrayToOpts(_3c,_2f.options);
+fo.arrayToOpts(_3c,_37.options);
+};
+this.panel.getElementById("up_option").onclick=function(){
+if(!(_37.selectedIndex>0)){
+return;
+}
+var _3e=fo.optsToArray(_37.options);
+var _3f=_3e.splice(_37.selectedIndex,1).pop();
+_3e.splice(_37.selectedIndex-1,0,_3f);
+fo.arrayToOpts(_3e,_2f.options);
+fo.arrayToOpts(_3e,_37.options);
+};
+this.panel.getElementById("down_option").onclick=function(){
+if(_37.selectedIndex==_37.options.length-1){
+return;
+}
+var _40=fo.optsToArray(_37.options);
+var _41=_40.splice(_37.selectedIndex,1).pop();
+_40.splice(_37.selectedIndex+1,0,_41);
+fo.arrayToOpts(_40,_2f.options);
+fo.arrayToOpts(_40,_37.options);
+};
+this.panel.getElementById("select_options").onchange=function(){
+fo.arrayToOpts(fo.optsToArray(_37.options),_2f.options);
+};
+};
+FormOperations.prototype.optsToArray=function(o){
+var a=[];
+for(var i=0;i<o.length;i++){
+a.push({"text":o[i].text,"value":o[i].value,"defaultSelected":o[i].defaultSelected,"selected":o[i].selected});
+}
+return a;
+};
+FormOperations.prototype.arrayToOpts=function(a,o){
+for(var i=o.length-1;i>=0;i--){
+o[i]=null;
+}
+for(var i=0;i<a.length;i++){
+o[i]=new Option(a[i].text,a[i].value,a[i].defaultSelected,a[i].selected);
+}
+};
+FormOperations.prototype.formatName=function(_48,_49){
+var _4a=_49;
+switch(this.editor.config.FormOperations.multiple_field_format){
+case "php":
+_4a+="[]";
+break;
+case "unmodified":
+break;
+default:
+throw ("Unknown multiple field format "+this.editor.config.FormOperations.multiple_field_format);
+}
+if((_48.tagName.toLowerCase()=="select"&&_48.multiple)||(_48.tagName.toLowerCase()=="input"&&_48.type.toLowerCase()=="checkbox")){
+_49=_4a;
+}
+return _49;
+};
+FormOperations.prototype.deformatName=function(_4b,_4c){
+if(this.editor.config.FormOperations.multiple_field_format=="php"){
+_4c=_4c.replace(/\[\]$/,"");
+}
+return _4c;
+};
+
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/form-operations.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/formmail.php
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/formmail.php?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/formmail.php (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/formmail.php Sun Jul 22 07:50:10 2007
@@ -0,0 +1,95 @@
+<?php
+
+ $send_to = 'Website Enquiries <enquiries@' . preg_replace('/^www./', '', $_SERVER['HTTP_HOST']) . '>';
+
+ $emailfield = NULL;
+ $subjectfield = NULL;
+ $namefield = NULL;
+
+ $when_done_goto = isset($_REQUEST['when_done_goto']) ? $_REQUEST['when_done_goto'] : NULL;
+
+ if($_POST)
+ {
+ unset($_POST['when_done_goto']);
+ $message = '';
+ $longestKey = 0;
+ foreach(array_keys($_POST) as $key)
+ {
+ $longestKey = max(strlen($key), $longestKey);
+ }
+ $longestKey = max($longestKey, 15);
+
+ foreach($_POST as $Var => $Val)
+ {
+ if(!$emailfield)
+ {
+ if(preg_match('/(^|\s)e-?mail(\s|$)/i', $Var))
+ {
+ $emailfield = $Var;
+ }
+ }
+
+ if(!$subjectfield)
+ {
+ if(preg_match('/(^|\s)subject(\s|$)/i', $Var))
+ {
+ $subjectfield = $Var;
+ }
+ }
+
+ if(!$namefield)
+ {
+ if(preg_match('/(^|\s)from(\s|$)/i', $Var) || preg_match('/(^|\s)name(\s|$)/i', $Var))
+ {
+ $namefield = $Var;
+ }
+ }
+
+ if(is_array($Val))
+ {
+ $Val = implode(', ', $Val);
+ }
+
+ $message .= $Var;
+ if(strlen($Var) < $longestKey)
+ {
+ $message .= str_repeat('.', $longestKey - strlen($Var));
+ }
+ $message .= ':';
+ if((64 - max(strlen($Var), $longestKey) < strlen($Val)) || preg_match('/\r?\n/', $Val))
+ {
+ $message .= "\r\n ";
+ $message .= preg_replace('/\r?\n/', "\r\n ", wordwrap($Val, 62));
+ }
+ else
+ {
+ $message .= ' ' . $Val . "\r\n";
+ }
+ }
+
+ $subject = $subjectfield ? $_POST[$subjectfield] : 'Enquiry';
+ $email = $emailfield ? $_POST[$emailfield] : $send_to;
+ if($namefield)
+ {
+ $from = $_POST[$namefield] . ' <' . $email . '>';
+ }
+ else
+ {
+ $from = 'Website Visitor' . ' <' . $email . '>';
+ }
+
+ mail($send_to, $subject, $message, "From: $from");
+
+ if(!$when_done_goto)
+ {
+ ?>
+ <html><head><title>Message Sent</title></head><body><h1>Message Sent</h1></body></html>
+ <?php
+ }
+ else
+ {
+ header("location: $when_done_goto");
+ exit;
+ }
+ }
+?>
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/iframe.css
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/iframe.css?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/iframe.css (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/iframe.css Sun Jul 22 07:50:10 2007
@@ -0,0 +1 @@
+form { border: 1px red dotted; }
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/iframe.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/img/buttons.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/img/buttons.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/img/buttons.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/de.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/de.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/de.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/de.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, udo.schmal@t-online.de
+{
+ "Insert a Form.": "Email Form einfügen.",
+ "Insert a text, password or hidden field.": "Passwort oder unsichtbares Feld einfügen.",
+ "Insert a multi-line text field.": "Mehrzeiliges Textfeld einfügen.",
+ "Insert a select field.": "Auswahlfeld einfügen.",
+ "Insert a check box.": "Häkchenfeld einfügen",
+ "Insert a radio button.": "Optionsfeld einfügen",
+ "Insert a submit/reset button.": "Senden/zurücksetzen Schaltfläche"
+};
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/de.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/fr.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/fr.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/fr.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/fr.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,11 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+ "Insert a Form.": "Insérer un formulaire",
+ "Insert a text, password or hidden field.": "Insérer un texte, un mot de passe ou un champ invisible",
+ "Insert a multi-line text field.": "Insérer un champ texte à lignes multiples",
+ "Insert a select field.": "Insérer une boite de sélection",
+ "Insert a check box.": "Insérer une case à cocher",
+ "Insert a radio button.": "Insérer un bouton radio",
+ "Insert a submit/reset button.": "Insérer un bouton de soumission/annulation"
+};
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/fr.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/ja.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/ja.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/ja.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/ja.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,51 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+ "Insert a Form.": "ãã©ã¼ã ãæ¿å
¥",
+ "Insert a text, password or hidden field.": "ããã¹ã/ãã¹ã¯ã¼ã/é表示ãã£ã¼ã«ããæ¿å
¥",
+ "Insert a multi-line text field.": "è¤æ°è¡ããã¹ããã£ã¼ã«ããæ¿å
¥",
+ "Insert a select field.": "é¸æãªã¹ããæ¿å
¥",
+ "Insert a check box.": "ãã§ãã¯ããã¯ã¹ãæ¿å
¥",
+ "Insert a radio button.": "ã©ã¸ãªãã¿ã³ãæ¿å
¥",
+ "Insert a submit/reset button.": "éä¿¡/ãªã»ãããã¿ã³ãæ¿å
¥",
+ "Form Editor": "ãã©ã¼ã ã¨ãã£ã¿",
+ "Form": "ãã©ã¼ã ",
+ "Text Field": "ããã¹ããã£ã¼ã«ã",
+ "Check Box/Radio Button": "ãã§ãã¯ããã¯ã¹/ã©ã¸ãªãã¿ã³",
+ "Button": "ãã¿ã³",
+ "Multi-line Field": "è¤æ°è¡ãã£ã¼ã«ã",
+ "Drop-Down/List Field": "ãããããã¦ã³/ãªã¹ã",
+ "Action:": "ã¢ã¯ã·ã§ã³:",
+ "Method:": "ã¡ã½ãã:",
+ "Name:": "åå:",
+ "Type:": "ã¿ã¤ã:",
+ "Label:": "ã©ãã«:",
+ "Value:": "å¤:",
+ "Width:": "å¹
:",
+ "Height:": "é«ã:",
+ "Initial Value:": "åæå¤:",
+ "Initial Value": "åæå¤",
+ "Max Length:": "æ大é·:",
+ "Selected by default:": "ããã©ã«ãé¸æ:",
+ "May Choose Multiple:": "è¤æ°é¸æå¯è½:",
+ "Options": "é¸æè¢",
+ "POST": "POST",
+ "GET": "GET",
+ 'Check Box ("Select Many")': "ãã§ãã¯ããã¯ã¹(è¤æ°é¸æ)",
+ 'Radio Button ("Select One")': "ã©ã¸ãªãã¿ã³(åä¸é¸æ)",
+ "normal text field": "æ¨æºããã¹ããã£ã¼ã«ã",
+ "password": "ãã¹ã¯ã¼ã",
+ "hidden field": "é表示ãã£ã¼ã«ã",
+ "Submit": "éä¿¡",
+ "Reset": "ãªã»ãã",
+ "chars": "æå",
+ "px": "ãã¯ã»ã«",
+ "%": "%",
+ "items": "é
ç®",
+ "Add": "追å ",
+ "Delete": "åé¤",
+ "Move Up": "ä¸ã¸",
+ "Move Down": "ä¸ã¸",
+ "Tip: Check boxes (select many) and radio buttons (select one only) that are choices for a single question should have the same Name to work correctly.": "ãã³ã:ã²ã¨ã¤ã®è³ªåã«ã¤ãã¦ãè¤æ°ã®ãã§ãã¯ããã¯ã¹(è¤æ°é¸æ)ãã¾ãã¯è¤æ°ã®ã©ã¸ãªãã¿ã³(åä¸é¸æ)ãããå ´åããã¹ã¦ã«åãååãä»ããªããã°æ£ããæ©è½ãã¾ããã",
+ "Enter the name for new option.": "æ°ããé¸æè¢ã«ååãã¤ãã¦ãã ããã"
+};
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/ja.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/nb.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/nb.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/nb.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/nb.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+ "Insert a Form.": "Sett inn skjema",
+ "Insert a text, password or hidden field.": "Sett inn formfelt",
+ "Insert a multi-line text field.": "Sett inn tekstfelt med flere linjer",
+ "Insert a select field.": "Sett inn valgboks/ netrekksboks",
+ "Insert a check box.": "Hakeboks",
+ "Insert a radio button.": "Sett inn en radioknapp",
+ "Insert a submit/reset button.": "Sett inn send-/nullstill knapp for skjemaet"
+};
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/lang/nb.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/panel.html
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/panel.html?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/panel.html (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/panel.html Sun Jul 22 07:50:10 2007
@@ -0,0 +1,212 @@
+<h1 name="[h1]" id="[h1]"><l10n>Form Editor</l10n></h1>
+ <fieldset name="[fs_form]" id="[fs_form]">
+ <legend>Form</legend>
+ <table>
+ <tr>
+ <th><label>Action:</label></th>
+ <td><input type="text" size="25" name="[action]" id="[action]" /></td>
+
+ <th><label>Method:</label></th>
+ <td><select name="[method]" id="[method]"><option value="POST">POST</option><option value="GET">GET</option></select></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset name="[fs_text]" id="[fs_text]">
+ <legend>Text Field</legend>
+
+ <table>
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="[text_name]" id="[text_name]" size="25" />
+ </td>
+ <th> </th>
+ <td> </td>
+ </tr>
+ <tr>
+ <th>Type:</th>
+ <td>
+ <select name="[text_type]" id="[text_type]">
+ <option value="text">normal text field</option>
+ <option value="password">password</option>
+ <option value="hidden">hidden field</option>
+ </select>
+ </td>
+ <th>Initial Value:</th>
+ <td>
+ <input type="text" name="[text_value]" id="[text_value]" size="25" />
+ </td>
+ </tr>
+ <tr>
+ <th>Width:</th>
+ <td>
+ <input type="text" name="[text_width]" id="[text_width]" size="5" />
+ <select name="[text_width_units]" id="[text_width_units]">
+ <option value="em">chars</option>
+ <option value="px">px</option
+ >
+ <option value="%">%</option>
+ </select>
+ </td>
+ <th>Max Length:</th>
+ <td>
+ <input type="text" name="[text_maxlength]" id="[text_maxlength]" size="5" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset name="[fs_cbrd]" id="[fs_cbrd]">
+ <legend>Check Box/Radio Button</legend>
+ <table>
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="[cbrd_name]" id="[cbrd_name]" size="25" />
+ </td>
+ <th>Value:</th>
+ <td>
+ <input type="text" name="[cbrd_value]" id="[cbrd_value]" size="25" />
+ </td>
+ </tr>
+ <tr>
+ <th>Type:</th>
+ <td>
+ <select name="[cbrd_type]" id="[cbrd_type]">
+ <option value="checkbox">Check Box ("Select Many")</option>
+ <option value="radio">Radio Button ("Select One")</option>
+ </select>
+ </td>
+ <th>Selected by default:</th>
+ <td><input type="checkbox" name="[cbrd_checked]" id="[cbrd_checked]" value="1" /></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <p class="help">
+ Tip: Check boxes (select many) and radio buttons (select one only) that are choices for a single question should have the same Name to work correctly.
+ </p>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset name="[fs_button]" id="[fs_button]">
+ <legend>Button</legend>
+ <table>
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="[button_name]" id="[button_name]" size="25" />
+ </td>
+ <th>Label:</th>
+ <td>
+ <input type="text" name="[button_value]" id="[button_value]" size="25" />
+ </td>
+ </tr>
+ <tr>
+ <th>Type:</th>
+ <td>
+ <select name="[button_type]" id="[button_type]">
+ <option value="submit">Submit</option>
+ <option value="reset">Reset</option>
+ </select>
+ </td>
+ <td> </td>
+ <td> </td>
+ </tr>
+ </table>
+ </fieldset>
+
+
+ <fieldset name="[fs_textarea]" id="[fs_textarea]">
+ <legend>Multi-line Field</legend>
+ <table>
+ <tr>
+ <th>Name:</th>
+ <td><input type="text" name="[textarea_name]" id="[textarea_name]" size="25" /></td>
+
+ <th>Initial Value</th>
+ </tr>
+
+ <tr>
+ <th>Width:</th>
+ <td>
+ <input type="text" name="[textarea_width]" id="[textarea_width]" size="5" />
+ <select name="[textarea_width_units]" id="[textarea_width_units]">
+ <option value="em">chars</option>
+ <option value="px">px</option>
+ <option value="%">%</option>
+ </select>
+ </td>
+ <td rowspan="2"><textarea name="[textarea_value]" cols="40" rows="4" id="[textarea_value]"></textarea></td>
+ </tr>
+
+ <tr>
+ <th>Height:</th>
+ <td>
+ <input type="text" name="[textarea_height]" id="[textarea_height]" size="5" />
+ <select name="[textarea_height_units]" id="[textarea_height_units]">
+ <option value="em">chars</option>
+ <option value="px">px</option>
+ </select>
+ </td>
+ </tr>
+
+ </table>
+ </fieldset>
+
+ <fieldset name="[fs_select]" id="[fs_select]">
+ <legend>Drop-Down/List Field</legend>
+
+<table>
+ <tr>
+ <th>Name:</th>
+ <td>
+ <input type="text" name="[select_name]" id="[select_name]" size="25" />
+ </td>
+ <th colspan="2">Options</th>
+ </tr>
+ <tr>
+ <th>May Choose Multiple:</th>
+ <td>
+ <input type="checkbox" name="[select_multiple]" id="[select_multiple]" size="25" value="1" />
+ </td>
+ <td rowspan="3">
+ <select name="[select_options]" size="5" id="[select_options]" >
+ </select>
+ </td>
+ <td rowspan="3">
+ <input name="button" type="button" id="[add_option]" value="Add" />
+ <br>
+ <input name="button2" type="button" id="[del_option]" value="Delete" />
+ <br>
+ <input name="button2" type="button" id="[up_option]" value="Move Up" />
+ <br>
+ <input name="button2" type="button" id="[down_option]" value="Move Down" />
+ </td>
+ </tr>
+ <tr>
+ <th>Width:</th>
+ <td>
+ <input type="text" name="[select_width]" id="[select_width]" size="5" />
+ <select name="[select_width_units]" id="[select_width_units]">
+ <option value="em">chars</option>
+ <option value="px">px</option>
+ <option value="%">%</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th>Height:</th>
+ <td>
+ <input type="text" name="[select_height]" id="[select_height]" size="5" />
+ <select name="[select_height_units]" id="[select_height_units]">
+ <option value="items">items</option>
+ <option value="px">px</option>
+ </select>
+ </td>
+ </tr>
+</table>
+ </fieldset>
+</div>
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/FormOperations/panel.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.css
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.css?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.css (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.css Sun Jul 22 07:50:10 2007
@@ -0,0 +1,3 @@
+form {
+ border: 1px dotted red;
+}
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.css
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,353 @@
+function Forms(_1){
+this.editor=_1;
+var _2=_1.config;
+var bl=Forms.btnList;
+var _4=this;
+var _5=["linebreak"];
+for(var i=0;i<bl.length;++i){
+var _7=bl[i];
+if(!_7){
+_5.push("separator");
+}else{
+var id=_7[0];
+if(i<3){
+_2.registerButton(id,this._lc(_7[1]),_1.imgURL("ed_"+_7[0]+".gif","Forms"),false,function(_9,id){
+_4.buttonPress(_9,id);
+});
+}else{
+_2.registerButton(id,this._lc(_7[1]),_1.imgURL("ed_"+_7[0]+".gif","Forms"),false,function(_b,id){
+_4.buttonPress(_b,id);
+},"form");
+}
+_5.push(id);
+}
+}
+_2.toolbar.push(_5);
+}
+Forms._pluginInfo={name:"Forms",origin:"version: 1.0, by Nelson Bright, BrightWork, Inc., http://www.brightworkweb.com",version:"2.0",developer:"Udo Schmal",developer_url:"",sponsor:"L.N.Schaffrath NeueMedien",sponsor_url:"http://www.schaffrath-neuemedien.de/",c_owner:"Udo Schmal & Schaffrath-NeueMedien",license:"htmlArea"};
+Forms.btnList=[null,["form","Form"],null,["textarea","Textarea"],["select","Selection Field"],["checkbox","Checkbox"],["radio","Radio Button"],["text","Text Field"],["password","Password Field"],["file","File Field"],["button","Button"],["submit","Submit Button"],["reset","Reset Button"],["image","Image Button"],["hidden","Hidden Field"],["label","Label"],["fieldset","Field Set"]];
+Forms.prototype._lc=function(_d){
+return HTMLArea._lc(_d,"Forms");
+};
+Forms.prototype.onGenerate=function(){
+var _e="Form-style";
+var _f=this.editor._doc.getElementById(_e);
+if(_f==null){
+_f=this.editor._doc.createElement("link");
+_f.id=_e;
+_f.rel="stylesheet";
+_f.href=_editor_url+"plugins/Forms/forms.css";
+this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(_f);
+}
+};
+Forms.prototype.buttonPress=function(_10,_11,_12){
+function optionValues(_13,_14){
+this.text=_13;
+this.value=_14;
+}
+var _15=new Object();
+var _16=_11;
+var sel=_10._getSelection();
+var _18=_10._createRange(sel);
+if(_11=="form"){
+var pe=_10.getParentElement();
+var frm=null;
+while(pe&&(pe.nodeType==1)&&(pe.tagName.toLowerCase()!="body")){
+if(pe.tagName.toLowerCase()=="form"){
+frm=pe;
+break;
+}else{
+pe=pe.parentNode;
+}
+}
+if(frm){
+_15.f_name=frm.name;
+_15.f_action=frm.action;
+_15.f_method=frm.method;
+_15.f_enctype=frm.enctype;
+_15.f_target=frm.target;
+}else{
+_15.f_name="";
+_15.f_action="";
+_15.f_method="";
+_15.f_enctype="";
+_15.f_target="";
+}
+_10._popupDialog("plugin://Forms/form",function(_1b){
+if(_1b){
+if(frm){
+frm.name=_1b["f_name"];
+frm.setAttribute("action",_1b["f_action"]);
+frm.setAttribute("method",_1b["f_method"]);
+frm.setAttribute("enctype",_1b["f_enctype"]);
+frm.setAttribute("target",_1b["f_target"]);
+}else{
+frm="<form name=\""+_1b["f_name"]+"\"";
+if(_1b["f_action"]!=""){
+frm+=" action=\""+_1b["f_action"]+"\"";
+}
+if(_1b["f_method"]!=""){
+frm+=" method=\""+_1b["f_method"]+"\"";
+}
+if(_1b["f_enctype"]!=""){
+frm+=" enctype=\""+_1b["f_enctype"]+"\"";
+}
+if(_1b["f_target"]!=""){
+frm+=" target=\""+_1b["f_target"]+"\"";
+}
+frm+=">";
+_10.surroundHTML(frm," </form>");
+}
+}
+},_15);
+}else{
+var _1c="";
+if(typeof _12=="undefined"){
+_12=_10.getParentElement();
+var tag=_12.tagName.toLowerCase();
+if(_12&&(tag=="legend")){
+_12=_12.parentElement;
+tag=_12.tagName.toLowerCase();
+}
+if(_12&&!(tag=="textarea"||tag=="select"||tag=="input"||tag=="label"||tag=="fieldset")){
+_12=null;
+}
+}
+if(_12){
+_16=_12.tagName.toLowerCase();
+_15.f_name=_12.name;
+_1c=_12.tagName;
+if(_16=="input"){
+_15.f_type=_12.type;
+_16=_12.type;
+}
+switch(_16){
+case "textarea":
+_15.f_cols=_12.cols;
+_15.f_rows=_12.rows;
+_15.f_text=_12.innerHTML;
+_15.f_wrap=_12.getAttribute("wrap");
+_15.f_readOnly=_12.getAttribute("readOnly");
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "select":
+_15.f_size=parseInt(_12.size);
+_15.f_multiple=_12.getAttribute("multiple");
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+var _1e=new Array();
+for(var i=0;i<=_12.options.length-1;i++){
+_1e[i]=new optionValues(_12.options[i].text,_12.options[i].value);
+}
+_15.f_options=_1e;
+break;
+case "text":
+case "password":
+_15.f_value=_12.value;
+_15.f_size=_12.size;
+_15.f_maxLength=_12.maxLength;
+_15.f_readOnly=_12.getAttribute("readOnly");
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "hidden":
+_15.f_value=_12.value;
+break;
+case "submit":
+case "reset":
+_15.f_value=_12.value;
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "checkbox":
+case "radio":
+_15.f_value=_12.value;
+_15.f_checked=_12.checked;
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "button":
+_15.f_value=_12.value;
+_15.f_onclick=_12.getAttribute("onclick");
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "image":
+_15.f_value=_12.value;
+_15.f_src=_12.src;
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "file":
+_15.f_disabled=_12.getAttribute("disabled");
+_15.f_tabindex=_12.getAttribute("tabindex");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "label":
+_15.f_text=_12.innerHTML;
+_15.f_for=_12.getAttribute("for");
+_15.f_accesskey=_12.getAttribute("accesskey");
+break;
+case "fieldset":
+if(_12.firstChild.tagName.toLowerCase()=="legend"){
+_15.f_text=_12.firstChild.innerHTML;
+}else{
+_15.f_text="";
+}
+break;
+}
+}else{
+_15.f_name="";
+switch(_11){
+case "textarea":
+case "select":
+case "label":
+case "fieldset":
+_1c=_11;
+break;
+default:
+_1c="input";
+_15.f_type=_11;
+break;
+}
+_15.f_options="";
+_15.f_cols="20";
+_15.f_rows="4";
+_15.f_multiple="false";
+_15.f_value="";
+_15.f_size="";
+_15.f_maxLength="";
+_15.f_checked="";
+_15.f_src="";
+_15.f_onclick="";
+_15.f_wrap="";
+_15.f_readOnly="false";
+_15.f_disabled="false";
+_15.f_tabindex="";
+_15.f_accesskey="";
+_15.f_for="";
+_15.f_text="";
+_15.f_legend="";
+}
+_10._popupDialog("plugin://Forms/"+_1c+".html",function(_20){
+if(_20){
+if(_20["f_cols"]){
+if(isNaN(parseInt(_20["f_cols"],10))||parseInt(_20["f_cols"],10)<=0){
+_20["f_cols"]="";
+}
+}
+if(_20["f_rows"]){
+if(isNaN(parseInt(_20["f_rows"],10))||parseInt(_20["f_rows"],10)<=0){
+_20["f_rows"]="";
+}
+}
+if(_20["f_size"]){
+if(isNaN(parseInt(_20["f_size"],10))||parseInt(_20["f_size"],10)<=0){
+_20["f_size"]="";
+}
+}
+if(_20["f_maxlength"]){
+if(isNaN(parseInt(_20["f_maxLength"],10))||parseInt(_20["f_maxLength"],10)<=0){
+_20["f_maxLength"]="";
+}
+}
+if(_12){
+for(field in _20){
+if((field=="f_text")||(field=="f_options")||(field=="f_onclick")||(field=="f_checked")){
+continue;
+}
+if(_20[field]!=""){
+_12.setAttribute(field.substring(2,20),_20[field]);
+}else{
+_12.removeAttribute(field.substring(2,20));
+}
+}
+if(_16=="textarea"){
+_12.innerHTML=_20["f_text"];
+}else{
+if(_16=="select"){
+_12.options.length=0;
+var _21=_20["f_options"];
+for(i=0;i<=_21.length-1;i++){
+_12.options[i]=new Option(_21[i].text,_21[i].value);
+}
+}else{
+if(_16=="label"){
+_12.innerHTML=_20["f_text"];
+}else{
+if(_16=="fieldset"){
+if(_15.f_text!=""){
+if(_12.firstChild.tagName.toLowerCase()=="legend"){
+_12.firstChild.innerHTML=_20["f_text"];
+}
+}else{
+}
+}else{
+if((_16=="checkbox")||(_16=="radio")){
+if(_20["f_checked"]!=""){
+_12.checked=true;
+}else{
+_12.checked=false;
+}
+}else{
+if(_20["f_onclick"]){
+_12.onclick="";
+if(_20["f_onclick"]!=""){
+_12.onclick=_20["f_onclick"];
+}
+}
+}
+}
+}
+}
+}
+}else{
+var _22="";
+for(field in _20){
+if(!_20[field]){
+continue;
+}
+if((_20[field]=="")||(field=="f_text")||(field=="f_options")){
+continue;
+}
+_22+=" "+field.substring(2,20)+"=\""+_20[field]+"\"";
+}
+if(_16=="textarea"){
+_22="<textarea"+_22+">"+_20["f_text"]+"</textarea>";
+}else{
+if(_16=="select"){
+_22="<select"+_22+">";
+var _21=_20["f_options"];
+for(i=0;i<=_21.length-1;i++){
+_22+="<option value=\""+_21[i].value+"\">"+_21[i].text+"</option>";
+}
+_22+="</select>";
+}else{
+if(_16=="label"){
+_22="<label"+_22+">"+_20["f_text"]+"</label>";
+}else{
+if(_16=="fieldset"){
+_22="<fieldset"+_22+">";
+if(_20["f_legend"]!=""){
+_22+="<legend>"+_20["f_text"]+"</legend>";
+}
+_22+="</fieldset>";
+}else{
+_22="<input type=\""+_16+"\""+_22+">";
+}
+}
+}
+}
+_10.insertHTML(_22);
+}
+}
+},_15);
+}
+};
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/forms.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_button.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_button.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_button.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_checkbox.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_checkbox.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_checkbox.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_fieldset.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_fieldset.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_fieldset.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_file.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_file.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_file.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_form.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_form.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_form.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_hidden.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_hidden.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_hidden.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_image.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_image.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_image.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_label.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_label.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_label.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_password.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_password.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_password.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_radio.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_radio.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_radio.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_reset.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_reset.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_reset.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_select.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_select.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_select.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_submit.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_submit.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_submit.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_text.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_text.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_text.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_textarea.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_textarea.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/img/ed_textarea.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/lang/ja.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/lang/ja.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/lang/ja.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/lang/ja.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,86 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+ "Form": "ãã©ã¼ã ",
+ "Textarea": "ããã¹ãã¨ãªã¢",
+ "Selection Field": "é¸æè¢ãã£ã¼ã«ã",
+ "Checkbox": "ãã§ãã¯ããã¯ã¹",
+ "Radio Button": "ã©ã¸ãªãã¿ã³",
+ "Text Field": "ããã¹ããã£ã¼ã«ã",
+ "Password Field": "ãã¹ã¯ã¼ããã£ã¼ã«ã",
+ "File Field": "ãã¡ã¤ã«ãã£ã¼ã«ã",
+ "Submit Button": "éä¿¡ãã¿ã³",
+ "Reset Button": "ãªã»ãããã¿ã³",
+ "Image Button": "ç»åãã¿ã³",
+ "Button": "ãã¿ã³",
+ "Hidden Field": "é表示ãã£ã¼ã«ã",
+ "Label": "ã©ãã«",
+ "Field Set": "ãã£ã¼ã«ãã»ãã",
+ "Form Element: INPUT": "ãã©ã¼ã è¦ç´ : INPUT",
+ "Form Element: SELECT": "ãã©ã¼ã è¦ç´ : SELECT",
+ "Form Element: TEXTAREA": "ãã©ã¼ã è¦ç´ : TEXTAREA",
+ "Form Element: LABEL": "ãã©ã¼ã è¦ç´ : LABEL",
+ "Form Element: FIELDSET": "ãã©ã¼ã è¦ç´ : FIELDSET",
+ "Form Name:": "ãã©ã¼ã å:",
+ "Form handler script": "ãã©ã¼ã å¦çã¹ã¯ãªãã",
+ "Action URL:": "ã¢ã¯ã·ã§ã³URL:",
+ "Method:": "ã¡ã½ãã:",
+ "Post": "POST",
+ "Get": "GET",
+ "Encoding:": "ã¨ã³ã³ã¼ã:",
+ "HTML-Form to CGI (default)": "HTMLãã©ã¼ã ããCGIã¸(ããã©ã«ã)",
+ "multipart Form Data (File-Upload)": "ãã«ããã¼ã(ãã¡ã¤ã«ã¢ãããã¼ãç¨)",
+ "Target Frame:": "ã¿ã¼ã²ãã:",
+ "Name/ID:": "åå/ID:",
+ "Value:": "å¤:",
+ "Disabled": "ç¡å¹",
+ "Checked": "ãã§ãã¯æ¸ã¿",
+ "Tab Index:": "ã¿ãé åº:",
+ "Access Key:": "ã¢ã¯ã»ã¹ãã¼:",
+ "Read Only": "èªã¿åãå°ç¨",
+ "Dimensions": "大ãã",
+ "Size:": "ãµã¤ãº:",
+ "Max length:": "æ大é·:",
+ "Button Script": "ãã¿ã³ã¹ã¯ãªãã",
+ "'onClick'=": "'onClick'=",
+ "Image source": "ç»åã½ã¼ã¹",
+ "Image URL:": "ç»åURL:",
+ "Multiple Select": "è¤æ°é¸æ",
+ "Options": "é¸æè¢",
+ "Lable:": "ã©ãã«:",
+ "Move Up": "ä¸ã¸",
+ "Move Down": "ä¸ã¸",
+ "Delete": "åé¤",
+ "Add": "追å ",
+ "Columns:": "åæ°:",
+ "Rows:": "è¡æ°:",
+ "Wrap Mode:": "æãè¿ã:",
+ "Off": "ãªã",
+ "Soft": "ã½ãã",
+ "Hard": "ãã¼ã",
+ "Physical": "ç©çç",
+ "Virtual": "ä»®æ³",
+ "normal": "æ¨æº",
+ "nowrap": "æãè¿ããªã",
+ "pre": "ãã©ã¼ãããæ¸ã¿",
+ "Initial Text:": "åæããã¹ã:",
+ "Text:": "ããã¹ã:",
+ "For Control:": "å¶å¾¡å¯¾è±¡:",
+ "Legend:": "ã°ã«ã¼ãå:",
+ "Cancel": "ä¸æ¢",
+ "Name": "åå",
+ "Name of the form input": "ãã©ã¼ã å
¥åã®åå",
+ "Value of the form input": "ãã©ã¼ã å
¥åã®å¤",
+ "Size of text box in characters": "æåæ°ã«ããããã¹ãããã¯ã¹ã®å¤§ãã",
+ "Maximum number of characters accepted": "å
¥åå¯è½ãªæ大æåæ°",
+ "Javascript for button click": "ãã¿ã³ã¯ãªãã¯æã®JavaScritp",
+ "URL of image": "ç»åã®URL",
+ "Name of the form select": "",
+ "name of the textarea": "ããã¹ãã¨ãªã¢ã®åå",
+ "Width in number of characters": "æåæ°ã«ããå¹
",
+ "Height in number of rows": "è¡æ°ã«ããé«ã",
+ "Default text (optional)": "ããã¹ãåæå¤(ãªãã·ã§ã³)",
+ "You must enter the form name": "ãã©ã¼ã åãå¿
è¦ã§ã",
+ "You must enter a Name": "ååãå¿
è¦ã§ã",
+ "Please enter a Label": "ã©ãã«ãå
¥åãã¦ãã ãã"
+};
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/lang/ja.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/fieldset.html
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/fieldset.html?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/fieldset.html (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/fieldset.html Sun Jul 22 07:50:10 2007
@@ -0,0 +1,46 @@
+<html>
+
+<head>
+ <title>Insert/Edit Form Element FIELDSET</title>
+ <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+ <script type="text/javascript" src="../../../popups/popup.js"></script>
+
+<script type="text/javascript">
+function Init() {
+ window.resizeTo(350,320);
+ __dlg_translate("Forms");
+ __dlg_init();
+ var param = window.dialogArguments;
+ document.getElementById("f_text").value = param["f_text"];
+ document.getElementById("f_text").focus();
+}
+
+function onOK() {
+ // pass data back to the calling window
+ var param = new Object();
+ param["f_text"] = document.getElementById("f_text").value;
+ __dlg_close(param);
+ return false;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+
+</script>
+</head>
+
+<body class="dialog" onload="Init()">
+ <div id="f_type" class="title">Form Element: FIELDSET</div>
+ <form action="" method="get">
+ <div class="fr">Legend:</div>
+ <input type="text" name="text" id="f_text" />
+ <p />
+ <div id="buttons">
+ <button type="button" name="ok" onclick="return onOK();">OK</button>
+ <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+ </div>
+ </form>
+</body>
+</html>
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/fieldset.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/form.html
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/form.html?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/form.html (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/form.html Sun Jul 22 07:50:10 2007
@@ -0,0 +1,90 @@
+<html>
+
+<head>
+ <title>Insert/Edit Form</title>
+ <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+ <script type="text/javascript" src="../../../popups/popup.js"></script>
+
+<script type="text/javascript">
+
+var fields = ["f_name", "f_action", "f_method", "f_enctype", "f_target"];
+
+function Init() {
+ window.resizeTo(400, 170);
+ __dlg_translate("Forms");
+ __dlg_init();
+ var param = window.dialogArguments;
+ for (var i in fields) {
+ document.getElementById(fields[i]).value = param[fields[i]];
+ }
+ document.getElementById("f_name").focus();
+}
+
+function onOK() {
+ var required = {
+ "f_name": "You must enter the form name"
+ };
+ for (var i in required) {
+ var el = document.getElementById(i);
+ if (!el.value) {
+ alert(HTMLArea._lc(required[i],"Forms"));
+ el.focus();
+ return false;
+ }
+ }
+ // pass data back to the calling window
+ var param = new Object();
+ for (var i in fields) {
+ param[fields[i]] = document.getElementById(fields[i]).value;
+ }
+ __dlg_close(param);
+ return false;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+</script>
+</head>
+
+<body class="dialog" onload="Init()">
+<div class="title">Form</div>
+<form action="" method="get">
+ <div class="fr">Form Name:</div>
+ <input type="text" name="name" id="f_name" size="20" title="Name" />
+ <p />
+
+ <fieldset>
+ <legend>Form handler script</legend>
+ <div class="space"></div>
+ <div class="fr">Action URL:</div>
+ <input name="action" id="f_action" type="text" size="30">
+ <p />
+ <div class="fr">Method:</div>
+ <select name="f_method" id="f_method">
+ <option value=""></option>
+ <option value="post">Post</option>
+ <option value="get">Get</option>
+ </select>
+ <div class="space"></div>
+ <div class="fr">Encoding:</div>
+ <select name="enctype" id="f_enctype">
+ <option value=""></option>
+ <option value="application/x-www-form-urlencoded">HTML-Form to CGI (default)</option>
+ <option value="multipart/form-data">multipart Form Data (File-Upload)</option>
+ </select>
+ <p />
+ <div class="fr">Target Frame:</div>
+ <input name="target" id="f_target" type="text" size="30">
+ <p />
+ </fieldset>
+
+<div id="buttons">
+ <button type="button" name="ok" onclick="return onOK();">OK</button>
+ <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+</div>
+</form>
+
+</body>
+</html>
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/form.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/input.html
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/input.html?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/input.html (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/input.html Sun Jul 22 07:50:10 2007
@@ -0,0 +1,179 @@
+<html>
+
+<head>
+ <title>Insert/Edit Form Element INPUT</title>
+ <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+ <script type="text/javascript" src="../../../popups/popup.js"></script>
+
+<script type="text/javascript">
+var fields = null;
+var type;
+function Init() {
+ __dlg_translate("Forms");
+ __dlg_init();
+ var param = window.dialogArguments;
+ type = param.f_type;
+ document.getElementById("f_type").innerHTML = HTMLArea._lc('Form Element: INPUT', "Forms") + '(' + type + ')';
+ document.getElementById("txt").style.display = "none";
+ document.getElementById("chk").style.display = "none";
+ document.getElementById("btn").style.display = "none";
+ document.getElementById("img").style.display = "none";
+ switch (type) {
+ case "text":
+ case "password":
+ fields = ["f_name", "f_value", "f_readOnly", "f_disabled", "f_tabindex", "f_accesskey", "f_size", "f_maxLength"];
+ height = 350;
+ document.getElementById("txt").style.display = "block";
+ break;
+ case "checkbox":
+ case "radio":
+ fields = ["f_name", "f_value", "f_checked", "f_disabled", "f_tabindex", "f_accesskey"];
+ document.getElementById("chk").style.display = "block";
+ height = 280;
+ break;
+ case "button":
+ fields = ["f_name", "f_value", "f_disabled", "f_onclick", "f_tabindex", "f_accesskey"];
+ document.getElementById("btn").style.display = "block";
+ height = 300;
+ break;
+ case "file":
+ fields = ["f_name", "f_disabled", "f_tabindex", "f_accesskey"];
+ document.getElementById("f_value").disabled = true;
+ height = 280;
+ break;
+ case "image":
+ fields = ["f_name", "f_disabled", "f_tabindex", "f_accesskey", "f_src"];
+ document.getElementById("img").style.display = "block";
+ document.getElementById("f_value").disabled = true;
+ height = 300;
+ break;
+ case "reset":
+ case "submit":
+ fields = ["f_name", "f_value", "f_disabled", "f_tabindex", "f_accesskey"];
+ height =260;
+ break;
+ case "hidden":
+ fields = ["f_name", "f_value"];
+ document.getElementById("f_disabled").disabled = true;
+ document.getElementById("f_tabindex").disabled = true;
+ document.getElementById("f_accesskey").disabled = true;
+ height =260;
+ break;
+ }
+ for (var i in fields) {
+ switch (fields[i]) {
+ case "f_readOnly":
+ case "f_disabled":
+ case "f_checked":
+ document.getElementById(fields[i]).checked = (param[fields[i]]==fields[i].substring(2,20)) || (param[fields[i]] == true); break;
+ default:
+ document.getElementById(fields[i]).value = param[fields[i]]; break;
+ }
+ }
+ window.resizeTo(320,height);
+ document.getElementById("f_name").focus();
+}
+
+function onOK() {
+ var el = document.getElementById("f_name");
+ if (!el.value) {
+ alert(HTMLArea._lc("You must enter a Name","Forms"));
+ el.focus();
+ return false;
+ }
+ // pass data back to the calling window
+ var param = new Object();
+ for (var i in fields) {
+ switch (fields[i]) {
+ case "f_readOnly":
+ case "f_disabled":
+ case "f_checked":
+ if(HTMLArea.is_ie)
+ param[fields[i]] = (document.getElementById(fields[i]).checked)?true:"";
+ else
+ param[fields[i]] = (document.getElementById(fields[i]).checked)?fields[i].substring(2,20):"";
+ break;
+ default:
+ param[fields[i]] = document.getElementById(fields[i]).value; break;
+ }
+ }
+ __dlg_close(param);
+ return false;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+</script>
+
+</head>
+
+<body class="dialog" onload="Init()">
+ <div id="f_type" class="title"></div>
+ <form action="" method="get">
+ <div class="fr">Name/ID:</div>
+ <input type="text" name="name" id="f_name" title="Name of the form input" />
+ <p />
+ <div class="fr">Value:</div>
+ <input type="text" name="value" id="f_value" title="Value of the form input" />
+ <p />
+ <div class="fr">Disabled</div>
+ <input type="checkbox" name="disabled" id="f_disabled" value="disabled" />
+ <p />
+
+ <div id="chk">
+ <div class="fr">Checked</div>
+ <input name="checked" id="f_checked" type="checkbox" />
+ <p />
+ </div>
+
+ <div class="fr">Tab Index:</div>
+ <input type="text" name="tabindex" id="f_tabindex" />
+ <p />
+ <div class="fr">Access Key:</div>
+ <input type="text" name="accesskey" id="f_accesskey" />
+ <p />
+
+ <div id="txt">
+ <div class="fr">Read Only</div>
+ <input type="checkbox" name="readOnly" id="f_readOnly" value="readOnly" />
+ <p />
+
+ <fieldset>
+ <legend>Dimensions</legend>
+ <div class="space"></div>
+ <div class="fr">Size:</div>
+ <input type="text" name="size" id="f_size" size="5" title="Size of text box in characters" />
+ <div class="space"></div>
+ <div class="fr">Max length:</div>
+ <input type="text" name="maxLength" id="f_maxLength" size="5" title="Maximum number of characters accepted" />
+ <div class="space"></div>
+ </fieldset>
+ </div>
+ <div id="btn">
+ <fieldset>
+ <legend> Button Script</legend>
+ <div class="space"></div>
+ <div class="fr">'onClick'=</div>
+ <input type="text" name="onClick" id="f_onclick" title="Javascript for button click" />
+ <div class="space"></div>
+ </fieldset>
+ </div>
+ <div id="img">
+ <fieldset>
+ <legend>Image source</legend>
+ <div class="space"></div>
+ <div class="fr">Image URL:</div>
+ <input type="text" name="src" id="f_src" title="URL of image" />
+ <div class="space"></div>
+ </fieldset>
+ </div>
+ <div id="buttons">
+ <button type="button" name="ok" onclick="return onOK();">OK</button>
+ <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+ </div>
+</form>
+
+</body>
+</html>
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/input.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/label.html
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/label.html?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/label.html (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/label.html Sun Jul 22 07:50:10 2007
@@ -0,0 +1,59 @@
+<html>
+
+<head>
+ <title>Insert/Edit Form Element LABEL</title>
+ <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+ <script type="text/javascript" src="../../../popups/popup.js"></script>
+
+<script type="text/javascript">
+var fields = ["f_text","f_for","f_accesskey"];
+
+function Init() {
+ window.resizeTo(350,320);
+ __dlg_translate("Forms");
+ __dlg_init();
+ var param = window.dialogArguments;
+ for (var i in fields) {
+ document.getElementById(fields[i]).value = param[fields[i]];
+ }
+ document.getElementById("f_text").focus();
+}
+
+function onOK() {
+ // pass data back to the calling window
+ // pass data back to the calling window
+ var param = new Object();
+ for (var i in fields) {
+ param[fields[i]] = document.getElementById(fields[i]).value;
+ }
+ __dlg_close(param);
+ return false;
+}
+
+function onCancel() {
+ __dlg_close(null);
+ return false;
+}
+
+</script>
+</head>
+
+<body class="dialog" onload="Init()">
+ <div id="f_type" class="title">Form Element: LABEL</div>
+ <form action="" method="get">
+ <div class="fr">Text:</div>
+ <input type="text" name="text" id="f_text" />
+ <p />
+ <div class="fr">For Control:</div>
+ <input type="text" name="for" id="f_for" />
+ <p />
+ <div class="fr">Access Key:</div>
+ <input type="text" name="accesskey" id="f_accesskey" />
+ <p />
+ <div id="buttons">
+ <button type="button" name="ok" onclick="return onOK();">OK</button>
+ <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+ </div>
+ </form>
+</body>
+</html>
\ No newline at end of file
Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/Forms/popups/label.html
------------------------------------------------------------------------------
svn:eol-style = native