column.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="基本" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.columnTitle}}:</td>
  6. <td class="editTableValue"><input type="text" name="displayName" value="text{$.displayName}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.columnName}}:</td>
  10. <td class="editTableValue"><input type="text" name="column" value="text{$.column}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.defaultValue}}:</td>
  14. <td class="editTableValue"><input type="text" name="defaultValue" value="text{$.defaultValue}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.openDocument}}:</td>
  18. <td class="editTableValue">
  19. <input class="editTableRadio" name="allowOpen" text{($.allowOpen===true)?'checked':''} type="radio" value="true"
  20. onclick="if(this.checked){
  21. $('text{$.pid}clickCodeTr').setStyle('display', '');
  22. $('text{$.pid}idPathTr').setStyle('display', '');
  23. }"/>{{$.lp.yes}}
  24. <input class="editTableRadio" name="allowOpen" text{($.allowOpen!==true)?'checked':''} type="radio" value="false"
  25. onclick="if(this.checked){
  26. $('text{$.pid}clickCodeTr').setStyle('display', 'none');
  27. $('text{$.pid}idPathTr').setStyle('display', 'none');
  28. }"/>{{$.lp.no}}
  29. </td>
  30. </tr>
  31. <tr id="text{$.pid}clickCodeTr" style="display:text{($.allowOpen===true)?'':'none'}">
  32. <td class="editTableValue" colspan="2">
  33. <div class="MWFFormulaArea" name="clickCode" title="{{$.lp.openDocumentScript}}(S)"></div>
  34. </td>
  35. </tr>
  36. <tr id="text{$.pid}idPathTr" style="display:text{($.allowOpen===true)?'':'none'}">
  37. <td class="editTableTitle">{{$.lp.idPath}}:</td>
  38. <td class="editTableValue">
  39. <input type="text" name="idPath" value="text{$.idPath}" class="editTableInput"/>
  40. <div style="line-height: 20px;color:#999;">{{$.lp.idPathNote}}</div>
  41. </td>
  42. </tr>
  43. </table>
  44. <div style="border-top: 1px solid #999; margin-top:10px">
  45. <div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.data}}</div>
  46. <div class="MWFDataData" id="text{$.pid}dataDataEditor">
  47. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" style="table-layout: fixed;">
  48. <tr>
  49. <td class="editTableTitle">{{$.lp.selectPath}}:</td>
  50. <td class="editTableValue">
  51. <select class="MWFDataPathSelect" id="text{$.pid}dataPathSelected" onchange=" var v=this.options[this.selectedIndex].value; if (true){var n = $('text{$.pid}viewColumnPathInput'); n.set('value', v); n.focus();} ">
  52. </select>
  53. <div style="line-height: 20px;color:#999;">{{$.lp.selectPathNote}}</div>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="editTableTitle">{{$.lp.dataPath}}:</td>
  58. <td class="editTableValue">
  59. <input id="text{$.pid}viewColumnPathInput" type="text" name="path" value="text{$.path}" class="editTableInput"/>
  60. <div style="line-height: 20px;color:#999;">{{$.lp.dataPathNote}}</div>
  61. </td>
  62. </tr>
  63. </table>
  64. </div>
  65. </div>
  66. <div style="border-top: 1px solid #999; margin-top:10px">
  67. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  68. <tr class="MWFColumnExportHide">
  69. <td class="editTableTitle">{{$.lp.hidden}}:</td>
  70. <td class="editTableValue">
  71. <input class="MWFWorkDataCheck" name="hideColumn" type="radio" value="true" text{($.hideColumn)===true?'checked':''}/>{{$.lp.yes}}
  72. <input class="MWFWorkDataCheck" name="hideColumn" type="radio" value="false" text{($.hideColumn)!==true?'checked':''}/>{{$.lp.no}}
  73. </td>
  74. </tr>
  75. <tr class="MWFColumnExportGroup">
  76. <td class="editTableTitle">{{$.lp.org}}:</td>
  77. <td class="editTableValue">
  78. <input class="MWFWorkDataCheck" name="isName" type="radio" value="true" text{($.isName)===true?'checked':''}/>{{$.lp.yes}}
  79. <input class="MWFWorkDataCheck" name="isName" type="radio" value="false" text{($.isName)!==true?'checked':''}/>{{$.lp.no}}
  80. </td>
  81. </tr>
  82. <tr class="MWFColumnExportGroup">
  83. <td class="editTableTitle">{{$.lp.htmlValue}}:</td>
  84. <td class="editTableValue">
  85. <input class="MWFWorkDataCheck" name="isHtml" type="radio" value="true" text{($.isHtml)===true?'checked':''}/>{{$.lp.yes}}
  86. <input class="MWFWorkDataCheck" name="isHtml" type="radio" value="false" text{($.isHtml)!==true?'checked':''}/>{{$.lp.no}}
  87. </td>
  88. </tr>
  89. </table>
  90. </div>
  91. <div class="MWFFormulaArea" name="code" title="{{$.lp.showScript}}(S)"></div>
  92. <div style="border-top: 1px solid #999; margin-top:10px">
  93. <div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.export}}</div>
  94. <div class="MWFDataData" id="text{$.pid}dataExportEditor">
  95. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" style="table-layout: fixed;">
  96. <tr>
  97. <td class="editTableTitle">{{$.lp.exportEnable}}:</td>
  98. <td class="editTableValue">
  99. <input name="exportEnable" type="radio" value="true" text{($.exportEnable)!==false?'checked':''}/>{{$.lp.yes}}
  100. <input name="exportEnable" type="radio" value="false" text{($.exportEnable)===false?'checked':''}/>{{$.lp.no}}
  101. </td>
  102. </tr>
  103. <tr>
  104. <td class="editTableTitle">{{$.lp.exportWidth}}:</td>
  105. <td class="editTableValue">
  106. <input type="text" name="exportWidth" value="text{$.exportWidth || 200}" class="editTableInputNoWidth"/>px
  107. </td>
  108. </tr>
  109. <tr>
  110. <td class="editTableTitle">{{$.lp.isTime}}:</td>
  111. <td class="editTableValue">
  112. <input class="MWFWorkDataCheck" name="isTime" type="radio" value="true" onclick="if(this.checked){
  113. $$('[name=text{$.mid}isNumber]').each(function( el ){ if(el.get('value') === 'false' ){ el.set('checked', true); el.fireEvent('change') }})
  114. }" text{($.isTime)===true?'checked':''}/>{{$.lp.yes}}
  115. <input class="MWFWorkDataCheck" name="isTime" type="radio" value="false" text{($.isTime)!==true?'checked':''}/>{{$.lp.no}}
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="editTableTitle">{{$.lp.isNumber}}:</td>
  120. <td class="editTableValue">
  121. <input class="MWFWorkDataCheck" name="isNumber" type="radio" value="true" onclick="if(this.checked){
  122. $$('[name=text{$.mid}isTime]').each(function( el ){ if(el.get('value') === 'false' ){el.set('checked', true); el.fireEvent('change') }})
  123. }" text{($.isNumber)===true?'checked':''}/>{{$.lp.yes}}
  124. <input class="MWFWorkDataCheck" name="isNumber" type="radio" value="false" text{($.isNumber)!==true?'checked':''}/>{{$.lp.no}}
  125. </td>
  126. </tr>
  127. </table>
  128. </div>
  129. </div>
  130. </div>
  131. <div title="{{$.lp.style}}" class="MWFTab">
  132. <div class="MWFMaplist" name="titleStyles" title="{{$.lp.titleStyles}}"></div>
  133. <div class="MWFMaplist" name="titleProperties" title="{{$.lp.titleProperties}}"></div>
  134. <div class="MWFMaplist" name="contentStyles" title="{{$.lp.contentStyles}}"></div>
  135. <div class="MWFMaplist" name="contentProperties" title="{{$.lp.contentProperties}}"></div>
  136. </div>
  137. <div title="{{$.lp.event}}" class="MWFTab">
  138. <div class="MWFEventsArea" name="events"></div>
  139. </div>
  140. <div title="JSON" class="MWFTab">
  141. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  142. </div>
  143. </div>