textfield.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.showIcon}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="showIcon" value="yes" text{($.showIcon!='no')?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon=='no')?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  27. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  28. </td>
  29. </tr>
  30. <!--<tr>-->
  31. <!--<td class="editTableTitle">标题字段</td>-->
  32. <!--<td class="editTableValue" id="text{$.pid}isTitleArea">-->
  33. <!--<input type="radio" name="isTitle" value="true" text{($.isTitle)?'checked':''}/>是-->
  34. <!--<input type="radio" name="isTitle" value="false" text{(!$.isTitle)?'checked':''}/>否-->
  35. <!--</td>-->
  36. <!--</tr>-->
  37. </table>
  38. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  39. <!-- <tr>-->
  40. <!-- <td class="editTableTitle">{{$.lp.AIInput}}:</td>-->
  41. <!-- <td class="editTableValue">-->
  42. <!-- <div class="MWFANNModelSelect" name="ANNModel"></div>-->
  43. <!-- </td>-->
  44. <!-- </tr>-->
  45. <!-- </table>-->
  46. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  47. <div class="MWFMaplist" name="inputStyles" title="{{$.lp.inputStyle}}"></div>
  48. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  49. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  50. <tr>
  51. <td class="editTableTitle">{{$.lp.compute}}:</td>
  52. <td class="editTableValue">
  53. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  54. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  55. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  56. </td>
  57. </tr>
  58. </table>
  59. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  60. <div class="MWFValidation" name="validationConfig"></div>
  61. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  62. </div>
  63. <div title="{{$.lp.section}}" class="MWFTab">
  64. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  65. <tr>
  66. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  67. <td class="editTableValue">
  68. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  69. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  70. </td>
  71. </tr>
  72. </table>
  73. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  74. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  75. <tr>
  76. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  77. <td class="editTableValue">
  78. <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/>
  79. <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/>
  80. <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/>
  81. <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/>
  82. <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/>
  83. </td>
  84. </tr>
  85. </table>
  86. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  87. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  88. </div>
  89. </div>
  90. </div>
  91. <div title="{{$.lp.event}}" class="MWFTab">
  92. <div class="MWFEventsArea" name="events"></div>
  93. </div>
  94. <div title="HTML" class="MWFTab">
  95. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  96. </div>
  97. <div title="JSON" class="MWFTab">
  98. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  99. </div>
  100. </div>