datatable.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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.datatableEditMode}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="editMode" value="single" text{($.editMode!=='multi')?'checked':''}
  20. onclick="if (this.checked){
  21. $('text{$.pid}defaultCountEditTr').setStyle('display', 'none');
  22. $('text{$.pid}validationCompleteLineDiv').setStyle('display', '');
  23. }" />{{$.lp.datatableEditModeValue[0]}}
  24. <input type="radio" name="editMode" value="multi" text{($.editMode==='multi')?'checked':''}
  25. onclick="if (this.checked){
  26. $('text{$.pid}defaultCountEditTr').setStyle('display', '');
  27. $('text{$.pid}validationCompleteLineDiv').setStyle('display', 'none');
  28. }" />{{$.lp.datatableEditModeValue[1]}}
  29. </td>
  30. </tr>
  31. </table>
  32. <div class="MWFFormulaArea" name="defaultData" title="{{$.lp.defaultData}} (S)"></div>
  33. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.count}}</div>
  34. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  35. <tr id="text{$.pid}defaultCountEditTr" style="display: text{($.editMode!=='multi')?'none':''};">
  36. <td class="editTableTitle" width="80px">{{$.lp.defaultShow}}:</td>
  37. <td class="editTableValue">
  38. <input type="text" name="defaultCount" value="text{$.defaultCount}" class="editTableInputNoWidth" style="width: 100px;"/>{{$.lp.item}}
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="editTableTitle">{{$.lp.maxItemCount}}:</td>
  43. <td class="editTableValue">
  44. <input type="text" name="maxCount" value="text{$.maxCount}" class="editTableInputNoWidth" style="width: 100px;"/>{{$.lp.item}}
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="editTableTitle">{{$.lp.minItemCount}}:</td>
  49. <td class="editTableValue">
  50. <input type="text" name="minCount" value="text{$.minCount}" class="editTableInputNoWidth" style="width: 100px;"/>{{$.lp.item}}
  51. </td>
  52. </tr>
  53. </table>
  54. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.permission}}</div>
  55. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  56. <tr>
  57. <td class="editTableTitle">{{$.lp.allowDelete}}:</td>
  58. <td class="editTableValue">
  59. <input type="radio" name="deleteable" value="yes" text{($.deleteable!=='no')?'checked':''}/>{{$.lp.yes}}
  60. <input type="radio" name="deleteable" value="no" text{($.deleteable==='no')?'checked':''}/>{{$.lp.no}}
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="editTableTitle">{{$.lp.allowAdd}}:</td>
  65. <td class="editTableValue">
  66. <input type="radio" name="addable" value="yes" text{($.addable!=='no')?'checked':''} onclick="if (this.checked){
  67. $('text{$.pid}addToTr').setStyle('display', '');
  68. }"/>{{$.lp.yes}}
  69. <input type="radio" name="addable" value="no" text{($.addable==='no')?'checked':''} onclick="if (this.checked){
  70. $('text{$.pid}addToTr').setStyle('display', 'none');
  71. }"/>{{$.lp.no}}
  72. </td>
  73. </tr>
  74. <tr id="text{$.pid}addToTr" style="display: text{(!$.addable || $.addable!=='no')?'':'none'};">
  75. <td class="editTableTitle">{{$.lp.titleAddTo}}:</td>
  76. <td class="editTableValue">
  77. <input type="radio" name="addTo" value="first" text{($.addTo==='first')?'checked':''}/>{{$.lp.firstLine}}
  78. <input type="radio" name="addTo" value="last" text{($.addTo!=='first')?'checked':''}/>{{$.lp.lastLine}}
  79. </td>
  80. </tr>
  81. <tr>
  82. <td class="editTableTitle">{{$.lp.allowSort}}:</td>
  83. <td class="editTableValue">
  84. <input type="radio" name="sortable" value="yes" text{($.sortable!=='no')?'checked':''}/>{{$.lp.yes}}
  85. <input type="radio" name="sortable" value="no" text{($.sortable==='no')?'checked':''}/>{{$.lp.no}}
  86. </td>
  87. </tr>
  88. </table>
  89. <div class="MWFFormulaArea" name="editableScript" title="{{$.lp.allowEdit}} (S)"></div>
  90. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.exportImport}}({{$.lp.onlyPc}})</div>
  91. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.enabled}}:</td>
  94. <td class="editTableValue">
  95. <input type="radio" name="impexpType" value="none" text{(!$.impexpType || $.impexpType==='none')?'checked':''}
  96. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'none')}" />{{$.lp.disabled}}
  97. <input type="radio" name="impexpType" value="impexp" text{($.impexpType==='impexp')?'checked':''}
  98. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.exportImport}}
  99. <input type="radio" name="impexpType" value="exp" text{($.impexpType==='exp')?'checked':''}
  100. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.onlyExport}}
  101. <input type="radio" name="impexpType" value="imp" text{($.impexpType==='imp')?'checked':''}
  102. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.onlyImport}}
  103. </td>
  104. </tr>
  105. </table>
  106. <div id="text{$.pid}impexpArea" style="display: text{($.impexpType && $.impexpType!=='none')?'block':'none'};">
  107. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  108. <tr>
  109. <td class="editTableTitle"></td>
  110. <td class="editTableValue">
  111. {{$.lp.exportInfo}}
  112. </td>
  113. </tr>
  114. <tr>
  115. <td class="editTableTitle">{{$.lp.buttonLocation}}:</td>
  116. <td class="editTableValue">
  117. <input type="radio" name="impexpPosition" value="leftTop" text{(!$.impexpPosition || $.impexpPosition==='leftTop')?'checked':''}/>{{$.lp.lefttop}}
  118. <input type="radio" name="impexpPosition" value="centerTop" text{($.impexpPosition==='centerTop')?'checked':''}/>{{$.lp.centertop}}
  119. <input type="radio" name="impexpPosition" value="rightTop" text{($.impexpPosition==='rightTop')?'checked':''}/>{{$.lp.righttop}}
  120. <input type="radio" name="impexpPosition" value="leftBottom" text{($.impexpPosition==='leftBottom')?'checked':''}/>{{$.lp.leftbottom}}
  121. <input type="radio" name="impexpPosition" value="centerBottom" text{($.impexpPosition==='centerBottom')?'checked':''}/>{{$.lp.centerbottom}}
  122. <input type="radio" name="impexpPosition" value="rightBottom" text{($.impexpPosition==='rightBottom')?'checked':''}/>{{$.lp.rightbottom}}
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="editTableTitle">{{$.lp.importText}}:</td>
  127. <td class="editTableValue"><input type="text" name="importActionText" value="text{$.importActionText || '{{$.lp.importExcel}}'}" class="editTableInput"/></td>
  128. </tr>
  129. </table>
  130. <div class="MWFMaplist" name="importActionStyles" collapse="true" title="{{$.lp.importButtonStyle}}"></div>
  131. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  132. <tr>
  133. <td class="editTableTitle">{{$.lp.exportText}}:</td>
  134. <td class="editTableValue"><input type="text" name="exportActionText" value="text{$.exportActionText || '{{$.lp.exportExcel}}'}" class="editTableInput"/></td>
  135. </tr>
  136. </table>
  137. <div class="MWFMaplist" name="exportActionStyles" collapse="true" title="{{$.lp.exporButtonStyle}}"></div>
  138. <div class="MWFFormulaArea" name="excelName" title="{{$.lp.exportFileName}}"></div>
  139. <div class="MWFMaplist" name="impExpTableStyles" collapse="true" title="{{$.lp.validationTableStyle}}"></div>
  140. <div class="MWFMaplist" name="impExpTableTitleStyles" collapse="true" title="{{$.lp.validationTitleTdStyle}}"></div>
  141. <div class="MWFMaplist" name="impExpTableContentStyles" collapse="true" title="{{$.lp.validationContentTdStyle}}"></div>
  142. <div class="MWFMaplist" name="impExpTableProperties" collapse="true" title="{{$.lp.validationTableAttribute}}"></div>
  143. </div>
  144. <div class="MWFValidation" name="validationConfig"></div>
  145. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  146. <div id="text{$.pid}validationCompleteLineDiv" style="display: text{($.editMode==='multi')?'none':''};">
  147. <div class="MWFScriptArea" name="validationCompleteLine" title="{{$.lp.verificationLineScript}} (S)"></div>
  148. </div>
  149. </div>
  150. <div title="{{$.lp.style}}" class="MWFTab">
  151. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  152. <tr>
  153. <td class="editTableTitle">{{$.lp.border}}:</td>
  154. <td class="editTableValue"><input type="text" name="border" value="text{$.border}" class="editTableInput"/></td>
  155. </tr>
  156. <tr>
  157. <td class="editTableTitle">{{$.lp.backgroundColor}}:</td>
  158. <td class="editTableValue"><input type="color" name="backgroundColor" value="text{$.backgroundColor}" class="editTableInput"/></td>
  159. </tr>
  160. <tr>
  161. <td class="editTableTitle">{{$.lp.alternateRow}}:</td>
  162. <td class="editTableValue"><input type="color" name="zebraColor" value="text{$.zebraColor}" class="editTableInput"/></td>
  163. </tr>
  164. </table>
  165. <div class="MWFMaplist" name="styles" collapse="true" title="{{$.lp.containerStyles}}"></div>
  166. <div class="MWFMaplist" name="tableStyles" collapse="true" title="{{$.lp.tableStyle}}"></div>
  167. <div class="MWFMaplist" name="properties" collapse="true" title="{{$.lp.tableAttribute}}"></div>
  168. <div class="MWFMaplist" name="titleStyles" collapse="true" title="{{$.lp.titleCellStyle}}"></div>
  169. <div class="MWFMaplist" name="contentStyles" collapse="true" title="{{$.lp.contentCellStyle}}"></div>
  170. <div class="MWFMaplist" name="actionStyles" collapse="true" title="{{$.lp.actionCellStyles}}"></div>
  171. <div class="MWFMaplist" name="editStyles" collapse="true" title="{{$.lp.editCellStyles}}"></div>
  172. <div class="MWFMaplist" name="amountStyles" collapse="true" title="{{$.lp.amountCellStyle}}"></div>
  173. <div class="MWFMaplist" name="sectionAmountStyles" collapse="true" title="{{$.lp.sectionAmountCellStyle}}"></div>
  174. <div class="MWFMaplist" name="itemTitleStyles" collapse="true" title="{{$.lp.itemTitleStyle}}"></div>
  175. </div>
  176. <div title="{{$.lp.section}}" class="MWFTab">
  177. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  178. <tr>
  179. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  180. <td class="editTableValue">
  181. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  182. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  183. </td>
  184. </tr>
  185. </table>
  186. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  187. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  188. <tr>
  189. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  190. <td class="editTableValue">
  191. <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/>
  192. <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/>
  193. <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/>
  194. <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/>
  195. <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/>
  196. </td>
  197. </tr>
  198. </table>
  199. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  200. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  201. </div>
  202. </div>
  203. </div>
  204. <div title="{{$.lp.event}}" class="MWFTab">
  205. <div class="MWFEventsArea" name="events"></div>
  206. </div>
  207. <div title="HTML" class="MWFTab">
  208. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  209. </div>
  210. <div title="JSON" class="MWFTab">
  211. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  212. </div>
  213. </div>