elslider.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.el_disabled}}:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  27. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  28. </td>
  29. </tr>
  30. </table>
  31. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  32. <tr>
  33. <td class="editTableTitle">{{$.lp.max}}:</td>
  34. <td class="editTableValue"><input type="number" name="max" value="text{$.max || 100}" class="editTableInput"/></td>
  35. </tr>
  36. <tr>
  37. <td class="editTableTitle">{{$.lp.min}}:</td>
  38. <td class="editTableValue"><input type="number" name="min" value="text{$.min || 0}" class="editTableInput"/></td>
  39. </tr>
  40. <tr>
  41. <td class="editTableTitle">{{$.lp.step}}:</td>
  42. <td class="editTableValue"><input type="number" name="step" value="text{$.step || '1'}" class="editTableInput"/></td>
  43. </tr>
  44. <tr>
  45. <td colspan="2" class="editTableValue"><b>{{$.lp.showStops}}:</b>
  46. <input type="radio" name="showStops" value="true" text{($.showStops)?'checked':''}/>{{$.lp.yes}}
  47. <input type="radio" name="showStops" value="false" text{(!$.showStops)?'checked':''}/>{{$.lp.no}}
  48. </td>
  49. </tr>
  50. <tr>
  51. <td colspan="2" class="editTableValue"><b>{{$.lp.sliderRange}}:</b>
  52. <input type="radio" name="range" value="true" text{($.range)?'checked':''}/>{{$.lp.yes}}
  53. <input type="radio" name="range" value="false" text{(!$.range)?'checked':''}/>{{$.lp.no}}
  54. </td>
  55. </tr>
  56. <tr>
  57. <td colspan="2" class="editTableValue"><b>{{$.lp.sliderVertical}}:</b>
  58. <input type="radio" name="vertical" value="true" text{($.vertical)?'checked':''}/>{{$.lp.yes}}
  59. <input type="radio" name="vertical" value="false" text{(!$.vertical)?'checked':''}/>{{$.lp.no}}
  60. </td>
  61. </tr>
  62. <tr>
  63. <td class="editTableTitle">{{$.lp.height}}:</td>
  64. <td class="editTableValue"><input type="text" name="height" value="text{$.height}" class="editTableInput"/></td>
  65. </tr>
  66. </table>
  67. <div class="MWFFormulaArea" name="marksScript" title="{{$.lp.sliderMarks}} (S)"></div>
  68. <div style="padding: 5px; border-bottom: 1px solid #cccccc">{{$.lp.marksScriptInfo}}</div>
  69. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  70. <tr>
  71. <td colspan="2" class="editTableValue"><b>{{$.lp.showInput}}:</b>
  72. <input onclick="if (this.checked) this.getParent('table').getNext().show();" type="radio" name="showInput" value="true" text{($.showInput)?'checked':''}/>{{$.lp.yes}}
  73. <input onclick="if (this.checked) this.getParent('table').getNext().hide();" type="radio" name="showInput" value="false" text{(!$.showInput)?'checked':''}/>{{$.lp.no}}
  74. </td>
  75. </tr>
  76. </table>
  77. <div style="display: text{($.showInput)?'block':'none'}">
  78. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  79. <tr>
  80. <td colspan="2" class="editTableValue"><b>{{$.lp.showInputControls}}:</b>
  81. <input type="radio" name="showInputControls" value="true" text{($.showInputControls!==false)?'checked':''}/>{{$.lp.yes}}
  82. <input type="radio" name="showInputControls" value="false" text{($.showInputControls===false)?'checked':''}/>{{$.lp.no}}
  83. </td>
  84. </tr>
  85. <tr>
  86. <td colspan="2" class="editTableValue"><b>{{$.lp.inputSize}}:</b>
  87. <input type="radio" name="inputSize" value="default" text{(!$.inputSize || $.inputSize==='default')?'checked':''}/>default
  88. <input type="radio" name="inputSize" value="medium" text{($.inputSize==='medium')?'checked':''}/>medium
  89. <input type="radio" name="inputSize" value="small" text{($.inputSize==='small')?'checked':''}/>small
  90. <input type="radio" name="inputSize" value="mini" text{($.inputSize==='mini')?'checked':''}/>mini
  91. </td>
  92. </tr>
  93. </table>
  94. </div>
  95. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  96. <tr>
  97. <td colspan="2" class="editTableValue"><b>{{$.lp.showTooltip}}:</b>
  98. <input onclick="if (this.checked) this.getParent('table').getNext().show();" type="radio" name="showTooltip" value="true" text{($.showTooltip!==false)?'checked':''}/>{{$.lp.yes}}
  99. <input onclick="if (this.checked) this.getParent('table').getNext().hide();" type="radio" name="showTooltip" value="false" text{($.showTooltip===false)?'checked':''}/>{{$.lp.no}}
  100. </td>
  101. </tr>
  102. </table>
  103. <div style="display: text{($.showTooltip!==false)?'block':'none'}">
  104. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  105. <tr>
  106. <td class="editTableTitle">{{$.lp.tooltipClass}}:</td>
  107. <td class="editTableValue"><input type="text" name="tooltipClass" value="text{$.tooltipClass}" class="editTableInput"/></td>
  108. </tr>
  109. </table>
  110. <div class="MWFFormulaArea" name="formatTooltip" title="{{$.lp.formatTooltip}} (S)"></div>
  111. <div style="padding: 5px">{{$.lp.formatTooltipScript}}</div>
  112. <div style="padding: 5px 5px 10px 5px">
  113. return function(value){<br/>
  114. &nbsp;&nbsp;&nbsp;&nbsp;//do something<br/>
  115. &nbsp;&nbsp;&nbsp;&nbsp;return value;<br/>
  116. }
  117. </div>
  118. </div>
  119. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  120. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  121. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  122. <tr>
  123. <td class="editTableTitle">{{$.lp.compute}}:</td>
  124. <td class="editTableValue">
  125. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  126. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  127. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  128. </td>
  129. </tr>
  130. </table>
  131. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  132. <div class="MWFValidation" name="validationConfig"></div>
  133. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  134. </div>
  135. <div title="Vue" class="MWFTab">
  136. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Data</div>
  137. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  138. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Method</div>
  139. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  140. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue CSS</div>
  141. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  142. <!-- <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Slots</div>-->
  143. <!-- <div style="display: text{($.vueSlot) ? 'block' : 'none'}">-->
  144. <!-- <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>-->
  145. <!-- </div>-->
  146. </div>
  147. <div title="{{$.lp.section}}" class="MWFTab">
  148. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  149. <tr>
  150. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  151. <td class="editTableValue">
  152. <input onclick="if (this.checked){
  153. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  154. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  155. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  156. <input onclick="if (this.checked){
  157. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  158. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  159. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  160. </td>
  161. </tr>
  162. </table>
  163. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  164. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  165. <tr>
  166. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  167. <td class="editTableValue">
  168. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
  169. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  170. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
  171. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
  172. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
  173. </td>
  174. </tr>
  175. </table>
  176. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  177. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  178. </div>
  179. </div>
  180. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  181. </div>
  182. <div title="{{$.lp.event}}" class="MWFTab">
  183. <div class="MWFEventsArea" name="events"></div>
  184. </div>
  185. <div title="HTML" class="MWFTab">
  186. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  187. </div>
  188. <div title="JSON" class="MWFTab">
  189. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  190. </div>
  191. </div>