datatable.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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':''}/>{{$.lp.yes}}
  67. <input type="radio" name="addable" value="no" text{($.addable==='no')?'checked':''}/>{{$.lp.no}}
  68. </td>
  69. </tr>
  70. </table>
  71. <div class="MWFFormulaArea" name="editableScript" title="{{$.lp.allowEdit}} (S)"></div>
  72. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;">{{$.lp.exportImport}}({{$.lp.onlyPc}})</div>
  73. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  74. <tr>
  75. <td class="editTableTitle">{{$.lp.enabled}}:</td>
  76. <td class="editTableValue">
  77. <input type="radio" name="impexpType" value="none" text{(!$.impexpType || $.impexpType==='none')?'checked':''}
  78. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'none')}" />{{$.lp.disabled}}
  79. <input type="radio" name="impexpType" value="impexp" text{($.impexpType==='impexp')?'checked':''}
  80. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.exportImport}}
  81. <input type="radio" name="impexpType" value="exp" text{($.impexpType==='exp')?'checked':''}
  82. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.onlyExport}}
  83. <input type="radio" name="impexpType" value="imp" text{($.impexpType==='imp')?'checked':''}
  84. onclick="if (this.checked){ $('text{$.pid}impexpArea').setStyle('display', 'block')}" />{{$.lp.onlyImport}}
  85. </td>
  86. </tr>
  87. </table>
  88. <div id="text{$.pid}impexpArea" style="display: text{($.impexpType && $.impexpType!=='none')?'block':'none'};">
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableTitle"></td>
  92. <td class="editTableValue">
  93. {{$.lp.exportInfo}}
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="editTableTitle">{{$.lp.buttonLocation}}:</td>
  98. <td class="editTableValue">
  99. <input type="radio" name="impexpPosition" value="leftTop" text{(!$.impexpPosition || $.impexpPosition==='leftTop')?'checked':''}/>{{$.lp.lefttop}}
  100. <input type="radio" name="impexpPosition" value="centerTop" text{($.impexpPosition==='centerTop')?'checked':''}/>{{$.lp.centertop}}
  101. <input type="radio" name="impexpPosition" value="rightTop" text{($.impexpPosition==='rightTop')?'checked':''}/>{{$.lp.righttop}}
  102. <input type="radio" name="impexpPosition" value="leftBottom" text{($.impexpPosition==='leftBottom')?'checked':''}/>{{$.lp.leftbottom}}
  103. <input type="radio" name="impexpPosition" value="centerBottom" text{($.impexpPosition==='centerBottom')?'checked':''}/>{{$.lp.centerbottom}}
  104. <input type="radio" name="impexpPosition" value="rightBottom" text{($.impexpPosition==='rightBottom')?'checked':''}/>{{$.lp.rightbottom}}
  105. </td>
  106. </tr>
  107. <tr>
  108. <td class="editTableTitle">{{$.lp.importText}}:</td>
  109. <td class="editTableValue"><input type="text" name="importActionText" value="text{$.importActionText || '{{$.lp.importExcel}}'}" class="editTableInput"/></td>
  110. </tr>
  111. </table>
  112. <div class="MWFMaplist" name="importActionStyles" collapse="true" title="{{$.lp.importButtonStyle}}"></div>
  113. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  114. <tr>
  115. <td class="editTableTitle">{{$.lp.exportText}}:</td>
  116. <td class="editTableValue"><input type="text" name="exportActionText" value="text{$.exportActionText || '{{$.lp.exportExcel}}'}" class="editTableInput"/></td>
  117. </tr>
  118. </table>
  119. <div class="MWFMaplist" name="exportActionStyles" collapse="true" title="{{$.lp.exporButtonStyle}}"></div>
  120. <div class="MWFFormulaArea" name="excelName" title="{{$.lp.exportFileName}}"></div>
  121. <div class="MWFMaplist" name="impExpTableStyles" collapse="true" title="{{$.lp.validationTableStyle}}"></div>
  122. <div class="MWFMaplist" name="impExpTableTitleStyles" collapse="true" title="{{$.lp.validationTitleTdStyle}}"></div>
  123. <div class="MWFMaplist" name="impExpTableContentStyles" collapse="true" title="{{$.lp.validationContentTdStyle}}"></div>
  124. <div class="MWFMaplist" name="impExpTableProperties" collapse="true" title="{{$.lp.validationTableAttribute}}"></div>
  125. </div>
  126. <div class="MWFValidation" name="validationConfig"></div>
  127. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  128. <div id="text{$.pid}validationCompleteLineDiv" style="display: text{($.editMode==='multi')?'none':''};">
  129. <div class="MWFScriptArea" name="validationCompleteLine" title="{{$.lp.verificationLineScript}} (S)"></div>
  130. </div>
  131. </div>
  132. <div title="{{$.lp.style}}" class="MWFTab">
  133. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  134. <tr>
  135. <td class="editTableTitle">{{$.lp.border}}:</td>
  136. <td class="editTableValue"><input type="text" name="border" value="text{$.border}" class="editTableInput"/></td>
  137. </tr>
  138. <tr>
  139. <td class="editTableTitle">{{$.lp.backgroundColor}}:</td>
  140. <td class="editTableValue"><input type="color" name="backgroundColor" value="text{$.backgroundColor}" class="editTableInput"/></td>
  141. </tr>
  142. <tr>
  143. <td class="editTableTitle">{{$.lp.alternateRow}}:</td>
  144. <td class="editTableValue"><input type="color" name="zebraColor" value="text{$.zebraColor}" class="editTableInput"/></td>
  145. </tr>
  146. </table>
  147. <div class="MWFMaplist" name="styles" collapse="true" title="{{$.lp.containerStyles}}"></div>
  148. <div class="MWFMaplist" name="tableStyles" collapse="true" title="{{$.lp.tableStyle}}"></div>
  149. <div class="MWFMaplist" name="properties" collapse="true" title="{{$.lp.tableAttribute}}"></div>
  150. <div class="MWFMaplist" name="titleStyles" collapse="true" title="{{$.lp.titleCellStyle}}"></div>
  151. <div class="MWFMaplist" name="contentStyles" collapse="true" title="{{$.lp.contentCellStyle}}"></div>
  152. <div class="MWFMaplist" name="actionStyles" collapse="true" title="{{$.lp.actionCellStyles}}"></div>
  153. <div class="MWFMaplist" name="editStyles" collapse="true" title="{{$.lp.editCellStyles}}"></div>
  154. <div class="MWFMaplist" name="amountStyles" collapse="true" title="{{$.lp.amountCellStyle}}"></div>
  155. <div class="MWFMaplist" name="itemTitleStyles" collapse="true" title="{{$.lp.itemTitleStyle}}"></div>
  156. </div>
  157. <div title="{{$.lp.event}}" class="MWFTab">
  158. <div class="MWFEventsArea" name="events"></div>
  159. </div>
  160. <div title="HTML" class="MWFTab">
  161. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  162. </div>
  163. <div title="JSON" class="MWFTab">
  164. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  165. </div>
  166. </div>