checkbox.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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.newline}}:</td>-->
  25. <!-- <td class="editTableValue">-->
  26. <!-- <input type="radio" name="newline" value="true" text{($.newline)?'checked':''}/>{{$.lp.yes}}-->
  27. <!-- <input type="radio" name="newline" value="false" text{(!$.newline)?'checked':''}/>{{$.lp.no}}-->
  28. <!-- </td>-->
  29. <!-- </tr>-->
  30. <tr>
  31. <td class="editTableTitle">{{$.lp.countPerline}}:</td>
  32. <td class="editTableValue">
  33. <input type="text" name="countPerline" value="text{$.countPerline}" class="editTableInput" onkeyup="this.value=this.value.replace(/[^\d]/g,'')"/>
  34. <div style="color:#999999; padding:5px;">{{$.lp.countPerlineNote}}</div>
  35. </td>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="editTableTitle">{{$.lp.options}}:</td>
  40. <td class="editTableValue">
  41. <input class="editTableRadio" onclick="if (this.checked){
  42. $('text{$.pid}selectEditItemValues').setStyle('display', 'block');
  43. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  44. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  45. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  46. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  47. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  48. }" name="itemType" text{(!$.itemType || $.itemType=='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
  49. <input class="editTableRadio" onclick="if (this.checked){
  50. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  51. $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
  52. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  53. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  54. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  55. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  56. }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  57. <input class="editTableRadio" onclick="if (this.checked){
  58. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  59. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  60. $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
  61. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  62. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  63. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  64. }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
  65. <input class="editTableRadio" onclick="if (this.checked){
  66. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  67. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  68. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  69. $('text{$.pid}selectEditItemView').setStyle('display', 'block');
  70. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  71. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  72. }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
  73. <input class="editTableRadio" onclick="if (this.checked){
  74. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  75. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  76. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  77. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  78. $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
  79. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  80. }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
  81. </td>
  82. </tr>
  83. </table>
  84. <div id="text{$.pid}selectEditItemValues" style="display: text{(!$.itemType || $.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
  85. <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}" class="MWFScriptArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
  86. <div id="text{$.pid}selectFirstOption" style="display: text{(['dict','view','statement'].contains($.itemType))?'block':'none'}">
  87. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  88. <tr>
  89. <td class="editTableTitle">{{$.lp.firstOptionEnable}}:</td>
  90. <td class="editTableValue">
  91. <input class="editTableRadio" onclick="if (this.checked){
  92. $('text{$.pid}firstOptionTextTr').setStyle('display', '');
  93. }" name="firstOptionEnable" text{($.firstOptionEnable)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  94. <input class="editTableRadio" onclick="if (this.checked){
  95. $('text{$.pid}firstOptionTextTr').setStyle('display', 'none');
  96. }" name="firstOptionEnable" text{(!$.firstOptionEnable)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  97. </td>
  98. </tr>
  99. <tr id="text{$.pid}firstOptionTextTr" style="display: text{($.firstOptionEnable)?'':'none'}">
  100. <td class="editTableTitle">{{$.lp.firstOption}}:</td>
  101. <td class="editTableValue"><input type="text" name="firstOption" value="text{$.firstOption}" class="editTableInput"/></td>
  102. </tr>
  103. </table>
  104. </div>
  105. <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
  106. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  107. <tr>
  108. <td class="editTableTitle">{{$.lp.dict}}:</td>
  109. <td class="editTableValue">
  110. <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td class="editTableTitle">{{$.lp.dictPath}}:</td>
  115. <td class="editTableValue">
  116. <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
  117. </td>
  118. </tr>
  119. <!-- <tr>-->
  120. <!-- <td class="editTableTitle">{{$.lp.asyncLoad}}</td>-->
  121. <!-- <td class="editTableValue">-->
  122. <!-- <input type="radio" name="itemDictAsync" value="true" text{($.itemDictAsync!==false)?'checked':''}/>{{$.lp.yes}}-->
  123. <!-- <input type="radio" name="itemDictAsync" value="false" text{($.itemDictAsync===false)?'checked':''}/>{{$.lp.no}}-->
  124. <!-- </td>-->
  125. <!-- </tr>-->
  126. <tr>
  127. <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
  128. </tr>
  129. <tr>
  130. <td class="editTableTitle">{{$.lp.valueKey}}:</td>
  131. <td class="editTableValue">
  132. <input type="text" name="dictValueKey" value="text{$.dictValueKey}" class="editTableInput"/>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="editTableTitle">{{$.lp.textKey}}:</td>
  137. <td class="editTableValue">
  138. <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
  139. </td>
  140. </tr>
  141. </table>
  142. </div>
  143. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  144. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  145. <tr>
  146. <td class="editTableTitle">{{$.lp.view}}:</td>
  147. <td class="editTableValue">
  148. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  153. <td class="editTableValue">
  154. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  159. <td class="editTableValue">
  160. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  161. </td>
  162. </tr>
  163. </table>
  164. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  165. <div class="MWFViewFilterWithTemplate"></div>
  166. </div>
  167. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  168. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  169. <tr>
  170. <td class="editTableTitle">{{$.lp.statement}}:</td>
  171. <td class="editTableValue">
  172. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  173. </td>
  174. </tr>
  175. <tr>
  176. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  177. <td class="editTableValue">
  178. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  183. <td class="editTableValue">
  184. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  185. </td>
  186. </tr>
  187. </table>
  188. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  189. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  190. </div>
  191. <div class="MWFMaplist" name="styles" title="{{$.lp.divStyle}}"></div>
  192. <div class="MWFMaplist" name="buttonStyles" title="{{$.lp.buttonStyle}}"></div>
  193. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  194. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  195. <tr>
  196. <td class="editTableTitle">{{$.lp.compute}}:</td>
  197. <td class="editTableValue">
  198. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  199. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  200. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  201. </td>
  202. </tr>
  203. </table>
  204. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  205. <div class="MWFValidation" name="validationConfig"></div>
  206. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  207. </div>
  208. <div title="{{$.lp.section}}" class="MWFTab">
  209. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  210. <tr>
  211. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  212. <td class="editTableValue">
  213. <input onclick="if (this.checked){
  214. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  215. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  216. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  217. <input onclick="if (this.checked){
  218. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  219. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  220. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  221. </td>
  222. </tr>
  223. </table>
  224. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  225. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  226. <tr>
  227. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  228. <td class="editTableValue">
  229. <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/>
  230. <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/>
  231. <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/>
  232. <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/>
  233. <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/>
  234. </td>
  235. </tr>
  236. </table>
  237. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  238. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  239. </div>
  240. </div>
  241. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  242. </div>
  243. <div title="{{$.lp.event}}" class="MWFTab">
  244. <div class="MWFEventsArea" name="events"></div>
  245. </div>
  246. <div title="HTML" class="MWFTab">
  247. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  248. </div>
  249. <div title="JSON" class="MWFTab">
  250. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  251. </div>
  252. </div>