[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <script type="text/javascript" for="ok" event="onclick"> 2 <!-- 3 var arr = new Array(); 4 arr["width"] = cellWidth.value; 5 arr["class"] = cellClass.value; 6 if ( widthTarget[0].checked ) 7 arr["widthTarget"] = widthTarget[0].value; 8 if ( widthTarget[1].checked ) 9 arr["widthTarget"] = widthTarget[1].value; 10 if ( widthTarget[2].checked ) 11 arr["widthTarget"] = widthTarget[2].value; 12 {section show=$class_list} 13 if ( classTarget[0].checked ) 14 arr["classTarget"] = classTarget[0].value; 15 if ( classTarget[1].checked ) 16 arr["classTarget"] = classTarget[1].value; 17 if ( classTarget[2].checked ) 18 arr["classTarget"] = classTarget[2].value; 19 {/section} 20 window.returnValue = arr; 21 window.close(); 22 // --> 23 </script> 24 25 <script type="text/javascript"> 26 <!-- 27 function Init() 28 {literal}{{/literal} 29 var editorID = opener.document.getElementById("iframeID").value; 30 document.getElementById("editorID").value = editorID; 31 var windowParameters = opener.tableCellPropertyParameters( editorID ); 32 if ( windowParameters == null ) 33 window.close(); 34 {section show=$class_list} 35 var classValue = windowParameters.cellClass; 36 if ( classValue == "" ) 37 classValue = -1; 38 document.getElementById("cellClass").value = classValue; 39 {/section} 40 document.getElementById("cellWidth").value = windowParameters.cellWidth; 41 document.getElementById("cellWidth").focus(); 42 {literal}}{/literal} 43 44 function insert() 45 {literal}{{/literal} 46 var tableCellParameters = new Array(); 47 {section show=$class_list} 48 tableCellParameters["cellClass"] = document.getElementById("cellClass").value; 49 {section-else} 50 tableCellParameters["cellClass"] = -1; 51 {/section} 52 tableCellParameters["cellWidth"] = document.getElementById("cellWidth").value; 53 var widthTarget = document.getElementsByName("widthTarget"); 54 if ( widthTarget[0].checked ) 55 tableCellParameters["widthTarget"] = widthTarget[0].value; 56 if ( widthTarget[1].checked ) 57 tableCellParameters["widthTarget"] = widthTarget[1].value; 58 if ( widthTarget[2].checked ) 59 tableCellParameters["widthTarget"] = widthTarget[2].value; 60 {section show=$class_list} 61 var classTarget = document.getElementsByName("classTarget"); 62 if ( classTarget[0].checked ) 63 tableCellParameters["classTarget"] = classTarget[0].value; 64 if ( classTarget[1].checked ) 65 tableCellParameters["classTarget"] = classTarget[1].value; 66 if ( classTarget[2].checked ) 67 tableCellParameters["classTarget"] = classTarget[2].value; 68 {/section} 69 var editorID = document.getElementById("editorID").value; 70 opener.addTableCellProperty( editorID, tableCellParameters ); 71 window.close(); 72 {literal}}{/literal} 73 // --> 74 </script> 75 76 <input type="hidden" id="editorID" value="" /> 77 78 <div class="onlineeditor"> 79 80 <h1>{"Edit Cell properties"|i18n("design/standard/ezdhtml")}</h1> 81 82 <div class="block"> 83 <label>{"Width"|i18n("design/standard/ezdhtml")}:</label> 84 <input id="cellWidth" type="text" size="4" name="cellWidth" /> 85 <fieldset> 86 <legend>{"Apply to"|i18n("design/standard/ezdhtml")}</legend> 87 {"Cell"|i18n("design/standard/ezdhtml")}<input type="radio" name="widthTarget" value="cell" checked /> 88 {"Row"|i18n("design/standard/ezdhtml")}<input type="radio" name="widthTarget" value="row"/> 89 {"Column"|i18n("design/standard/ezdhtml")}<input type="radio" name="widthTarget" value="column" /> 90 </fieldset> 91 </div> 92 93 <div class="block"> 94 <label>{"Class"|i18n("design/standard/ezdhtml")}:</label> 95 {section show=$class_list} 96 <select id="cellClass" align="left"> 97 <option value="-1">[{"none"|i18n("design/standard/ezdhtml")}]</option> 98 {let classDescriptionTD=ezini( 'td', 'ClassDescription', 'content.ini') 99 classDescriptionTH=ezini( 'th', 'ClassDescription', 'content.ini') 100 classDescription=$classDescriptionTD|merge($classDescriptionTH)} 101 {section name=ClassArray loop=$class_list} 102 <option value="{$ClassArray:item}"> 103 {section show=is_set($classDescription[$ClassArray:item])} 104 {$classDescription[$ClassArray:item]} 105 {section-else} 106 {$ClassArray:item} 107 {/section} 108 </option> 109 {/section} 110 {/let} 111 </select> 112 113 <fieldset> 114 <legend>{"Apply to"|i18n("design/standard/ezdhtml")}</legend> 115 {"Cell"|i18n("design/standard/ezdhtml")}<input class="radio" type="radio" name="classTarget" value="cell" checked /> 116 {"Row"|i18n("design/standard/ezdhtml")}<input class="radio" type="radio" name="classTarget" value="row" /> 117 {"Column"|i18n("design/standard/ezdhtml")}<input type="radio" name="classTarget" value="column" /> 118 </fieldset> 119 {section-else} 120 {"No classes are available for the element: "|i18n("design/standard/ezdhtml")}<strong><td></strong> 121 {/section} 122 </div> 123 124 <div class="block"> 125 <button id="ok" onclick="insert();">{"OK"|i18n("design/standard/ezdhtml")}</button> 126 <button onclick="window.close();">{"Cancel"|i18n("design/standard/ezdhtml")}</button> 127 </div> 128 129 </div>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |