checkbox.html 16 KB

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